/* L'accueil (maquette « L'assemblage », 16/11/2026). Socle commun puis styles de la page.
   La barre, ses boutons et ses fontes vivent dans barre.css, chargée avant. */
/* Socle commun des 5 propositions : jetons de la charte (consignes § 5), règles J1, J3, J4, J8. */
:root {
  --rouge: #EB2933;   /* une fois par écran : logo, point du bouton principal */
  --encre: #1A1A18;
  --fond: #FAFAF7;
  --surface: #FFFFFF;
  --creux: #F1F0EA;
  --doux: #5C5B55;
  --filet: #D6D5CD;
  --bleu: #1356A2;
  --jaune: #F7D842;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --court: 160ms;
  --moyen: 200ms;

  --large: 1140px;
  --gouttiere: 24px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 400 17px/1.55 "Instrument Sans", system-ui, sans-serif;
  font-kerning: normal; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; }
h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.second { color: var(--doux); }
.etiquette { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.marque { font-family: "Orbitron", sans-serif; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Pied de page commun. */
.pied { border-top: 1px solid var(--encre); padding: 28px 0 40px; font-size: 14px; color: var(--doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.pied a { color: var(--doux); text-underline-offset: 3px; display: inline-block; padding: 12px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-property: opacity, color, background-color !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  :root { --gouttiere: 16px; }
  body { font-size: 16px; }
}

/* L'assemblage : dix formes de la charte racontent le travail. Composées, puis en tas (le problème),
   les trois offres, devenues graphique (Franklin), cadre (l'équipe), et enfin assemblées (livré). */
:root{ --head-h: 72px; }
@media (max-width: 640px){ :root{ --head-h: 60px; } }
html, body{ height: 100%; }
body{ overflow-x: hidden; }

.entete-fixe{ position: fixed; inset: 0 0 auto 0; background: var(--fond); z-index: 40; border-bottom: 1px solid var(--filet); }
.bouton:active{ transition-duration: 100ms; }
.entete-fixe .bouton--principal{ transition: opacity 160ms ease, transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
body[data-diapo="1"] .entete-fixe .bouton--principal, body[data-diapo="9"] .entete-fixe .bouton--principal{ opacity: 0; pointer-events: none; }

.diapos{ scroll-snap-type: y mandatory; height: 100svh; overflow-y: auto; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ .diapos{ scroll-snap-type: y proximity; scroll-behavior: auto; } }
.diapo{ min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head-h) + 40px) 0 48px; position: relative; }
.scene{ display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 88px; align-items: center; }
.zone{ position: relative; height: 420px; }

/* Les formes : une boîte 100 × 100 par forme, placée par translate / rotate / scale. */
.forme{ position: fixed; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; pointer-events: none; z-index: 1;
  transition: transform 300ms var(--ease-out), opacity 200ms ease; will-change: transform; }
/* D'un cas à l'autre du carrousel, les barres suivent le défilement : même durée, même courbe. */
#carrousel[data-cible] ~ .forme, body:has(#carrousel[data-cible]) .forme{ transition-duration: 280ms; transition-timing-function: var(--ease-out); }
.f-bleu{ background: var(--bleu); }
.f-jaune{ background: var(--jaune); z-index: 3; }
.f-encre{ background: var(--encre); z-index: 2; }
.f-creux{ background: var(--creux); z-index: 0; }
.f-filet{ background: var(--encre); z-index: 2; }
.diapo .conteneur{ position: relative; z-index: 4; }
.texte-cote{ position: relative; z-index: 4; }
@media (prefers-reduced-motion: reduce){ .forme{ transition: opacity 200ms ease; } body[data-mouvement="1"] .forme{ opacity: 0 !important; transition-duration: 120ms; } }

/* Contenu. */
.accroche{ font-size: 46px; font-weight: 600; line-height: 1.08; }
.diapo h2{ font-size: 44px; line-height: 1.1; }
.texte{ font-size: 18px; max-width: 540px; margin-top: 20px; }
.second{ margin-top: 10px; }
.liste{ list-style: none; margin: 28px 0 0; padding: 0; max-width: 540px; }
.liste li{ padding: 13px 0; border-top: 1px solid var(--filet); font-size: 18px; }
.liste li:last-child{ border-bottom: 1px solid var(--filet); }
/* Les trois offres : les formes au-dessus disent chacune l'offre (un bloc taillé, trois pièces dont une décalée, trois lignes lues puis une barre prescrite), le texte dessous la nomme. */
.toit{ height: 150px; margin-bottom: 2px; }
.portes{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--encre); border: 2px solid var(--encre); }
.portes li{ background: var(--surface); padding: 24px 24px 28px; font-size: 15px; line-height: 1.45; color: var(--doux); min-height: 150px; }
.portes li b{ display: block; color: var(--encre); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
@media (max-width: 640px){ .toit{ height: 90px; } .portes{ grid-template-columns: 1fr; } .portes li{ min-height: 0; padding: 14px; font-size: 13px; } .portes li b{ font-size: 16px; } }
.legende-zone{ position: absolute; font-size: 14px; color: var(--doux); white-space: nowrap; }
.legende-zone b{ color: var(--encre); font-weight: 600; margin-right: 6px; }

.grille-equipe{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 150px);
  gap: 2px; background: var(--encre); border: 2px solid var(--encre); position: relative; z-index: 4; }

/* Le Lean, sur le terrain : photos à venir, cases provisoires au format final. */
/* Trois gestes : une photo par geste, le geste écrit dessous. */
.planche-large{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.planche-large img{ display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--encre); }
.planche-large p{ margin: 16px 0 0; font-size: 15px; line-height: 1.45; color: var(--doux); }
.planche-large p b{ display: block; color: var(--encre); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 640px){ .planche-large{ grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .planche-large li{ display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; }
  .planche-large img{ aspect-ratio: 1; } .planche-large p{ margin: 0; font-size: 13px; } }
.personne{ display: flex; flex-direction: column; background: var(--surface); }
.personne img{ width: 100%; aspect-ratio: 1; object-fit: cover; }
.personne .nom{ padding: 8px 10px 10px; font-size: 12px; line-height: 1.35; color: var(--doux); }
.personne .nom b{ display: block; font-size: 14px; font-weight: 600; color: var(--encre); }
.personne--nom{ background: var(--creux); justify-content: flex-end; }
.personne--nom .nom b{ font-size: 20px; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 4px; }
#d7 .scene, #d8 .scene{ grid-template-columns: minmax(0, 1fr) auto; }
.grille-equipe.huit{ grid-template-columns: repeat(4, 140px); }

/* Réalisations : un cas par vue, capture dans un cadre de fenêtre, avant et après. Les formes deviennent les barres sous Avant et Après : la longueur dit le temps. */
.entete-real{ display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; position: relative; z-index: 4; }
.entete-real h2 span{ display: block; font-weight: 400; color: var(--doux); }
.car-nav{ display: flex; gap: 8px; flex: none; }
.car-nav button{ width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--encre); background: none; color: var(--encre); cursor: pointer; transition: transform 120ms var(--ease-out), color 160ms ease, border-color 160ms ease; }
.car-nav button:active{ transform: scale(0.97); }
.car-nav button[disabled]{ border-color: var(--filet); color: var(--filet); cursor: default; }
.car-nav svg{ width: 16px; height: 16px; }
.carrousel{ display: flex; gap: 48px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; position: relative; z-index: 4; }
.carrousel::-webkit-scrollbar{ display: none; }
.cas{ flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ecran{ border: 1px solid var(--encre); background: var(--surface); overflow: hidden; clip-path: inset(0 100% 0 0); transition: clip-path 320ms var(--ease-out) 80ms; }
.cas > div:last-child{ opacity: 0; transform: translateY(6px); transition: opacity 240ms var(--ease-out) 160ms, transform 240ms var(--ease-out) 160ms; }
body[data-diapo="4"] .ecran{ clip-path: inset(0); }
body[data-diapo="4"] .cas > div:last-child{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .ecran{ clip-path: none; transition: none; } .cas > div:last-child{ transform: none; transition: opacity 200ms ease; } }
.ecran .barre-fen{ display: flex; gap: 6px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--filet); font-size: 13px; color: var(--doux); }
.ecran .barre-fen i{ width: 8px; height: 8px; background: var(--filet); }
.ecran .barre-fen span{ margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecran img{ width: 100%; height: auto; max-height: 44vh; object-fit: cover; object-position: 50% 0; }
.cas .client{ height: 30px; width: auto; margin-bottom: 16px; }
.cas .client.carre{ height: 56px; image-rendering: auto; } /* un logo carré a besoin de plus de hauteur pour rester lisible */
.cas h3{ font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
.ecran.tel{ border: 0; background: transparent; display: grid; grid-template-columns: auto auto; gap: 16px; justify-content: center; }
.ecran.tel img{ border: 1px solid var(--encre); max-height: 56svh; width: auto; }
.client-nom{ display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); border: 1px solid var(--filet); padding: 4px 8px; }
.mention{ font-size: 12px; color: var(--doux); margin: 10px 0 0; }
.ap.zone{ display: grid; gap: 10px; margin-top: 18px; height: auto; } /* .ap.zone : plus fort que la hauteur fixe des .zone sur petit écran */
.ap p{ padding-bottom: 30px; }
.ap[data-cas="4f"] p + p{ padding-bottom: 64px; }
.ap[data-cas="4p"] p + p{ padding-bottom: 100px; }
.ap p{ border-left: 3px solid var(--filet); padding-left: 14px; color: var(--doux); }
.ap p + p{ border-left-color: var(--encre); color: var(--encre); }
.ap b{ font-weight: 600; }
.ap small{ display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }

/* Partenaires : le même cadre que l'équipe, 8 cases égales ; la 8e invite. Logos en gris : un seul rouge par écran (J3). */
.grille-logos{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 140px); gap: 2px;
  background: var(--encre); border: 2px solid var(--encre); position: relative; z-index: 4; }
.grille-logos li{ background: var(--surface); aspect-ratio: 1; display: grid; place-items: center; padding: 22px; }
.grille-logos img.carre{ max-height: 64px; } /* un logo carré a besoin de plus de hauteur pour peser autant qu'un logo large */
.grille-logos img{ max-width: 100%; max-height: 44px; object-fit: contain; } /* en couleur : écart à J3 (un seul rouge par écran), demandé le 13/11/2026 */
.grille-logos li.vous{ background: var(--creux); padding: 0; }
.grille-logos li.vous a{ display: grid; place-items: center; width: 100%; height: 100%; font-weight: 600; font-size: 15px; text-align: center;
  text-decoration: none; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.grille-logos li.vous a:focus-visible{ outline-offset: -3px; }
.grille-logos li.vous a:active{ transform: scale(0.97); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine){ .grille-logos li.vous a:hover{ background: var(--encre); color: var(--fond); } }
#d5 .scene{ grid-template-columns: minmax(0, 1fr) auto; }

/* Le fondateur : portrait, et le parcours tracé par les formes. */
.charles{ display: flex; align-items: flex-end; gap: 24px; }
.charles img{ width: 240px; height: 240px; object-fit: cover; border: 2px solid var(--encre); flex: none; }
.charles .etiquette{ margin-bottom: 8px; }
.charles .role{ margin-top: 6px; color: var(--doux); font-size: 16px; }
.parcours{ list-style: none; margin: 0; padding: 0; height: 460px; }
.parcours > li{ position: absolute; left: 0; right: 0; padding-left: 40px; }
.parcours b{ display: block; font-size: 20px; font-weight: 600; line-height: 1.2; }
.parcours span{ display: block; font-size: 15px; color: var(--doux); margin-top: 2px; }
.maisons{ list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.maisons li{ border: 1px solid var(--encre); background: var(--surface); padding: 7px 12px; font-size: 14px; font-weight: 600; }

.diapo-contact{ padding-bottom: 0; }
.diapo-contact > .conteneur{ flex: 1; display: flex; align-items: center; }
.diapo-contact .scene{ width: 100%; }
.actions{ margin-top: 32px; }
.autres{ margin-top: 10px; font-size: 15px; }
.autres a{ display: inline-block; padding: 12px 0; margin-right: 18px; }
.diapo-contact .pied{ position: relative; z-index: 4; background: var(--fond); }

.points{ position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 35; display: flex; flex-direction: column; gap: 14px; }
.points button{ position: relative; width: 12px; height: 12px; padding: 0; border: 1px solid var(--doux); background: transparent; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
.points button::after{ content: ""; position: absolute; inset: -16px; }
.points button[aria-current="true"]{ background: var(--encre); border-color: var(--encre); }

@media (max-width: 900px){
  .scene, #d6 .scene{ grid-template-columns: 1fr; gap: 28px; }
  .zone{ height: 200px; }
  .grille-equipe, .grille-equipe.huit, .grille-logos{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille-logos li{ padding: 14px; }
  .grille-logos li.vous a{ font-size: 14px; padding: 0 6px; }
  #d5 .scene, #d7 .scene, #d8 .scene{ grid-template-columns: 1fr; }
  .cas{ grid-template-columns: 1fr; gap: 16px; }
  .ecran img{ max-height: 24svh; }
  .ap{ margin-top: 10px; }
  .cas .client{ height: 24px; margin-bottom: 10px; }
  .cas .client.carre{ height: 44px; }
}
@media (max-width: 640px){
  .diapo{ padding: calc(var(--head-h) + 28px) 0 56px; }
  .accroche{ font-size: 32px; line-height: 1.12; letter-spacing: -0.03em; }
  .diapo h2{ font-size: 28px; }
  .texte, .liste li{ font-size: 16px; }
  .liste{ margin-top: 18px; }
  .liste li{ padding: 10px 0; }
  .zone{ height: 180px; }
  .legende-zone{ font-size: 12px; }
  .entete-real{ margin-bottom: 16px; }
  .carrousel{ gap: 24px; }
  .ecran img{ max-height: 20svh; }
  .ecran.tel{ gap: 10px; }
  .ecran.tel img{ max-height: 20svh; }
  .mention{ margin-top: 6px; }
  .cas h3{ font-size: 19px; }
  .ap p{ font-size: 14px; line-height: 1.4; }
  .ap{ gap: 6px; }
  .ap p{ padding-bottom: 24px; }
  .ap[data-cas="4f"] p + p{ padding-bottom: 52px; }
  .ap[data-cas="4p"] p + p{ padding-bottom: 82px; }
  .charles{ gap: 16px; }
  .charles img{ width: 96px; height: 96px; }
  .parcours{ height: 460px; }
  .parcours > li{ padding-left: 32px; }
  .parcours b{ font-size: 16px; }
  .parcours span{ font-size: 13px; }
  .maisons{ gap: 4px; } .maisons li{ font-size: 12px; padding: 6px 7px; }
  .personne .nom{ padding: 8px 8px 10px; }
  .personne .nom b{ font-size: 12px; }
  .personne--nom .nom b{ font-size: 15px; }
  .points{ right: auto; left: 50%; top: auto; bottom: 10px; transform: translateX(-50%); flex-direction: row; gap: 10px; background: var(--fond); padding: 6px 10px; }
  .points button{ width: 9px; height: 9px; }
}
