/* ============================================================
   Apex Irrigation — Feuille de style
   Système : Material 3 Expressive (jetons de couleur, formes, type,
   mouvement à ressorts, couches d'état), appliqué à la charte de la
   marque : thème sombre, vert lime, teal aqua, menthe.
   Tailles de fenêtre M3 : compacte < 600 px, moyenne 600-999 px,
   étendue >= 1000 px (barre de navigation complète), large >= 1200 px.
   ============================================================ */

/* ---------- Polices hébergées sur le site (sous-ensemble latin) ----------
   Servies depuis assets/fonts/ plutôt que Google Fonts : pas de requête
   vers un tiers et pas de feuille bloquante. Inter et Montserrat sont des
   polices variables (un fichier couvre toutes les graisses). */
@font-face {
    font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('../fonts/barlow-condensed-800.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat'; font-style: normal; font-weight: 500 700; font-display: swap;
    src: url('../fonts/montserrat-variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url('../fonts/inter-variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   JETONS
   ============================================================ */
:root {
    color-scheme: dark;

    /* --- Couleur : rôles M3 (thème sombre) tirés de la charte ---
       primaire = vert lime, secondaire = teal aqua, tertiaire = menthe,
       surface = noir-forêt, conteneur haut = anthracite vert. */
    --md-primary: #3DDC62;
    --md-on-primary: #0D1A0F;
    --md-primary-container: #0F5223;
    --md-on-primary-container: #B4F7BF;
    --md-secondary: #1AB8A0;
    --md-on-secondary: #00201B;
    --md-secondary-container: #0B4A40;
    --md-on-secondary-container: #9DF5E1;
    --md-tertiary: #7EF5C2;
    --md-on-tertiary: #00382A;
    --md-tertiary-container: #11503D;
    --md-on-tertiary-container: #B9FFE0;
    --md-error: #FFB4AB;
    --md-on-error: #690005;
    --md-error-container: #93000A;
    --md-on-error-container: #FFDAD6;
    --md-surface: #0D1A0F;
    --md-surface-container-lowest: #081109;
    --md-surface-container-low: #11231A;
    --md-surface-container: #16291D;
    --md-surface-container-high: #1E2D22;
    --md-surface-container-highest: #283A2D;
    --md-on-surface: #FFFFFF;
    --md-on-surface-variant: #CCCCCC;
    --md-outline: #8C9C8F;
    --md-outline-variant: #344638;
    --md-scrim: #000000;
    /* Dégradé de marque (logo, titres) : menthe -> teal / lime -> teal */
    --grad: linear-gradient(120deg, var(--md-primary), var(--md-secondary));

    /* --- Formes : échelle M3 Expressive --- */
    --forme-xs: 4px;
    --forme-s: 8px;
    --forme-m: 12px;
    --forme-l: 16px;
    --forme-l-plus: 20px;
    --forme-xl: 28px;
    --forme-xl-plus: 32px;
    --forme-xxl: 48px;
    --forme-pleine: 999px;
    /* Biscuit à 9 lobes (bibliothèque de formes M3 Expressive) */
    --forme-biscuit-9: polygon(50.0% 0.0%, 55.0% 2.1%, 59.2% 6.9%, 62.7% 10.8%, 67.0% 11.8%, 72.8% 10.6%, 78.9% 10.2%, 83.3% 13.0%, 84.8% 18.6%, 84.7% 24.8%, 85.5% 29.5%, 89.1% 32.6%, 94.6% 35.5%, 98.7% 39.7%, 98.9% 44.9%, 95.5% 50.0%, 91.6% 54.4%, 90.3% 58.6%, 92.0% 63.6%, 94.0% 69.6%, 93.3% 75.0%, 89.0% 78.3%, 82.8% 79.5%, 77.6% 80.6%, 74.6% 83.9%, 72.8% 89.4%, 70.0% 94.9%, 65.4% 97.3%, 59.7% 95.9%, 54.5% 92.6%, 50.0% 91.0%, 45.5% 92.6%, 40.3% 95.9%, 34.6% 97.3%, 30.0% 94.9%, 27.3% 89.4%, 25.4% 83.9%, 22.4% 80.6%, 17.2% 79.5%, 11.0% 78.3%, 6.7% 75.0%, 6.0% 69.6%, 8.0% 63.6%, 9.7% 58.6%, 8.4% 54.4%, 4.5% 50.0%, 1.1% 44.9%, 1.3% 39.7%, 5.4% 35.5%, 10.9% 32.6%, 14.5% 29.5%, 15.3% 24.8%, 15.2% 18.6%, 16.7% 13.0%, 21.1% 10.2%, 27.3% 10.6%, 33.0% 11.8%, 37.3% 10.8%, 40.8% 6.9%, 45.0% 2.1%);

    /* --- Élévation (ombres M3, niveaux 1 à 3) --- */
    --elev-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
    --elev-2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);
    --elev-3: 0 1px 3px rgba(0,0,0,.30), 0 4px 8px 3px rgba(0,0,0,.15);

    /* --- Mouvement : ressorts M3 Expressive (raideur / amortissement),
       convertis en courbes CSS. Repli sans linear() : courbe proche. --- */
    --ressort-spatial-rapide: cubic-bezier(.34, 1.56, .64, 1);
    --ressort-spatial: cubic-bezier(.3, 1.25, .5, 1);
    --ressort-spatial-lent: cubic-bezier(.3, 1.25, .5, 1);
    --ressort-effet-rapide: cubic-bezier(.2, 0, 0, 1);
    --ressort-effet: cubic-bezier(.2, 0, 0, 1);
    --duree-spatial-rapide: 350ms;
    --duree-spatial: 420ms;
    --duree-spatial-lent: 570ms;
    --duree-effet-rapide: 140ms;
    --duree-effet: 220ms;

    /* --- Mise en page --- */
    --max: 1240px;
    --marge: 16px;
    --barre: 64px;
}
@supports (transition-timing-function: linear(0, 1)) {
    :root {
        /* 800 / 0,6 */
        --ressort-spatial-rapide: linear(0, 0.0421, 0.1471, 0.2872, 0.4404, 0.5905, 0.7265, 0.842, 0.9342, 1.0031, 1.0503, 1.0789, 1.0924, 1.0944, 1.0882, 1.077, 1.0632, 1.0486, 1.0347, 1.0223, 1.0121, 1.004, 0.9981, 0.9942, 0.992, 0.9911, 0.9912, 0.9919, 0.9931, 0.9944, 0.9958, 0.9971, 1);
        /* 380 / 0,8 */
        --ressort-spatial: linear(0, 0.0285, 0.0994, 0.1946, 0.3008, 0.4087, 0.5119, 0.6066, 0.6904, 0.7627, 0.8233, 0.873, 0.9128, 0.9439, 0.9675, 0.985, 0.9974, 1.0057, 1.011, 1.0139, 1.0151, 1.015, 1.0142, 1.0129, 1.0114, 1.0097, 1.0081, 1.0066, 1.0053, 1.0041, 1.0031, 1.0023, 1);
        /* 200 / 0,8 */
        --ressort-spatial-lent: linear(0, 0.0277, 0.0968, 0.1898, 0.2941, 0.4005, 0.5027, 0.5968, 0.6807, 0.7533, 0.8147, 0.8653, 0.9062, 0.9383, 0.963, 0.9814, 0.9947, 1.0039, 1.0098, 1.0132, 1.0148, 1.0151, 1.0146, 1.0134, 1.012, 1.0104, 1.0088, 1.0072, 1.0058, 1.0046, 1.0035, 1.0026, 1);
        /* 3800 / 1 */
        --ressort-effet-rapide: linear(0, 0.0304, 0.1024, 0.1945, 0.2932, 0.3902, 0.4809, 0.5628, 0.635, 0.6974, 0.7508, 0.7958, 0.8335, 0.8647, 0.8905, 0.9117, 0.929, 0.943, 0.9544, 0.9636, 0.9709, 0.9769, 0.9816, 0.9854, 0.9885, 0.9909, 0.9928, 0.9943, 0.9955, 0.9965, 0.9972, 0.9978, 1);
        /* 1600 / 1 */
        --ressort-effet: linear(0, 0.0315, 0.1057, 0.2002, 0.301, 0.3995, 0.4911, 0.5733, 0.6454, 0.7075, 0.7603, 0.8046, 0.8414, 0.8718, 0.8968, 0.9172, 0.9337, 0.9471, 0.9579, 0.9665, 0.9734, 0.979, 0.9834, 0.9869, 0.9897, 0.9919, 0.9936, 0.995, 0.9961, 0.9969, 0.9976, 0.9981, 1);
    }
}
@media (min-width: 600px)  { :root { --marge: 24px; } }
@media (min-width: 1000px) { :root { --barre: 72px; } }
@media (min-width: 1200px) { :root { --marge: 32px; } }

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barre) + 16px); -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem; line-height: 1.6;
    color: var(--md-on-surface-variant);
    background: var(--md-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* Échelle typographique M3, accentuée (Expressive) :
   display/headline = Barlow Condensed (logo de la marque), en capitales ;
   title/label = Montserrat ; body = Inter. */
h1, h2 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 800; text-transform: uppercase;
    color: var(--md-on-surface); text-wrap: balance;
}
h1 { font-size: clamp(3rem, 1.4rem + 6.4vw, 5.5rem); line-height: .92; letter-spacing: -.01em; }
h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: .98; letter-spacing: -.005em; }
h3 {
    font-family: 'Montserrat', sans-serif; font-weight: 650;
    font-size: 1.25rem; line-height: 1.3; letter-spacing: 0;
    color: var(--md-on-surface); text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.icone { width: 24px; height: 24px; flex: none; fill: currentColor; }

.container {
    width: 100%; max-width: var(--max); margin-inline: auto;
    /* zones sûres (encoche d'un téléphone en paysage, viewport-fit=cover) */
    padding-inline: max(var(--marge), env(safe-area-inset-left)) max(var(--marge), env(safe-area-inset-right));
}
.narrow { max-width: 860px; }

/* Focus clavier visible partout (anneau M3) */
:focus-visible { outline: 3px solid var(--md-tertiary); outline-offset: 2px; }

/* Lien « Aller au contenu » : invisible sauf au clavier (accessibilité) */
.skip-link {
    position: absolute; left: 16px; top: -64px; z-index: 1000;
    background: var(--md-primary); color: var(--md-on-primary);
    font-family: 'Montserrat', sans-serif; font-weight: 650;
    padding: 12px 20px; border-radius: var(--forme-pleine);
    transition: top var(--duree-spatial-rapide) var(--ressort-spatial-rapide);
}
.skip-link:focus { top: 12px; }

/* Couche d'état M3 : voile de la couleur du contenu au survol (8 %),
   au focus et à l'appui (10 %). */
.etat { position: relative; isolation: isolate; }
.etat::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; background: currentColor; opacity: 0;
    transition: opacity var(--duree-effet) var(--ressort-effet);
}
@media (hover: hover) { .etat:hover::after { opacity: .08; } }
.etat:focus-visible::after { opacity: .10; }
.etat:active::after { opacity: .10; }

/* ============================================================
   BOUTONS (M3 Expressive, forme « carrée » : coins nets de la marque)
   L'appui resserre les coins : morphose de forme sur ressort.
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px;
    border: 0; border-radius: var(--forme-l); cursor: pointer;
    font-family: 'Montserrat', sans-serif; font-weight: 650; font-size: .9375rem;
    line-height: 1.2; letter-spacing: .01em; text-align: center;
    transition: border-radius var(--duree-spatial-rapide) var(--ressort-spatial-rapide),
                box-shadow var(--duree-effet) var(--ressort-effet);
}
.btn:active { border-radius: var(--forme-m); }
.btn .icone { width: 20px; height: 20px; }
.btn-grand { min-height: 56px; padding: 0 28px; font-size: 1rem; border-radius: var(--forme-l-plus); }
.btn-grand:active { border-radius: var(--forme-l); }
.btn-bloc { width: 100%; }

.btn-filled { background: var(--md-primary); color: var(--md-on-primary); }
@media (hover: hover) { .btn-filled:hover { box-shadow: var(--elev-1); } }
.btn-tonal { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.btn-outlined { background: transparent; color: var(--md-primary); box-shadow: inset 0 0 0 1px var(--md-outline); }
.btn-texte { background: transparent; color: var(--md-primary); min-height: 40px; padding: 0 12px; }
.btn[disabled] { cursor: progress; }

/* Bouton d'icône (barre d'application, tiroir) */
.btn-icone {
    display: inline-grid; place-items: center;
    width: 48px; height: 48px; border: 0; border-radius: var(--forme-pleine);
    background: transparent; color: var(--md-on-surface-variant); cursor: pointer;
    transition: border-radius var(--duree-spatial-rapide) var(--ressort-spatial-rapide);
}
.btn-icone:active { border-radius: var(--forme-m); }

/* Indicateur de chargement M3 Expressive : forme qui se transforme en
   tournant, dans le bouton pendant l'envoi du formulaire. */
.indicateur {
    display: none; width: 24px; height: 24px; flex: none;
    background: currentColor;
    clip-path: polygon(50.0% 0.0%, 55.2% 0.8%, 60.0% 3.0%, 64.2% 6.4%, 67.6% 10.4%, 70.5% 14.5%, 73.0% 18.3%, 75.5% 21.7%, 78.3% 24.5%, 81.7% 27.0%, 85.5% 29.5%, 89.6% 32.4%, 93.6% 35.8%, 97.0% 40.0%, 99.2% 44.8%, 100.0% 50.0%, 99.2% 55.2%, 97.0% 60.0%, 93.6% 64.2%, 89.6% 67.6%, 85.5% 70.5%, 81.7% 73.0%, 78.3% 75.5%, 75.5% 78.3%, 73.0% 81.7%, 70.5% 85.5%, 67.6% 89.6%, 64.2% 93.6%, 60.0% 97.0%, 55.2% 99.2%, 50.0% 100.0%, 44.8% 99.2%, 40.0% 97.0%, 35.8% 93.6%, 32.4% 89.6%, 29.5% 85.5%, 27.0% 81.7%, 24.5% 78.3%, 21.7% 75.5%, 18.3% 73.0%, 14.5% 70.5%, 10.4% 67.6%, 6.4% 64.2%, 3.0% 60.0%, 0.8% 55.2%, 0.0% 50.0%, 0.8% 44.8%, 3.0% 40.0%, 6.4% 35.8%, 10.4% 32.4%, 14.5% 29.5%, 18.3% 27.0%, 21.7% 24.5%, 24.5% 21.7%, 27.0% 18.3%, 29.5% 14.5%, 32.4% 10.4%, 35.8% 6.4%, 40.0% 3.0%, 44.8% 0.8%);
}
.occupe .indicateur { display: block; animation: indicateur 2.4s linear infinite; }
@keyframes indicateur {
    0%   { transform: rotate(0deg);   clip-path: polygon(50.0% 0.0%, 55.2% 0.8%, 60.0% 3.0%, 64.2% 6.4%, 67.6% 10.4%, 70.5% 14.5%, 73.0% 18.3%, 75.5% 21.7%, 78.3% 24.5%, 81.7% 27.0%, 85.5% 29.5%, 89.6% 32.4%, 93.6% 35.8%, 97.0% 40.0%, 99.2% 44.8%, 100.0% 50.0%, 99.2% 55.2%, 97.0% 60.0%, 93.6% 64.2%, 89.6% 67.6%, 85.5% 70.5%, 81.7% 73.0%, 78.3% 75.5%, 75.5% 78.3%, 73.0% 81.7%, 70.5% 85.5%, 67.6% 89.6%, 64.2% 93.6%, 60.0% 97.0%, 55.2% 99.2%, 50.0% 100.0%, 44.8% 99.2%, 40.0% 97.0%, 35.8% 93.6%, 32.4% 89.6%, 29.5% 85.5%, 27.0% 81.7%, 24.5% 78.3%, 21.7% 75.5%, 18.3% 73.0%, 14.5% 70.5%, 10.4% 67.6%, 6.4% 64.2%, 3.0% 60.0%, 0.8% 55.2%, 0.0% 50.0%, 0.8% 44.8%, 3.0% 40.0%, 6.4% 35.8%, 10.4% 32.4%, 14.5% 29.5%, 18.3% 27.0%, 21.7% 24.5%, 24.5% 21.7%, 27.0% 18.3%, 29.5% 14.5%, 32.4% 10.4%, 35.8% 6.4%, 40.0% 3.0%, 44.8% 0.8%); }
    25%  { clip-path: polygon(50.0% 0.0%, 55.1% 1.2%, 59.7% 4.5%, 63.4% 8.7%, 66.7% 12.6%, 70.0% 15.4%, 74.1% 16.9%, 79.1% 17.7%, 84.6% 18.9%, 89.7% 21.2%, 93.3% 25.0%, 94.8% 30.1%, 94.3% 35.6%, 92.5% 41.0%, 90.7% 45.7%, 90.0% 50.0%, 90.7% 54.3%, 92.5% 59.0%, 94.3% 64.4%, 94.8% 69.9%, 93.3% 75.0%, 89.7% 78.8%, 84.6% 81.1%, 79.1% 82.3%, 74.1% 83.1%, 70.0% 84.6%, 66.7% 87.4%, 63.4% 91.3%, 59.7% 95.5%, 55.1% 98.8%, 50.0% 100.0%, 44.9% 98.8%, 40.3% 95.5%, 36.6% 91.3%, 33.3% 87.4%, 30.0% 84.6%, 25.9% 83.1%, 20.9% 82.3%, 15.4% 81.1%, 10.3% 78.8%, 6.7% 75.0%, 5.2% 69.9%, 5.7% 64.4%, 7.5% 59.0%, 9.3% 54.3%, 10.0% 50.0%, 9.3% 45.7%, 7.5% 41.0%, 5.7% 35.6%, 5.2% 30.1%, 6.7% 25.0%, 10.3% 21.2%, 15.4% 18.9%, 20.9% 17.7%, 25.9% 16.9%, 30.0% 15.4%, 33.3% 12.6%, 36.6% 8.7%, 40.3% 4.5%, 44.9% 1.2%); }
    50%  { clip-path: polygon(50.0% 0.0%, 55.1% 1.9%, 59.3% 6.2%, 63.0% 9.9%, 67.4% 10.9%, 73.0% 10.2%, 78.9% 10.2%, 83.3% 13.0%, 85.1% 18.4%, 85.3% 24.3%, 86.4% 29.0%, 89.9% 32.2%, 94.9% 35.4%, 98.7% 39.6%, 99.0% 44.9%, 96.0% 50.0%, 92.5% 54.5%, 91.3% 58.8%, 92.6% 63.8%, 94.2% 69.7%, 93.3% 75.0%, 89.1% 78.4%, 83.3% 80.0%, 78.2% 81.4%, 75.1% 84.6%, 73.0% 89.8%, 70.0% 95.0%, 65.4% 97.4%, 59.8% 96.2%, 54.6% 93.4%, 50.0% 92.0%, 45.4% 93.4%, 40.2% 96.2%, 34.6% 97.4%, 30.0% 95.0%, 27.0% 89.8%, 24.9% 84.6%, 21.8% 81.4%, 16.7% 80.0%, 10.9% 78.4%, 6.7% 75.0%, 5.8% 69.7%, 7.4% 63.8%, 8.7% 58.8%, 7.5% 54.5%, 4.0% 50.0%, 1.0% 44.9%, 1.3% 39.6%, 5.1% 35.4%, 10.1% 32.2%, 13.6% 29.0%, 14.7% 24.3%, 14.9% 18.4%, 16.7% 13.0%, 21.1% 10.2%, 27.0% 10.2%, 32.6% 10.9%, 37.0% 9.9%, 40.7% 6.2%, 44.9% 1.9%); }
    75%  { clip-path: polygon(50.0% 0.0%, 55.0% 2.7%, 59.1% 7.3%, 63.5% 8.5%, 69.4% 6.5%, 75.0% 6.7%, 78.0% 11.5%, 79.2% 17.5%, 82.5% 20.8%, 88.5% 22.0%, 93.3% 25.0%, 93.5% 30.6%, 91.5% 36.5%, 92.7% 40.9%, 97.3% 45.0%, 100.0% 50.0%, 97.3% 55.0%, 92.7% 59.1%, 91.5% 63.5%, 93.5% 69.4%, 93.3% 75.0%, 88.5% 78.0%, 82.5% 79.2%, 79.2% 82.5%, 78.0% 88.5%, 75.0% 93.3%, 69.4% 93.5%, 63.5% 91.5%, 59.1% 92.7%, 55.0% 97.3%, 50.0% 100.0%, 45.0% 97.3%, 40.9% 92.7%, 36.5% 91.5%, 30.6% 93.5%, 25.0% 93.3%, 22.0% 88.5%, 20.8% 82.5%, 17.5% 79.2%, 11.5% 78.0%, 6.7% 75.0%, 6.5% 69.4%, 8.5% 63.5%, 7.3% 59.1%, 2.7% 55.0%, 0.0% 50.0%, 2.7% 45.0%, 7.3% 40.9%, 8.5% 36.5%, 6.5% 30.6%, 6.7% 25.0%, 11.5% 22.0%, 17.5% 20.8%, 20.8% 17.5%, 22.0% 11.5%, 25.0% 6.7%, 30.6% 6.5%, 36.5% 8.5%, 40.9% 7.3%, 45.0% 2.7%); }
    100% { transform: rotate(360deg); clip-path: polygon(50.0% 0.0%, 55.2% 0.8%, 60.0% 3.0%, 64.2% 6.4%, 67.6% 10.4%, 70.5% 14.5%, 73.0% 18.3%, 75.5% 21.7%, 78.3% 24.5%, 81.7% 27.0%, 85.5% 29.5%, 89.6% 32.4%, 93.6% 35.8%, 97.0% 40.0%, 99.2% 44.8%, 100.0% 50.0%, 99.2% 55.2%, 97.0% 60.0%, 93.6% 64.2%, 89.6% 67.6%, 85.5% 70.5%, 81.7% 73.0%, 78.3% 75.5%, 75.5% 78.3%, 73.0% 81.7%, 70.5% 85.5%, 67.6% 89.6%, 64.2% 93.6%, 60.0% 97.0%, 55.2% 99.2%, 50.0% 100.0%, 44.8% 99.2%, 40.0% 97.0%, 35.8% 93.6%, 32.4% 89.6%, 29.5% 85.5%, 27.0% 81.7%, 24.5% 78.3%, 21.7% 75.5%, 18.3% 73.0%, 14.5% 70.5%, 10.4% 67.6%, 6.4% 64.2%, 3.0% 60.0%, 0.8% 55.2%, 0.0% 50.0%, 0.8% 44.8%, 3.0% 40.0%, 6.4% 35.8%, 10.4% 32.4%, 14.5% 29.5%, 18.3% 27.0%, 21.7% 24.5%, 24.5% 21.7%, 27.0% 18.3%, 29.5% 14.5%, 32.4% 10.4%, 35.8% 6.4%, 40.0% 3.0%, 44.8% 0.8%); }
}

/* Pastilles (puces M3 « assist ») : engagements, secteurs desservis */
.puces { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 32px; padding: 6px 16px 6px 8px;
    border-radius: var(--forme-s);
    background: var(--md-surface-container-low);
    box-shadow: inset 0 0 0 1px var(--md-outline-variant);
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .875rem; line-height: 1.25;
    color: var(--md-on-surface);
}
.puce .icone { width: 18px; height: 18px; color: var(--md-primary); }

/* ============================================================
   BARRE D'APPLICATION (en-tête) + TIROIR DE NAVIGATION
   ============================================================ */
.barre-app {
    position: sticky; top: 0; z-index: 50;
    transition: background-color var(--duree-effet) var(--ressort-effet), box-shadow var(--duree-effet) var(--ressort-effet);
}
/* Au défilement, la barre prend la couleur du conteneur (comportement M3).
   Le flou est sur un pseudo-élément : un backdrop-filter sur la barre
   elle-même piégerait le tiroir (position fixe) dans ses 72 px. */
.barre-app::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(13, 26, 15, .72);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: background-color var(--duree-effet) var(--ressort-effet);
}
.barre-app.defile::before { background: rgba(22, 41, 29, .94); }
/* Tiroir ouvert : l'en-tête (tiroir + voile) passe devant les boutons flottants */
.barre-app.tiroir-ouvert { z-index: 90; }
.barre-app.defile { box-shadow: 0 1px 0 var(--md-outline-variant); }
.barre-app__inner { display: flex; align-items: center; gap: 8px; height: var(--barre); }
.logo { display: flex; align-items: center; flex: none; margin-right: auto; }
.logo-full { height: 40px; width: auto; }
.barre-app__actions { display: flex; align-items: center; gap: 4px; }

/* Navigation : liens texte dans la barre (fenêtre étendue) */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__lien {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
    border-radius: var(--forme-pleine);
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9375rem;
    color: var(--md-on-surface-variant);
}
.nav__lien.actif { color: var(--md-on-secondary-container); background: var(--md-secondary-container); }
.nav__cta { margin-left: 12px; }
.nav__tete, .nav__pied { display: none; }

.voile {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(0, 0, 0, .45);
    opacity: 0; transition: opacity var(--duree-effet) var(--ressort-effet);
}
.voile.visible { opacity: 1; }

@media (min-width: 1000px) {
    .logo-full { height: 44px; }
    .barre-app__actions { display: none; }
}

/* Fenêtres compacte et moyenne : tiroir de navigation modal (M3), depuis
   la gauche, avec voile ; la barre garde Appeler + Menu. */
@media (max-width: 999.98px) {
    .nav {
        position: fixed; inset: 0 auto 0 0; z-index: 80;
        width: min(360px, 88vw); height: 100dvh; overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px 12px calc(24px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
        background: var(--md-surface-container-low);
        border-radius: 0 var(--forme-l) var(--forme-l) 0;
        box-shadow: var(--elev-3);
        transform: translateX(-104%); visibility: hidden;
        transition: transform var(--duree-spatial) var(--ressort-effet), visibility 0s linear var(--duree-spatial);
    }
    .nav.open {
        transform: none; visibility: visible;
        transition: transform var(--duree-spatial) var(--ressort-effet), visibility 0s;
    }
    .nav__tete { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 16px; }
    .nav__tete img { height: 36px; width: auto; }
    .nav__lien { min-height: 56px; padding: 0 24px; font-size: 1rem; }
    .nav__cta { margin: 16px 12px 0; min-height: 56px; }
    .nav__pied {
        display: flex; flex-direction: column; gap: 4px;
        margin: 20px 12px 0; padding-top: 16px; border-top: 1px solid var(--md-outline-variant);
    }
    .nav__pied a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--forme-pleine); color: var(--md-on-surface); }
    .nav__pied .icone { color: var(--md-primary); }
}

/* ============================================================
   HÉRO
   ============================================================ */
.hero { position: relative; overflow: clip; padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 112px); }
/* Motif X officiel de la marque derrière le héro */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url('../img/fond2.webp') center top / cover no-repeat;
    opacity: .18;
    -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
            mask-image: linear-gradient(#000 55%, transparent 100%);
}
.hero__grille { display: grid; gap: 40px; align-items: center; }
.hero__surtitre {
    display: block; margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9375rem;
    line-height: 1.4; letter-spacing: .01em; text-transform: none;
    color: var(--md-tertiary);
}
.hero h1 .accent {
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: 1.125rem; line-height: 1.6; max-width: 34em; margin-top: 24px; color: var(--md-on-surface-variant); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .puces { margin-top: 28px; }

/* La forme mémorable du site : la vidéo dans une GOUTTE D'EAU (pointe en
   haut à gauche, comme la goutte du logo). Au chargement, le cadre passe
   d'un rectangle arrondi à la goutte sur un ressort lent. */
.hero__media { position: relative; justify-self: center; width: min(100%, 520px); }
.hero__media::before {
    content: ""; position: absolute; inset: 7% -5% -5% 7%; z-index: -1;
    border-radius: var(--forme-m) 50% 50% 50%;
    background: var(--md-secondary-container);
}
.hero__video {
    width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
    background: var(--md-surface-container-high);
    border-radius: var(--forme-m) 50% 50% 50%;
    animation: goutte var(--duree-spatial-lent) var(--ressort-spatial-lent) 150ms both;
}
@keyframes goutte {
    from { border-radius: var(--forme-xl); transform: scale(.94); }
    to   { border-radius: var(--forme-m) 50% 50% 50%; transform: none; }
}

/* Bouton pause / lecture des vidéos en boucle (bouton d'icône tonal M3).
   Dans le coin pointu de la goutte, seul coin qui ne coupe rien. */
.btn-video {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(13, 26, 15, .74); color: var(--md-on-surface);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-video-faq { top: 16px; left: auto; right: max(16px, env(safe-area-inset-right)); z-index: 3; }
.btn-video .icone-lecture, .btn-video.en-pause .icone-pause { display: none; }
.btn-video.en-pause .icone-lecture { display: block; }

@media (min-width: 840px) {
    .hero__grille { grid-template-columns: 1.15fr 1fr; gap: 56px; }
    .hero__media { width: 100%; justify-self: end; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section-tint { background: var(--md-surface-container-low); }
.section-dark { background: var(--md-surface-container-lowest); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
/* Sur-titre : étiquette M3 (title small), sans capitales */
.surtitre {
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9375rem;
    letter-spacing: .01em; color: var(--md-tertiary);
}
.section h2 + p, .section p + p { margin-top: 16px; }
.section p { max-width: 68ch; }

.grid-2 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 840px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Images de section : grande forme M3 (XL), une seule courbe accentuée */
.media-forme img {
    width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover;
    border-radius: var(--forme-xl) var(--forme-xl) var(--forme-xl) var(--forme-xxl);
}

/* Vagues décoratives en haut d'une section (motif de la marque) */
.has-waves::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 90px;
    pointer-events: none; background-repeat: no-repeat; background-size: cover;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C300,90 560,0 840,40 C1080,74 1280,30 1440,52 L1440,0 L0,0 Z' fill='%231AB8A0' opacity='0.10'/%3E%3Cpath d='M0,50 C320,100 600,20 900,55 C1140,82 1320,48 1440,66 L1440,0 L0,0 Z' fill='%233DDC62' opacity='0.07'/%3E%3C/svg%3E");
}

/* ============================================================
   CARTES (M3 : remplie / contour)
   ============================================================ */
.cartes { display: grid; gap: 16px; }
@media (min-width: 600px)  { .cartes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cartes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.carte {
    padding: 24px; border-radius: var(--forme-xl);
    background: var(--md-surface-container-high);
}
.carte h3 { margin: 20px 0 8px; }
.carte p { font-size: .9688rem; }
.carte__icone {
    display: grid; place-items: center; width: 56px; height: 56px;
    border-radius: var(--forme-l);
    background: var(--md-primary-container); color: var(--md-on-primary-container);
}
.carte__icone .icone { width: 28px; height: 28px; }

/* Avantages : cartes à contour, en mosaïque 2 + 3 sur grand écran */
.avantages { display: grid; gap: 16px; }
.carte-contour {
    padding: 24px; border-radius: var(--forme-xl);
    box-shadow: inset 0 0 0 1px var(--md-outline-variant);
    display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; align-content: start;
}
.carte-contour .icone { width: 28px; height: 28px; color: var(--md-tertiary); grid-row: span 2; margin-top: 2px; }
.carte-contour h3 { font-size: 1.125rem; }
.carte-contour p { font-size: .9688rem; }
@media (min-width: 600px) { .avantages { grid-template-columns: 1fr 1fr; } .avantages > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
    .avantages { grid-template-columns: repeat(6, 1fr); }
    .avantages > * { grid-column: span 2; }
    .avantages > :nth-child(-n+2) { grid-column: span 3; }
    .avantages > :last-child { grid-column: span 2; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { display: grid; gap: 16px; }
@media (min-width: 840px) { .services { grid-template-columns: 1fr 1fr; gap: 24px; } }
.service {
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--forme-xl); background: var(--md-surface-container-high);
}
.service__img { padding: 8px 8px 0; }
.service__img img {
    width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover;
    border-radius: var(--forme-l-plus);
}
.service__corps { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service__corps h3 { font-size: 1.375rem; margin-bottom: 8px; }
.inclus { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.inclus li { display: flex; gap: 12px; align-items: flex-start; font-size: .9688rem; color: var(--md-on-surface-variant); }
.inclus .icone { width: 20px; height: 20px; color: var(--md-primary); margin-top: 2px; }

/* « En savoir plus » : bouton texte M3 + chevron qui pivote sur ressort */
.plus { margin-top: auto; padding-top: 16px; }
.plus summary {
    display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer;
    min-height: 48px; padding: 0 12px 0 16px; margin-left: -16px;
    border-radius: var(--forme-pleine);
    font-family: 'Montserrat', sans-serif; font-weight: 650; font-size: .9375rem; color: var(--md-primary);
}
.plus summary::-webkit-details-marker { display: none; }
.plus summary .icone { transition: transform var(--duree-spatial-rapide) var(--ressort-spatial-rapide); }
.plus[open] summary .icone { transform: rotate(180deg); }
.plus p { margin-top: 8px; font-size: .9688rem; }

/* ============================================================
   PROCESSUS (vraie séquence : numéros dans un biscuit à 9 lobes)
   ============================================================ */
.etapes { list-style: none; display: grid; gap: 24px; counter-reset: etape; }
@media (min-width: 840px) { .etapes { grid-template-columns: 1fr 1fr; gap: 32px 56px; } }
.etapes li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.etape__num {
    display: grid; place-items: center; width: 56px; height: 56px;
    clip-path: var(--forme-biscuit-9);
    background: var(--md-primary-container); color: var(--md-on-primary-container);
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.5rem;
}
.etapes h3 { margin: 12px 0 4px; }

/* ============================================================
   TECHNIQUES (liste M3 avec séparateurs)
   ============================================================ */
.techniques { margin-top: 24px; }
.technique { padding: 20px 0; border-bottom: 1px solid var(--md-outline-variant); }
.technique:last-child { border-bottom: 0; }
.technique h3 { margin-bottom: 4px; }

/* ============================================================
   FAQ (panneaux dépliables : la carte ouverte prend la couleur
   d'accent et une forme plus ronde)
   ============================================================ */
.has-bg-video { overflow: hidden; }
.section-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 0; pointer-events: none; }
.section-bg-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(13,26,15,.9), rgba(13,26,15,.86)); }
.has-bg-video > .container { position: relative; z-index: 2; }

.faq { display: grid; gap: 8px; }
.faq details {
    border-radius: var(--forme-l);
    background: var(--md-surface-container);
    transition: border-radius var(--duree-spatial) var(--ressort-spatial), background-color var(--duree-effet) var(--ressort-effet);
}
.faq details[open] { border-radius: var(--forme-xl); background: var(--md-surface-container-high); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    list-style: none; cursor: pointer; padding: 18px 20px 18px 24px;
    border-radius: inherit; color: var(--md-on-surface);
}
.faq summary::-webkit-details-marker { display: none; }
/* La question est un vrai titre (h3) pour Google et les IA */
.faq summary h3 { font-size: 1.0625rem; font-weight: 600; }
.faq summary .icone { color: var(--md-primary); transition: transform var(--duree-spatial-rapide) var(--ressort-spatial-rapide); }
.faq details[open] summary .icone { transform: rotate(180deg); }
.faq details p { padding: 0 24px 22px; }

/* ============================================================
   SECTEURS DESSERVIS
   ============================================================ */
.zones { margin: 32px 0 24px; }
.zones .puce { padding-left: 12px; }
.zones .icone { color: var(--md-secondary); }
.note {
    display: flex; gap: 12px; align-items: flex-start; max-width: 68ch;
    padding: 16px 20px; border-radius: var(--forme-l);
    background: var(--md-tertiary-container); color: var(--md-on-tertiary-container);
}
.note .icone { margin-top: 1px; }

/* ============================================================
   CONTACT
   ============================================================ */
.section-cta { background-color: #0F2219; }
/* Photo de fond ajoutée par main.js à l'approche de la section */
.section-cta.bg-pret {
    background-image: linear-gradient(rgba(13,26,15,.86), rgba(13,26,15,.92)), url('../img/asperseur-pelouse-maison.webp');
    background-size: cover; background-position: center;
}
.coords { list-style: none; margin: 28px 0; display: grid; gap: 8px; max-width: 420px; }
.coords a {
    display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 20px 8px 8px;
    border-radius: var(--forme-l); background: var(--md-surface-container); color: var(--md-on-surface);
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.0625rem;
}
.coords .coords__icone {
    display: grid; place-items: center; width: 48px; height: 48px; flex: none;
    border-radius: var(--forme-m); background: var(--md-primary-container); color: var(--md-on-primary-container);
}

.form-carte {
    padding: clamp(20px, 4vw, 32px); border-radius: var(--forme-xl-plus);
    background: var(--md-surface-container-high); box-shadow: var(--elev-2);
}
.form-carte h3 { font-size: 1.5rem; margin-bottom: 4px; }
.form-carte .aide { font-size: .875rem; margin-bottom: 20px; }

/* Champs de texte M3 « à contour », étiquette flottante */
.champs { display: grid; gap: 16px; }
/* Deux colonnes selon la largeur de la CARTE (pas de la fenêtre) : entre 840
   et 1250 px, la carte est une demi-colonne et la liste serait tronquée. */
.form-carte { container-type: inline-size; }
@container (min-width: 460px) { .champs-2 { grid-template-columns: 1fr 1fr; } }
.champ { position: relative; }
.champ input, .champ select, .champ textarea {
    width: 100%; min-height: 56px; padding: 16px; border: 0;
    border-radius: var(--forme-xs);
    background: transparent; color: var(--md-on-surface);
    font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.5;
    box-shadow: inset 0 0 0 1px var(--md-outline);
    transition: box-shadow var(--duree-effet) var(--ressort-effet);
    -webkit-appearance: none; appearance: none;
}
.champ textarea { min-height: 128px; resize: vertical; padding-top: 18px; }
.champ select { padding-right: 48px; cursor: pointer; }
.champ select option { background: var(--md-surface-container-high); color: var(--md-on-surface); }
@media (hover: hover) { .champ input:hover, .champ select:hover, .champ textarea:hover { box-shadow: inset 0 0 0 1px var(--md-on-surface); } }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--md-primary); }
.champ label {
    position: absolute; left: 12px; top: 16px; padding: 0 4px;
    pointer-events: none; transform-origin: left top;
    color: var(--md-on-surface-variant); font-size: 1rem; line-height: 1.5;
    background: var(--md-surface-container-high); border-radius: 2px;
    transition: transform var(--duree-spatial-rapide) var(--ressort-effet), color var(--duree-effet) var(--ressort-effet);
}
/* Étiquette au repos dans le champ ; elle flotte sur la bordure dès que
   le champ a le focus ou une valeur (les listes ont toujours une valeur). */
.champ:focus-within label,
.champ input:not(:placeholder-shown) + label,
.champ textarea:not(:placeholder-shown) + label,
.champ select + label { transform: translateY(-26px) scale(.75); }
.champ:focus-within label { color: var(--md-primary); }
/* Indice (ex. format du téléphone) visible seulement pendant la saisie */
.champ input::placeholder, .champ textarea::placeholder { color: transparent; }
.champ:focus-within input::placeholder { color: var(--md-outline); }
.champ__fleche { position: absolute; right: 12px; top: 16px; pointer-events: none; color: var(--md-on-surface-variant); }
/* Champ en erreur (validation côté client) */
.champ .invalid, .champ .invalid:hover { box-shadow: inset 0 0 0 2px var(--md-error); }
.champ .invalid:focus { box-shadow: inset 0 0 0 3px var(--md-error); outline: 2px solid var(--md-error); outline-offset: 2px; }
.champ:has(.invalid) label { color: var(--md-error); }
.err-msg { display: block; margin: 4px 16px 0; font-size: .8125rem; line-height: 1.35; color: var(--md-error); }

.form-carte .btn { margin-top: 8px; }
/* Avis au moment de la collecte (Loi 25) */
.avis-collecte { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--md-on-surface-variant); text-align: center; }
.avis-collecte a { color: var(--md-primary); text-decoration: underline; text-underline-offset: 2px; }
.avis-collecte + .recaptcha-notice { margin-top: 6px; }
.recaptcha-notice { margin-top: 14px; font-size: .75rem; line-height: 1.5; color: var(--md-outline); text-align: center; }
.recaptcha-notice a { color: var(--md-secondary); text-decoration: underline; }
/* Le badge flottant de Google est remplacé par la mention texte ci-dessus (règles reCAPTCHA) */
.grecaptcha-badge { visibility: hidden; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Message de résultat (conteneurs tonals M3) */
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px 20px; margin-bottom: 20px; border-radius: var(--forme-l);
    font-weight: 500;
}
.alert-ok { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.alert-err { background: var(--md-error-container); color: var(--md-on-error-container); }
/* Reçoit le focus par script après l'envoi (lecteurs d'écran) : pas un contrôle */
#form-statut:focus { outline: none; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
    position: relative; overflow: hidden;
    background: var(--md-surface-container-lowest); color: var(--md-on-surface-variant);
    padding: 64px 0 calc(32px + env(safe-area-inset-bottom));
}
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: center / cover no-repeat; opacity: .07; }
/* Motif ajouté par main.js à l'approche du pied de page (chargement différé) */
.site-footer.bg-pret::before { background-image: url('../img/fond1.webp'); }
.site-footer .container { position: relative; z-index: 1; }
.pied { display: grid; gap: 40px; }
@media (min-width: 600px)  { .pied { grid-template-columns: 1fr 1fr; } .pied > :first-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .pied { grid-template-columns: 1.6fr 1fr 1fr; } .pied > :first-child { grid-column: auto; } }
.pied .logo-full { height: 44px; margin-bottom: 16px; }
.pied p { max-width: 42ch; }
.site-footer h4 { margin-bottom: 12px; font-family: 'Montserrat', sans-serif; font-weight: 650; font-size: .9375rem; color: var(--md-on-surface); }
.pied a { display: flex; align-items: center; min-height: 48px; width: fit-content; color: var(--md-on-surface-variant); }
@media (hover: hover) { .pied a:hover { color: var(--md-primary); } }
.site-footer address { font-style: normal; }
.pied-bas { margin-top: 40px; font-size: .875rem; }
.pied-bas p {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px;
    max-width: none; padding-top: 24px; border-top: 1px solid var(--md-outline-variant);
}
.pied-bas a { display: inline-flex; align-items: center; min-height: 48px; color: var(--md-on-surface-variant); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .pied-bas a:hover { color: var(--md-primary); } }
/* Page sans le reste du pied de page (politique) : pas de marge au-dessus */
.site-footer > .pied-bas:first-child { margin-top: 0; }

/* ============================================================
   BOUTONS FLOTTANTS (FAB)
   ============================================================ */
.fab {
    position: fixed; z-index: 60;
    right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    border: 0; cursor: pointer; box-shadow: var(--elev-3);
    font-family: 'Montserrat', sans-serif; font-weight: 650; font-size: 1rem;
    opacity: 0; visibility: hidden; transform: translateY(24px) scale(.9);
    transition: opacity var(--duree-effet) var(--ressort-effet),
                transform var(--duree-spatial) var(--ressort-spatial),
                visibility 0s linear var(--duree-spatial),
                border-radius var(--duree-spatial-rapide) var(--ressort-spatial-rapide);
}
.fab.visible {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--duree-effet) var(--ressort-effet),
                transform var(--duree-spatial) var(--ressort-spatial),
                visibility 0s,
                border-radius var(--duree-spatial-rapide) var(--ressort-spatial-rapide);
}
/* FAB étendu « Soumission gratuite » (fenêtres compacte et moyenne) */
.fab-etendu {
    min-height: 56px; padding: 0 20px 0 16px; border-radius: var(--forme-l);
    background: var(--md-primary); color: var(--md-on-primary);
}
.fab-etendu:active { border-radius: var(--forme-m); }
/* Petit FAB « Retour en haut » (fenêtre étendue) */
.fab-petit {
    width: 48px; height: 48px; border-radius: var(--forme-m);
    background: var(--md-secondary-container); color: var(--md-on-secondary-container);
}
.fab-petit:active { border-radius: var(--forme-s); }
@media (min-width: 1000px) {
    .fab { right: 24px; bottom: 24px; }
    .fab-etendu { display: none; }
}
@media (max-width: 999.98px) { .fab-petit { display: none; } }

/* ============================================================
   PAGE POLITIQUE DE CONFIDENTIALITÉ
   Texte long : titres M3 « title large », lignes de 68 caractères au plus,
   sommaire en liste M3.
   ============================================================ */
.politique h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4rem); }
.politique__maj { margin-top: 12px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9375rem; color: var(--md-tertiary); }
.sommaire {
    margin: 32px 0 8px; padding: 12px; border-radius: var(--forme-xl);
    background: var(--md-surface-container-low);
}
.sommaire ol { list-style: none; display: grid; gap: 2px; }
@media (min-width: 840px) { .sommaire ol { grid-template-columns: 1fr 1fr; column-gap: 8px; } }
.sommaire a {
    display: flex; align-items: center; min-height: 48px; padding: 8px 16px;
    border-radius: var(--forme-pleine); color: var(--md-on-surface);
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9375rem; line-height: 1.3;
}
.politique__section { padding-top: 32px; }
.politique h2 {
    font-family: 'Montserrat', sans-serif; font-weight: 650; text-transform: none;
    font-size: 1.375rem; line-height: 1.3; letter-spacing: 0; margin-bottom: 12px;
}
.politique__section p + p { margin-top: 10px; }
.politique__section a { color: var(--md-primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.politique__fin { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.barre-app .btn-tonal { min-height: 48px; padding: 0 20px; font-size: .875rem; }

/* ============================================================
   PAGE 404
   ============================================================ */
.page-404 { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 48px var(--marge); }
.page-404 .logo-full { height: 48px; margin: 0 auto 40px; }
.page-404 .surtitre { margin-bottom: 8px; }
.page-404 p { margin: 20px auto 32px; max-width: 40ch; }
.page-404 .contact-404 { margin-top: 28px; }
.page-404 .contact-404 a { color: var(--md-primary); font-weight: 600; }

/* ============================================================
   MOUVEMENT RÉDUIT : aucune animation ni ressort
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
        transition-duration: .01ms !important; transition-delay: 0s !important;
    }
}

/* ============================================================
   CONTRASTE ÉLEVÉ (Windows) : les ombres internes qui dessinent les
   bordures disparaissent ; on redonne de vraies bordures et contours.
   ============================================================ */
@media (forced-colors: active) {
    .champ input, .champ select, .champ textarea { border: 1px solid CanvasText; }
    .champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid Highlight; outline-offset: 2px; }
    .btn, .fab, .btn-icone, .puce, .carte, .carte-contour, .service, .faq details, .form-carte { border: 1px solid ButtonText; }
    .champ input::placeholder, .champ textarea::placeholder { color: transparent; }
    .champ:focus-within input::placeholder { color: GrayText; }
    .etape__num { clip-path: none; border: 1px solid CanvasText; border-radius: 50%; }
}
