/* Site vitrine d'Aiffel : même carnet de plaine que docs/communication/identite.html,
   rail d'étiquettes à gauche, contenu à droite. Polices hébergées sur le site, aucun appel tiers. */

@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-700.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600 900; font-display: swap; src: url(/fonts/big-shoulders-display.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format("woff2"); }

:root {
  --sol: #F1F3EE;
  --surface: #FBFCF8;
  --encre: #16211C;
  --lichen: #56655D;
  --trait: #D3D9D0;
  --treillis: #AEB8B0;
  --vert: #58AD45;
  --sur-vert: #16211C;
  --bleu: #245F86;
  --bleu-fond: #E2ECF2;
  --bulle-moi: #DCEAD2;
  --ok: #2C7446;
  --f-titre: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-texte: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pas: clamp(56px, 9vw, 112px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sol: #0F1512; --surface: #161E1A; --encre: #E5EAE3; --lichen: #9BA9A1; --trait: #29342E;
    --treillis: #3A4740; --vert: #6CBF5A; --bleu: #8BBEE0; --bleu-fond: #182A36;
    --bulle-moi: #21331E; --ok: #6CC08A; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--sol);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.defs { position: absolute; }
.barre { fill: var(--barre, var(--vert)); }
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--bleu); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-titre); line-height: 0.95; text-wrap: balance; margin: 0; }
p { margin: 0; }
.data { font-family: var(--f-data); font-size: 0.88em; font-variant-numeric: tabular-nums; }
.etiquette {
  font-family: var(--f-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lichen);
}
.evitement { position: absolute; left: -9999px; top: 8px; background: var(--encre); color: var(--sol); padding: 8px 12px; z-index: 10; }
.evitement:focus { left: 16px; }

/* En-tête collant */
.entete {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--sol) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.entete-dedans { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; }
.marque svg { width: 34px; height: 34px; }
.marque span { font-family: var(--f-titre); font-weight: 800; font-size: 24px; letter-spacing: 0.05em; }
.entete nav { display: flex; align-items: center; gap: 22px; }
.entete nav a { color: var(--encre); text-decoration: none; font-size: 15px; }
.entete nav a:hover { text-decoration: underline; }
.entete nav .nav-offres { background: var(--vert); color: var(--sur-vert); font-weight: 700; padding: 7px 14px; border-radius: 8px; }
.entete nav .nav-offres:hover { text-decoration: none; filter: brightness(1.05); }
@media (max-width: 760px) {
  .entete nav a:not(.nav-offres) { display: none; }
}

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--encre); color: var(--encre);
  font-weight: 700; text-decoration: none; font-size: 16px;
}
.bouton:hover { background: color-mix(in srgb, var(--encre) 6%, transparent); }
.bouton.plein { background: var(--vert); border-color: var(--vert); color: var(--sur-vert); }
.bouton.plein:hover { filter: brightness(1.05); }
.bouton.grand { font-size: 19px; padding: 16px 28px; }

/* Ouverture */
.ouverture {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px) var(--pas);
  border-bottom: 1px solid var(--trait);
}
.statut { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.statut::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vert) 30%, transparent); }
.ouverture h1 {
  font-size: clamp(50px, 8.8vw, 120px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.ouverture h1 mark {
  background: linear-gradient(to top, var(--vert) 0 42%, transparent 42%);
  color: inherit;
  padding-inline: 0.04em;
}
.chapeau { margin-top: 28px; max-width: 34em; font-size: 19px; }
.chapeau.discret { margin-top: 12px; color: var(--lichen); font-size: 17px; }

/* Conversation d'exemple */
.telephone {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: 28px;
  padding: 18px 16px 20px;
  max-width: 400px;
  width: 100%;
  justify-self: end;
  box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--encre) 45%, transparent);
}
.telephone-tete { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; border-bottom: 1px solid var(--trait); margin-bottom: 16px; }
.telephone-tete svg { width: 30px; height: 30px; flex: none; color: var(--encre); }
.telephone-tete strong { display: block; font-size: 15px; line-height: 1.2; }
.telephone-tete small { display: block; color: var(--lichen); font-size: 12px; }
.fil { display: flex; flex-direction: column; gap: 10px; }
.fil > * { animation: arrive 0.45s ease-out both; }
.fil > *:nth-child(2) { animation-delay: 0.35s; }
.fil > *:nth-child(3) { animation-delay: 0.7s; }
.fil > *:nth-child(4) { animation-delay: 1.05s; }
.bulle { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.bulle.moi { align-self: flex-end; background: var(--bulle-moi); border-bottom-right-radius: 4px; }
.bulle.lui { align-self: flex-start; background: var(--sol); border: 1px solid var(--trait); border-bottom-left-radius: 4px; }
.groupe { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; max-width: 94%; }
.groupe .bulle { max-width: 100%; }
.recap .ctl { font-size: 14px; }
.recap .debut { margin-top: 8px; }
.petit { display: block; color: var(--lichen); font-size: 13px; }
.kbd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.kbd span { text-align: center; font-size: 13px; font-weight: 700; padding: 7px 4px; border-radius: 8px; background: color-mix(in srgb, var(--encre) 7%, var(--surface)); color: var(--bleu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vocal { display: flex; align-items: center; gap: 8px; color: var(--lichen); font-size: 12px; margin-bottom: 4px; }
.onde { display: flex; align-items: center; gap: 2px; height: 16px; }
.onde i { display: block; width: 3px; height: 8px; border-radius: 2px; background: var(--lichen); }
.onde i:nth-child(2) { height: 12px; } .onde i:nth-child(3) { height: 9px; } .onde i:nth-child(4) { height: 15px; }
.onde i:nth-child(5) { height: 7px; } .onde i:nth-child(6) { height: 13px; } .onde i:nth-child(7) { height: 10px; }
.onde i:nth-child(8) { height: 5px; } .onde i:nth-child(9) { height: 11px; } .onde i:nth-child(1) { height: 6px; }
.note-exemple { margin-top: 14px; text-align: center; }
@keyframes arrive { from { opacity: 0.001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Sections en registre */
.section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px clamp(24px, 4vw, 56px);
  padding-block: var(--pas);
  border-bottom: 1px solid var(--trait);
}
.section > .etiquette { padding-top: 10px; }
.section h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; text-transform: uppercase; margin-bottom: 28px; max-width: 20ch; }
.contenu { min-width: 0; }
.intro { max-width: 62ch; margin-bottom: 32px; font-size: 18px; }
.note { margin-top: 20px; color: var(--lichen); font-size: 15px; max-width: 70ch; }
.sous-titre { font-family: var(--f-titre); font-size: 30px; font-weight: 800; text-transform: uppercase; margin: 72px 0 16px; }

.section h2.promesse {
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.08;
  text-transform: none;
  max-width: 24ch;
  margin-bottom: 0;
}
.promesse em { font-style: normal; box-shadow: inset 0 -0.32em 0 var(--vert); }

.constat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--encre); }
.symptome { padding: 20px 20px 20px 0; display: grid; gap: 8px; align-content: start; }
.symptome + .symptome { padding-left: 20px; border-left: 1px solid var(--trait); }
.symptome strong { font-family: var(--f-titre); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.symptome p { color: var(--lichen); font-size: 15px; }
.reponse { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reponse div { display: grid; gap: 6px; align-content: start; }
.reponse b { display: inline-block; width: fit-content; background: var(--vert); color: var(--sur-vert); font-family: var(--f-titre); font-weight: 800; font-size: 22px; text-transform: uppercase; padding: 2px 10px; border-radius: 4px; }
.reponse p { font-size: 16px; }

.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--encre); }
.etape { padding: 20px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.etape + .etape { padding-left: 24px; border-left: 1px solid var(--trait); }
.etape .num { font-family: var(--f-titre); font-weight: 900; font-size: 56px; line-height: 1; color: var(--vert); }
.etape h3, .garanties h3, .publics h3, .principe h3, .niveaux h3 { font-family: var(--f-texte); font-weight: 700; font-size: 18px; line-height: 1.3; }
.etape p { color: var(--lichen); font-size: 16px; }

/* La tour */
.tour { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.silhouette { width: 100%; height: auto; max-width: 480px; }
.silhouette .structure { stroke: var(--encre); fill: none; stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round; }
.silhouette .structure.epais { stroke-width: 1.2; }
.silhouette .structure.fin { stroke-width: 0.6; }
.silhouette .treillis { stroke: var(--treillis); fill: none; stroke-linecap: round; stroke-width: 0.3; }
.silhouette .plateforme { fill: var(--encre); }
.silhouette .herbe { fill: var(--vert); }
.silhouette .flux-bas { stroke: var(--vert); fill: none; stroke-width: 0.7; stroke-linecap: round; stroke-linejoin: round; }
.silhouette .flux-haut { stroke: var(--bleu); fill: none; stroke-width: 0.7; stroke-linecap: round; stroke-linejoin: round; }
.silhouette .repere circle { fill: var(--vert); }
.silhouette .repere text { font-family: var(--f-titre); font-weight: 900; font-size: 6.4px; text-anchor: middle; fill: var(--sur-vert); }
.niveaux { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.niveaux li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.niveaux p { color: var(--lichen); font-size: 16px; margin-top: 4px; }
.pastille { width: 32px; height: 32px; border-radius: 50%; background: var(--vert); color: var(--sur-vert); font-family: var(--f-titre); font-weight: 900; font-size: 20px; display: grid; place-items: center; }
.legende-flux { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--f-data); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.legende-flux span::before { margin-right: 6px; font-family: var(--f-texte); }
.vers-bas { color: var(--ok); } .vers-bas::before { content: "↓"; }
.vers-haut { color: var(--bleu); } .vers-haut::before { content: "↑"; }

/* Offres */
.offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.offre { background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; padding: 24px 22px 26px; display: grid; gap: 18px; align-content: start; }
.offre.vedette { border: 2px solid var(--vert); box-shadow: 0 24px 50px -32px color-mix(in srgb, var(--encre) 50%, transparent); }
.offre header { display: grid; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--trait); }
.offre h3 { font-size: 36px; font-weight: 800; text-transform: uppercase; }
.etat { justify-self: start; font-family: var(--f-data); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; border: 1px dashed var(--lichen); color: var(--lichen); }
.vedette .etat { border-style: solid; }
.prix { font-family: var(--f-titre); font-weight: 900; font-size: 44px; line-height: 1; margin-top: 6px; }
.prix small { font-family: var(--f-texte); font-weight: 400; font-size: 16px; color: var(--lichen); }
.prix-note { font-size: 15px; color: var(--lichen); }
.prix-note strong { color: var(--encre); box-shadow: inset 0 -0.35em 0 color-mix(in srgb, var(--vert) 55%, transparent); }
.liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.liste li::before { font-family: var(--f-data); font-size: 14px; padding-top: 2px; content: "+"; color: var(--ok); font-weight: 500; }
.liste li p { font-weight: 700; font-size: 16px; }
.liste li span { color: var(--lichen); display: block; font-size: 15px; font-weight: 400; }

/* Tableaux */
.tableau { width: 100%; overflow-x: auto; }
.tableau table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
.tableau thead th { text-align: left; font-family: var(--f-data); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lichen); padding: 0 16px 10px 0; border-bottom: 2px solid var(--encre); vertical-align: bottom; }
.tableau td, .tableau tbody th { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--trait); vertical-align: top; text-align: left; }
.tableau td:first-child, .tableau tbody th { font-weight: 700; }
.comparatif td:nth-child(2) { font-weight: 700; }
.comparatif td:nth-child(3) { color: var(--lichen); font-weight: 400; }
.qui { display: block; font-family: var(--f-data); font-weight: 400; font-size: 12px; color: var(--lichen); letter-spacing: 0.02em; text-transform: none; }
.acces { font-family: var(--f-data); font-size: 12px; white-space: nowrap; padding: 2px 7px; border-radius: 4px; }
.acces.ecrit { color: var(--sur-vert); background: var(--vert); }
.acces.lit { color: var(--bleu); background: var(--bleu-fond); }
.acces.prevu { color: var(--lichen); border: 1px dashed var(--lichen); padding: 1px 6px; }

/* Garanties, publics, principes */
.garanties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--encre); }
.garanties > div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--trait); display: grid; gap: 8px; align-content: start; }
.garanties p { color: var(--lichen); font-size: 16px; }
.publics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.publics > div { border-top: 2px solid var(--encre); padding-top: 16px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.publics p { color: var(--lichen); font-size: 16px; }
.principes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--trait); }
.principe { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--trait); display: grid; gap: 8px; align-content: start; }
.principe .ref { font-family: var(--f-data); font-size: 11.5px; color: var(--bleu); letter-spacing: 0.02em; }

/* Questions */
.faq { border-top: 2px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--f-data); font-size: 22px; color: var(--ok); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--lichen); max-width: 68ch; }

/* Contact */
.contact { padding-block: var(--pas); display: grid; gap: 20px; justify-items: center; text-align: center; }
.contact h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 900; text-transform: uppercase; max-width: 18ch; }
.contact p { max-width: 46ch; font-size: 18px; color: var(--lichen); }
.contact .bouton { margin-top: 8px; }

/* Pied */
.pied { background: var(--encre); color: var(--sol); --barre: var(--vert); }
.pied-dedans { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 32px; font-size: 14px; }
.pied .marque { color: var(--sol); }
.pied p { color: color-mix(in srgb, var(--sol) 75%, transparent); }
.pied a { color: inherit; }
.pied .marque { text-decoration: none; }

/* Mentions légales */
.legal > h1 { font-size: clamp(48px, 8vw, 96px); font-weight: 900; text-transform: uppercase; padding-top: clamp(40px, 7vw, 80px); margin-bottom: 12px; }
.legal > .etiquette { padding-bottom: 8px; }
.legal .section:last-child { border-bottom: 0; }
.fiche-legale { margin: 0; border-top: 2px solid var(--encre); }
.fiche-legale div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4px 24px; padding-block: 12px; border-bottom: 1px solid var(--trait); }
.fiche-legale dt { color: var(--lichen); }
.fiche-legale dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.texte-legal { display: grid; gap: 16px; max-width: 70ch; }
@media (max-width: 560px) {
  .fiche-legale div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .offres { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .principes { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .publics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ouverture, .tour { grid-template-columns: minmax(0, 1fr); }
  .telephone { justify-self: start; }
  .silhouette { max-width: 360px; }
  .constat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .symptome:nth-child(3) { padding-left: 0; border-left: 0; }
  .symptome:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .garanties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .section { grid-template-columns: minmax(0, 1fr); }
  .section > .etiquette { padding-top: 0; }
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .etape, .etape + .etape { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--trait); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .constat, .reponse, .garanties, .publics { grid-template-columns: minmax(0, 1fr); }
  .symptome, .symptome + .symptome { padding: 16px 0; border-left: 0; border-top: 1px solid var(--trait); }
  .symptome:first-child { border-top: 0; }
  .garanties > div { padding-right: 0; }
  .actions .bouton { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fil > * { animation: none; }
}
