/* =========================================================================
   Festival FAUNE - page d'accueil (phase 1)  EC-FF-2026-001
   Systeme visuel : Direction A du sondage (navy #042658, bleu #1445b3, or
   #fad40e, degrade ciel) + poster officiel 2026 (ciel bleu, nuages, champ de
   fleurs jaunes, boule disco, colibri, monogramme ligne claire, FAUNE serif
   retro). Bleu ciel = base. Aucune couleur orange en base.
   Partage entre accueil.html (FR) et accueil-en.html (EN).
   ========================================================================= */

:root {
  --navy: #042658;
  --navy-2: #0b3f86;
  --blue: #1445b3;
  --blue-press: #0d3590;
  --sky: #2180cd;
  --sky-soft: #7fb8e8;
  --sky-light: #cfe6f7;
  --gold: #fad40e;
  --gold-field: #e8c84a;
  --gold-deep: #c79a12;
  --teal: #2f9e7a;
  --teal-bright: #3fb58c;
  --ink: #181511;
  --ink-soft: #4a443a;
  --surface: #ffffff;
  --surface-tint: #eef5fc;
  --card-border: #c9ddee;
  --border-strong: #5b7fa6;
  --hero-ink: #faf4df;
  --hero-ink-soft: #d7e6f5;
  --focus: #042658;
  --maxw: 1120px;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(4, 38, 88, 0.10);
  --shadow-soft: 0 4px 16px rgba(4, 38, 88, 0.08);
  --font-ui: 'Satoshi', 'Archivo', system-ui, -apple-system, sans-serif;
  /* Correctif codirection 8 juillet : police d'affichage unifiee sur Satoshi.
     --font-display pointe desormais la meme pile que --font-ui. */
  --font-display: 'Satoshi', 'Archivo', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  background: linear-gradient(180deg, #cfe5f7 0%, #e7f1fb 28%, #ffffff 58%) fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

/* ---- Accessibilite : lien d'evitement + focus ---- */
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 100; font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.hero :focus-visible,
.footer :focus-visible { outline-color: var(--gold); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0);
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* =========================================================================
   Barre superieure : marque + bascule de langue
   ========================================================================= */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px;
  max-width: var(--maxw); margin: 0 auto;
}
.topbar__brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--hero-ink); text-decoration: none; font-weight: 700;
  letter-spacing: 0.02em;
}
.topbar__brand svg { width: 30px; height: 30px; }
.topbar__brand-word { font-family: var(--font-display); font-weight: 900; font-size: 19px; }
.topbar__brand-wordmark { height: 18px; width: auto; }

.lang-switch { display: inline-flex; gap: 4px; align-items: center; }
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 14px;
  text-decoration: none; line-height: 1;
}
.lang-switch a {
  color: var(--hero-ink); border: 1.5px solid rgba(250, 244, 223, 0.55);
}
.lang-switch a:hover { background: rgba(250, 244, 223, 0.16); }
.lang-switch [aria-current="true"] {
  background: var(--hero-ink); color: var(--navy); border: 1.5px solid var(--hero-ink);
}

/* =========================================================================
   HERO : background officiel complet (ciel, montagnes, champ de fleurs,
   boule disco, colibris integres) + bloc texte
   ========================================================================= */
.hero {
  position: relative;
  padding-top: 72px;
  background-color: #0a3a7a;
  --hero-photo: url(/assets/hero-bg-2026-2560.webp);
  background-image:
    linear-gradient(180deg, rgba(4,26,62,0.62) 0%, rgba(4,26,62,0.34) 38%, rgba(4,26,62,0.06) 62%, rgba(4,26,62,0) 76%),
    var(--hero-photo);
  background-size: cover, cover;
  background-position: center, center bottom;
  background-repeat: no-repeat, no-repeat;
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(560px, 88vh, 900px);
}
/* Le decor complet (ciel, nuages, montagnes, champ de fleurs, boule disco,
   colibris) provient du background officiel fourni par la codirection le
   6 juillet (variantes responsive webp). Aucune couche superposee. */
@media (max-width: 1920px) { .hero { --hero-photo: url(/assets/hero-bg-2026-1920.webp); } }
@media (max-width: 1280px) { .hero { --hero-photo: url(/assets/hero-bg-2026-1280.webp); } }
@media (max-width: 828px)  { .hero { --hero-photo: url(/assets/hero-bg-2026-828.webp); } }

.hero__inner {
  position: relative; z-index: 3;
  max-width: 880px; margin: 0 auto;
  padding: 26px 20px clamp(220px, 26vw, 340px);
  text-align: center;
  text-shadow: 0 1px 12px rgba(2, 14, 36, 0.45);
}
.hero__wordmark {
  display: block; margin: 4px auto 6px;
  width: clamp(248px, 58vw, 560px); height: auto;
  filter: drop-shadow(0 6px 22px rgba(2, 18, 44, 0.35));
}
.hero__sub {
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: clamp(12px, 2.4vw, 15px); color: var(--hero-ink);
}
.hero__intro {
  margin: 18px auto 0; max-width: 30em;
  font-size: clamp(16px, 2.2vw, 19px); color: var(--hero-ink);
}
.hero__presenter {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--hero-ink); font-weight: 600;
}
.hero__presenter strong { color: #fff; font-weight: 800; letter-spacing: 0.02em; text-transform: none; font-size: 15px; }
.hero__presenter-logo { height: 26px; width: auto; }
.hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 720px) {
  .hero__inner { padding-bottom: 210px; }
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 44px; padding: 0 22px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--blue-press); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-soft); }
.btn-gold:hover { background: #ffe04a; }
.btn-ghost-light { background: rgba(4, 38, 88, 0.30); color: var(--hero-ink); border-color: rgba(250, 244, 223, 0.78); }
.btn-ghost-light:hover { background: rgba(250, 244, 223, 0.2); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--surface-tint); }

/* =========================================================================
   Sections generiques
   ========================================================================= */
.section { padding: 56px 0; position: relative; }
.section--tint { background: linear-gradient(180deg, rgba(207, 230, 247, 0.55), rgba(255, 255, 255, 0)); }
.section__head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.section__kicker {
  display: inline-block; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 13px; color: var(--blue);
  background: #e9effc; padding: 5px 14px; border-radius: var(--radius-pill);
}
.section__title {
  /* Correction codirection C7 + decision EC D2 (2026-07-06) : titres de
     section en Satoshi Black. Tailles/couleurs inchangees. */
  font-family: var(--font-ui); font-weight: 900; color: var(--navy);
  font-size: clamp(28px, 5vw, 44px); line-height: 1.05; margin: 14px 0 8px;
}
.section__lead { color: var(--ink-soft); font-size: clamp(16px, 2.2vw, 18px); }
.anchor { scroll-margin-top: 24px; }

.draft-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 4px auto 0; padding: 7px 14px; border-radius: var(--radius-pill);
  background: #fffbe9; border: 1px solid #e6cf73; color: #5b4a08;
  font-size: 13.5px; font-weight: 600;
}
.draft-note svg { width: 16px; height: 16px; flex: none; }

/* ---- Programmation ---- */
.poster-fig { max-width: 440px; margin: 0 auto 32px; text-align: center; }
.poster-fig img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid var(--card-border); }
.poster-fig figcaption { margin-top: 9px; font-size: 13.5px; color: var(--ink-soft); }

.events { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .events { grid-template-columns: 1fr; } }

.event {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px;
}
.event__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.event__date { font-family: var(--font-display); font-weight: 900; color: var(--navy); font-size: 26px; line-height: 1.05; }
.event__name { font-weight: 700; color: var(--blue); font-size: 15px; margin-top: 2px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px;
  border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.02em;
}
.badge--free { background: var(--gold); color: var(--navy); }
.badge--paid { background: #e9effc; color: var(--blue-press); border: 1px solid var(--card-border); }
.badge--soon { background: #f0f2f5; color: var(--ink-soft); border: 1px solid #d9dee6; }

.event__meta { color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.event__pitch { font-style: italic; color: var(--ink-soft); font-size: 15px; margin: 0; }
.lineup { border-top: 1px dashed var(--card-border); padding-top: 12px; }
.lineup + .lineup { margin-top: 4px; }
.lineup__label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #3f5f87; margin-bottom: 7px;
}
.act { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 15.5px; }
.act__name { font-weight: 700; color: var(--ink); }
.act__time { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
@media (max-width: 480px) {
  .act { flex-direction: column; gap: 1px; }
  .act__time { white-space: normal; text-align: left; }
}
.event__link { margin-top: 4px; align-self: flex-start; }

/* ---- Tirage ---- */
.raffle { max-width: 760px; margin: 0 auto; }
.raffle__embed {
  border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card); background: #fff;
  min-height: 520px;
}
.raffle__embed iframe { width: 100%; min-height: 760px; border: 0; display: block; }
.raffle__fallback { text-align: center; margin-top: 18px; color: var(--ink-soft); font-size: 14.5px; }

/* ---- Infolettre ---- */
.news { max-width: 620px; margin: 0 auto; }
.news__form { display: grid; gap: 12px; margin-top: 18px; }
.field { display: grid; gap: 6px; text-align: left; }
.field label { font-weight: 700; font-size: 14px; color: var(--navy); }
.field input[type="email"], .field input[type="text"] {
  min-height: 48px; padding: 0 14px; font-size: 16px; font-family: var(--font-ui);
  border: 2px solid var(--border-strong); border-radius: 12px; background: #fff; color: var(--ink);
}
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13.5px; color: var(--ink-soft); }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.news__submit { justify-content: center; margin-top: 4px; }
.form-status { min-height: 20px; font-size: 14px; font-weight: 600; text-align: center; }

/* ---- Reseaux sociaux ---- */
.social { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.social a {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 18px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--card-border); box-shadow: var(--shadow-soft);
  color: var(--navy); text-decoration: none; font-weight: 700;
}
.social a:hover { background: var(--surface-tint); }
.social svg { width: 22px; height: 22px; }

/* ---- Covoiturage : boutons stores officiels (section B, 8 juillet) ---- */
.store-badges {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  justify-content: center; align-items: center; margin-top: 8px;
}
.store-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 2px; border-radius: 12px;
}
.store-badge img { display: block; width: auto; }
.store-badge--apple img { height: 44px; }
.store-badge--google img { height: 64px; }
.store-badge:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---- Partenaires ---- */
.partners { max-width: 940px; margin: 0 auto; display: grid; gap: 18px; }
.partner-tier { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-soft); }
.partner-tier__label { font-weight: 800; color: var(--blue-press); letter-spacing: 0.04em; font-size: 14px; text-transform: uppercase; margin-bottom: 10px; }
.partner-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.partner-list li { background: var(--surface-tint); border: 1px solid var(--card-border); border-radius: 10px; padding: 7px 13px; font-weight: 600; font-size: 15px; color: var(--ink); }
.partner-tier--lead .partner-list li { background: var(--navy); color: #fff; border-color: var(--navy); font-size: 16px; }

/* ---- En bref ---- */
.brief { max-width: 720px; margin: 0 auto; text-align: center; color: var(--ink-soft); font-size: clamp(16px, 2.2vw, 18px); }
.brief p + p { margin-top: 14px; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  margin-top: 10px; background: var(--navy); color: var(--hero-ink);
  padding: 46px 0 34px;
}
.footer a { color: var(--hero-ink); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 26px 48px; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand svg { width: 44px; height: 44px; }
.footer__brand-word { font-family: var(--font-display); font-weight: 900; font-size: 24px; }
.footer__brand-wordmark { height: 22px; width: auto; }
.footer__col-title { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-ink-soft); margin-bottom: 8px; font-weight: 700; }
.footer__col ul { list-style: none; display: grid; gap: 2px; }
.footer__col a { text-decoration: none; font-weight: 600; display: inline-block; padding: 11px 0; }
.footer__col a:hover { text-decoration: underline; }
.footer__legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(250, 244, 223, 0.18); font-size: 13px; color: var(--hero-ink-soft); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
