/* =====================================================================
   Dexter Lab — feuille de style unique du site
   ---------------------------------------------------------------------
   Direction : noir et blanc presque exclusifs, un seul accent rouge
   très rare, filets fins, petites étiquettes en monospace, motif de
   points. Grands titres serrés, sections pleine largeur qui alternent
   blanc, gris très clair et noir.

   Aucune police ni ressource externe : uniquement les polices du
   système du visiteur.

   Plan du fichier
     1. Variables (couleurs, polices, tailles, espacements)
     2. Base (réglages généraux, liens, focus clavier)
     3. Typographie (titres, étiquettes, chapeau)
     4. Boutons
     5. En-tête et navigation
     6. Sections et fonds
     7. Accueil : ouverture
     8. Accueil : méthode, offres, atelier
     9. Services : fiches, options, questions
    10. À propos : parcours
    11. Contact : coordonnées et formulaire
    12. Mentions légales
    13. Appel final
    14. Pied de page
    15. Écrans plus larges (tablette, ordinateur)
    16. Mouvement réduit
   ===================================================================== */


/* =====================================================================
   1. Variables
   Modifier une valeur ici la change partout sur le site.
   ===================================================================== */

:root {
  /* Couleurs. Contrastes vérifiés (norme WCAG AA = 4,5:1 pour le texte) :
     --encre sur blanc 16,8:1 ; --texte-second sur blanc 6,5:1,
     sur gris 5,9:1 ; --texte-second-sombre sur noir 8,2:1 ;
     blanc sur --rouge 5,2:1 ; --rouge sur blanc 5,2:1, sur noir 4,1:1. */
  --blanc: #ffffff;
  --gris: #f5f5f7;               /* fond des sections grises et des cartes */
  --noir: #000000;               /* fond des sections noires */
  --encre: #1d1d1f;              /* texte principal */
  --texte-second: #5e5e63;       /* texte secondaire sur fond clair */
  --texte-second-sombre: #a1a1a6;/* texte secondaire sur fond noir */
  --rouge: #d71921;              /* l'accent : un point, un état actif, un détail */
  --bordure-champ: #86868b;      /* contour des champs (3,6:1 sur blanc) */
  --survol-sombre: #3a3a3c;      /* bouton noir survolé */
  --filet: rgba(0, 0, 0, 0.12);  /* filets fins sur fond clair */
  --filet-sombre: rgba(255, 255, 255, 0.16); /* filets fins sur fond noir */
  --point: #c7c7cc;              /* points de la trame décorative, fond clair */
  --point-sombre: #3a3a3c;       /* points de la trame décorative, fond noir */

  /* Polices du système : rien n'est téléchargé. */
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Échelle des titres. clamp(minimum, valeur fluide, maximum) :
     la taille grandit avec la largeur de l'écran, entre deux bornes. */
  --taille-h1-accueil: clamp(2.5rem, 1.25rem + 5.5vw, 5rem);    /* 40 → 80 px */
  --taille-h1: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);           /* 36 → 68 px */
  --taille-h2: clamp(1.75rem, 1.25rem + 2.2vw, 3rem);           /* 28 → 48 px */
  --taille-h3: 1.1875rem;                                       /* 19 px */
  --taille-chapeau: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);    /* 18 → 22 px */
  --taille-texte: 1.0625rem;                                    /* 17 px */
  --taille-petit: 0.875rem;                                     /* 14 px */
  --taille-etiquette: 0.75rem;                                  /* 12 px */

  /* Espacements, tous multiples de 4 px. */
  --gouttiere: clamp(1rem, 5vw, 2.5rem);                 /* marge gauche/droite : 16 → 40 px */
  --espace-section: clamp(4rem, 2.5rem + 6vw, 7.5rem);   /* haut/bas des sections : 64 → 120 px */
  --largeur: 67.5rem;                                    /* 1080 px de contenu au maximum */
  --mesure: 40rem;                                       /* largeur max d'un paragraphe */

  /* Arrondis. */
  --rayon-carte: 24px;
  --rayon-champ: 12px;
  --rayon-etiquette: 8px;
  --rayon-pilule: 999px;

  /* Mouvement : uniquement des changements de couleur, courts. */
  --transition: 150ms ease-out;
}


/* =====================================================================
   2. Base
   ===================================================================== */

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--taille-texte);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--encre);
}

img {
  max-width: 100%;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

/* Liens dans le texte : couleur du texte, soulignés. */
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Focus clavier : un anneau rouge bien visible sur tous les fonds. */
:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
}

/* Texte sélectionné à la souris. */
::selection {
  background: var(--encre);
  color: var(--blanc);
}

/* Conteneur centré qui limite la largeur du contenu. */
.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding-inline: var(--gouttiere);
}

/* Lien d'évitement : caché jusqu'à ce qu'on y arrive au clavier. */
.saut {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--rayon-pilule);
  background: var(--encre);
  color: var(--blanc);
  text-decoration: none;
}

.saut:focus {
  top: 0.75rem;
}


/* =====================================================================
   3. Typographie
   ===================================================================== */

h1,
h2,
h3 {
  margin: 0 0 1.25rem;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--taille-h1);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--taille-h2);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--taille-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

/* Petite étiquette en monospace au-dessus d'un titre.
   Seul élément du site en capitales espacées, pour qu'il reste rare. */
.etiquette {
  margin: 0 0 1rem;
  font-family: var(--police-mono);
  font-size: var(--taille-etiquette);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-second);
}

/* Phrase d'introduction sous un grand titre. */
.chapeau {
  max-width: var(--mesure);
  font-size: var(--taille-chapeau);
  line-height: 1.45;
  color: var(--texte-second);
}

/* Rangée de boutons. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}


/* =====================================================================
   4. Boutons
   Pilule noire par défaut, pilule à contour pour l'action secondaire,
   pilule blanche sur les fonds noirs. 48 px de haut (cible tactile).
   ===================================================================== */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid var(--encre);
  border-radius: var(--rayon-pilule);
  background: var(--encre);
  color: var(--blanc);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.bouton:hover {
  background: var(--survol-sombre);
  border-color: var(--survol-sombre);
  color: var(--blanc);
}

.bouton.secondaire {
  background: transparent;
  color: var(--encre);
}

.bouton.secondaire:hover {
  background: var(--encre);
  color: var(--blanc);
}

/* Pendant l'envoi du formulaire, le script désactive le bouton. */
.bouton:disabled {
  opacity: 0.5;
  cursor: progress;
}


/* =====================================================================
   5. En-tête et navigation
   Sur téléphone : la marque et le bouton « Demander un devis » sur la
   première ligne, les trois liens sur la seconde.
   ===================================================================== */

.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--filet);
}

.entete .conteneur {
  position: relative; /* repère pour placer le bouton sur téléphone */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

/* Le logotype : « DEXTER/LAB » en monospace, barre oblique rouge. */
.marque {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--police-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
}

.marque span {
  color: var(--rouge);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 0.5rem;
  border-top: 1px solid var(--filet);
}

.nav a:not(.bouton) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 0.9375rem;
  color: var(--texte-second);
  text-decoration: none;
}

.nav a:not(.bouton):hover {
  color: var(--encre);
}

/* Page en cours : texte noir et un point rouge dessous. */
.nav a[aria-current="page"]:not(.bouton) {
  color: var(--encre);
}

.nav a[aria-current="page"]:not(.bouton)::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--rouge);
}

/* Bouton de la navigation, plus compact mais 44 px de haut. */
.nav .bouton {
  position: absolute;
  top: 0.5rem;
  right: var(--gouttiere);
  min-height: 44px;
  margin-top: 2px;
  padding: 0 1.125rem;
  font-size: var(--taille-petit);
}

/* Sur la page Contact, le bouton porte lui aussi le point rouge. */
.nav .bouton[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rouge);
}


/* =====================================================================
   6. Sections et fonds
   Chaque section prend toute la largeur et choisit son fond :
   .fond-blanc, .fond-gris ; les sections noires sont .appel et le pied.
   ===================================================================== */

.section {
  padding-block: var(--espace-section);
}

.fond-blanc {
  background: var(--blanc);
}

.fond-gris {
  background: var(--gris);
}

.section p {
  max-width: var(--mesure);
}

.section > .conteneur > h2 {
  max-width: 22ch;
}

/* Contenu centré (titre de section au-dessus d'une grille). */
.centre {
  text-align: center;
}

.centre > h2,
.centre > p {
  margin-inline: auto;
}

.centre > .actions {
  justify-content: center;
}

/* Deux colonnes sur grand écran, une seule sur téléphone. */
.deux-colonnes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Colonne qui ne contient qu'un titre : pas de marge en plus de l'écart. */
.deux-colonnes > div > h2:last-child {
  margin-bottom: 0;
}

/* Bandeau de titre en haut des pages intérieures. */
.intro-page {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background: var(--blanc);
}

.intro-page h1 {
  max-width: 16ch;
}

.intro-page p {
  max-width: var(--mesure);
  color: var(--texte-second);
}

/* Trame de points réutilisable (décor uniquement, jamais sous du texte
   à lire). Elle est posée sur un pseudo-élément ::before du bloc. */
.ouverture::before,
.appel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--point) 1.25px, transparent 1.75px);
  background-size: 16px 16px;
  background-position: center top;
}


/* =====================================================================
   7. Accueil : ouverture
   Phrases courtes centrées sur fond blanc, trame de points qui
   apparaît vers le bas, puis la fiche « en bref » en gris.
   ===================================================================== */

.ouverture {
  position: relative;
  padding-block: clamp(4rem, 2rem + 8vw, 8rem) clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--blanc);
  text-align: center;
}

/* Les points ne montent pas jusqu'au titre : un masque les efface en haut. */
.ouverture::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 35%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 35%, #000 100%);
}

.ouverture .conteneur {
  position: relative;
  z-index: 1;
}

.ouverture .fond {
  max-width: 48rem;
  margin: 0 auto;
}

/* Le point rouge devant l'étiquette d'ouverture : l'accent de la page. */
.ouverture .etiquette {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.ouverture .etiquette::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rouge);
}

.ouverture h1 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: var(--taille-h1-accueil);
  line-height: 1.04;
}

.ouverture .chapeau {
  max-width: 32rem;
  margin-inline: auto;
}

.ouverture .actions {
  justify-content: center;
}

/* Fiche « en bref » : quatre cases séparées par des filets fins. */
.cartouche {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 56rem;
  margin: clamp(3rem, 2rem + 4vw, 5rem) auto 0;
  padding: 0;
  list-style: none;
  border-radius: var(--rayon-carte);
  background: var(--gris);
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.35;
  font-weight: 500;
}

.cartouche li {
  padding: 1.25rem 1.25rem 1.5rem;
}

.cartouche li:nth-child(odd) {
  border-right: 1px solid var(--filet);
}

.cartouche li:nth-child(-n + 2) {
  border-bottom: 1px solid var(--filet);
}

.cartouche b {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--police-mono);
  font-size: var(--taille-etiquette);
  font-weight: 400;
  color: var(--texte-second);
}


/* =====================================================================
   8. Accueil : méthode, offres, atelier
   ===================================================================== */

/* Liste numérotée 01, 02, 03 séparée par des filets. */
.reperes {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: repere;
}

.reperes > li {
  position: relative;
  padding: 1.5rem 0 1.5rem 3rem;
  border-top: 1px solid var(--filet);
  counter-increment: repere;
}

.reperes > li:last-child {
  border-bottom: 1px solid var(--filet);
}

.reperes > li::before {
  content: counter(repere, decimal-leading-zero);
  position: absolute;
  top: 1.75rem;
  left: 0;
  font-family: var(--police-mono);
  font-size: 0.8125rem;
  color: var(--texte-second);
}

.reperes p {
  margin: 0;
  color: var(--texte-second);
}

/* Grille des quatre offres : cartes grises aux coins arrondis. */
.offres {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
  text-align: left;
}

.offre {
  padding: 1.75rem 1.5rem 2rem;
  border-radius: var(--rayon-carte);
  background: var(--gris);
}

.offre p {
  margin: 0;
  color: var(--texte-second);
}

/* Grand chiffre décoratif 01 à 04 (masqué aux lecteurs d'écran).
   Version de secours : chiffre plein, gris clair. */
.offre .ref {
  display: block;
  margin-bottom: 2rem;
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--point);
}

/* Si le navigateur sait remplir du texte avec un fond, le chiffre est
   dessiné en points, comme un afficheur à matrice de points. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .offre .ref,
  .logotype {
    background-image: radial-gradient(circle closest-side, currentColor 72%, transparent 80%);
    background-size: max(4px, 0.07em) max(4px, 0.07em); /* jamais moins de 4 px entre deux points */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .offre .ref {
    color: var(--encre);
  }
}

/* Procédés de l'atelier : petites étiquettes monospace. */
.procedes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.procedes li {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-etiquette);
  background: var(--blanc);
  font-family: var(--police-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.fond-blanc .procedes li {
  background: var(--gris);
  border-color: transparent;
}

/* Remarque en bas de bloc, séparée par un filet. */
.note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
  font-size: 0.9375rem;
  color: var(--texte-second);
}


/* =====================================================================
   9. Services : fiches, options, questions
   ===================================================================== */

/* Une fiche par service : carte blanche sur fond gris. */
.fiche {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: var(--rayon-carte);
  background: var(--blanc);
  scroll-margin-top: 1.5rem; /* les liens #cadrage, #prototype… */
}

.fiche + .fiche {
  margin-top: 1rem;
}

.fiche .ref {
  margin: 0;
  font-family: var(--police-mono);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fiche .ref small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--texte-second);
}

.fiche h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  margin-bottom: 1rem;
}

.fiche .sous-titre {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--police-mono);
  font-size: 0.8125rem;
  color: var(--texte-second);
}

.fiche ul,
.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.fiche li,
.prose li {
  margin-bottom: 0.375rem;
}

.fiche li::marker,
.prose li::marker {
  color: var(--texte-second);
}

/* Questions fréquentes : lignes dépliables séparées par des filets. */
.questions details {
  border-top: 1px solid var(--filet);
}

.questions details:last-child {
  border-bottom: 1px solid var(--filet);
}

.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.75rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

/* Signe « + » dessiné en CSS, qui devient « − » quand c'est ouvert. */
.questions summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
}

.questions details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat;
}

.questions details p {
  margin: 0 0 1.5rem;
  padding-right: 2rem;
  color: var(--texte-second);
}


/* =====================================================================
   10. À propos : parcours
   ===================================================================== */

.parcours {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.parcours li {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--filet);
}

.parcours li:last-child {
  border-bottom: 1px solid var(--filet);
}

.parcours .quoi {
  font-family: var(--police-mono);
  font-size: 0.8125rem;
  color: var(--texte-second);
}

.parcours p {
  margin: 0;
  color: var(--texte-second);
}


/* =====================================================================
   11. Contact : coordonnées et formulaire
   ===================================================================== */

.contact h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin-bottom: 0.75rem;
}

/* Coordonnées directes, en monospace, séparées par des filets. */
.contact-direct {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--police-mono);
  font-size: 0.9375rem;
}

.contact-direct li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--filet);
}

.contact-direct li:last-child {
  border-bottom: 1px solid var(--filet);
}

.contact-direct b {
  display: block;
  font-size: var(--taille-etiquette);
  font-weight: 400;
  color: var(--texte-second);
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

/* Le formulaire : carte blanche, une colonne sur téléphone. */
.formulaire {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--rayon-carte);
  background: var(--blanc);
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.champ.large {
  grid-column: 1 / -1;
}

.champ label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.champ .aide {
  font-weight: 400;
  color: var(--texte-second);
}

/* 16 px minimum dans les champs : en dessous, l'iPhone zoome la page. */
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--bordure-champ);
  border-radius: var(--rayon-champ);
  background-color: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--transition);
}

.champ input:hover,
.champ select:hover,
.champ textarea:hover {
  border-color: var(--encre);
}

.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  border-color: var(--encre);
  outline-offset: 2px;
}

/* Champ mal rempli, signalé seulement après que le visiteur l'a touché. */
.champ input:user-invalid,
.champ textarea:user-invalid {
  border-color: var(--rouge);
}

/* Liste déroulante : flèche dessinée en CSS. */
.champ select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--encre) 50%),
    linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

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

.formulaire .bas {
  grid-column: 1 / -1;
}

.formulaire .bas .bouton {
  width: 100%;
}

.formulaire .bas p {
  margin: 1rem 0 0;
  font-size: var(--taille-petit);
  color: var(--texte-second);
}

.formulaire .bas p a {
  color: var(--encre);
}

/* Message affiché par js/formulaire.js après l'envoi. */
.etat-envoi {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-champ);
  background: var(--gris);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.etat-envoi[hidden] {
  display: none;
}

/* Champ piège anti-robot : sorti de l'écran plutôt que masqué par
   display:none, que certains robots savent repérer. */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* =====================================================================
   12. Mentions légales
   ===================================================================== */

.prose {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: var(--rayon-carte);
  background: var(--blanc);
}

.prose h2 {
  margin-top: 3rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.prose a {
  overflow-wrap: anywhere;
}

/* Information manquante avant la mise en ligne : volontairement criarde. */
.a-completer {
  display: inline-block;
  margin: 0.25rem 0;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: var(--rouge);
  color: var(--blanc);
  font-family: var(--police-mono);
  font-size: var(--taille-petit);
  font-weight: 600;
  outline: 2px dashed var(--rouge);
  outline-offset: 3px;
}


/* =====================================================================
   13. Appel final (section noire en bas des pages)
   ===================================================================== */

.appel {
  position: relative;
  padding-block: clamp(5rem, 3rem + 8vw, 9rem);
  background: var(--noir);
  color: var(--blanc);
  text-align: center;
}

/* Points gris foncé sur les bords, effacés au centre derrière le texte. */
.appel::before {
  background-image: radial-gradient(circle, var(--point-sombre) 1.25px, transparent 1.75px);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 35%, #000 85%);
  mask-image: radial-gradient(ellipse at center, transparent 35%, #000 85%);
}

.appel .conteneur {
  position: relative;
  z-index: 1;
}

.appel h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.appel p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--texte-second-sombre);
}

.appel .actions {
  justify-content: center;
}

.appel .bouton {
  border-color: var(--blanc);
  background: var(--blanc);
  color: var(--encre);
}

.appel .bouton:hover {
  border-color: #d2d2d7;
  background: #d2d2d7;
}


/* =====================================================================
   14. Pied de page (noir, identique sur les cinq pages)
   ===================================================================== */

.pied {
  overflow: hidden; /* le grand logotype ne doit jamais élargir la page */
  padding-top: 3.5rem;
  border-top: 1px solid var(--filet-sombre);
  background: var(--noir);
  color: var(--texte-second-sombre);
  font-size: var(--taille-petit);
}

.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.pied .marque {
  min-height: 44px;
  color: var(--blanc);
}

.pied p {
  margin: 0;
}

.pied ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--texte-second-sombre);
  text-decoration: none;
}

.pied ul a:hover {
  color: var(--blanc);
  text-decoration: underline;
}

/* Grand « DEXTER/LAB » en points, purement décoratif (aria-hidden).
   Sur téléphone, il passe sur deux lignes pour garder des lettres
   assez grosses : sinon les points deviennent illisibles. */
.logotype {
  margin-top: 3rem;
  padding-bottom: 1.5rem;
  font-size: 19vw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--point-sombre);
  user-select: none;
}

.logotype span {
  display: block;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .logotype {
    color: #636366; /* couleur des points, plus claire que le fond noir */
  }
}


/* =====================================================================
   15. Écrans plus larges
   ===================================================================== */

/* À partir de 640 px (grand téléphone en paysage, tablette). */
@media (min-width: 40rem) {
  .entete .conteneur {
    flex-wrap: nowrap;
    min-height: 64px;
    padding-top: 0;
  }

  .nav {
    width: auto;
    gap: 1.75rem;
    margin-top: 0;
    border-top: 0;
  }

  .nav .bouton {
    position: static;
    margin-top: 0;
  }

  .cartouche {
    grid-template-columns: repeat(4, 1fr);
  }

  .cartouche li {
    padding: 1.5rem 1.5rem 1.75rem;
    border-right: 1px solid var(--filet);
  }

  .cartouche li:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .cartouche li:last-child {
    border-right: 0;
  }

  .offres {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .offre {
    padding: 2.5rem 2.25rem;
  }

  .formulaire {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
    padding: 2.5rem;
  }

  .formulaire .bas .bouton {
    width: auto;
  }

  .logotype {
    font-size: min(12.5vw, 11rem);
  }

  .logotype span {
    display: inline;
  }

  .prose {
    padding: 3.5rem 4rem;
  }
}

/* À partir de 768 px. */
@media (min-width: 48rem) {
  .fiche {
    grid-template-columns: 10rem 1fr;
    gap: 1rem 3rem;
    padding: 3rem;
  }

  .parcours li {
    grid-template-columns: 12rem 1fr;
    gap: 0.5rem 3rem;
    padding: 2rem 0;
  }

  .parcours .quoi {
    padding-top: 0.25rem;
  }
}

/* À partir de 960 px : les blocs à deux colonnes se mettent côte à côte. */
@media (min-width: 60rem) {
  .deux-colonnes {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}


/* =====================================================================
   16. Mouvement réduit
   Les seules animations du site sont des changements de couleur au
   survol ; on les coupe si le visiteur l'a demandé à son système.
   ===================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
