/* ==========================================================================
   ERO DIGITAL — feuille de style principale du site
   (les animations enrichies sont à part, dans css/effets.css)
   --------------------------------------------------------------------------
   Sommaire
    1. Polices (hébergées sur le site, aucun appel extérieur)
    2. Jetons de design (couleurs, tailles, espacements…)
    3. Base
    4. Utilitaires
    5. Boutons, pastilles, étiquettes
    6. En-tête
    7. Hero (haut de page) et schéma « du plan au site »
    8. Sections et cartes
    9. Engagements
   10. Services (et « pour qui »)
   11. (partie retirée : « pour qui » est intégré aux services)
   12. Réalisations : captures d'écran et maquettes
   13. Méthode (frise)
   14. Formules
   15. Qui est derrière
   16. Questions fréquentes
   17. Contact et formulaire
   18. Pied de page
   19. Barre fixe sur téléphone
   20. Pages annexes (mentions légales, confidentialité, merci, 404)
   21. Animations (seulement si le visiteur ne les a pas désactivées)

   Principe « mobile d'abord » : les styles de base visent le téléphone,
   puis les blocs @media (min-width: …) adaptent aux écrans plus larges.
   Points de rupture : 40rem (640 px), 60rem (960 px), 75rem (1200 px).
   ========================================================================== */


/* ==========================================================================
   1. POLICES
   ========================================================================== */

/* Titres : Bricolage Grotesque (police variable, graisses 200 à 800) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.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;
}

/* Texte courant : Figtree (police variable, graisses 300 à 900) */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.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;
}


/* ==========================================================================
   2. JETONS DE DESIGN
   Pour changer une couleur ou une taille partout, modifiez-la ici.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Couleurs — fonds */
  --c-fond-profond: #060D1C;   /* hero, pied de page */
  --c-fond: #0B1730;           /* fond principal */
  --c-surface: #12223F;        /* cartes, bloc formulaire */
  --c-surface-haute: #1A2F52;  /* champs, survol */

  /* Couleurs — textes */
  --c-texte: #F1F5FB;
  --c-texte-doux: #A8B7CF;
  --c-encre: #060D1C;          /* texte posé sur l'orange ou le bleu */

  /* Couleurs — accents */
  --c-bleu: #6CB6FF;           /* confiance : liens, icônes, traits */
  --c-bleu-voile: rgba(108, 182, 255, .25);
  --c-orange: #FF8A1F;         /* action : boutons uniquement */
  --c-orange-clair: #FFA24A;   /* bouton survolé */
  --c-orange-fonce: #F07A10;   /* bouton enfoncé */

  /* Couleurs — bordures et états */
  --c-bordure: #7C93BA;        /* bordure des champs */
  --c-filet: #2B4168;          /* filets décoratifs */
  --c-succes: #5FD39A;
  --c-erreur: #FF9B8F;

  /* Polices */
  --police-titres: "Bricolage Grotesque", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --police-texte: "Figtree", system-ui, "Segoe UI", Roboto, Arial, sans-serif;

  /* Échelle typographique (ratio 1,25) */
  --t-h1: clamp(2.1rem, 5vw + 1rem, 3.5rem);
  --t-h2: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  --t-h3: clamp(1.25rem, 1vw + 1rem, 1.375rem);
  --t-chapeau: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  --t-corps: 1.0625rem;        /* 1,125rem à partir de 480 px, voir « Base » */
  --t-base: 1rem;
  --t-petit: 0.875rem;
  --t-etiquette: 0.875rem;

  /* Espacements */
  --e-1: 0.25rem;
  --e-2: 0.5rem;
  --e-3: 0.75rem;
  --e-4: 1rem;
  --e-5: 1.5rem;
  --e-6: 2rem;
  --e-7: 3rem;
  --e-8: 4rem;

  /* Rayons des angles */
  --r-petit: 6px;      /* champs, étiquettes */
  --r-moyen: 12px;     /* boutons, cartes */
  --r-grand: 20px;     /* cadres de maquette */
  --r-pilule: 999px;

  /* Ombres */
  --o-carte: inset 0 1px 0 rgba(241, 245, 251, .04), 0 12px 32px -16px rgba(0, 0, 0, .6);
  --o-survol: 0 20px 48px -20px rgba(0, 0, 0, .7);
  --o-bouton: 0 8px 24px -8px rgba(255, 138, 31, .45);

  /* Mouvement */
  --d-rapide: 200ms;
  --d-moyen: 400ms;
  --d-lent: 700ms;
  --courbe-sortie: cubic-bezier(.16, 1, .3, 1);   /* apparitions */
  --courbe-douce: cubic-bezier(.65, 0, .35, 1);   /* tracés */
  --courbe-standard: cubic-bezier(.2, 0, 0, 1);   /* survols */
}


/* ==========================================================================
   3. BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-fond);
  color: var(--c-texte);
  font-family: var(--police-texte);
  font-size: var(--t-corps);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 30rem) {
  :root { --t-corps: 1.125rem; }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--police-titres);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0;
  max-width: 68ch;   /* lignes de 68 caractères au maximum : plus confortable à lire */
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

a {
  color: var(--c-bleu);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--c-texte);
}

svg {
  flex: none;
}

/* L'attribut « hidden » doit toujours masquer l'élément */
[hidden] {
  display: none !important;
}

/* Repère clavier bien visible sur tous les éléments que l'on peut atteindre au clavier */
:focus-visible {
  outline: 3px solid var(--c-texte);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

/* L'en-tête reste collé en haut de l'écran : on réserve sa hauteur (72 px) à chaque défilement
   automatique. Une section atteinte par un lien du menu s'arrête juste dessous, et un élément
   atteint au clavier (touche Tab) n'est jamais caché derrière l'en-tête.
   (Le bas de l'écran est réservé de la même façon pour la barre fixe : voir la partie 19.) */
html {
  scroll-padding-top: 4.5rem;
}


/* ==========================================================================
   4. UTILITAIRES
   ========================================================================== */

/* Bloc centré : largeur maximale 72rem, marges latérales de 1,25rem (2rem dès 640 px) */
.conteneur {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.conteneur--etroit {
  max-width: 54rem;
}

@media (min-width: 40rem) {
  .conteneur { padding-inline: 2rem; }
}

/* Masqué à l'écran mais lu par les lecteurs d'écran */
.visuellement-masque,
.piege {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Éléments qui n'ont de sens qu'avec JavaScript (menu, filtres, démonstrations) */
html:not(.js) .js-seulement {
  display: none !important;
}

/* Icônes au trait (elles prennent la couleur du texte qui les entoure) */
.icone {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icones-source {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Repère invisible tout en haut de la page (voir main.js, « En-tête ») */
.sentinelle {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}

/* Lien d'évitement : n'apparaît que lorsqu'on y arrive au clavier */
.evitement {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--r-petit);
  background: var(--c-texte);
  color: var(--c-encre);
  font-weight: 600;
  transform: translateY(-200%);
}

.evitement:focus {
  transform: none;
  color: var(--c-encre);
}

/* Petit titre en capitales (surtitre, libellés) */
.surtitre {
  font-size: var(--t-etiquette);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-bleu);
}

/* Paragraphe d'introduction */
.chapeau {
  font-size: var(--t-chapeau);
  line-height: 1.5;
  color: var(--c-texte-doux);
}

/* Liste avec une coche bleue devant chaque ligne */
.liste-coches {
  display: grid;
  gap: var(--e-3);
  list-style: none;
  font-size: var(--t-base);
  line-height: 1.5;
}

.liste-coches li {
  position: relative;
  padding-left: 1.75rem;
}

.liste-coches li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.3em;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--c-bleu);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* ==========================================================================
   5. BOUTONS, PASTILLES, ÉTIQUETTES
   ========================================================================== */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: 3rem;              /* zone tactile confortable (au moins 44 px) */
  padding: 0.75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--r-moyen);
  background: transparent;
  color: var(--c-texte);
  font-family: var(--police-texte);
  font-size: var(--t-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--d-rapide) var(--courbe-standard),
    border-color var(--d-rapide) var(--courbe-standard),
    box-shadow var(--d-rapide) var(--courbe-standard),
    transform var(--d-rapide) var(--courbe-standard);
}

/* Bouton d'action : orange, texte foncé (jamais de texte blanc sur orange) */
.bouton--action {
  background: var(--c-orange);
  color: var(--c-encre);
}

.bouton--action:hover {
  background: var(--c-orange-clair);
  color: var(--c-encre);
  box-shadow: var(--o-bouton);
}

.bouton--action:active {
  background: var(--c-orange-fonce);
  box-shadow: none;
}

/* Bouton secondaire : simple contour */
.bouton--contour {
  border-color: var(--c-bordure);
  color: var(--c-texte);
}

.bouton--contour:hover {
  border-color: var(--c-bleu);
  background: var(--c-surface-haute);
  color: var(--c-texte);
}

.bouton--grand {
  min-height: 3.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
}

.bouton--compact {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
}

.bouton--bloc {
  width: 100%;
}

/* Flèche des boutons et des liens */
.fleche {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--d-rapide) var(--courbe-standard);
}

/* Pastille : bouton de filtre ou de choix (état « enfoncé » = fond bleu plein) */
.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1.5px solid var(--c-bordure);
  border-radius: var(--r-pilule);
  background: transparent;
  color: var(--c-texte);
  font-family: var(--police-texte);
  font-size: var(--t-base);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color var(--d-rapide) var(--courbe-standard),
    border-color var(--d-rapide) var(--courbe-standard),
    color var(--d-rapide) var(--courbe-standard);
}

.pastille:hover {
  border-color: var(--c-bleu);
  background: var(--c-surface-haute);
}

.pastille[aria-pressed="true"] {
  border-color: var(--c-bleu);
  background: var(--c-bleu);
  color: var(--c-encre);
}

/* Étiquette (type de projet, « Sur devis ») */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-petit);
  background: rgba(108, 182, 255, .14);
  color: var(--c-bleu);
  font-size: var(--t-etiquette);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--contour {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--c-bleu);
}


/* ==========================================================================
   6. EN-TÊTE
   ========================================================================== */

.entete {
  position: relative;
  z-index: 50;
  background: var(--c-fond-profond);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-rapide), box-shadow var(--d-rapide);
}

/* L'en-tête reste collé en haut de l'écran (sur téléphone : seulement si le menu peut se replier) */
.js .entete {
  position: sticky;
  top: 0;
}

/* État « compact » : posé par main.js dès que la page a défilé de 24 px */
.entete.est-compacte {
  border-bottom-color: var(--c-filet);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .8);
}

.entete-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--e-4);
}

/* La hauteur de la barre (72 px, puis 60 px en mode compact) vient des marges du logo et du
   bouton « Menu ». Ainsi, la première rangée garde la même hauteur quand le menu se déplie
   en dessous : le bouton « Menu » ne bouge pas sous le doigt. */
.logo,
.menu-bouton {
  margin-block: 0.875rem;
  transition: margin var(--d-rapide) var(--courbe-standard);
}

.entete.est-compacte .logo,
.entete.est-compacte .menu-bouton {
  margin-block: 0.5rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--c-texte);
  text-decoration: none;
}

.logo-symbole {
  width: 2.25rem;
  height: 2.25rem;
}

.logo-cadre {
  fill: none;
  stroke: var(--c-bleu);
  stroke-width: 3;
}

.logo-lettre {
  fill: var(--c-texte);
}

.logo-bouton {
  fill: var(--c-orange);
}

.logo-texte {
  font-family: var(--police-titres);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--c-texte);
}

/* Bouton « Menu » (téléphone) */
.menu-bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--c-bordure);
  border-radius: var(--r-moyen);
  background: transparent;
  color: var(--c-texte);
  font-family: var(--police-texte);
  font-size: var(--t-base);
  font-weight: 600;
  cursor: pointer;
}

/* Les trois barres du bouton, qui deviennent une croix à l'ouverture */
.menu-bouton-icone {
  position: relative;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-bouton-icone::before,
.menu-bouton-icone::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--c-texte);
  transition: transform var(--d-rapide) var(--courbe-standard);
}

.menu-bouton-icone::before { transform: translateY(-6px); }
.menu-bouton-icone::after { transform: translateY(6px); }

.menu-bouton[aria-expanded="true"] .menu-bouton-icone { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-bouton-icone::before { transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton-icone::after { transform: rotate(-45deg); }

/* Contenu du menu : en colonne sur téléphone */
.entete-menu {
  display: flex;
  flex-direction: column;
  gap: var(--e-4);
  flex-basis: 100%;
  padding-block: var(--e-2) var(--e-5);
}

/* Avec JavaScript, le menu est replié tant qu'on n'a pas appuyé sur « Menu » */
.js .entete-menu:not(.est-ouvert) {
  display: none;
}

.entete-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.entete-nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid var(--c-filet);
  color: var(--c-texte);
  font-weight: 600;
  text-decoration: none;
}

.entete-nav a:hover {
  color: var(--c-bleu);
}

/* À partir de 960 px : tout tient sur une ligne, le bouton « Menu » disparaît */
@media (min-width: 60rem) {
  .entete {
    position: sticky;
    top: 0;
  }

  .entete-barre {
    flex-wrap: nowrap;
  }

  .menu-bouton {
    display: none !important;
  }

  .entete-menu,
  .js .entete-menu:not(.est-ouvert) {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-basis: auto;
    gap: var(--e-4);
    padding-block: 0;
  }

  .entete-nav ul {
    flex-direction: row;
    gap: var(--e-4);
  }

  .entete-nav a {
    min-height: 2.75rem;
    border-bottom: 0;
    font-size: var(--t-base);
    white-space: nowrap;
  }

  .entete-menu .bouton {
    white-space: nowrap;
  }
}

@media (min-width: 75rem) {
  .entete-menu,
  .js .entete-menu:not(.est-ouvert),
  .entete-nav ul {
    gap: var(--e-5);
  }
}


/* ==========================================================================
   7. HERO ET SCHÉMA « DU PLAN AU SITE »
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
  background: var(--c-fond-profond);
}

/* Halo bleu fixe (la lueur qui suit le pointeur est assurée par js/effets.js et css/effets.css) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at 70% 30%, rgba(108, 182, 255, .14), transparent 65%);
  pointer-events: none;
}

/* Quadrillage de fond, façon papier millimétré, estompé sur les bords */
.hero-grille {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--c-filet) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-filet) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 65% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 75% at 65% 40%, #000 10%, transparent 75%);
  pointer-events: none;
}

.hero-colonnes {
  display: grid;
  gap: var(--e-7);
}

.hero-texte {
  display: grid;
  gap: var(--e-5);
  justify-items: start;
}

.hero-texte .chapeau {
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-4);
  width: 100%;
  margin-top: var(--e-2);
}

.hero-actions .bouton {
  flex: 1 1 100%;
}

.hero-schema {
  width: 100%;
  max-width: 35rem;
  margin-inline: auto;
}

@media (min-width: 40rem) {
  .hero-actions .bouton {
    flex: 0 1 auto;
  }
}

@media (min-width: 60rem) {
  .hero-colonnes {
    grid-template-columns: 55fr 45fr;
    align-items: center;
    gap: var(--e-7);
  }
}

/* ----- Le schéma (SVG) : état par défaut = dessin terminé ----- */

.plan {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Les traits de la maquette */
.trait {
  fill: none;
  stroke: var(--c-bleu);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-traits {
  opacity: 0.35;
}

/* Les blocs remplis du site fini */
.ap-surface { fill: var(--c-surface); }
.ap-haute { fill: var(--c-surface-haute); }
.ap-bleu { fill: var(--c-bleu-voile); }

/* Les boutons de la maquette et leur halo */
.plan-plein {
  fill: var(--c-orange);
}

.plan-halo {
  fill: var(--c-orange);
  opacity: 0;
}

/* Légende sous le schéma (vrai texte, numéroté) */
.plan-legende {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2) var(--e-5);
  margin-top: var(--e-4);
  list-style: decimal inside;
  font-size: var(--t-petit);
  font-weight: 600;
  line-height: 1.5;
}

.plan-legende li {
  position: relative;
  padding-left: 0.75rem;
}

.plan-legende li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 2px;
  border-radius: 2px;
  background: var(--c-bleu);
  transform-origin: top;
}


/* ==========================================================================
   8. SECTIONS ET CARTES
   ========================================================================== */

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section--serree {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid var(--c-filet);
}

.section--profonde {
  background: var(--c-fond-profond);
}

/* Titre + chapeau d'une section */
.section-tete {
  display: grid;
  gap: var(--e-4);
  max-width: 48rem;
  margin-bottom: var(--e-6);
}

@media (min-width: 40rem) {
  .section-tete { margin-bottom: var(--e-7); }
}

.carte {
  position: relative;
  padding: var(--e-5);
  border: 1px solid var(--c-filet);
  border-radius: var(--r-moyen);
  background: var(--c-surface);
  box-shadow: var(--o-carte);
}

/* Cartes réactives : bordure bleue au survol (le projecteur qui suit le pointeur est dans css/effets.css) */
.carte-halo {
  overflow: hidden;
  transition: border-color var(--d-rapide) var(--courbe-standard), box-shadow var(--d-rapide) var(--courbe-standard);
}

.carte-halo:hover {
  border-color: rgba(108, 182, 255, .6);
  box-shadow: var(--o-survol);
}

/* Phrase de rappel avec un lien ou un bouton vers le contact */
.rappel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-2) var(--e-4);
  max-width: none;
  margin-top: var(--e-6);
  font-size: var(--t-chapeau);
}

.rappel--centre {
  flex-direction: column;
  gap: var(--e-4);
  margin-top: var(--e-7);
  text-align: center;
  font-family: var(--police-titres);
  font-size: var(--t-h3);
  font-weight: 600;
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: 2.75rem;
  font-weight: 600;
}

.lien-fleche:hover .fleche {
  transform: translateX(4px);
}

.note {
  margin-top: var(--e-5);
  font-size: var(--t-petit);
  color: var(--c-texte-doux);
}


/* ==========================================================================
   9. ENGAGEMENTS
   ========================================================================== */

/* Le titre de cette bande est volontairement discret */
.titre-discret {
  margin-bottom: var(--e-5);
  font-family: var(--police-texte);
  font-size: var(--t-etiquette);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-bleu);
}

.engagements {
  display: grid;
  gap: var(--e-5);
  list-style: none;
}

/* Sur téléphone : l'icône à gauche, le titre et le texte à droite (bloc plus court) */
.engagement {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--e-1) var(--e-4);
  align-content: start;
}

.engagement-icone {
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--c-bleu);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.engagement h3 {
  font-size: 1.1875rem;
}

.engagement p {
  font-size: var(--t-base);
  color: var(--c-texte-doux);
}

@media (min-width: 40rem) {
  .engagements { grid-template-columns: repeat(2, 1fr); gap: var(--e-6); }
}

/* Sur grand écran : l'icône repasse au-dessus du titre */
@media (min-width: 60rem) {
  .engagement { grid-template-columns: 1fr; gap: var(--e-2); }
  .engagement-icone { grid-row: auto; margin-bottom: var(--e-1); }
}

@media (min-width: 60rem) {
  .engagements { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   10. SERVICES
   ========================================================================== */

.services {
  display: grid;
  gap: var(--e-5);
  list-style: none;
}

.carte-service {
  display: grid;
  gap: var(--e-3);
  align-content: start;
}

/* Tête de carte : icône, accroche et numéro sur une seule ligne */
.carte-service-tete {
  display: flex;
  align-items: center;
  gap: var(--e-3);
}

.carte-service-tete .etiquette {
  flex: 1;
}

/* Numéro 01 à 04 */
.numero {
  align-self: flex-start;
  font-family: var(--police-titres);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-texte-doux);
}

.icone-service {
  width: 2.5rem;
  height: 2.5rem;
}

/* pathLength="1" dans le HTML : chaque tracé « mesure » 1, ce qui simplifie l'animation */
.icone-trait {
  fill: none;
  stroke: var(--c-bleu);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Accroche au-dessus du nom du service */
.etiquette {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--c-bleu);
}

.carte-service > p {
  color: var(--c-texte-doux);
  font-size: var(--t-base);
}

.carte-service .liste-coches {
  gap: var(--e-2);
  padding-top: var(--e-3);
  border-top: 1px solid var(--c-filet);
}

@media (min-width: 40rem) {
  .carte-service { padding: var(--e-6); }
}

@media (min-width: 60rem) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

/* « Pour qui » : deux lignes sous l'introduction des services */
.publics {
  display: grid;
  gap: var(--e-3);
  list-style: none;
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--c-texte-doux);
}

.publics li {
  padding-left: var(--e-4);
  border-left: 2px solid var(--c-bleu);
}

.publics strong {
  color: var(--c-texte);
  font-weight: 600;
}

@media (min-width: 60rem) {
  .publics { grid-template-columns: repeat(2, 1fr); gap: var(--e-5); }
}


/* ==========================================================================
   12. RÉALISATIONS : CAPTURES D'ÉCRAN ET MAQUETTES
   ========================================================================== */

.filtres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-3) var(--e-5);
  margin-bottom: var(--e-5);
}

.filtres-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
}

.filtres-compte {
  font-size: var(--t-petit);
  color: var(--c-texte-doux);
}

/* Liste des projets.
   Sur téléphone (moins de 640 px) : une rangée qui défile horizontalement, carte par carte
   (scroll-snap), avec un bout de la carte suivante visible pour inviter à glisser.
   La liste peut recevoir le focus clavier (tabindex="0") : les flèches font alors défiler.
   À partir de 640 px : une grille classique de 2, puis 3 colonnes. */
.projets {
  display: flex;
  gap: var(--e-4);
  margin-inline: -1.25rem;               /* la rangée va d'un bord à l'autre de l'écran… */
  padding: var(--e-1) 1.25rem var(--e-4);
  scroll-padding-inline: 1.25rem;        /* … mais chaque carte s'aligne sur la marge du texte */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--c-filet) transparent;
}

.projets > li {
  flex: 0 0 min(85%, 21rem);
  scroll-snap-align: start;
}

.projets:focus-visible {
  outline-offset: -3px;
}

/* Dans une rangée qui défile horizontalement, les cartes sont affichées d'emblée : sinon la carte
   suivante, à peine visible au bord de l'écran, resterait invisible au lieu d'inviter à glisser.
   (Même règle pour les formules ; sélecteur renforcé pour passer devant css/effets.css.) */
@media (max-width: 39.99rem) {
  html.js .projets > [data-apparition],
  html.js .projets > [data-apparition].est-visible,
  html.js .formules > [data-apparition],
  html.js .formules > [data-apparition].est-visible {
    opacity: 1;
    animation: none;
  }
}

/* Petite consigne « Faites glisser… », sur téléphone uniquement (réalisations et formules) */
.aide-glisser {
  margin-bottom: var(--e-3);
  font-size: var(--t-petit);
  color: var(--c-texte-doux);
}

.projet {
  display: flex;
  flex-direction: column;
  gap: var(--e-4);
  padding: var(--e-3);
}

.projet-corps {
  display: grid;
  gap: var(--e-3);
  padding: 0 var(--e-2) var(--e-2);
}

.projet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-2) var(--e-3);
}

/* Mention « Projet réalisé » */
.projet-statut {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--c-texte-doux);
}

.projet-statut .icone {
  width: 1rem;
  height: 1rem;
  color: var(--c-succes);
  stroke-width: 2.5;
}

/* Fiche Besoin / Solution / Particularité */
.fiche {
  display: grid;
  gap: var(--e-2);
  margin-top: var(--e-1);
}

.fiche dt {
  font-size: var(--t-etiquette);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-bleu);
}

.fiche dd {
  font-size: var(--t-base);
  line-height: 1.5;
}

@media (min-width: 40rem) {
  .projets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--e-5);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .aide-glisser {
    display: none;
  }

  .projet {
    padding: var(--e-4);
  }

  .fiche {
    gap: var(--e-3);
  }
}

@media (min-width: 75rem) {
  .projets { grid-template-columns: repeat(3, 1fr); }
}

/* ----- Vitrines : les vraies captures d'écran, dans un cadre de navigateur
         et un cadre de téléphone posé en décalé par-dessus ----- */

.vitrine {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--r-moyen);
  background:
    radial-gradient(120% 90% at 85% 100%, rgba(108, 182, 255, .18), transparent 60%),
    var(--c-fond-profond);
}

/* Quadrillage discret en fond, comme dans le haut de page */
.vitrine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--c-filet) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-filet) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 60%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 60% 60%, #000, transparent 75%);
  pointer-events: none;
}

/* Fenêtre de navigateur (capture « ordinateur ») */
.vitrine-ordi {
  position: absolute;
  top: 7%;
  left: 5%;
  width: 80%;
  overflow: hidden;
  border: 1px solid rgba(108, 182, 255, .35);
  border-radius: 10px;
  background: var(--c-surface);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .85);
}

.vitrine-ordi .cadre-barre {
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
}

.vitrine-ordi .cadre-barre span {
  width: 0.375rem;
  height: 0.375rem;
}

/* Les captures gardent toujours le haut de la page (titre et boutons) */
.vitrine img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.vitrine-ordi img {
  aspect-ratio: 16 / 10;
}

/* Téléphone (capture « téléphone »), en bas à droite, par-dessus la fenêtre */
.vitrine-tel {
  position: absolute;
  right: 5%;
  bottom: 6%;
  width: 23%;
  padding: 3px;
  border: 1px solid rgba(108, 182, 255, .5);
  border-radius: 12px;
  background: #03070F;
  box-shadow: -14px 18px 36px -12px rgba(0, 0, 0, .9);
}

.vitrine-tel img {
  aspect-ratio: 9 / 16;
  border-radius: 9px;
}

/* Variante « téléphone seul » : le téléphone est centré et montre tout l'écran */
.vitrine--tel .vitrine-tel {
  top: 7%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: 26%;
  transform: translateX(-50%);
}

.vitrine--tel .vitrine-tel img {
  aspect-ratio: auto;
}

/* ----- Maquettes stylisées (projets sans capture : garage, stock) ----- */

.maquette {
  padding: var(--e-4);
  border-radius: var(--r-moyen);
  background: var(--c-fond-profond);
}

/* Variante sans cadre de navigateur : le contenu est centré */
.maquette--libre {
  display: grid;
  place-items: center;
  min-height: 13.5rem;
}

/* Cadre de navigateur */
.cadre--navigateur {
  overflow: hidden;
  border: 1.5px solid rgba(108, 182, 255, .4);
  border-radius: var(--r-moyen);
  background: var(--c-surface);
}

.cadre-barre {
  display: flex;
  gap: 0.3125rem;
  padding: 0.5rem 0.625rem;
  background: var(--c-surface-haute);
}

.cadre-barre span {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--c-bordure);
}

.cadre-ecran {
  padding: var(--e-3);
}

/* Cadre de tablette */
.cadre--tablette {
  width: 100%;
  max-width: 17rem;
  padding: 0.625rem;
  border: 1.5px solid rgba(108, 182, 255, .4);
  border-radius: var(--r-grand);
  background: var(--c-surface);
}

.cadre--tablette .cadre-ecran {
  border-radius: 12px;
  background: var(--c-fond);
}

/* Commandes sous une maquette interactive (interrupteur du garage) */
.maquette-commandes {
  display: grid;
  gap: var(--e-2);
  margin-top: var(--e-3);
}

/* ----- Projet 2 : le garage ----- */

.garage {
  display: grid;
  gap: var(--e-2);
}

.garage-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-2);
  min-height: 1.75rem;
}

.garage-titre {
  width: 34%;
  height: 0.5rem;
  border-radius: var(--r-pilule);
  background: rgba(108, 182, 255, .35);
}

.faux-bouton {
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-petit);
  background: var(--c-bleu);
  color: var(--c-encre);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.garage-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e-2);
}

.annonce {
  position: relative;
  display: grid;
  gap: 0.375rem;
  padding: var(--e-2);
  border-radius: 8px;
  background: var(--c-surface-haute);
}

.annonce-photo {
  width: 100%;
  height: auto;
  fill: rgba(108, 182, 255, .2);
  stroke: var(--c-bleu);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.annonce-photo circle {
  fill: var(--c-surface-haute);
}

.annonce-lignes {
  width: 70%;
  height: 0.375rem;
  border-radius: var(--r-pilule);
  background: rgba(168, 183, 207, .35);
}

.annonce-modifier {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--c-bleu);
  border-radius: var(--r-petit);
  background: var(--c-fond-profond);
  color: var(--c-bleu);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Interrupteur « Vue administration » */
.interrupteur {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.25rem;
  border: 0;
  border-radius: var(--r-petit);
  background: none;
  color: var(--c-texte);
  font-family: var(--police-texte);
  font-size: var(--t-petit);
  font-weight: 600;
  cursor: pointer;
}

.interrupteur-piste {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border: 1.5px solid var(--c-bordure);
  border-radius: var(--r-pilule);
  background: var(--c-surface-haute);
  transition: background-color var(--d-rapide), border-color var(--d-rapide);
}

.interrupteur-pouce {
  position: absolute;
  top: 50%;
  left: 0.1875rem;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  border-radius: 50%;
  background: var(--c-texte);
  transition: transform var(--d-rapide) var(--courbe-standard), background-color var(--d-rapide);
}

.interrupteur[aria-checked="true"] .interrupteur-piste {
  border-color: var(--c-bleu);
  background: var(--c-bleu);
}

.interrupteur[aria-checked="true"] .interrupteur-pouce {
  background: var(--c-encre);
  transform: translateX(1.1875rem);
}

/* ----- Projet 6 : le stock ----- */

.stock {
  display: grid;
  gap: 0.75rem;
}

.stock-titre {
  width: 40%;
  height: 0.5rem;
  border-radius: var(--r-pilule);
  background: rgba(108, 182, 255, .35);
}

.stock-ligne {
  display: grid;
  grid-template-columns: 4rem 1fr 1rem;
  align-items: center;
  gap: var(--e-2);
}

.stock-nom {
  height: 0.375rem;
  border-radius: var(--r-pilule);
  background: rgba(168, 183, 207, .4);
}

.stock-nom--court {
  width: 70%;
}

.jauge {
  height: 0.5rem;
  overflow: hidden;
  border-radius: var(--r-pilule);
  background: var(--c-surface-haute);
}

.jauge-niveau {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c-bleu);
}

.jauge-niveau--haut { width: 82%; }
.jauge-niveau--moyen { width: 56%; }
.jauge-niveau--plein { width: 70%; }

/* Jauge basse : signalée par une couleur ET par une icône */
.jauge-niveau--bas {
  width: 14%;
  background: var(--c-erreur);
}

.stock-ligne--alerte .icone {
  width: 1rem;
  height: 1rem;
  color: var(--c-erreur);
}


/* ==========================================================================
   13. MÉTHODE (FRISE)
   ========================================================================== */

.frise {
  position: relative;
  max-width: 48rem;
}

/* Le trait vertical : gris par défaut, rempli en bleu par .frise-progression.
   main.js règle --progression (de 0 à 1) ; sans JavaScript, le trait est plein. */
.frise-trait {
  position: absolute;
  top: 1.375rem;
  bottom: 1.5rem;
  left: 1.375rem;
  width: 2px;
  margin-left: -1px;
  background: var(--c-filet);
}

.frise-progression {
  width: 100%;
  height: 100%;
  background: var(--c-bleu);
  transform: scaleY(var(--progression, 1));
  transform-origin: top;
}

.frise-etapes {
  display: grid;
  gap: var(--e-5);
  list-style: none;
}

.etape {
  position: relative;
  display: grid;
  gap: var(--e-1);
  align-content: start;
  padding-left: 4.25rem;
}

.etape-numero {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--c-bleu);
  border-radius: 50%;
  background: var(--c-fond-profond);
  color: var(--c-bleu);
  font-family: var(--police-titres);
  font-size: 0.9375rem;
  font-weight: 700;
}

.etape h3 {
  padding-top: 0.5rem;
}

.etape p {
  font-size: var(--t-base);
  color: var(--c-texte-doux);
}

/* Fin de la frise : pastille orange reliée au bouton */
.frise-fin {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3rem;
  margin-top: var(--e-5);
  padding-left: 4.25rem;
}

.frise-fin::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.375rem;
  width: 2.875rem;
  height: 2px;
  margin-top: -1px;
  background: var(--c-orange);
}

.frise-pastille {
  position: absolute;
  top: 50%;
  left: 0.6875rem;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: -0.6875rem;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 5px var(--c-fond-profond);
}

/* À partir de 960 px : les quatre étapes côte à côte, reliées par un trait horizontal.
   Le trait se remplit de gauche à droite (scaleX) ; js/effets.js détecte cette orientation. */
@media (min-width: 60rem) {
  .frise {
    max-width: none;
  }

  .frise-trait {
    top: 1.375rem;
    right: 0;
    bottom: auto;
    left: 1.375rem;
    width: auto;
    height: 2px;
    margin: -1px 0 0;
  }

  .frise-progression {
    transform: scaleX(var(--progression, 1));
    transform-origin: left;
  }

  .frise-etapes {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--e-6);
  }

  .etape {
    padding-top: 4rem;
    padding-left: 0;
  }

  .etape h3 {
    padding-top: 0;
  }

  /* Le bouton se place sous les étapes, sans pastille ni trait de liaison */
  .frise-fin {
    margin-top: var(--e-6);
    padding-left: 0;
  }

  .frise-fin::before,
  .frise-pastille {
    display: none;
  }
}


/* ==========================================================================
   14. FORMULES
   ========================================================================== */

.formules {
  display: grid;
  gap: var(--e-5);
  list-style: none;
}

.formule {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--e-3);
}

/* Titre de la formule et étiquette « Sur devis » sur la même ligne */
.formule-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e-2) var(--e-3);
  width: 100%;
}

.formule-accroche {
  font-size: var(--t-base);
  color: var(--c-texte-doux);
}

.formule .liste-coches {
  width: 100%;
  gap: var(--e-2);
  margin-block: var(--e-1) var(--e-3);
  padding-top: var(--e-3);
  border-top: 1px solid var(--c-filet);
}

/* Le bouton reste en bas de la carte, quelle que soit la longueur de la liste */
.formule .bouton {
  width: 100%;
  margin-top: auto;
}

/* Sur téléphone : les formules défilent horizontalement, comme les réalisations.
   (Chaque carte contient un lien : au clavier, la touche Tab fait défiler la rangée.) */
@media (max-width: 39.99rem) {
  .formules {
    display: flex;
    gap: var(--e-4);
    margin-inline: -1.25rem;
    padding: var(--e-1) 1.25rem var(--e-4);
    scroll-padding-inline: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--c-filet) transparent;
  }

  .formules > li {
    flex: 0 0 min(80%, 19rem);
    scroll-snap-align: start;
  }
}

@media (min-width: 40rem) {
  .formules { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 75rem) {
  .formules { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   15. QUI EST DERRIÈRE
   ========================================================================== */

.a-propos {
  display: grid;
  gap: var(--e-5);
}

/* Emblème : le monogramme du logo, à la place d'une photo */
.a-propos-embleme {
  display: flex;
  align-items: center;
  gap: var(--e-4);
  padding: var(--e-4);
  border: 1px solid var(--c-filet);
  border-radius: var(--r-moyen);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(108, 182, 255, .16), transparent 60%),
    var(--c-surface);
  box-shadow: var(--o-carte);
}

.embleme-symbole {
  width: 3.5rem;
  height: 3.5rem;
}

.embleme-texte {
  display: grid;
  gap: var(--e-2);
}

.embleme-lieu {
  font-size: var(--t-petit);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-bleu);
}

.a-propos-texte {
  display: grid;
  gap: var(--e-4);
}

.a-propos-texte .chapeau {
  color: var(--c-texte);
}

.a-propos-texte p:not(.chapeau) {
  color: var(--c-texte-doux);
}

/* Grand écran : titre et emblème à gauche, texte à droite */
@media (min-width: 60rem) {
  .a-propos {
    grid-template-columns: 5fr 7fr;
    grid-template-rows: auto 1fr;
    gap: var(--e-6) var(--e-8);
  }

  .a-propos > h2 { grid-column: 1; grid-row: 1; }
  .a-propos-embleme { grid-column: 1; grid-row: 2; align-self: start; padding: var(--e-5); }
  .a-propos-texte { grid-column: 2; grid-row: 1 / span 2; }
  .embleme-symbole { width: 5rem; height: 5rem; }
}


/* ==========================================================================
   16. QUESTIONS FRÉQUENTES
   Balises natives <details> / <summary> : elles fonctionnent sans JavaScript.
   ========================================================================== */

.faq details {
  border-bottom: 1px solid var(--c-filet);
}

.faq details:first-child {
  border-top: 1px solid var(--c-filet);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  min-height: 2.75rem;
  padding-block: var(--e-4);
  list-style: none;
  font-family: var(--police-titres);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color var(--d-rapide);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--c-bleu);
}

.chevron {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--c-bleu);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--d-rapide) var(--courbe-standard);
}

/* Le chevron pivote quand la réponse est ouverte */
.faq details[open] .chevron {
  transform: rotate(180deg);
}

.faq details p {
  padding-bottom: var(--e-5);
  color: var(--c-texte-doux);
}


/* ==========================================================================
   17. CONTACT ET FORMULAIRE
   ========================================================================== */

.contact-colonnes {
  display: grid;
  gap: var(--e-6);
}

.formulaire {
  display: grid;
  gap: var(--e-5);
}

.form-mention,
.form-note {
  font-size: var(--t-petit);
  color: var(--c-texte-doux);
}

/* Résumé des erreurs, en tête de formulaire */
.form-resume {
  display: flex;
  align-items: flex-start;
  gap: var(--e-3);
  padding: var(--e-4);
  border: 2px solid var(--c-erreur);
  border-radius: var(--r-petit);
  background: rgba(255, 155, 143, .08);
  font-size: var(--t-base);
  font-weight: 600;
}

.form-resume .icone {
  margin-top: 0.125rem;
  color: var(--c-erreur);
}

/* Un champ = libellé + contrôle + aide + message d'erreur */
.champ {
  display: grid;
  gap: 0.375rem;
}

.champ label {
  font-size: var(--t-base);
  font-weight: 600;
}

.champ-controle {
  position: relative;
}

.champ input:not([type="checkbox"]),
.champ select,
.champ textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--c-bordure);
  border-radius: var(--r-petit);
  background: var(--c-surface-haute);
  color: var(--c-texte);
  font-family: var(--police-texte);
  font-size: 1rem;      /* 16 px minimum : évite le zoom automatique sur iPhone */
  line-height: 1.5;
  transition: border-color var(--d-rapide);
}

.champ textarea {
  min-height: 9rem;
  resize: vertical;
}

.champ select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
}

.champ input:not([type="checkbox"]):hover,
.champ select:hover,
.champ textarea:hover {
  border-color: var(--c-bleu);
}

/* Flèche de la liste déroulante */
.champ-fleche {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.625rem;
  fill: none;
  stroke: var(--c-texte);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.champ-aide {
  font-size: var(--t-petit);
  color: var(--c-texte-doux);
}

/* Lien « Lire la politique de confidentialité » : zone tactile d'au moins 44 px de haut */
.champ-aide a {
  display: inline-block;
  padding-block: 0.6875rem;
}

/* Erreur : toujours une icône + un texte, jamais la couleur seule */
.champ-erreur {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--c-erreur);
}

.champ-erreur .icone {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
}

.champ [aria-invalid="true"]:not([type="checkbox"]) {
  border-width: 2px;
  border-color: var(--c-erreur);
}

/* Coche verte quand le champ est correctement rempli (classe posée par main.js) */
.champ-coche {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--c-succes);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
}

.champ-controle--liste .champ-coche {
  right: 2.5rem;
}

.champ.est-valide .champ-coche {
  opacity: 1;
}

.champ.est-valide input:not([type="checkbox"]),
.champ.est-valide textarea {
  padding-right: 2.75rem;
}

.champ.est-valide select {
  padding-right: 4.25rem;
}

/* Case à cocher du consentement */
.case {
  display: flex;
  align-items: flex-start;
  gap: var(--e-3);
}

.case input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.125rem 0 0;
  accent-color: var(--c-bleu);
  cursor: pointer;
}

.case label {
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.champ--case .champ-aide,
.champ--case .champ-erreur {
  padding-left: 2.25rem;
}

/* Colonne des coordonnées */
.coordonnees dl {
  display: grid;
  gap: var(--e-5);
}

.coordonnee {
  display: grid;
  gap: var(--e-1);
  padding-bottom: var(--e-5);
  border-bottom: 1px solid var(--c-filet);
}

.coordonnee dt {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  font-size: var(--t-etiquette);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-bleu);
}

.coordonnee dd {
  font-size: var(--t-corps);
}

.coordonnee dd a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--c-texte);
  font-family: var(--police-titres);
  font-size: var(--t-h3);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.coordonnee dd a:hover {
  color: var(--c-bleu);
}

@media (min-width: 40rem) {
  .formulaire { padding: var(--e-6); }
}

@media (min-width: 60rem) {
  .contact-colonnes {
    grid-template-columns: 7fr 4fr;
    align-items: start;
    gap: var(--e-7);
  }
}


/* ==========================================================================
   18. PIED DE PAGE
   ========================================================================== */

.pied {
  padding-block: var(--e-8) var(--e-6);
  border-top: 1px solid var(--c-filet);
  background: var(--c-fond-profond);
  color: var(--c-texte-doux);
  font-size: var(--t-base);
}

/* Sur téléphone : deux colonnes (les deux menus côte à côte), la marque et le contact en pleine largeur */
.pied-colonnes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;   /* le menu « Informations » remonte à côté de « Navigation » */
  gap: var(--e-5) var(--e-4);
}

.pied-marque,
.pied-contact {
  grid-column: 1 / -1;
}

.pied-marque {
  display: grid;
  gap: var(--e-3);
  align-content: start;
}

.pied-titre {
  margin-bottom: var(--e-2);
  font-family: var(--police-texte);
  font-size: var(--t-etiquette);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-texte);
}

.pied ul {
  list-style: none;
}

.pied li {
  padding-block: 0.125rem;
}

/* Liens du pied de page : zone tactile d'au moins 44 px de haut */
.pied a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--c-texte-doux);
  text-decoration-color: transparent;
  transition: color var(--d-rapide), text-decoration-color var(--d-rapide);
}

.pied a:hover {
  color: var(--c-texte);
  text-decoration-color: currentColor;
}

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-2) var(--e-5);
  margin-top: var(--e-6);
  padding-top: var(--e-5);
  border-top: 1px solid var(--c-filet);
  font-size: var(--t-petit);
}

.pied-haut {
  margin-left: auto;
  text-decoration-color: currentColor !important;
}

@media (min-width: 40rem) {
  .pied-colonnes { gap: var(--e-6); }
  .pied-marque,
  .pied-contact { grid-column: auto; }
}

@media (min-width: 60rem) {
  .pied-colonnes { grid-template-columns: 2fr 1fr 1.5fr 1.1fr; gap: var(--e-7); }
}


/* ==========================================================================
   19. BARRE FIXE SUR TÉLÉPHONE
   Masquée par défaut ; main.js ajoute .est-affichee quand les boutons du
   haut de page ne sont plus visibles (et la retire devant le formulaire).
   ========================================================================== */

.barre-mobile {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--e-3);
  /* env(safe-area-inset-bottom) : laisse la place de la barre système des téléphones récents */
  padding: var(--e-3) 1.25rem calc(var(--e-3) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-filet);
  background: var(--c-fond-profond);
  box-shadow: 0 -16px 32px -16px rgba(0, 0, 0, .8);
  visibility: hidden;
  transform: translateY(100%);
}

.barre-mobile.est-affichee {
  visibility: visible;
  transform: none;
}

.barre-mobile .bouton {
  padding-inline: 0.875rem;
}

/* Sur téléphone, le pied de page laisse la place de la barre fixe */
.js .page-accueil .pied {
  padding-bottom: calc(var(--e-6) + 4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 60rem) {
  .barre-mobile {
    display: none;
  }

  .js .page-accueil .pied {
    padding-bottom: var(--e-6);
  }
}

/* Sous 960 px, la barre fixe peut recouvrir le bas de l'écran : on réserve sa hauteur, pour
   qu'un élément atteint au clavier (touche Tab) ne se retrouve pas caché derrière elle. */
@media (max-width: 59.99rem) {
  html {
    scroll-padding-bottom: 6.5rem;
  }
}

/* Écrans très peu hauts (téléphone tenu à l'horizontale, page fortement zoomée) :
   l'en-tête collant et la barre fixe prendraient plus de la moitié de l'écran, et le menu
   ouvert ne tiendrait plus en entier. L'en-tête défile donc avec la page, comme un bloc
   ordinaire, et la barre fixe est retirée (les boutons de contact restent dans la page).
   Ce bloc doit rester à la fin de la partie 19 : il prend le dessus sur les règles précédentes. */
@media (max-height: 30rem) {
  html {
    scroll-padding-top: 0;
    scroll-padding-bottom: 0;
  }

  .entete,
  .js .entete {
    position: relative;
  }

  .barre-mobile {
    display: none;
  }

  .js .page-accueil .pied {
    padding-bottom: var(--e-6);
  }
}


/* ==========================================================================
   20. PAGES ANNEXES
   ========================================================================== */

/* Mentions légales et politique de confidentialité : texte long, colonne étroite */
.prose {
  display: grid;
  gap: var(--e-4);
  max-width: 46rem;
}

.prose h1 {
  font-size: var(--t-h2);
  line-height: 1.15;
  margin-bottom: var(--e-2);
}

.prose h2 {
  margin-top: var(--e-5);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.prose ul {
  display: grid;
  gap: var(--e-2);
  padding-left: 1.25rem;
}

.prose p,
.prose li {
  color: var(--c-texte-doux);
}

.prose strong {
  color: var(--c-texte);
  font-weight: 600;
}

/* Informations que le responsable du site doit encore renseigner */
.a-completer {
  padding: 0.0625rem 0.375rem;
  border: 1px dashed var(--c-erreur);
  border-radius: var(--r-petit);
  background: rgba(255, 155, 143, .08);
  color: var(--c-erreur);
  font-weight: 600;
}

/* Pages « merci » et « page introuvable » : un message centré */
.message-page {
  display: grid;
  gap: var(--e-5);
  justify-items: start;
  max-width: 42rem;
  padding-block: clamp(2rem, 8vw, 5rem);
}

.message-page .surtitre {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
}

.message-page h1 {
  font-size: var(--t-h2);
  line-height: 1.15;
}

.message-page p:not(.surtitre) {
  color: var(--c-texte-doux);
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-4);
}


/* ==========================================================================
   21. ANIMATIONS
   Tout ce bloc est ignoré si le visiteur a demandé « moins d'animations »
   dans les réglages de son appareil (prefers-reduced-motion).
   Seules l'opacité, la position (transform) et le tracé (stroke-dashoffset)
   sont animés : ce sont les animations les plus légères pour un téléphone.
   ========================================================================== */

@keyframes tracer {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes apparaitre {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes estomper {
  from { opacity: 1; }
  to { opacity: 0.35; }
}

@keyframes bouton-apparait {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes halo {
  0% { opacity: 0; transform: scale(.92); }
  40% { opacity: 0.45; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes eclairer {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@keyframes trait-legende {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes monter {
  from { opacity: 0; transform: translateY(16px); }
}

@media (prefers-reduced-motion: no-preference) {

  /* Défilement doux quand on clique sur un lien du menu */
  html {
    scroll-behavior: smooth;
  }

  /* ----- Boutons : léger soulèvement et flèche qui glisse ----- */
  .bouton--action:hover {
    transform: translateY(-2px);
  }

  .bouton--action:active {
    transform: none;
  }

  .bouton:hover .fleche {
    transform: translateX(4px);
  }

  /* ----- Schéma du hero ----- */

  /* Avant le lancement (seulement si JavaScript est actif) : rien n'est encore dessiné */
  .js .plan:not(.est-lance) .trait {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .js .plan:not(.est-lance) .aplat,
  .js .plan:not(.est-lance) .plan-plein {
    opacity: 0;
  }

  .js .plan:not(.est-lance) .plan-traits {
    opacity: 1;
  }

  .js .plan:not(.est-lance) + .plan-legende li {
    opacity: 0.6;
  }

  .js .plan:not(.est-lance) + .plan-legende li::before {
    transform: scaleY(0);
  }

  /* Phase 1 (0 à 1,6 s) — « La maquette » : les traits se dessinent un par un */
  .plan.est-lance .trait {
    stroke-dasharray: 1;
    animation-name: tracer;
    animation-duration: var(--d-lent);
    animation-timing-function: var(--courbe-douce);
    animation-fill-mode: both;
  }

  .t1 { animation-delay: 0ms; }
  .t2 { animation-delay: 70ms; }
  .t3 { animation-delay: 140ms; }
  .t4 { animation-delay: 210ms; }
  .t5 { animation-delay: 280ms; }
  .t6 { animation-delay: 350ms; }
  .t7 { animation-delay: 420ms; }
  .t8 { animation-delay: 490ms; }
  .t9 { animation-delay: 560ms; }
  .t10 { animation-delay: 630ms; }
  .t11 { animation-delay: 700ms; }
  .t12 { animation-delay: 770ms; }
  .t13 { animation-delay: 840ms; }
  .t14 { animation-delay: 910ms; }

  /* Phase 2 (1,6 à 2,5 s) — « Le site » : les blocs se remplissent, les traits s'estompent */
  .plan.est-lance .aplat {
    animation-name: apparaitre;
    animation-duration: 450ms;
    animation-timing-function: var(--courbe-sortie);
    animation-fill-mode: both;
  }

  .a1 { animation-delay: 1600ms; }
  .a2 { animation-delay: 1660ms; }
  .a3 { animation-delay: 1720ms; }
  .a4 { animation-delay: 1780ms; }
  .a5 { animation-delay: 1840ms; }
  .a6 { animation-delay: 1900ms; }
  .a7 { animation-delay: 1960ms; }
  .a8 { animation-delay: 2020ms; }
  .a9 { animation-delay: 2080ms; }
  .a10 { animation-delay: 2140ms; }

  .plan.est-lance .plan-traits {
    animation: estomper 450ms linear 1600ms both;
  }

  /* Phase 3 (2,6 à 3,2 s) — « Le bouton de contact » : orange, avec une seule pulsation */
  .plan-plein,
  .plan-halo {
    transform-box: fill-box;
    transform-origin: center;
  }

  .plan.est-lance .plan-plein {
    animation: bouton-apparait 400ms var(--courbe-sortie) 2600ms both;
  }

  .plan.est-lance .plan-halo {
    animation: halo 600ms ease-out 2600ms both;
  }

  /* La légende s'éclaire aux mêmes moments : 0 s, 1,6 s et 2,6 s */
  .plan.est-lance + .plan-legende li {
    animation: eclairer 500ms var(--courbe-sortie) both;
  }

  .plan.est-lance + .plan-legende li::before {
    animation: trait-legende 500ms var(--courbe-sortie) both;
  }

  .plan.est-lance + .plan-legende li:nth-child(2),
  .plan.est-lance + .plan-legende li:nth-child(2)::before {
    animation-delay: 1600ms;
  }

  .plan.est-lance + .plan-legende li:nth-child(3),
  .plan.est-lance + .plan-legende li:nth-child(3)::before {
    animation-delay: 2600ms;
  }

  /* ----- Apparition au défilement -----
     Le contenu n'est masqué que si JavaScript est actif (classe .js sur <html>) ;
     main.js ajoute .est-visible quand l'élément entre dans l'écran. */
  .js [data-apparition] {
    opacity: 0;
  }

  .js [data-apparition].est-visible {
    opacity: 1;
    animation: monter var(--d-moyen) var(--courbe-sortie) backwards;
  }

  /* Léger décalage entre les cartes d'une même rangée */
  .js .engagements > :nth-child(2),
  .js .services > :nth-child(even),
  .js .projets > :nth-child(3n + 2),
  .js .formules > :nth-child(2) {
    animation-delay: 80ms;
  }

  .js .engagements > :nth-child(3),
  .js .projets > :nth-child(3n),
  .js .formules > :nth-child(3) {
    animation-delay: 160ms;
  }

  .js .engagements > :nth-child(4),
  .js .formules > :nth-child(4) {
    animation-delay: 240ms;
  }

  /* ----- Icônes des services : le trait se retrace au survol (et au focus clavier) ----- */
  .carte-service:hover .icone-trait,
  .carte-service:focus-within .icone-trait {
    stroke-dasharray: 1;
    animation: tracer 600ms var(--courbe-douce) both;
  }

  /* ----- Réalisations ----- */

  /* Les éléments d'administration du garage apparaissent en fondu */
  [data-admin] {
    animation: apparaitre var(--d-moyen) var(--courbe-sortie);
  }

  /* Vitrines : au survol de la carte, la capture avance très légèrement et le téléphone se soulève */
  .vitrine-ordi img,
  .vitrine-tel {
    transition: transform var(--d-lent) var(--courbe-sortie);
  }

  .projet:hover .vitrine-ordi img {
    transform: scale(1.03);
  }

  .projet:hover .vitrine-tel {
    transform: translate3d(0, -8px, 0);
  }

  .projet:hover .vitrine--tel .vitrine-tel {
    transform: translate3d(-50%, -8px, 0);
  }

  /* Rangée de projets sur téléphone : défilement doux quand on la parcourt au clavier */
  .projets {
    scroll-behavior: smooth;
  }

  /* ----- Frise de la méthode : le trait bleu se remplit en douceur ----- */
  .frise-progression {
    transition: transform var(--d-lent) var(--courbe-douce);
  }

  /* ----- Formulaire : la coche se trace ----- */
  .champ.est-valide .champ-coche path {
    stroke-dasharray: 1;
    animation: tracer var(--d-moyen) var(--courbe-douce) both;
  }

  /* ----- Barre fixe sur téléphone : elle glisse depuis le bas ----- */
  .barre-mobile {
    transition: transform var(--d-moyen) var(--courbe-sortie), visibility 0s linear var(--d-moyen);
  }

  .barre-mobile.est-affichee {
    transition-delay: 0s;
  }
}

/* Mouvement réduit : aucune animation, le schéma est affiché fini, le halo reste fixe */
@media (prefers-reduced-motion: reduce) {
  .plan *,
  .plan-legende li,
  .plan-legende li::before {
    animation: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
