/* site.css : site vitrine de La corde (2026-11-24, corrigé après les revues communication et interface).
   Charte v8 : acquisition-clients/identite/corde/v8/ (corde.css, accueil.html, charte.html).
   Seule feuille du site. Aucun style dans le HTML : la CSP n'autorise que style-src 'self'.
   Téléphone d'abord ; un seul seuil, celui de accueil.html : 900 px (56,25em).
   Trois couches : 1. valeurs brutes de la v8 ; 2. rôles par surface ; 3. composants. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* 1. Valeurs brutes (v8/corde.css, ligne 2) */
:root {
  --ardoise: #1F2C36;
  --pierre: #E3E6E8;
  --moyen: #3A4955;
  --brume: #9AA8B2;
  --ocre: #C9A25A;

  /* Quatre tailles de texte (revue d'interface, point 3) : 40 / 28 / 20 / 16 px, puis 64 / 44 / 22 / 16 au-delà de 900 px */
  --t-titre: 2.5rem;
  --t-section: 1.75rem;
  --t-corps: 1.25rem;
  --t-petit: 1rem;

  /* Espaces */
  --marge: 24px;
  --largeur: 1280px;
  --section: 80px;
}

/* 2. Rôles : chaque surface pose ses couleurs (contrastes : terrain.md §1, v8/contraste.txt) */
.sur-ardoise,
body {
  --fond: var(--ardoise);
  --texte: var(--pierre);      /* 11,38:1 */
  --filet: var(--moyen);       /* décor, sans contraste exigé */
  --repere: var(--pierre);     /* points des trois temps : 11,38:1 */
  --trait: var(--brume);       /* trait qui relie les temps : 5,86:1 */
  --focus: var(--pierre);      /* contour clavier : 11,38:1 */
}
.sur-pierre {
  --fond: var(--pierre);
  --texte: var(--ardoise);     /* 11,38:1 */
  --filet: var(--moyen);       /*  7,40:1 */
  --repere: var(--ardoise);
  --trait: var(--moyen);
  --focus: var(--ardoise);
}
.sur-ardoise,
.sur-pierre {
  background: var(--fond);
  color: var(--texte);
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  background: var(--ardoise);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  background: var(--fond);
  color: var(--texte);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: var(--t-corps);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .03em;
  word-spacing: .09em;
  font-kerning: normal;
  font-variant-ligatures: none;
  text-align: left;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .005em;
  word-spacing: normal;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Lien d'évitement : hors de l'écran, visible quand il reçoit le focus clavier */
.evitement {
  position: absolute;
  top: 8px;
  left: var(--marge);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--pierre);
  color: var(--ardoise);
  font-size: var(--t-petit);
  font-weight: 700;
}
.evitement:not(:focus) {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.evitement:focus-visible {
  outline: 3px solid var(--ardoise);
  outline-offset: -7px;
}

/* Cadre commun : largeur de lecture et marges */
.cadre {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* 3. Composants */

/* En-tête : symbole puis mot (v8/accueil.html) */
.entete {
  display: flex;
  align-items: center;
  padding-block: 20px;
}
.entete-lien {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  text-decoration: none;
}
.entete > .entete-symbole {
  margin-right: 14px;
}
.entete-symbole {
  width: 46px;
  height: 46px;
}
.entete-mot {
  width: auto;
  height: 26px;
}

/* Accroche : titre, le quoi, le pour qui, l'appel ; puis le geste qui devient corde */
.accroche {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-block: 12px 0;
}
.accroche h1 {
  max-width: 15em;
  font-size: var(--t-titre);
  line-height: 1.15;
}
.metier {
  max-width: 30em;
  margin-top: 20px;
  font-weight: 700;
}
.devise {
  margin-top: 4px;
}
/* Le geste qui se redresse puis devient la corde : tracé une fois à l'ouverture (SMIL, fini avant 2 s),
   version fixe par <picture> si moins d'animations. Deux dessins pour garder des traits fins ; chacun est le
   fichier propre de son <img> : Chrome ne lance pas le SMIL d'un SVG choisi par une <source>. */
.geste {
  display: block;
  width: 100%;
}
.geste img {
  width: 100%;
}
.geste-large {
  display: none;
}

/* L'appel : la seule pastille ocre pleine du site, texte ardoise (5,98:1) ; même libellé en haut et en bas */
.appel {
  display: block;
  min-height: 44px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 2px solid transparent; /* devient visible en mode contraste forcé */
  background: var(--ocre);
  color: var(--ardoise);
  text-decoration: none;
  outline: 3px solid transparent;
  outline-offset: 3px;
}
.appel-haut {
  display: block;
  font-weight: 700;
  line-height: 1.4;
}
.appel-numero {
  display: flex;
  align-items: center;
  gap: .3em;
  font-size: clamp(1.375rem, 7.2vw, var(--t-section)); /* 28 px dès 390 px de large ; plus petit à 320 */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .005em;
  word-spacing: normal;
}
.appel-haut + .appel-numero {
  margin-top: 4px;
}
.appel:hover {
  background: var(--pierre);
}
.appel:active {
  transform: translateY(1px);
}
.appel:focus-visible {
  outline-color: var(--pierre);
}

/* Icônes de contact (smartphone, enveloppe) : fixes, à la taille du texte qu'elles précèdent */
.icone {
  flex: none;
  width: .9em;
  height: .9em;
}

/* Sections : bandes pleine largeur, beaucoup d'air */
.section {
  padding-block: var(--section);
}
.section h2 {
  font-size: var(--t-section);
}
.texte {
  max-width: 30em;
  margin-top: 16px;
}

/* Deux bandes ardoise qui se suivent (« Un seul interlocuteur », « Me joindre ») : un filet aligné sur le texte */
.suite {
  padding-top: 0;
}
.suite > .cadre {
  position: relative;
  padding-top: var(--section);
}
.suite > .cadre::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--marge);
  left: var(--marge);
  height: 1px;
  background: var(--filet);
}

/* Motif de rythme : un petit arc (le détour) au-dessus d'un trait (la corde), avant chaque titre de bande */
.section h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 16px;
  margin-bottom: 20px;
  background: url("../img/repere-sur-ardoise.svg") no-repeat 0 0 / 48px 16px;
}
.sur-pierre h2::before {
  background-image: url("../img/repere-sur-pierre.svg");
}

/* Texte à gauche, visuel à droite en grand écran (toujours du même côté) ; visuel sous le texte sur téléphone */
.texte-visuel {
  display: grid;
  gap: 40px;
  align-items: center;
}
/* Chaque visuel est un <picture> : le SVG animé une fois, ou sa version fixe si moins d'animations */
.visuel,
.picto {
  display: block;
}
.visuel img,
.picto img {
  width: 100%;
}
.visuel-noeud {
  width: min(100%, 272px); /* le nœud : 72 px de haut au moins (charte) */
}
.visuel-lieu {
  width: min(100%, 340px);
}
.visuel-prix {
  width: min(100%, 300px);
}
.visuel-avant {
  width: min(100%, 300px);
}
.visuel-interlocuteur {
  width: min(100%, 300px);
}

/* Trois temps : liste ordonnée, sans numéro affiché ; un point par temps,
   un trait droit d'un point au suivant (le chemin direct) */
.etapes {
  display: grid;
  gap: 40px;
  margin-top: 40px;
  padding-left: 34px;
  list-style: none;
}
.etapes li {
  position: relative;
}
.etapes li::before {
  content: "";
  position: absolute;
  top: 12px;          /* centre du pictogramme (38 px de haut) */
  left: -34px;
  width: 14px;
  height: 14px;
  z-index: 1;         /* le point passe devant le trait */
  border-radius: 50%;
  background: var(--repere);
}
.etapes li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;          /* centre du point */
  bottom: -59px;      /* centre du point suivant : 40 px d'écart + 19 px */
  left: -28px;
  width: 2px;
  background: var(--trait);
}
.picto {
  width: 72px;
  margin-bottom: 16px;
}
.etapes h3 {
  font-size: var(--t-corps);
  font-weight: 700;
  line-height: 1.3;
}
.etapes p {
  max-width: 24em;
  margin-top: 8px;
}

/* Lignes « intitulé : valeur », séparées par un filet */
.lignes {
  margin-top: 24px;
  list-style: none;
}
.lignes li {
  padding-block: 20px;
  border-top: 1px solid var(--filet);
}
.lignes li:last-child {
  border-bottom: 1px solid var(--filet);
}
.lignes strong {
  font-weight: 700;
}

/* Liste à puces : un pictogramme fixe par engagement tient lieu de puce */
.puces {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  list-style: none;
}
.puces li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
}
.picto-puce {
  width: 32px;
  height: 32px;
  margin-top: calc(.75em - 16px); /* centré sur la première ligne */
}

/* Avant de signer : questions en <details> natifs, fermés (aucun JavaScript) */
.faq {
  margin-top: 24px;
}
.faq details {
  border-top: 1px solid var(--filet);
}
.faq details:last-child {
  border-bottom: 1px solid var(--filet);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding-block: 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* Repère d'état : un chevron qui pointe vers le bas (fermé) ou vers le haut (ouvert) */
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] > summary::after {
  transform: translateY(3px) rotate(-135deg);
}
.faq summary:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
}
.faq details p {
  max-width: 34em;
  padding-bottom: 20px;
}

/* Me joindre : téléphone et adresse affichés à l'identique, chacun dans un pavé ocre plein avec son icône (charte v8) */
.contact-offre {
  font-weight: 700;
}
.contacts {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-top: 20px;
}
.pave {
  display: flex;
  align-items: center;
  gap: .5em;
  min-height: 64px;
  padding: 16px 20px;
  border: 2px solid transparent; /* devient visible en mode contraste forcé */
  background: var(--ocre);
  color: var(--ardoise);      /* 5,98:1 */
  font-weight: 800;
  letter-spacing: .005em;
  word-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  outline: 3px solid transparent;
  outline-offset: 3px;
}
.pave .icone {
  width: 1.2em;
  height: 1.2em;
}
.pave:hover {
  background: var(--pierre);
}
.pave:active {
  transform: translateY(1px);
}
.pave:focus-visible {
  outline-color: var(--pierre);
}
/* Très petit écran : les deux textes baissent ensemble, pour que l'adresse tienne dans son pavé */
@media (max-width: 22.4375em) {
  .pave {
    font-size: var(--t-petit);
  }
}

/* Pied de page */
.pied {
  border-top: 1px solid var(--moyen);
}
.pied-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 28px;
  color: var(--texte); /* 11,38:1 : le pied reste lisible en plein jour */
  font-size: var(--t-petit);
}
.pied a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--texte);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.pied a:hover {
  text-decoration-thickness: 2px;
}

/* Mentions légales : une colonne de lecture sur pierre, mêmes tailles que l'accueil */
.mentions {
  padding-block: 56px 96px;
}
.prose {
  max-width: 34em; /* environ 75 caractères par ligne */
}
.prose h1 {
  margin-top: 40px;
  font-size: var(--t-section);
}
.prose h2 {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--filet);
  font-size: var(--t-corps);
}
.prose h3 {
  margin-top: 28px;
  font-size: var(--t-corps);
  font-weight: 700;
  line-height: 1.3;
}
.prose p,
.prose ul {
  margin-top: 16px;
}
.prose ul {
  list-style: none;
}
.prose li {
  position: relative;
  padding-left: 28px;
}
.prose li + li {
  margin-top: 8px;
}
.prose li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--trait);
}
.prose a {
  padding-block: 10px; /* zone de toucher de 44 px sans déplacer le texte (lien dans une ligne) */
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
}
.prose a:hover {
  text-decoration-thickness: 3px;
}
.avertissement {
  padding: 16px 20px;
  border: 2px solid var(--ardoise);
  font-weight: 700;
}

/* Écran large : au-delà de 900 px (seuil de v8/accueil.html) */
@media (min-width: 56.25em) {
  :root {
    --t-titre: 4rem;
    --t-section: 2.75rem;
    --t-corps: 1.375rem;
    --marge: 64px;
    --section: 112px;
  }
  .entete {
    padding-block: 28px;
  }
  .entete-symbole {
    width: 56px;
    height: 56px;
  }
  .entete-mot {
    height: 32px;
  }

  .accroche {
    gap: 64px;
    padding-block: 24px 0;
  }
  .geste-telephone {
    display: none;
  }
  .geste-large {
    display: block;
  }
  .appel {
    display: inline-block;
    padding: 18px 28px;
  }
  .appel-numero {
    font-size: var(--t-section);
  }
  .contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Titre à gauche, contenu à droite (blocs sans visuel : engagements, questions) */
  .deux-colonnes {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .corps > :first-child {
    margin-top: .35em;
  }

  /* Texte à gauche, visuel à droite, pour tous les blocs qui ont un visuel */
  .texte-visuel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 96px);
  }
  .visuel {
    justify-self: center;
  }
  .visuel-noeud {
    width: min(100%, 420px);
  }
  .visuel-lieu {
    width: min(100%, 520px);
  }
  .visuel-prix {
    width: min(100%, 440px);
  }
  .visuel-avant {
    width: min(100%, 420px);
  }
  .visuel-interlocuteur {
    width: min(100%, 460px);
  }

  /* Pictogrammes des engagements : 48 px en grand écran */
  .puces li {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 24px;
  }
  .picto-puce {
    width: 48px;
    height: 48px;
    margin-top: calc(.75em - 24px);
  }

  /* Les trois temps côte à côte, le trait passe au-dessus, de point en point */
  .etapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    margin-top: 56px;
    padding-top: 40px;
    padding-left: 0;
  }
  .etapes li::before {
    top: -40px;
    left: 0;
  }
  .etapes li:not(:last-child)::after {
    top: -34px;       /* centre du point, trait de 2 px */
    right: -55px;     /* centre du point suivant : 48 px d'écart + 7 px */
    bottom: auto;
    left: 7px;
    width: auto;
    height: 2px;
  }
  .picto {
    width: 128px;
    margin-bottom: 20px;
  }
}

/* Moins d'animations : chaque visuel passe en version fixe par <picture> (index.html) ;
   ici, les deux transitions du site ne sont jouées que si la personne n'a rien demandé. */
@media (prefers-reduced-motion: no-preference) {
  .appel,
  .pave {
    transition: background-color .15s ease-out;
  }
  .faq summary::after {
    transition: transform .15s ease-out;
  }
}

/* Contraste forcé (Windows) : le bouton garde un cadre */
@media (forced-colors: active) {
  .appel,
  .pave {
    border-color: ButtonText;
  }
}
