/* ============================================================
   Stylesheet principal
   La couleur principale et la couleur secondaire sont configurables
   depuis src/config.php (section 'theme'). Les déclinaisons sont
   calculées en CSS via color-mix().
   ============================================================ */

/*
 * Couleurs du thème (--c-primary, --c-secondary) injectées dynamiquement
 * dans <style> par src/views/layout.php depuis src/config.php (clé 'theme').
 *
 *   --c-primary    : couleur principale (boutons, accents, fonds vert)
 *   --c-secondary  : couleur du texte quand il est posé sur un fond primary
 *                    (ex. chiffres clés, libellé du bouton hero)
 *
 * Les variantes (-dark, -deep, -tint) sont dérivées via color-mix().
 * Les valeurs ci-dessous servent uniquement de FALLBACK si l'injection
 * échoue (ex. très anciens navigateurs sans color-mix()).
 */
:root {
    --c-primary:        #469571;
    --c-primary-dark:   #378619;
    --c-primary-deep:   #2c6f54;
    --c-primary-tint:   #eef4ec;
    --c-secondary:      #fdcd08;
    --c-secondary-dark: #e8b906;

    --c-navy:         #000d21;
    --c-bg:           #ffffff;
    --c-bg-alt:       #f5f7f4;
    --c-bg-tint:      var(--c-primary-tint);
    --c-text:         #1c1c1c;
    --c-muted:        #586068;
    --c-border:       #e2e6e0;
    --c-header-bg:    #5c504b;  /* fond des bandeaux de titre (page-header) */
    --shadow-sm:      0 1px 2px rgba(0,0,0,.05);
    --shadow:         0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:      0 16px 40px rgba(0,0,0,.12);
    --radius:         8px;
    --radius-lg:      14px;
    --w-container:    1200px;
    --header-h:       80px;
    --font-sans:      "Helvetica Neue", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif;
    --font-display:   "Helvetica Neue", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--c-text);
    background: var(--c-bg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, picture, video { max-width: 100%; height: auto; display: block; }

a {
    color: var(--c-primary-dark);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover, a:focus { color: var(--c-primary); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    color: var(--c-navy);
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
    font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container {
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--c-navy); color: #fff; padding: .5rem 1rem;
    z-index: 999;
}
.skip-link:focus { top: 0; }

/* -------------------- Header / Nav -------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.97);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex; align-items: center; gap: 1rem;
    min-height: var(--header-h);
}
.site-logo img { height: 50px; width: auto; }

.primary-nav { flex: 1; }
.primary-nav > ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 1.2rem; justify-content: flex-end;
    flex-wrap: nowrap;
}
.primary-nav a {
    color: var(--c-navy); font-weight: 500; font-size: .92rem;
    padding: .5rem 0; display: block; white-space: nowrap;
}
.primary-nav a:hover { color: var(--c-primary); text-decoration: none; }

.site-cta {
    background: var(--c-primary); color: #fff !important;
    padding: .6rem 1.1rem; border-radius: var(--radius);
    font-weight: 600; font-size: .92rem; white-space: nowrap;
    transition: background .2s;
}
.site-cta:hover { background: var(--c-primary-deep); text-decoration: none; }

/* CTA dans le drawer mobile — caché par défaut (visible uniquement en responsive) */
.primary-nav__cta { display: none; }

.has-submenu { position: relative; }
.submenu {
    position: absolute; top: 100%; left: 0;
    background: #fff; border: 1px solid var(--c-border);
    box-shadow: var(--shadow);
    list-style: none; padding: .5rem 0; margin: 0;
    min-width: 230px; border-radius: var(--radius);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a { padding: .5rem 1rem; font-size: .9rem; }
.submenu a:hover { background: var(--c-bg-tint); }

.site-phone {
    border-left: 1px solid var(--c-border);
    padding-left: 1rem;
    color: var(--c-primary-dark);
    font-size: 1rem;
    white-space: nowrap;
}
.site-phone strong { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }

.nav-toggle {
    display: none; background: none; border: 0;
    width: 44px; height: 44px; padding: 8px;
    cursor: pointer; margin-left: auto;
}
.nav-toggle span {
    display: block; height: 3px; background: var(--c-navy);
    margin: 4px 0; border-radius: 2px; transition: transform .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-block;
    background: var(--c-primary); color: #fff !important;
    padding: .85rem 1.6rem; border-radius: var(--radius);
    font-weight: 600; text-decoration: none;
    border: 0; cursor: pointer; transition: background .2s, transform .1s;
}
.btn:hover, .btn:focus { background: var(--c-primary-deep); text-decoration: none; transform: translateY(-1px); }
.btn--alt { background: var(--c-navy); }
.btn--alt:hover { background: #001b41; }
.btn--small { padding: .5rem 1rem; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--c-primary-dark) !important; border: 2px solid var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff !important; }
.btn--hero {
    background: var(--c-primary); color: var(--c-secondary) !important;
    padding: 1rem 1.8rem; font-size: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.btn--hero:hover { background: var(--c-primary-deep); color: var(--c-secondary) !important; transform: translateY(-2px); }

.hero__title {
    color: #fff; max-width: 760px; margin-bottom: .8rem;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.2; letter-spacing: -.02em; font-weight: 700;
    text-shadow: 0 2px 24px rgba(0,0,0,.5);
}

/* -------------------- Hero Carousel -------------------- */
.hero { position: relative; overflow: hidden; }
.hero .glide__slide {
    position: relative; height: clamp(480px, 78vh, 760px);
    overflow: hidden;
}
.hero .glide__slide img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,13,33,.05) 0%, rgba(0,13,33,.35) 50%, rgba(0,13,33,.65) 100%);
    display: flex; align-items: flex-end;
}
.hero__overlay .container {
    width: 100%; padding-bottom: 4rem;
    color: #fff;
}
.hero__overlay h1 {
    color: #fff; max-width: 760px; margin-bottom: .8rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero__overlay p {
    color: #fff; font-size: 1.15rem; max-width: 600px; margin-bottom: 1.5rem;
    text-shadow: 0 1px 12px rgba(0,0,0,.5);
}

/* Flèches : chevrons épais sans rond, visibles au hover du carrousel */
.glide__arrow {
    background: transparent; color: #fff;
    border: 0; width: 60px; height: 60px; padding: 0;
    cursor: pointer;
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s ease, transform .15s ease, color .15s ease;
    z-index: 3;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.glide__arrow svg {
    width: 44px; height: 44px;
    stroke-width: 3.5;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.7));
}
.hero:hover .glide__arrow,
.portfolio-slider:hover .glide__arrow,
.glide__arrow:focus { opacity: 1; }
.glide__arrow:hover { color: #fff; transform: translateY(-50%) scale(1.15); }
.glide__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 4px; opacity: 1; }
.glide__arrow--left  { left: 1.25rem; }
.glide__arrow--right { right: 1.25rem; }

.glide__bullets {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .5rem; z-index: 2;
}
.glide__bullet {
    width: 32px; height: 3px; border-radius: 2px;
    background: rgba(255,255,255,.4); border: 0; cursor: pointer;
    transition: background .25s ease, width .25s ease;
}
.glide__bullet--active { background: #fff; width: 48px; }

/* -------------------- Sections -------------------- */
.section { padding: 4rem 0; }
.section--alt { background: var(--c-bg-alt); }
.section--green {
    background: var(--c-primary); color: #fff;
}
.section--green h2 { color: #fff; }
.section__title { text-align: center; margin-bottom: 2.5rem; }
.section__title h2 { margin: 0; }
.section__title p  { color: var(--c-muted); margin: .5rem 0 0; }

/* -------------------- Stats -------------------- */
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem; text-align: center;
}
.stats__item strong {
    display: block; font-family: var(--font-sans);
    font-size: 2.5rem; color: var(--c-secondary); font-weight: 700;
    letter-spacing: -.02em;
}
.stats__item span { font-size: .95rem; opacity: .95; }

/* -------------------- Product Grid -------------------- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: #fff; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    display: block; color: var(--c-text);
}
.product-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow);
    text-decoration: none;
}
.product-card__img {
    aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-alt);
}
.product-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__body { padding: 1.25rem 1.25rem 1.5rem; }
.product-card h3 { margin: 0 0 .35rem; font-size: 1.2rem; color: var(--c-navy); }
.product-card p  { margin: 0; color: var(--c-muted); font-size: .92rem; }

/* -------------------- References / Logos -------------------- */
.refs {
    list-style: none; padding: 0; margin: 2.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.refs__item {
    background: #fff;
    border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    display: flex; flex-direction: column;
    text-align: center;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.refs__item:hover {
    border-color: var(--c-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.refs__logo-wrap {
    height: 70px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.refs__logo {
    max-width: 100%; max-height: 70px;
    width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(.4);
    opacity: .85;
    transition: filter .25s ease, opacity .25s ease;
}
.refs__item:hover .refs__logo {
    filter: grayscale(0);
    opacity: 1;
}
.refs__name {
    color: var(--c-navy);
    font-family: var(--font-sans);
    font-size: .95rem; font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .5rem;
}
.refs__desc {
    color: var(--c-muted);
    font-size: .85rem;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}

/* -------------------- Gallery (portfolio) -------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.gallery__item { overflow: hidden; border-radius: var(--radius); }
.gallery__item img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

/* -------------------- Portfolio sub-pages -------------------- */
.portfolio-page { padding: 3rem 0 5rem; }
/* Conteneur élargi sur les sous-pages portfolio pour donner plus de
   place au carrousel sans réduire la lisibilité du texte. */
.portfolio-page > .container { max-width: 1500px; }

.portfolio-page__body {
    display: grid;
    /* Carrousel : entre 380 et 760px, cible 40vw — texte prend le reste. */
    grid-template-columns: minmax(380px, clamp(380px, 40vw, 760px)) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}
.portfolio-page__media { position: sticky; top: 100px; min-width: 0; }
.portfolio-page__content { padding-top: .25rem; min-width: 0; }
.portfolio-page__content.prose { margin: 0; max-width: none; }
.portfolio-page__content h2 { margin-top: 1.75rem; }
.portfolio-page__content h2:first-of-type { margin-top: 0; }
.portfolio-page__cta { margin-top: 2.5rem; }

/* Carrousel des sous-pages (style identique à la home) */
.portfolio-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.portfolio-slider .glide__slide img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.portfolio-slider .glide__bullets {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
}
.portfolio-page__solo {
    border-radius: var(--radius-lg); overflow: hidden;
}
.portfolio-page__solo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

@media (max-width: 920px) {
    .portfolio-page { padding: 2rem 0 3rem; }
    .portfolio-page__header { margin-bottom: 2rem; padding-bottom: 1.25rem; }
    .portfolio-page__body { grid-template-columns: 1fr; gap: 2rem; }
    .portfolio-page__media { position: static; }
}

/* -------------------- Article / Prose -------------------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; color: var(--c-primary-deep); }
.prose ul li { margin-bottom: .35rem; }
.prose strong { color: var(--c-navy); }

/* -------------------- Page header -------------------- */
.page-header {
    position: relative;
    background:
        /* dégradé vertical doux pour suggérer un creux */
        linear-gradient(180deg,
            rgba(0, 0, 0, .14) 0%,
            rgba(0, 0, 0, 0)   18%,
            rgba(0, 0, 0, 0)   82%,
            rgba(0, 0, 0, .14) 100%
        ),
        var(--c-header-bg);
    color: #fff;
    padding: 3rem 0;
    /* Effet incrusté : ombre intérieure en haut et bas */
    box-shadow:
        inset 0  8px 16px -8px rgba(0, 0, 0, .45),
        inset 0 -8px 16px -8px rgba(0, 0, 0, .35),
        inset 0  1px 0      rgba(255, 255, 255, .06),
        inset 0 -1px 0      rgba(0,   0,   0,   .25);
}
.page-header h1 {
    color: #fff;
    margin: 0 0 .5rem;
    /* léger relief sur le texte */
    text-shadow:
        0 1px 0  rgba(0, 0, 0, .35),
        0 2px 8px rgba(0, 0, 0, .15);
}
.page-header p {
    color: rgba(255, 255, 255, .85);
    margin: 0;
    max-width: 700px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

/* -------------------- Contact form -------------------- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 3rem; align-items: start;
}
.contact-info {
    background: var(--c-bg); padding: 2rem;
    border-radius: var(--radius-lg);
}
.contact-info h2 { margin-top: 0; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { padding: .35rem 0; }

.form-row { margin-bottom: 1.25rem; }
.form-row--inline { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row--inline > div { min-width: 0; }
.form-row--inline label { display: block; margin-bottom: .35rem; font-weight: 600; color: var(--c-navy); font-size: .92rem; }
.form-row--inline input { width: 100%; padding: .75rem .9rem; border: 1px solid var(--c-border); border-radius: var(--radius); font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-row--inline input:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 25%, transparent); }
.form-row--inline .has-error input { border-color: #c00; }
.form-row label {
    display: block; margin-bottom: .35rem;
    font-weight: 600; color: var(--c-navy); font-size: .92rem;
}
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel],
.form-row select,
.form-row textarea {
    width: 100%; padding: .75rem .9rem;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    font: inherit; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: 0; border-color: var(--c-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 25%, transparent);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea { border-color: #c00; }
.form-error { color: #c00; font-size: .85rem; margin-top: .35rem; }

.civility-group { display: flex; gap: 1rem; }
.civility-group label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-weight: 400; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert--ok    { background: #e8f5ee; color: #1d5b35; border: 1px solid #b8dec5; }
.alert--error { background: #fdecec; color: #8a1c1c; border: 1px solid #f0b8b8; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------- Footer -------------------- */
.site-footer {
    background: var(--c-navy); color: #cfd5dd;
    padding-top: 3.5rem; margin-top: 4rem;
}
.site-footer h2 {
    color: #fff; font-size: 1.05rem; text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: 1rem;
    font-family: var(--font-sans); font-weight: 700;
}
.site-footer__logo { background: rgba(255,255,255,.08); padding: .5rem; border-radius: var(--radius); margin-bottom: 1rem; }
.site-footer__grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem; padding-bottom: 3rem;
}
.site-footer a { color: #cfd5dd; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: .25rem 0; font-size: .93rem; }
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0;
    color: rgba(255,255,255,.5); font-size: .85rem;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
    /* Header bar : logo / téléphone compact / hamburger
       (la CTA "Devis gratuit" passe DANS le menu mobile) */
    .site-header__inner { gap: .5rem; min-height: 64px; flex-wrap: nowrap; }
    .site-logo img { height: 42px; }
    .site-cta { display: none; }
    .site-phone {
        order: 2; margin-left: auto; padding: 0; border: 0; font-size: 0;
    }
    .site-phone::before {
        content: ''; display: block;
        width: 44px; height: 44px; border-radius: 50%;
        background: var(--c-primary);
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/></svg>");
        background-position: center; background-repeat: no-repeat;
        background-size: 22px 22px;
    }
    .site-phone strong { display: none; }

    .nav-toggle {
        display: block;
        order: 3; margin-left: 0;
    }
    .nav-toggle span {
        width: 24px; margin: 4px auto;
    }

    /* Drawer plein-largeur sous le header */
    .primary-nav {
        order: 99; flex-basis: 100%;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid var(--c-border);
        box-shadow: 0 12px 32px rgba(0,0,0,.12);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 0; visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .primary-nav[data-open="true"] {
        display: block; opacity: 1; visibility: visible; transform: translateY(0);
    }
    .primary-nav > ul {
        flex-direction: column; gap: 0;
        padding: .5rem 1.25rem 1rem;
    }
    .primary-nav > ul > li {
        border-bottom: 1px solid var(--c-border);
    }
    .primary-nav > ul > li:last-child { border-bottom: 0; }
    .primary-nav a {
        padding: .9rem 0;
        min-height: 48px;
        font-size: 1rem;
        display: flex; align-items: center;
    }

    /* Parent avec chevron à droite */
    .has-submenu > a {
        position: relative;
        padding-right: 2.5rem;
    }
    .has-submenu > a::after {
        content: '';
        position: absolute; right: 0; top: 50%;
        width: 10px; height: 10px;
        margin-top: -7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .25s ease;
        opacity: .55;
    }
    .has-submenu.is-open > a::after {
        transform: rotate(-135deg);
        margin-top: -2px;
    }

    /* Sous-menu accordéon */
    .has-submenu > .submenu {
        position: static; box-shadow: none; border: 0; background: transparent;
        padding: 0 0 0 1rem;
        margin: 0;
        opacity: 1; visibility: visible; transform: none;
        max-height: 0; overflow: hidden;
        transition: max-height .3s ease, padding-bottom .3s ease;
    }
    .has-submenu.is-open > .submenu {
        max-height: 480px;
        padding-bottom: .5rem;
    }
    .has-submenu > .submenu a {
        padding: .7rem 0;
        font-size: .95rem;
        color: var(--c-muted);
    }

    /* Bouton CTA dans le drawer */
    .primary-nav__cta {
        display: block;
        margin: 1rem 1.25rem .25rem;
        text-align: center;
    }
    .primary-nav__cta a {
        display: inline-flex; align-items: center; justify-content: center;
        width: 100%;
        background: var(--c-primary); color: #fff !important;
        padding: .9rem 1.2rem;
        border-radius: var(--radius);
        font-weight: 600; text-decoration: none;
        min-height: 48px;
    }
    .primary-nav__cta a:hover { background: var(--c-primary-deep); }

    /* Empêche le scroll du body quand le menu est ouvert */
    body.nav-open { overflow: hidden; }

    /* Pages */
    .contact-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .hero__overlay .container { padding-bottom: 2rem; }
}
