/* =============================================================
   Home — styles spécifiques à la page d'accueil.
   ----------------------------------------------------------------
   Les composants partagés (.cta-card, .quote-card, .page-hero,
   .editorial, .manifesto, .bridge, .factbox) sont dans site.css.
   Ce fichier ne contient que les sections propres à la home :
   le grand hero, les stats, les thématiques, les projets et le
   processus.
   ============================================================= */

/* =========================================================
   HERO — éditorial, fond crème, alignement à gauche
   ----------------------------------------------------------
   Spécifique à la home : taille display monumentale (jusqu'à
   104 px) et cercles ocre décoratifs. Les autres pages utilisent
   .page-hero (cf. site.css §6.1).
   ========================================================= */
.hero {
  background: var(--marine);
  color: var(--marine);
  padding-block: clamp(96px, 12vw, 168px) clamp(80px, 11vw, 144px);
  position: relative; overflow: hidden;
}
.hero .hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  justify-items: start; text-align: left;
}
.hero .hero-inner { max-width: 880px; margin-left: 0; }

.hero .eyebrow { color: color-mix(in srgb, var(--marine) 60%, transparent); }

/* CTA principal du hero — ocre solaire, plus haut que les .btn standards
   pour gagner du poids visuel sur le marine. */
.btn-hero-home {
  background-color: var(--ocher);
  height: 60px;
}
/* CTA secondaire du hero — contour paper sur marine */
.btn-secondary-hero-home {
  border: 1px solid var(--paper);
  color: var(--sand);
}
.btn-secondary-hero-home:hover {
  background-color: var(--marine-deep);
}

/* Variante de .eyebrow sur fond marine — surcharge juste la couleur.
   À utiliser conjointement : <span class="eyebrow eyebrow-white">
   Sélecteur double-classe pour gagner sur `.hero .eyebrow` qui forcerait
   sinon un marine semi-transparent (invisible sur fond marine). */
.eyebrow.eyebrow-white { color: var(--paper); }
/* Pas de filet ocre devant l'eyebrow du hero — décision spécifique à la
   home : le texte reste collé au bord gauche pour un alignement net
   avec le grand titre en dessous. */
.eyebrow.eyebrow-white::before { display: none; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.04; letter-spacing: -0.022em;
  color: var(--paper);
  max-width: 14ch; margin: 28px 0 32px;
}
.hero h1 em { font-style: italic; color: var(--ocher); font-weight: 300; }
.hero .hero-lede {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--paper);
  max-width: 54ch;
  text-wrap: pretty;
}
.hero .hero-actions {
  display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap;
}
.hero .hero-meta {
  margin-top: 72px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--sand);
  letter-spacing: 0.04em;
}
.hero .hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ocher); }
.hero-rule {
  display: block; width: 56px; height: 1px;
  background: var(--ocher);
  margin-bottom: 8px;
}

/* Ornements (cercles ocres) — discrets */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  top: -160px; right: -120px; width: 520px; height: 520px;
  border: 1px solid color-mix(in srgb, var(--ocher) 36%, transparent);
}
.hero::after {
  bottom: -240px; right: 14%; width: 360px; height: 360px;
  border: 1px solid color-mix(in srgb, var(--ocher) 18%, transparent);
}

/* =========================================================
   STATS — bandeau chiffres
   ========================================================= */
.stats { background: var(--sand); padding-block: clamp(72px, 9vw, 112px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { padding-left: 28px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(56px, 6.5vw, 88px); line-height: 1; color: var(--marine);
  letter-spacing: -0.025em;
}
.stat-num .unit { font-size: 0.4em; color: var(--stone-500); margin-left: 4px; font-style: normal; }
.stat-label { font-size: 14px; color: var(--stone-700); margin-top: 18px; line-height: 1.55; max-width: 24ch; }

/* =========================================================
   THÉMATIQUES — trois cartes
   ========================================================= */
.themes { padding-block: var(--section-y);  }
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theme-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-2); padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.theme-card:hover { border-color: var(--ocher); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.theme-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ocher-deep); }
.theme-card h3 { color: var(--marine); font-size: 22px; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.theme-card p { font-size: 14px; color: var(--stone-700); line-height: 1.65; }
.theme-link {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule);
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--marine); display: inline-flex; align-items: center; gap: 10px;
  transition: color var(--t-fast), gap var(--t-base);
}
.theme-link::after { content: "→"; transition: transform var(--t-base); }
.theme-link:hover { color: var(--ocher-deep); }
.theme-link:hover::after { transform: translateX(4px); }

/* =========================================================
   PROJETS — section conteneur (le pattern .project lui-même
   est promu dans site.css §6.3b)
   ========================================================= */
.projects { padding-block: var(--section-y); background: var(--sand);}
.section-foot { margin-top: 56px; display: flex; justify-content: center; }

/* =========================================================
   PROCESSUS — section sombre, 4 étapes reliées par un filet ocre
   ========================================================= */
.process { padding-block: var(--section-y); background: var(--marine); color: var(--paper); }
.process .section-head h2 { color: var(--paper); }
.process .section-head .desc { color: var(--paper-72); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 32px; position: relative;
}
.process-steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    color-mix(in srgb, var(--ocher) 55%, transparent),
    color-mix(in srgb, var(--ocher) 55%, transparent),
    transparent);
}
.step { position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--marine); border: 1px solid var(--ocher); color: var(--ocher);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 16px;
  margin-bottom: 22px; position: relative; z-index: 2;
}
.step h3 { font-family: var(--sans); font-size: 16px; color: var(--paper); margin-bottom: 10px; font-weight: 600; letter-spacing: 0; }
.step p { font-size: 13px; line-height: 1.65; color: var(--paper-72); }
.step-tag {
  margin-top: 16px; display: inline-block; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ocher); padding-top: 12px; border-top: 1px solid var(--paper-18);
}

/* =========================================================
   Responsive — cascade 4/3 cols → 2 cols → 1 col
   ----------------------------------------------------------
   Breakpoints alignés sur la convention tokens.css §6
   (sm 480 / md 720 / lg 980).
   ========================================================= */
@media (max-width: 980px) {
  /* process-steps part de 4 colonnes : on passe à 2 dès 980 ;
     le filet ocre est aligné sur 4 cols donc on le masque ici. */
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .process-steps::before { display: none; }
}
@media (max-width: 860px) {
  /* themes-grid part de 3 colonnes : étape intermédiaire à 2 cols. */
  .themes-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  /* stats-grid (4 cols) → 2 cols pour rester lisible sur tablette portrait. */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat { border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--rule); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat:nth-child(2) { border-top: 0; padding-top: 0; }  /* la 2e col du 1er rang aussi */
  /* Hero accueil : padding top resserré sur mobile, meta plus proche du CTA. */
  .hero { padding-block: clamp(64px, 12vw, 112px) clamp(56px, 9vw, 96px); }
  .hero .hero-meta { margin-top: 40px; gap: 12px; }
  .hero .hero-actions { margin-top: 32px; }
  /* Décor du hero : recentré pour ne pas créer de scroll horizontal */
  .hero::before { width: 320px; height: 320px; top: -120px; right: -100px; }
  .hero::after { display: none; }
}
@media (max-width: 560px) {
  .themes-grid, .process-steps { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 24px; }
  /* Hero accueil : actions en pleine largeur pour tap confort */
  .hero .hero-actions { width: 100%; }
  .hero .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
