/* Charte Claritelab : feuille de style unique de claritelab.com.
   Construite par commun/site-claritelab/construire.mjs, publiée sous /assets/site.css.
   Contrastes vérifiés (WCAG AA) par construire.mjs --verifier ; ne changer une couleur qu'en relançant ce contrôle. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/polices/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/polices/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Couleurs (clair, puis sombre) ---------- */
:root {
  color-scheme: light dark;
  --encre: #0e1b26;        /* texte principal */
  --doux: #4b5a66;         /* texte secondaire */
  --fond: #ffffff;
  --surface: #f4f7f6;      /* bandes et cartes en retrait */
  --surface-forte: #e6f1ee;/* menthe : mise en avant */
  --trait: #d5dfdc;        /* bordures décoratives */
  --trait-fort: #7b8a93;   /* bordures de champs (3:1) */
  --marque: #0a6663;       /* sarcelle Claritelab : liens, accents */
  --marque-fond: #0a6663;  /* boutons */
  --marque-texte: #ffffff;
  --marque-survol: #074c4a;
  --accent: #b84a14;       /* point de la marque (décoratif) */
  --code: #eef2f1;
  --focus: #0e1b26;
  --ombre: 0 1px 2px rgb(14 27 38 / 6%), 0 8px 24px rgb(14 27 38 / 6%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --encre: #e8eff0;
    --doux: #a9b8bd;
    --fond: #0c1418;
    --surface: #121e23;
    --surface-forte: #16302f;
    --trait: #26363c;
    --trait-fort: #6f8188;
    --marque: #63d2c6;
    --marque-fond: #63d2c6;
    --marque-texte: #062220;
    --marque-survol: #8fe3d9;
    --accent: #f08a54;
    --code: #1a2a30;
    --focus: #e8eff0;
    --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 1.0625rem/1.65 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--marque); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--surface-forte); color: var(--encre); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1rem; letter-spacing: -.03em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; letter-spacing: -.01em; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: .3rem 0; }
code, kbd {
  font: .88em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--code); border-radius: 5px; padding: .1em .4em;
}
kbd { border: 1px solid var(--trait); border-bottom-width: 2px; }
strong { font-weight: 650; }

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--marque-fond); color: var(--marque-texte); padding: .6rem 1rem;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.lien-evitement:focus { top: 1rem; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.conteneur { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
/* Colonne de lecture étroite, alignée à gauche sur le logo et le pied de page (même bord gauche partout) */
.conteneur.etroit > * { max-width: 42rem; }

/* ---------- En-tête ---------- */
.entete { border-bottom: 1px solid var(--trait); background: var(--fond); }
.entete .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; min-height: 4.25rem; padding-top: .6rem; padding-bottom: .6rem;
}
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--encre); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo svg { width: 1.9rem; height: 1.9rem; flex: none; }
.logo-mot { font-size: 1.35rem; font-weight: 750; letter-spacing: -.035em; line-height: 1; }
.logo-mot span { color: var(--marque); }
.logo-anneau { stroke: var(--encre); }
.logo-point { fill: var(--accent); }
.logo-trait { stroke: var(--marque); }

.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: inline-block; padding: .45rem .7rem; border-radius: 8px;
  color: var(--encre); text-decoration: none; font-weight: 550; font-size: .98rem;
}
.nav a:hover { background: var(--surface); text-decoration: underline; }
.nav a[aria-current="page"] { background: var(--surface-forte); }
.nav .langue a { border: 1px solid var(--trait); font-size: .9rem; }

/* ---------- Boutons ---------- */
.bouton, a.bouton, button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem;
  padding: .7rem 1.25rem; border-radius: 10px; border: 2px solid var(--marque-fond);
  background: var(--marque-fond); color: var(--marque-texte);
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.bouton:hover, a.bouton:hover, button:hover { background: var(--marque-survol); border-color: var(--marque-survol); text-decoration: none; }
.bouton.secondaire { background: transparent; color: var(--encre); border-color: var(--trait-fort); }
.bouton.secondaire:hover { background: var(--surface); border-color: var(--encre); }
.bouton svg { width: 1.1em; height: 1.1em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Accueil ---------- */
.heros { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.heros::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40rem 22rem at 85% 10%, var(--surface-forte), transparent 70%),
    linear-gradient(var(--fond), var(--fond));
}
.heros .conteneur { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .heros .conteneur { grid-template-columns: 1.15fr .85fr; } }
.surtitre {
  display: inline-block; margin: 0 0 1rem; padding: .25rem .7rem; border-radius: 999px;
  background: var(--surface-forte); color: var(--encre); font-size: .9rem; font-weight: 600;
}
.heros h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); max-width: 16ch; }
.heros h1 em { font-style: normal; color: var(--marque); }
.heros .intro { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--doux); max-width: 38rem; }
.heros-visuel { display: none; }
@media (min-width: 60rem) { .heros-visuel { display: block; } }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.bande { background: var(--surface); border-block: 1px solid var(--trait); }
.section > .conteneur > h2:first-child { margin-top: 0; }
.section .chapeau-section { color: var(--doux); max-width: 40rem; margin-bottom: 2rem; font-size: 1.1rem; }

.produits { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .produits { grid-template-columns: 1fr 1fr; } }
.produit {
  display: flex; flex-direction: column; background: var(--fond); border: 1px solid var(--trait);
  border-radius: 18px; overflow: hidden; box-shadow: var(--ombre);
}
.produit-visuel { background: var(--surface); border-bottom: 1px solid var(--trait); padding: 1.5rem; display: flex; justify-content: center; }
.produit-visuel svg { width: 100%; max-width: 22rem; height: auto; }
.produit-corps { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.produit h3 { font-size: 1.4rem; margin: .2rem 0 .6rem; }
.produit .etiquette { font-size: .85rem; font-weight: 650; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.produit ul { padding-left: 0; list-style: none; margin: .4rem 0 1.4rem; }
.produit li { position: relative; padding-left: 1.6rem; }
.produit li::before, ul.coches li::before {
  content: ""; position: absolute; left: .1rem; top: .55em; width: .8rem; height: .45rem;
  border-left: 2.5px solid var(--marque); border-bottom: 2.5px solid var(--marque); transform: rotate(-45deg);
}
.produit .actions { margin-top: auto; }

.principes { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 48rem) { .principes { grid-template-columns: repeat(3, 1fr); } }
.principes li { margin: 0; padding: 1.4rem; border-radius: 14px; background: var(--fond); border: 1px solid var(--trait); }
.principes h3 { margin-top: 0; }
.principes p { color: var(--doux); margin: 0; }
.principes svg { width: 2rem; height: 2rem; color: var(--marque); margin-bottom: .6rem; }

.contact-bande { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: 20px; background: var(--encre); color: var(--fond); }
.contact-bande h2 { margin: 0 0 .4rem; color: inherit; }
.contact-bande p { margin: 0; opacity: .92; }
.contact-bande a.bouton { background: var(--fond); color: var(--encre); border-color: var(--fond); justify-self: start; }
.contact-bande a.bouton:hover { background: var(--surface-forte); border-color: var(--surface-forte); }
.contact-bande :focus-visible { outline-color: var(--fond); }
@media (min-width: 48rem) { .contact-bande { grid-template-columns: 1fr auto; } }

/* ---------- Pages de contenu (aide, offre, pages légales) ---------- */
.page-tete { background: var(--surface); border-bottom: 1px solid var(--trait); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-tete h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); max-width: 30ch; }
.page-tete .chapeau, .page-tete .meta { font-size: 1.15rem; color: var(--doux); margin: 0; max-width: 40rem; }
.fil { font-size: .92rem; margin: 0 0 1rem; color: var(--doux); }
.fil a { color: var(--doux); }
.prose { padding-top: 2rem; padding-bottom: 3rem; }
.prose > h2:first-child { margin-top: .5rem; }
.prose h2 { padding-top: .4rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li::marker { color: var(--marque); font-weight: 650; }
ul.coches { list-style: none; padding-left: 0; }
ul.coches li { position: relative; padding-left: 1.7rem; margin: .55rem 0; }
.chapeau { font-size: 1.15rem; color: var(--doux); }
.petit { font-size: .92rem; color: var(--doux); }
.carte {
  background: var(--fond); border: 1px solid var(--trait); border-top: 4px solid var(--marque);
  border-radius: 16px; padding: 1.5rem 1.6rem; margin: 2rem 0; box-shadow: var(--ombre);
}
.carte p:last-child { margin-bottom: 0; }
.prix { font-size: 2.4rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .6rem; }
.prix small { font-size: 1rem; font-weight: 450; letter-spacing: 0; color: var(--doux); }
form label { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
form input { width: 100%; padding: .7rem .8rem; font: inherit; border: 1px solid var(--trait-fort); border-radius: 10px; background: var(--fond); color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { margin-top: clamp(3rem, 7vw, 5rem); background: var(--surface); border-top: 1px solid var(--trait); font-size: .95rem; color: var(--doux); }
.pied .conteneur { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 48rem) { .pied .conteneur { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied h2 { font-size: .95rem; margin: 0 0 .6rem; color: var(--encre); letter-spacing: 0; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin: .35rem 0; }
.pied a { color: var(--doux); }
.pied a:hover { color: var(--encre); }
.pied .logo { margin-bottom: .8rem; }
.pied address { font-style: normal; }
.pied-bas { border-top: 1px solid var(--trait); padding-top: 1rem; padding-bottom: 1.5rem; font-size: .88rem; }
.pied-bas p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .bouton, .nav a, .produit { transition: background-color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .2s ease; }
  .produit:hover { transform: translateY(-2px); }
}
@media print {
  .entete .nav, .lien-evitement, .pied { display: none; }
  body { font-size: 11pt; }
}

/* ---------- Illustrations (SVG décoratifs) ---------- */
.illus { width: 100%; max-width: 30rem; filter: drop-shadow(0 18px 40px rgb(14 27 38 / 12%)); }
.v-carte { fill: var(--fond); stroke: var(--trait); stroke-width: 1.5; }
.v-surface { fill: var(--surface); }
.v-code { fill: var(--code); }
.v-trait-plein { fill: var(--trait); }
.v-ligne { fill: var(--trait); }
.v-ligne-marque { fill: var(--marque); }
.v-ligne-accent { fill: var(--accent); }
.v-texte-clair { fill: var(--marque-texte); opacity: .85; }
.v-noeud { fill: var(--surface-forte); stroke: var(--marque); stroke-width: 1.5; }
.v-noeud-fort { fill: var(--marque-fond); }
.v-noeud-accent { fill: var(--accent); }
.v-lien { stroke: var(--trait-fort); stroke-width: 2; }
.v-badge { fill: var(--marque-fond); }
.v-coche { stroke: var(--marque-texte); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.v-coche-petite { stroke: var(--marque); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.v-repere { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 4; }
.v-pastille { fill: var(--trait-fort); }
.v-pastille-accent { fill: var(--accent); }
.prix-produit { font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; margin: 0 0 .25rem; }
.prix-produit small { font-size: .95rem; font-weight: 450; letter-spacing: 0; color: var(--doux); }


/* Ligne de marque des pages Mermaid, au-dessus du titre */
.page-tete .brand { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; color: var(--marque); }

/* ---------- En-tête : langue, une seule ligne sur téléphone (un seul libellé par lien) ---------- */
.nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.langue-seule span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .7rem; font-size: .88rem; color: var(--doux); }
@media (max-width: 47.99rem) {
  .entete .conteneur { flex-wrap: nowrap; gap: .4rem; }
  .logo-mot { font-size: 1.1rem; }
  .logo svg { width: 1.6rem; height: 1.6rem; }
  .nav ul { flex-wrap: nowrap; gap: .1rem; }
  .nav a { padding: .4rem .38rem; font-size: .9rem; }
  .nav .bureau, .langue-seule { display: none; }
}
@media (max-width: 22rem) {
  .logo-mot { display: none; }
}

/* ---------- Pages produit ---------- */
.etiquette { font-size: .85rem; font-weight: 650; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
.produit-tete .conteneur { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .produit-tete .conteneur { grid-template-columns: 1.2fr .8fr; } }
.produit-tete h1 { max-width: 20ch; }
.produit-tete-visuel svg { width: 100%; max-width: 26rem; filter: drop-shadow(0 14px 30px rgb(14 27 38 / 10%)); }
@media (max-width: 55.99rem) { .produit-tete-visuel { display: none; } }
.note { margin: 1.25rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--marque); background: var(--surface-forte); border-radius: 0 10px 10px 0; color: var(--encre); max-width: 40rem; }
.prose .note { margin: 0 0 1.5rem; }
.prose-large { padding-top: 2.5rem; padding-bottom: 1rem; }
.deux-colonnes { display: grid; gap: 0 2.5rem; }
@media (min-width: 48rem) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }
.deux-colonnes h2 { margin-top: 1rem; }
.encadres { display: grid; gap: 1.25rem; margin: 2.5rem 0 1rem; }
@media (min-width: 56rem) { .encadres { grid-template-columns: repeat(3, 1fr); } }
.encadre { padding: 1.4rem; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); }
.encadre svg { width: 2rem; height: 2rem; color: var(--marque); }
.encadre h2 { font-size: 1.15rem; margin: .5rem 0; letter-spacing: -.01em; }
.encadre p:last-child { margin-bottom: 0; }

/* Téléphones étroits (360 à 384 px) : en-tête resserré pour garder la marge droite */
@media (max-width: 24rem) {
  .entete .conteneur { gap: .3rem; }
  .logo { gap: .4rem; }
  .logo-mot { font-size: 1rem; }
  .nav a { padding: .4rem .3rem; font-size: .86rem; }
}

/* Mots à ne pas couper (numéros, noms de pays) dans les pages légales. */
.insecable { white-space: nowrap; }
