/* ============================================================
   BASE — reset, typographie, conteneur, boutons, header, footer,
   formes décoratives et utilitaires partagés par toutes les pages.
   Ne contient aucune couleur en dur : tout vient de tokens.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--heading-weight); line-height: 1.2; }
p { font-weight: 300; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }

/* Titres "Trueno" */
.h-trueno { font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); }
.h-trueno--tight { letter-spacing: -2px; }
.txt-primary { color: var(--primary); }
.txt-deep { color: var(--primary-dark); }
.txt-center { text-align: center; }
.upper { text-transform: uppercase; }

/* Conteneur : 1320px avec 12px de marge interne = 1296px de contenu */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--container-pad); }
.container--narrow { max-width: 1060px; }
.section { position: relative; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 24px;
  color: var(--white); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary { background: var(--grad-primary); }
.btn--primary:hover { background: var(--grad-primary-hover); }
.btn--sunset { background: var(--grad-sunset); font-size: 18px; line-height: 27px; }
.btn--sunset:hover { filter: brightness(1.08); }
.btn--gold { background: var(--grad-gold); color: var(--ink-strong); }
.btn--outline { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-soft); }
.btn--ghost { background: var(--grey-100); color: var(--grey-700); }
.btn--pill { border-radius: var(--radius-pill); }
.btn--lg { padding: 12px 24px; line-height: 26px; }
.btn--block { width: 100%; }
.btn--solid { background: var(--primary); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); box-shadow: var(--shadow-card);
  height: var(--header-h); padding: 12px 0 6px;
}
.header__inner {
  height: 100%; max-width: var(--header-inner); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo img { width: 148px; height: 50px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-radius: var(--radius); color: var(--ink-strong); font-size: 16px;
  transition: background var(--dur) var(--ease);
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--grey-100); }
.nav__link img { width: 18px; height: 18px; }
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
  padding: 10px; display: none; z-index: 20;
}
.nav__item.is-open .nav__dropdown { display: block; }
.nav__dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink-strong); font-size: 15px; }
.nav__dropdown a:hover { background: var(--grey-100); color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: 24px; }
.header__login { color: var(--primary); font-size: 18px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.header__register { padding: 10px 20px; font-size: 18px; line-height: 27px; }
.lang {
  display: flex; border: 1px solid var(--grey-100); border-radius: var(--radius-sm); overflow: hidden; margin-left: 8px;
}
.lang button { width: 36px; height: 36px; display: grid; place-items: center; }
.lang button.is-active { background: var(--ink-soft); }
.lang img { width: 24px; height: 24px; border-radius: 50%; }
.burger { display: none; width: 66px; height: 66px; border-radius: 50%; background: var(--primary); place-items: center; }
.burger img { width: 30px; height: 30px; filter: invert(1); }

/* Menu mobile (panneau) */
.mobile-menu {
  display: none; position: absolute; left: 12px; right: 12px; top: calc(var(--header-h) - 6px);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: 24px 28px 28px; z-index: 90;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__hello { color: var(--grey-700); font-size: 20px; font-weight: 500; margin-bottom: 20px; }
.mobile-menu__auth { display: flex; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--grey-100); margin-bottom: 30px; }
.mobile-menu__auth .btn { font-size: 20px; padding: 12px 24px; }
.mobile-menu__auth .btn img { width: 22px; height: 22px; }
.mobile-menu__title { color: var(--grey-700); font-size: 20px; font-weight: 500; margin-bottom: 20px; }
.mobile-menu__list a, .mobile-menu__list summary { display: flex; align-items: center; gap: 14px; padding: 16px 0; font-size: 20px; color: var(--ink-strong); cursor: pointer; list-style: none; }
.mobile-menu__list summary::-webkit-details-marker { display: none; }
.mobile-menu__list img { width: 26px; height: 26px; }
.mobile-menu__list details a { padding: 8px 0 8px 40px; font-size: 18px; }
.mobile-menu .lang { display: inline-flex; margin: 30px 0 0; }

@media (max-width: 991px) {
  :root { --header-h: 84px; }
  .header { padding: 9px 0; }
  .nav, .header__actions { display: none; }
  .burger { display: grid; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink-strong); color: var(--grey-100); padding: 64px 30px 48px; margin-top: 120px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px 120px; align-items: start; }
.footer__logo img { width: 187px; height: 46px; }
.footer__title { font-family: var(--font-heading); font-weight: 700; font-size: 30px; letter-spacing: -1px; margin: 20px 0 30px; color: var(--grey-100); }
.footer__link { display: inline-block; font-size: 15px; color: var(--grey-100); padding: 6px 4px 6px 0; }
.footer__link:hover { text-decoration: underline; }
.footer__social { display: flex; gap: 0; margin-top: 30px; }
.footer__social img { width: 34px; height: 34px; }
.footer__col-title { font-size: 18px; font-weight: 600; text-transform: uppercase; color: var(--white); margin: 8px 0 28px; }
.footer__col a { display: block; padding: 6px 4px 6px 12px; font-size: 15px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 40px; font-size: 15px; }
.footer__bottom a { padding: 6px 4px 6px 12px; }
.footer__bottom a:first-child { padding-left: 0; }
.footer__copy { text-align: center; font-size: 14px; color: var(--white); padding-top: 16px; }
@media (max-width: 767px) {
  .footer { padding: 48px 24px 32px; margin-top: 80px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__title { font-size: 26px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom span { display: none; }
  .footer__bottom a { padding-left: 0; }
}

/* ---------- Formes décoratives ----------
   Utilisation : <svg class="shape shape--arc" style="--c: var(--yellow)"><use href="#sh-arc"/></svg>
   La couleur vient de --c (currentColor). Position : classes utilitaires ou style inline. */
.shape { position: absolute; color: var(--c, var(--primary)); pointer-events: none; z-index: 1; }
.shape--arc { width: 43px; height: 79px; }
.shape--l { width: 44px; height: 44px; }
.shape--comma { width: 41px; height: 66px; }
.shape--comma-lg { width: 51px; height: 76px; }
.shape--d { width: 65px; height: 65px; }
.shape--dot { width: 32px; height: 32px; }
/* Formes en dégradé : utiliser les symboles #sh-l-gold, #sh-comma-gold, #sh-comma-sunset (le CSS ne traverse pas <use>). */
.shape--grad-gold { color: var(--yellow); }
.shape--grad-sunset { color: var(--peach); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 991px) { .shape--desktop { display: none; } }

/* ---------- Utilitaires ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 12px; height: 12px; fill: var(--yellow); }
.avatar { border-radius: 50%; object-fit: cover; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-section { margin-top: 150px; }
@media (max-width: 767px) { .mt-section { margin-top: 90px; } }

/* Apparition au scroll (activée par JS : .reveal -> .is-visible) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
