/* GUADO — base et composants communs du site (accueil, App, Conseil).
   Valeurs : uniquement les variables de tokens.css. */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere);
}

/* ---------- Typographie ---------- */
.eyebrow {
  margin: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.titre-display {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.mot-signature { color: var(--accent); }

.lead {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Logo : le logo en nom de l'identité visuelle finale (Landry, 27 nov. 2026, « Logo GUADO.png ») : le mot
   GUADO dont le O est l'icône, seul, sans la tuile feuille. Lettres bleu nuit sur les fonds clairs ; sur les fonds sombres,
   la déclinaison aux lettres blanches (guado-nom-inverse), le O inchangé. ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  --logo-nom: url("../img/logo/guado-nom.webp");
}
.logo__nom {
  display: block;
  width: 128px;
  aspect-ratio: 739 / 150;
  background: var(--logo-nom) center / contain no-repeat;
}

/* ---------- Navigation ---------- */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}
.nav__liens {
  display: flex;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-ui);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav__lien:hover { background: var(--ground-soft); }
@media (max-width: 479.98px) {
  /* sur une seconde ligne, le texte des liens s'aligne sur le logo */
  .nav__liens { margin-left: -14px; }
}

/* ---------- La barre de la rubrique App : la même sur chaque page, collée en haut ----------
   Transparente en haut de page, en verre dès qu'on défile (aube.js ou barre.js). La page où l'on est : le pâle du thème. */
.nav-zone.nav-zone--app {
  position: sticky;
  top: 10px;
  z-index: 20;
  padding-top: 10px;
}
.nav-zone--app .nav {
  padding: 6px 8px 6px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color 0.45s var(--ease-sortie), box-shadow 0.45s var(--ease-sortie), border-color 0.45s var(--ease-sortie);
}
.nav-zone--app.is-scrolled .nav {
  border-color: var(--line-glass);
  background: var(--glass);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-zone--app.is-scrolled .nav { background: var(--surface); }
}
.nav-zone--app .nav__lien[aria-current="page"] { background: var(--accent-soft); color: var(--accent-hover); }
@media (max-width: 559.98px) {
  /* sur téléphone : le logo, puis les trois liens sur une ligne, dans la même plaque */
  .nav-zone--app .nav { padding: 6px 6px 4px 16px; border-radius: var(--radius-lg); row-gap: 0; }
  .nav-zone--app .nav__liens { width: 100%; justify-content: space-between; margin-left: -10px; }
  .nav-zone--app .nav__lien { padding: 0 10px; }
}
/* Le bouton de l'offre dans la barre, sur l'accueil et Fonctionnalités (Landry, 27 nov. 2026, fil 64, QS37 ;
   maquette maquettes/barre-offre/, variante A) : à droite sur ordinateur ; jusqu'à 720 px, en petit à côté du logo,
   les liens dessous ; sous 380 px, le texte court, pour que le logo et le bouton tiennent sur une ligne. */
.bouton.nav__appel { min-height: 40px; padding: 0 18px; font-size: var(--fs-ui); }
.nav__appel-court { display: none; }
@media (max-width: 719.98px) {
  .nav-zone--app .nav:has(.nav__appel) { padding: 6px 6px 4px 16px; border-radius: var(--radius-lg); gap: 0 var(--space-2); }
  .nav-zone--app .nav:has(.nav__appel) .nav__liens { order: 3; width: 100%; justify-content: flex-start; gap: var(--space-2); margin-left: -10px; }
  .nav-zone--app .nav:has(.nav__appel) .nav__lien { padding: 0 10px; }
  .bouton.nav__appel { min-height: 36px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 559.98px) {
  .nav-zone--app .nav:has(.nav__appel) .logo__nom { width: 104px; }
}
@media (max-width: 379.98px) {
  .nav__appel-long { display: none; }
  .nav__appel-court { display: inline; }
}
/* La barre repliée (Landry, 27 nov. 2026, fil 65, QS26, maquette maquettes/iphone-01/) : sur téléphone, là où les liens
   ont leur propre rangée, cette rangée se replie quand on descend (la barre ne garde que le logo et le bouton) et
   revient dès qu'on remonte, ou en haut de page (aube.js, classe barre-repliee). */
@media (max-width: 559.98px) {
  .nav-zone--app .nav__liens { max-height: 48px; transition: max-height 0.3s var(--ease-sortie), opacity 0.2s ease; }
  .nav-zone--app.barre-repliee .nav__liens { max-height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
  .nav-zone--app.barre-repliee .nav { padding-bottom: 6px; }
}
@media (max-width: 719.98px) {
  .nav-zone--app .nav:has(.nav__appel) .nav__liens { max-height: 48px; transition: max-height 0.3s var(--ease-sortie), opacity 0.2s ease; }
  .nav-zone--app.barre-repliee .nav:has(.nav__appel) .nav__liens { max-height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
  .nav-zone--app.barre-repliee .nav:has(.nav__appel) { padding-bottom: 6px; }
}
/* la hauteur figée laisse sous la plaque une bande vide, qui ne doit pas capter les touchers */
.nav-zone--app.barre-repliee { pointer-events: none; }
.nav-zone--app.barre-repliee .nav { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .nav-zone--app .nav__liens { transition: none !important; } }

/* ---------- Boutons (pilules) ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.bouton--app { background: var(--accent); color: var(--on-accent); }
.bouton--conseil { background: var(--surface-inverse); color: var(--ink-inverse); }
.bouton--discret { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.bouton__fleche { flex: none; stroke: currentColor; transition: transform 0.25s var(--ease-sortie); }
a:hover .bouton__fleche,
.bouton:hover .bouton__fleche { transform: translateX(3px); }
.bouton__check { flex: none; stroke: currentColor; }

/* ---------- Pied de page commun à GUADO App et au Conseil ----------
   Réaménagé le 26 nov. 2026 (Landry, inspiration Sunsama) : à gauche la marque et sa phrase (et le rendez-vous au Conseil ; plus d'appel commercial côté App depuis le 27 nov., QS37),
   à droite les colonnes (GUADO, Collaborer, Parlons de vous), tout en bas une ligne pour le légal.
   Le « GUADO » en filigrane est retiré (Landry, 25 nov. 2026).
   Les couleurs suivent la rubrique : pêche sur l'App et les pages communes, sombre sur le Conseil. */
.pied {
  position: relative;
  margin-top: var(--space-16);
}
/* la mascotte se hisse au bord de la barre (Landry, 27 nov. 2026, fil 64, QS36 ; outils/poses-mascotte.py) : la tête
   jusqu'au nez, les doigts repliés sur le bord, par-dessus la barre. La scène a la hauteur de ce qui dépasse
   (la ligne du bord est à 80,6 % de l'image) ; les doigts descendent sur la barre. Accueil : « Idée » ; Conseil : « Réflexion ». */
.pied__scene {
  position: relative;
  z-index: 2;
  height: 87px;
  pointer-events: none;
}
.pied__mascotte {
  position: absolute;
  left: 50%;
  top: 0;
  width: 210px;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}
.conseil .pied__scene { height: 89px; }
.conseil .pied__mascotte { width: 169px; }
.pied__barre {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--fond-peche), var(--peche));
  color: var(--ink);
}
.pied__grille {
  display: grid;
  gap: var(--space-12);
  padding-top: clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) {
  .pied__grille { grid-template-columns: 1fr 1.6fr; gap: var(--space-16); }
}
/* la phrase porte l'appel, comme le titre de la lettre d'information chez Sunsama */
.pied__phrase {
  max-width: 360px;
  margin: var(--space-6) 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pied__appel { margin-top: var(--space-6); max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; }
.pied__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-4);
  font-size: var(--fs-ui);
  font-weight: 500;
  text-decoration: none;
}
.pied__social:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied__social-logo { flex: none; }
.pied__marque { display: flex; flex-direction: column; align-items: flex-start; }
.pied__colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
@media (min-width: 640px) {
  .pied__colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* les trois têtes de colonne ressortent (Landry, 26 nov. 2026) : en titre, à l'encre */
.pied__titre {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pied__liens { display: grid; margin: 0; padding: 0; list-style: none; }
.pied__lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-ui);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.pied__lien:hover, .pied__lien[aria-current="page"] { text-decoration: underline; }
.pied__bas {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-5);
  padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: var(--fs-caption);
  color: var(--ink-2);
}
.pied__bas p { margin: 0; }
.pied__bas { align-items: center; }
/* la ligne du bas : les droits, le légal, le domaine */
.pied__legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) {
  .pied__droits { flex: none; }
  .pied__legal { flex: 1; }
}
.pied__lien-legal {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 4px;
}
.pied__lien-legal:hover, .pied__lien-legal[aria-current="page"] { text-decoration: underline; }
.pied :focus-visible { outline-color: var(--accent); }

/* le Conseil : le même pied, sur le sombre de sa palette */
.conseil .pied__barre { background: var(--surface-inverse); color: var(--ink-inverse); }
.conseil .pied__titre,
.conseil .pied__bas { color: var(--lilas); }
.conseil .pied__bas { border-top-color: color-mix(in srgb, var(--ink-inverse) 16%, transparent); }
.conseil .pied .logo { --logo-nom: url("../img/logo/guado-nom-inverse.webp"); }
.conseil .pied__phrase,
.conseil .pied__lien-legal { color: var(--ink-inverse); }
/* le rendez-vous du Conseil : le bouton anthracite du Conseil, inversé sur le sombre du pied */
.pied__appel--conseil { background: var(--ink-inverse); color: var(--surface-inverse); }
.conseil .pied :focus-visible { outline-color: var(--lilas); }

/* ---------- Mentions légales (QS7) ---------- */
.legal {
  max-width: 820px;
  padding-top: var(--space-16);
  padding-bottom: var(--space-24);
}
.legal__surtitre { color: var(--accent-hover); }
.legal__titre { margin-top: var(--space-4); font-size: clamp(38px, 5vw, 64px); }
.legal__chapo { margin: var(--space-6) 0 0; font-size: var(--fs-lead); color: var(--ink-2); }
.legal__sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-12) 0;
}
.legal__sommaire a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-ui);
  font-weight: 500;
  text-decoration: none;
}
.legal__sommaire a:hover { border-color: var(--line-strong); }
.legal__corps section {
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  scroll-margin-top: var(--space-6);
}
.legal__corps h2 {
  margin: var(--space-12) 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.3;
}
.legal__corps section > h2:first-child { margin-top: 0; }
.legal__corps p, .legal__corps li { color: var(--ink-2); }
.legal__corps p { margin: 0 0 var(--space-4); }
.legal__corps ul { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
.legal__corps li { margin-bottom: var(--space-1); }
.legal__corps a { color: var(--accent-hover); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__fiche { margin: 0 0 var(--space-4); }
.legal__fiche div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}
.legal__fiche div:last-child { border-bottom: 1px solid var(--line); }
.legal__fiche dt { font-weight: 600; font-size: var(--fs-body-sm); }
.legal__fiche dd { margin: 0; color: var(--ink-2); }
.legal__date { font-size: var(--fs-body-sm); color: var(--ink-muted); }
/* conditions de l'offre : l'essentiel en quatre cases, le formulaire de rétractation */
.legal__resume {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-12) 0 0;
}
.legal__resume.legal__resume--section { margin: var(--space-4) 0 var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legal__resume--section .legal__resume-case { padding: var(--space-3) var(--space-4); }
.legal__resume--section .legal__resume-case .legal__resume-chiffre { font-size: 22px; }
@media (max-width: 359.98px) {
  .legal__resume.legal__resume--section { grid-template-columns: 1fr; }
}
.legal__resume-case {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.legal__resume-case p { margin: 0; font-size: var(--fs-body-sm); line-height: 1.4; color: var(--ink-2); }
.legal__resume-case .legal__resume-chiffre {
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.legal__formulaire {
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--ground);
}
.legal__formulaire p { font-size: var(--fs-body-sm); }
.legal__formulaire p:last-child { margin-bottom: 0; }
.legal__formulaire-titre { font-weight: 600; color: var(--ink) !important; }
@media (max-width: 760px) {
  .legal__resume { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .legal__fiche div { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* ---------- Pages provisoires (App, Conseil) ---------- */
.provisoire {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  text-align: center;
}

/* ---------- Emplacement à fournir (visible exprès) ---------- */
.a-fournir {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

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

/* ---------- Surfaces du navigateur, aux couleurs de la charte (Landry, 27 nov. 2026, S064) : la sélection, le curseur de
   saisie, les cases, et la barre de défilement suivent l'accent de la rubrique (App ou Conseil). ---------- */
::selection { background: var(--lilas); color: var(--ink); }
html { caret-color: var(--accent); accent-color: var(--accent); scrollbar-color: color-mix(in srgb, var(--accent) 45%, transparent) transparent; }
