/* =========================================================
   Pigment Hair Paris — main.css
   Variables et surcharges Bootstrap + styles custom
   ========================================================= */

:root {
    --php-primaire: #d69f88;
    --php-secondaire: #F2EBE4;
    --php-sombre: #1A1A1A;
    --php-texte: #2C2C2C;
    --php-muet: #6B6B6B;
    --php-white: #ffffff;
    --php-black: #000000;
    --php-rayon: 0.75rem;
    --php-ombre: 0 4px 24px rgba(0, 0, 0, .08);
    --font-titre: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-corps: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --ls-wide: 0.08em;
    --py-section: 5rem;
}

* {
    margin: 0 !important;
}

/* ── Base ────────────────────────────────────────────────── */
body {
    font-family: var(--font-corps);
    color: var(--php-texte);
    -webkit-font-smoothing: antialiased;
}

p {
    margin-block-end: 16px !important;
}

h1,
h2,
h3,
h4,
.section-titre,
.hero-titre {
    font-family: var(--font-titre);
}

/* ── Couleurs Bootstrap surchargées ─────────────────────── */
a,
a:hover,
a:focus {
    color: var(--php-primaire);
}

.btn-primary {
    background-color: var(--php-primaire) !important;
    border-color: var(--php-primaire) !important;
    font-weight: bold;
    transform: translateY(0);
    transition: all ease-in-out .2s;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: color-mix(in srgb, var(--php-primaire) 85%, #000);
    border-color: color-mix(in srgb, var(--php-primaire) 85%, #000);
    transform: translateY(-4px);

}

.btn-outline-primary {
    color: var(--php-primaire);
    border-color: var(--php-primaire);
}

.btn-outline-primary:hover {
    background-color: var(--php-primaire);
    border-color: var(--php-primaire);
}

.bg-primaire {
    background-color: var(--php-primaire) !important;
}

.bg-secondaire {
    background-color: var(--php-secondaire) !important;
}

.bg-gradient {
    background: linear-gradient(to right, #FFF6EF, #F6D2B4) !important;
}

.bg-soft {
    background-color: rgb(246 210 180 / 20%);
    border-left: 4px solid var(--php-primaire);
}

.text-hard {
    color: var(--php-primaire);
}

/* ── En-tête ─────────────────────────────────────────────── */
img.custom-logo {
    max-width: 150px;
    height: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 1px 12px rgba(0, 0, 0, .04);
}

.navbar-brand-text {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--php-primaire);
    letter-spacing: -0.01em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: .93rem;
    color: var(--php-texte);
    padding-inline: 1rem;
    transition: color .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--php-primaire);
}

/* ── Surtitre / chapeau ──────────────────────────────────── */
.surtitre {
    color: var(--php-primaire);
    font-size: .85rem;
    font-family: var(--font-corps);
}

.ls-wide {
    letter-spacing: var(--ls-wide);
}

/* ── Numéros processus ───────────────────────────────────── */
.processus-numero {
    background-color: var(--php-primaire);
    color: #fff;
}

/* ── Prix tarifs ─────────────────────────────────────────── */
.tarif-prix {
    color: var(--php-primaire);
}

p.tarif-description {
    max-width: 80%;
}

/* ── Hover image réalisation ─────────────────────────────── */
.card:hover .realisation-img {
    transform: scale(1.04);
}

/* ── Contact ────────────────────────────────────────── */
.map {
    border: 24px solid white;
}

/* ── Pied de page ────────────────────────────────────────── */
.site-footer {
    background: var(--php-sombre);
    color: rgba(255, 255, 255, .75);
}

.site-footer__nom {
    color: #fff;
    font-family: var(--font-titre);
}

.site-footer__nav .menu-item a {
    color: rgba(255, 255, 255, .6);
    font-size: .9rem;
    transition: color .2s;
    text-decoration: none;
}

.site-footer__nav .menu-item a:hover {
    color: #fff;
}

/* ── Sections espacement vertical ───────────────────────── */
.py-lg-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

@media (min-width: 992px) {
    .py-lg-7 {
        padding-top: 7rem !important;
        padding-bottom: 7rem !important;
    }
}

@media (min-width: 768px) {
    .w-md-50 {
        width: 50% !important;
    }
}

/* ═══════════════════════════════════════════════════
HEADER — Pigment Hair Paris
═══════════════════════════════════════════════════ */

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 1px 24px rgba(0, 0, 0, .05);
    transition: box-shadow .3s, background .3s;
    padding-block: 0;
    z-index: 1030;
}

.site-header.scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, .10);
}

/* Conteneur nav */
.site-header .container {
    min-height: 72px;
    display: flex;
    align-items: center;
}

/* ── Logo ─────────────────────────────────────────── */
.navbar-brand {
    padding: 0;
    margin-right: 2.5rem;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 44px;
    width: auto;
}

.navbar-brand-text {
    font-family: var(--font-titre);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--php-primaire);
    letter-spacing: -0.01em;
    line-height: 1;
}

/* ── Nav links ────────────────────────────────────── */
.navbar-nav {
    gap: 0.15rem;
}

.navbar-nav>li>a.nav-link {
    font-family: var(--font-corps);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--php-texte);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: color .18s, background .18s;
    position: relative;
    white-space: nowrap;
}

.navbar-nav>li>a.nav-link:hover,
.navbar-nav>li>a.nav-link:focus,
.navbar-nav>li.current-menu-item>a.nav-link,
.navbar-nav>li.current-menu-ancestor>a.nav-link {
    color: var(--php-sombre);
    background: rgba(192, 99, 74, .07);
}

/* Indicateur de lien actif */
.navbar-nav>li.current-menu-item>a.nav-link::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--php-primaire);
}

@media screen and (max-width:767px) {
    .navbar-nav>li.current-menu-item>a.nav-link::after {
        left: 10%;
    }
}

/* ── Dropdown (sous-menu) ─────────────────────────── */
.navbar-nav .dropdown-toggle::after {
    border: none;
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: -2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C2C2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform .2s;
}

.navbar-nav .dropdown.show>a.dropdown-toggle::after {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0634A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    padding: 0.5rem;
    min-width: 220px;
    margin-top: 0.5rem !important;
    animation: dropdown-in .18s ease;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--php-texte);
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(192, 99, 74, .08);
    color: var(--php-primaire);
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--php-primaire);
    color: #fff;
}

/* Séparateur dans le dropdown */
.dropdown-divider {
    border-color: rgba(0, 0, 0, .07);
    margin: 0.35rem 0.5rem;
}

/* ── Burger (mobile) ──────────────────────────────── */
.navbar-toggler {
    border: none;
    padding: 0.4rem;
    border-radius: 8px;
    background: transparent;
    transition: background .2s;
}

.navbar-toggler:hover {
    background: rgba(192, 99, 74, .08);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%232C2C2C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
}

/* ── Dropdown hover desktop ───────────────────────── */
@media (min-width: 992px) {

    /* Le parent reste cliquable et visible — le menu s'ouvre au survol */
    .php-dropdown {
        position: relative;
    }

    .php-dropdown>.dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        pointer-events: none;
        /* Écrase Bootstrap qui utilise display:none via JS */
        display: block !important;
    }

    .php-dropdown:hover>.dropdown-menu,
    .php-dropdown:focus-within>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Supprime le caret Bootstrap — on a notre propre SVG */
    .php-dropdown>a.dropdown-toggle::after {
        transition: transform .2s;
    }

    .php-dropdown:hover>a.dropdown-toggle::after {
        transform: rotate(180deg);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0634A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    }

    /* Pont invisible pour ne pas perdre le hover entre le lien et le menu */
    .php-dropdown>.dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 10px;
    }
}

@media (max-width: 991.98px) {
    .mobile-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .mobile-scroll .row {
        width: max-content;
        margin-inline: 0;
    }

    .mobile-scroll .col-sm-6 {
        width: 280px;
        flex: 0 0 auto;
    }

    .mobile-scroll::-webkit-scrollbar {
        display: none;
    }

    .navbar-collapse {
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, .07);
        margin-top: 0.75rem;
        padding: 1rem 0;
        border-radius: 0 0 12px 12px;
    }

    .navbar-nav>li>a.nav-link {
        padding: 0.65rem 1rem;
        border-radius: 8px;
    }

    .navbar-nav>li>a.nav-link::after {
        display: none;
    }

    .dropdown-menu {
        box-shadow: none;
        border: none;
        background: rgba(192, 99, 74, .04);
        border-radius: 8px;
        margin: 0.25rem 0 0.25rem 1rem !important;
        padding: 0.25rem;
        animation: none;
    }

    .dropdown-item {
        font-size: 0.875rem;
    }
}

/* ── Section Avant/Après ──────────────────────────────────── */
.section-avant-apres {
    overflow: hidden;
}

section.text-white .text-muted,
section.text-white .aa-legende__titre,
section.text-white .aa-legende__desc {
    color: var(--bs-body-bg) !important;
}

.aa-grille {
    display: grid;
    gap: 2rem;
}

.aa-grille.cols-1 {
    grid-template-columns: minmax(320px, 720px);
    justify-content: center;
}

.aa-grille.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.aa-grille.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .aa-grille {
        grid-template-columns: 1fr !important;
    }
}

/* Slider wrapper */
.aa-slider {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .14);
    background: #f3f4f6;
    user-select: none;
    touch-action: pan-y;
}

.aa-slider__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Image "après" clippée par-dessus l'avant */
.aa-slider__apres {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
}

.aa-slider__apres img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Labels */
.aa-label {
    position: absolute;
    top: 0.75rem;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aa-label--avant {
    left: 0.75rem;
}

.aa-label--apres {
    right: 0.75rem;
}

/* Séparateur vertical */
.aa-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
    z-index: 20;
    pointer-events: none;
}

/* Bouton circulaire */
.aa-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, .12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aa-handle__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--php-primaire, #C0634A);
}

/* Range input invisible */
.aa-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 40;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
}

/* Légende */
.aa-legende {
    padding-top: 1.25rem;
    text-align: center;
}

.aa-legende__titre {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.35rem;
}

.aa-legende__desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM 7 — Pigment Hair Paris
   ═══════════════════════════════════════════════════════════ */

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wpcf7-form .hidden-fields-container {
    display: none;
}

.wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--php-texte);
    width: 100%;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-select,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-corps);
    font-size: 0.95rem;
    color: var(--php-texte);
    background: #fff;
    border: 1.5px solid #e2e2e2;
    border-radius: var(--php-rayon);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-tel:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
    border-color: var(--php-primaire);
    box-shadow: 0 0 0 3px rgba(192, 99, 74, .12);
}

.wpcf7-form-control.wpcf7-textarea {
    resize: vertical;
    min-height: 140px;
}

.wpcf7-form-control.wpcf7-file {
    width: 100%;
    font-size: 0.875rem;
    color: var(--php-muet);
    padding: 0.6rem 0;
    cursor: pointer;
}

.wpcf7-form-control.wpcf7-file::file-selector-button {
    font-family: var(--font-corps);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    margin-right: 0.75rem;
    border: 1.5px solid var(--php-primaire);
    border-radius: 9999px;
    background: transparent;
    color: var(--php-primaire);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.wpcf7-form-control.wpcf7-file::file-selector-button:hover {
    background: var(--php-primaire);
    color: #fff;
}

.wpcf7-form-control.wpcf7-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--font-corps);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--php-primaire);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .15s;
}

.wpcf7-form-control.wpcf7-submit:hover {
    background: color-mix(in srgb, var(--php-primaire) 85%, #000);
    box-shadow: 0 4px 16px rgba(192, 99, 74, .3);
    transform: translateY(-1px);
}

.wpcf7-form-control.wpcf7-submit:active {
    transform: translateY(0);
}

.wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(192, 99, 74, .25);
    border-top-color: var(--php-primaire);
    border-radius: 50%;
    animation: cf7-spin .7s linear infinite;
    vertical-align: middle;
    margin-left: 0.5rem;
}

@keyframes cf7-spin {
    to {
        transform: rotate(360deg);
    }
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .1) !important;
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #dc3545;
}

.wpcf7-response-output {
    padding: 0.85rem 1.1rem;
    border-radius: var(--php-rayon);
    font-size: 0.9rem;
    font-weight: 500;
    border: none !important;
    margin: 0 !important;
}

.wpcf7-form.sent .wpcf7-response-output {
    background: #d1fae5;
    color: #065f46;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
    background: #fee2e2;
    color: #991b1b;
}

.wpcf7-form.invalid .wpcf7-response-output {
    background: #fef3c7;
    color: #92400e;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-form>p {
    margin: 0;
}

/* ── Pied de page ────────────────────────────────────────── */
.site-footer {
    background: var(--php-sombre);
    color: var(--php-white);
    font-size: .9rem;
}

.site-footer a {
    color: var(--php-white);
}

.site-footer a:hover {
    color: var(--php-primaire);
}

.site-footer__brand .custom-logo {
    height: 40px;
    width: auto;
}

.site-footer__nom {
    font-family: var(--font-titre);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--php-white);
    margin: 0 0 .5rem;
}

.site-footer__baseline {
    font-size: .85rem;
    color: var(--php-white);
    margin: .5rem 0 0;
    line-height: 1.5;
}

.site-footer__col-titre {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--php-white);
    margin: 0 0 1rem;
}

.site-footer__liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.site-footer__liste a {
    color: var(--php-white);
    text-decoration: none;
    font-size: .875rem;
    transition: color .18s;
}

.site-footer__barre-basse {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-footer__copy {
    font-size: .8rem;
    color: var(--php-white);
    margin: 0;
}

.site-footer__copy a {
    color: var(--php-white);
    text-decoration: none;
}

.site-footer__legale {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
}

.site-footer__legale a {
    font-size: .8rem;
    color: var(--php-white);
    text-decoration: none;
    transition: color .18s;
}

@media (max-width: 575px) {
    .site-footer__barre-basse {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Fade in up — animation d'apparition ────────────────── */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease forwards;
    opacity: 0;
}

/* Délais échelonnés pour les enfants d'une liste */
.fade-in-up:nth-child(1) {
    animation-delay: 0.05s;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.15s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.25s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.35s;
}

.fade-in-up:nth-child(5) {
    animation-delay: 0.45s;
}

.fade-in-up:nth-child(6) {
    animation-delay: 0.55s;
}

/* Variantes de durée */
.fade-in-up--slow {
    animation-duration: 0.9s;
}

.fade-in-up--fast {
    animation-duration: 0.35s;
}

/* Respect des préférences système */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        animation: none;
        opacity: 1;
    }
}

body.home .problemes-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    cursor: grab;
}

body.home .problemes-slider.dragging {
    cursor: grabbing;
}

body.home .problemes-slider:active {
    cursor: grabbing;
}

body.home .problemes-slider::-webkit-scrollbar {
    height: 8px;
}

body.home .problemes-slider::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    border-radius: 999px;
}

/*
|--------------------------------------------------------------------------
| Desktop → 3.5 cards
|--------------------------------------------------------------------------
*/
body.home .probleme-slide {
    flex: 0 0 calc((100% / 3.5) - 1rem);
    min-width: 0;

    scroll-snap-align: start;
}

/*
|--------------------------------------------------------------------------
| Mobile → 1.25 cards
|--------------------------------------------------------------------------
*/
@media (max-width: 767px) {

    body.home .probleme-slide {
        flex: 0 0 80%;
    }

}

/* ── Dropdown desktop (hover) ────────────────────────────── */
@media (min-width: 992px) {
    .php-dropdown {
        position: relative;
    }

    .php-dropdown>.dropdown-menu {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        pointer-events: none;
    }

    .php-dropdown:hover>.dropdown-menu,
    .php-dropdown:focus-within>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Pont invisible entre le lien et le menu */
    .php-dropdown>.dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 10px;
    }
}

/* ── Dropdown mobile (click Bootstrap JS) ────────────────── */
@media (max-width: 991.98px) {
    .php-dropdown>.dropdown-menu {
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        position: static !important;
        box-shadow: none;
        border: none;
        background: rgba(192, 99, 74, .05);
        border-radius: 8px;
        margin: 0.25rem 0 0.25rem 1rem !important;
        padding: 0.25rem;
        animation: none;
    }

    .php-dropdown>.dropdown-menu.show {
        display: block;
    }
}

/* ── Bouton toggle dropdown séparé ──────────────────────── */
.php-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Le lien parent prend tout l'espace disponible */
.php-dropdown>.nav-link {
    flex: 1;
}

/* Bouton chevron */
.php-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 37px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--php-texte);
    border-radius: 6px;
    transition: background .18s, color .18s, transform .2s;
    padding: 0;
}

li.php-dropdown:hover .php-dropdown-toggle,
.php-dropdown-toggle:hover {
    background: rgba(192, 99, 74, .1);
    color: var(--php-primaire);
}

.php-dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.php-dropdown-toggle svg {
    transition: transform .2s;
    pointer-events: none;
}

/* Le dropdown-menu prend toute la largeur sous le flex parent */
.php-dropdown>.dropdown-menu {
    flex-basis: 100%;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: absolute;
        top: 30px;
    }
}