/* ============================================================
   Kayden Couverture — base.css
   Variables, reset, typographie, utilitaires
   Concept « Bleu Doubs » : bleu nuit + blanc + touches de jaune
   ============================================================ */

:root {
  /* Couleurs */
  /* Bleu de marque #30597a (teinte 207°) et ses deux dérivés, calés sur la
     même teinte pour que toute la gamme reste d'une seule famille.
     --deep sert aux fonds profonds, aux voiles photo et au texte posé sur
     les boutons dorés ; --soft aux dégradés et aux bas de section. */
  --anthracite: #30597a;
  --anthracite-deep: #1b3550;
  --anthracite-soft: #3d6d93;
  --or: #eaa623;
  --or-bright: #f4bb3d;
  --or-light: #ffd166;
  /* Variante plus soutenue pour le texte doré sur fond clair : --or seul
     n'offre pas assez de contraste (2:1) pour du texte, --or-deep si. */
  --or-deep: #a06a12;
  --blanc: #ffffff;
  --blanc-casse: #f7fafc;
  --paper: #eaf0f6;

  /* Texte */
  --text: #14283b;
  --text-soft: #445a6f;
  --text-muted: #7a8fa1;
  --text-on-dark: #f2f6f9;
  /* Éclairci avec le fond : sur l'ancien bleu très sombre l'ancien ton
     donnait 8,5:1, mais seulement 4,3:1 sur #30597a — sous le seuil. */
  --text-on-dark-soft: #c8d6e2;

  /* Lignes */
  --line: #dce6ee;
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Typo */
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Échelle fluide */
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.25rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.5rem);
  --step-5: clamp(3rem, 2.2rem + 4.2vw, 6rem);

  /* Rythme */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 14px;
  --radius-sm: 10px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

/* Accent or — un seul mot par titre.
   Par défaut (fond clair) : --or-deep, plus contrasté que --or pour du texte.
   Sur fond sombre : --or-light, plus lumineux, contraste large. */
.gold {
  color: var(--or-deep);
  font-style: italic;
}
.hero .gold, .hero .section-kicker--gold,
.services .gold, .services .section-kicker--gold,
.reassurance .gold, .reassurance .section-kicker--gold,
.proof .gold, .proof .section-kicker--gold,
.contact .gold, .contact .section-kicker--gold,
.zone .gold, .zone .section-kicker--gold,
.page-hero .gold, .page-hero .section-kicker--gold,
.hero-split .gold, .hero-split .section-kicker--gold,
.media-feature .gold, .media-feature .section-kicker--gold,
.block--dark .gold, .block--dark .section-kicker--gold,
.block--night .gold, .block--night .section-kicker--gold,
.section-title--light .gold,
.section-lede--light .gold {
  color: var(--or-light);
}

::selection {
  background: var(--or-light);
  color: var(--anthracite-deep);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-kicker {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* --text-muted ne donnait que 3,35:1 sur fond clair ; le seul sur-titre
     non doré du site est sur fond clair, où --text-soft atteint 7,1:1. */
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}

/* Sur-titres : sur fond clair ils passent au bleu de marque plutôt qu'à l'or.
   Ils reviennent une dizaine de fois par page — en or, ils chargeaient
   l'ensemble de jaune. L'or reste sur les fonds sombres, où il tranche, et
   sur les mots accentués des titres, qui sont la vraie signature. */
.section-kicker--gold {
  color: var(--anthracite);
}

.section-title {
  font-size: clamp(1.7rem, 1.25rem + 1.65vw, 2.6rem);
  max-width: 24ch;
  line-height: 1.12;
}

.section-title--light {
  color: var(--text-on-dark);
}

/* En-tête de section centré (preuve, zone, contact) */
.section-head--center {
  text-align: center;
}
.section-head--center .section-title,
.section-head--center .section-lede {
  margin-inline: auto;
}
.section-head--center .section-kicker::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin: 0.9rem auto 0;
  background: var(--or);
}

.section-lede {
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 58ch;
  margin-top: 1.3rem;
  line-height: 1.55;
}

.section-lede--light {
  color: var(--text-on-dark-soft);
}

/* Accessibilité */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--anthracite);
  color: var(--blanc);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

[hidden] {
  display: none !important;
}
