/* ═══════════════════════════════════════════════════════════════════
   layout.css — AECJ Les Mureaux
   Base de mise en page : container · boutons · badges · utilitaires
   Mobile-first. Aucune couleur hex — uniquement variables tokens.css.
   ═══════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────
   CONTAINER
   ────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 5%;
}

@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}


/* ──────────────────────────────────────────────────────────────────
   BOUTONS
   .btn                  — base commune
   .btn-primary          — vert principal
   .btn-outline          — bordure verte sur fond blanc
   .btn-outline-light    — bordure blanche (sur fond sombre)
   .btn-gold             — fond or, texte encre
   .btn-sm               — variante petite taille
   ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:hover { text-decoration: none; }

.btn:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 2px;
}

/* Primaire — vert */
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

/* Outline — fond blanc / bordure verte */
.btn-outline {
  background: var(--white);
  color: var(--green);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green);
}

/* Outline light — sur fonds sombres */
.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.28);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.07);
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

/* Or — fond doré, texte encre */
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  opacity: .88;
  color: var(--ink);
}

/* Petite taille */
.btn-sm {
  font-size: 12px;
  padding: 8px 16px;
}


/* ──────────────────────────────────────────────────────────────────
   BADGES
   .badge             — base
   .badge-green       — fond vert pâle, texte vert
   .badge-gold        — fond doré pâle, texte or
   .badge-orange      — fond orange pâle, texte orange-dark
   .badge-red         — fond rouge pâle, texte rouge
   ────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-green {
  background: #e8f5ee;   /* sémantique — ne suit PAS la couleur tenant */
  color: #1a6b3f;        /* vert validé fixe */
}

.badge-gold {
  background: var(--gold-light);
  color: var(--gold);
}

.badge-orange {
  background: var(--orange-light);
  color: var(--orange-dark);
}

.badge-red {
  background: var(--red-light);
  color: var(--red);
}


/* ──────────────────────────────────────────────────────────────────
   UTILITAIRES
   ────────────────────────────────────────────────────────────────── */

/* Protéger l'attribut HTML [hidden] contre les display: flex/grid des composants */
[hidden] { display: none !important; }

.text-muted  { color: var(--muted); }
.text-center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link accessibilité */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green);
  color: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top .2s;
}

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


/* ──────────────────────────────────────────────────────────────────
   UTILITAIRES — section headings (partagés entre toutes les pages)
   ─────────────────────────────────────────────────────────────────── */

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--green-mid);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

@media (min-width: 1024px) {
  .section-title { font-size: 30px; }
}


/* ──────────────────────────────────────────────────────────────────
   COMPOSANT — HERO DE PAGE (partagé entre toutes les pages)
   Usage : <section class="page-hero [page-hero--sm]">
             <div class="container">
               <p class="page-hero-eyebrow"><span class="page-hero-eyebrow-dot"></span> Texte</p>
               <h1 class="page-hero-title">…</h1>
               <p class="page-hero-desc">…</p>
               <div class="page-hero-stats"> … </div>
             </div>
           </section>
   ────────────────────────────────────────────────────────────────── */

/* Base */
 .page-hero {
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
}

/* Variante compacte (pages secondaires) */
.page-hero--sm {
  padding: 40px 0 36px;
}

/* Pill eyebrow */
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  width: fit-content;
}

.page-hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Titre H1 */
.page-hero-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-title em {
  font-style: normal;
  color: color-mix(in srgb, var(--gold) 90%, transparent); /* dorure décorative sur fond vert foncé */
}

@media (min-width: 768px) {
  .page-hero-title { font-size: 40px; }
}

/* Description */
.page-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 28px;
}

/* Actions CTA */
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

/* Stats — version boîte (tarifs, pages info) */
.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.page-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  gap: 2px;
}

.page-hero-stat-sep {
  width: 1px;
  background: rgba(255,255,255,.12);
  align-self: stretch;
}

.page-hero-stat-num {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.page-hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* Stats — version inline (home) */
.page-hero-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.page-hero-stat-inline {
  display: flex;
  flex-direction: column;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.page-hero-stat-inline:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.page-hero-stat-inline-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.page-hero-stat-inline-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
  letter-spacing: .03em;
}
