/* =========================================================
   Gédéon – feuille de style publique
   Aucune police externe (respect de la vie privée) : piles système.
   ========================================================= */

:root {
  --navy: #070B1F;
  --navy-2: #111A3E;
  --navy-3: #263268;
  --ink: #0B1030;
  --body: #1F2547;
  --cream: #F6F3EC;
  --sand: #EAE5D8;
  --line: #D9D3C5;
  --muted: #5B6280;
  --orange: #F5A04A;
  --orange-deep: #A84D08;
  --blue-soft: #9FB4F5;
  --on-dark: #E3E8FF;
  --radius: 10px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--body); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); text-underline-offset: 3px; }
a:hover { color: #7A3606; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.35rem; margin-bottom: .6rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; max-width: 62ch; }

.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--orange-deep); margin: 0 0 .6rem; }
.eyebrow { font-family: var(--mono); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin: 0 0 1rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-block; font: 600 1rem/1 var(--sans); padding: 14px 24px; border-radius: 999px; border: 2px solid var(--orange); background: transparent; color: var(--orange); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--orange); color: var(--ink); }
.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: #FFB866; border-color: #FFB866; color: var(--ink); }
.btn-ghost { border-color: var(--blue-soft); color: var(--blue-soft); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.section-tint .btn, .section:not(.section-dark) .btn { color: var(--ink); border-color: var(--ink); }
.section:not(.section-dark) .btn:hover { background: var(--ink); color: #fff; }
.section:not(.section-dark) .btn-accent { background: var(--orange); border-color: var(--orange); }
.section:not(.section-dark) .btn-accent:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 31, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--navy-3); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; position: relative; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #fff; text-decoration: none; letter-spacing: .02em; }
.brand:hover { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--orange); text-decoration: underline; }
.nav-toggle { position: absolute; right: 0; top: 10px; width: 44px; height: 44px; opacity: 0; z-index: 2; margin: 0; cursor: pointer; display: none; }
.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; content: ""; }
.nav-burger span::before { position: absolute; top: -7px; }
.nav-burger span::after { position: absolute; top: 7px; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--orange); border-radius: 6px; }
@media screen and (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-burger { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--navy-3); }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; font-size: 1.05rem; }
  .nav .btn { margin-top: 10px; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero { color: #fff; background: linear-gradient(180deg, rgba(7,11,31,.78) 0%, rgba(7,11,31,.35) 45%, rgba(7,11,31,.88) 100%), url("../img/hero.jpg") center 35% / cover no-repeat, var(--navy); min-height: min(88vh, 820px); display: flex; align-items: center; text-align: center; }
.hero-in { padding: 90px 0 70px; }
.hero h1 { font-size: clamp(3.2rem, 10vw, 7rem); letter-spacing: .12em; color: #fff; margin-bottom: .3rem; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.9rem); color: var(--orange); margin-bottom: 1.6rem; }
.hero-when { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: #fff; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .btn { color: #fff; border-color: #fff; }
.hero .btn:hover { background: #fff; color: var(--ink); }
.hero .btn-accent { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.hero .btn-ghost { color: var(--on-dark); border-color: var(--blue-soft); }
.countdown { margin: 2rem 0 0; color: var(--on-dark); font-size: .95rem; }
.countdown strong { color: var(--orange); font-family: var(--serif); font-size: 1.6rem; }

.hero-admin { margin: 2.4rem 0 0; font-size: .78rem; }
.hero-admin a { color: rgba(227, 232, 255, .55); text-decoration: none; letter-spacing: .04em; }
.hero-admin a:hover, .hero-admin a:focus-visible { color: var(--orange); text-decoration: underline; }
.print-only { display: none; }
.result-banner { background: var(--orange); color: var(--ink); text-align: center; padding: 18px 0; }
.result-amount { margin: 0; font: 700 1.9rem/1.2 var(--serif); }
.result-amount span { font: 600 1rem var(--sans); }
.result-text { margin: 4px auto 0; max-width: 70ch; font-size: .98rem; }
.consent .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.field.consent input { width: auto; margin-top: 4px; flex: none; }
.legal { min-height: 70vh; }
.legal h1 { margin-bottom: .4rem; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: .4rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--orange); }
.section-dark a { color: var(--orange); }
.section-tint { background: var(--sand); }

.prose p { max-width: 68ch; }
.prose strong { color: var(--ink); }
.section-dark .prose strong { color: #fff; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); margin-top: 56px; align-items: start; }
@media screen and (max-width: 880px) { .two-col, .split { grid-template-columns: minmax(0, 1fr); } }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--ink); }
.stat dt { font-size: .92rem; line-height: 1.35; margin-top: 8px; color: var(--body); }
.stat-dark { background: var(--navy); border-color: var(--navy); }
.stat-dark dd { color: var(--orange); }
.stat-dark dt { color: var(--on-dark); }

.cause { background: var(--sand); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: start; }
.cause img { border-radius: 8px; background: #fff; }
.cause .prose p { font-size: .98rem; }
@media screen and (max-width: 560px) { .cause { grid-template-columns: minmax(0, 1fr); } .cause img { width: 100px; } }

/* Spectacle */
.quote { margin: 0 0 2.2rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.25; color: #fff; max-width: 30ch; text-wrap: balance; }
.figure-wide { margin: 0 0 3rem; border-radius: var(--radius); overflow: hidden; max-height: 420px; }
.figure-wide img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 22%; }
.fiche { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 22px 24px 8px; }
.fiche dl { margin: 0; }
.fiche dl > div { padding: 10px 0; border-top: 1px solid var(--navy-3); }
.fiche dt { font-size: .82rem; color: var(--blue-soft); }
.fiche dd { margin: 2px 0 0; color: #fff; }

/* Équipe */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 2rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.person .prose p { font-size: .96rem; line-height: 1.6; }
@media screen and (max-width: 880px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* Organisateur */
.org { display: flex; align-items: center; gap: 22px; margin-bottom: 2rem; }
.org-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.org h2 { margin-bottom: .2rem; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--orange-deep); margin: 0; }
.bullets { list-style: none; margin: 0 0 1.2em; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 26px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: var(--orange); }

/* Partenaires */
.sponsor-group { margin: 2.2rem 0; }
.sponsor-tier { font-family: var(--mono); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: 14px; color: var(--ink); }
.sponsor-tier::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sponsor-list { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 150px; min-height: 84px; display: flex; align-items: center; justify-content: center; padding: 14px 20px; text-align: center; }
.sponsor a { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); width: 100%; height: 100%; }
.sponsor img { max-height: 56px; max-width: 180px; width: auto; object-fit: contain; }
.sponsor-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.sponsor-l4 .sponsor { min-width: 260px; min-height: 130px; }
.sponsor-l4 img { max-height: 96px; max-width: 280px; }
.sponsor-l3 .sponsor { min-width: 200px; min-height: 100px; }
.sponsor-l3 img { max-height: 72px; max-width: 220px; }

/* Formules */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 2.4rem 0 3.4rem; align-items: stretch; }
.tiers .tier { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tiers .tier header { padding: 20px; background: var(--tier-bg, #1B2559); color: var(--tier-fg, #fff); }
.tier-level { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; font-weight: 600; }
.tiers .tier h3 { font-family: var(--mono); font-size: 1rem; letter-spacing: .03em; color: inherit; margin: 0; }
.tier-role { font-style: italic; margin: 2px 0 12px; }
.tier-price { font-family: var(--serif); font-weight: 700; font-size: 2.3rem; line-height: 1; margin: 0; }
.perks { list-style: none; padding: 18px 20px; display: grid; gap: 10px; flex: 1; font-size: .95rem; color: #fff; }
.perks li { position: relative; padding-left: 20px; }
.perks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--blue-soft); }
.tiers .tier .btn { margin: 0 20px 20px; text-align: center; }
.tier-l1 { --tier-bg: #1B2559; --tier-fg: #fff; }
.tier-l2 { --tier-bg: #2C3E8C; --tier-fg: #fff; }
.tier-l3 { --tier-bg: #3F68D6; --tier-fg: #fff; }
.tier-l4 { --tier-bg: #F5A04A; --tier-fg: #0B1030; }
.tier-l5 { --tier-bg: #E36B5B; --tier-fg: #0B1030; }
.tier-l6 { --tier-bg: #7FD1B9; --tier-fg: #0B1030; }
.tier-l4 .perks li::before { background: var(--orange); }
@media screen and (max-width: 1060px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 600px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

.recap-title { margin: 0 0 1rem; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.recap { width: 100%; border-collapse: collapse; background: #fff; color: var(--body); min-width: 720px; font-size: .95rem; }
.recap th, .recap td { padding: 14px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.recap thead th { background: var(--tier-bg, var(--navy-2)); color: var(--tier-fg, #fff); }
.recap thead th:first-child { background: var(--navy-2); color: var(--blue-soft); font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.recap .th-name { display: block; font-family: var(--mono); font-size: .78rem; letter-spacing: .03em; }
.recap .th-price { display: block; font-family: var(--serif); font-size: 1.5rem; margin-top: 4px; }
.recap tbody th { font-weight: 600; color: var(--ink); background: #FBF9F4; width: 17%; }
.recap tbody tr:nth-child(even) td { background: #FBF9F4; }
.recap .muted { color: var(--muted); }

.inkind, .visibility { margin-top: 2.6rem; border: 1px dashed var(--navy-3); border-radius: var(--radius); padding: 22px 24px; }
.inkind p { max-width: 80ch; margin: 0; }
.visibility ul { list-style: none; display: grid; gap: 12px; }
.visibility li { max-width: 80ch; }

/* Calendrier */
.timeline { list-style: none; margin-top: 2rem; max-width: 760px; border-left: 2px solid var(--ink); padding-left: 0; }
.timeline li { position: relative; padding: 0 0 26px 30px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); }
.timeline li:last-child { padding-bottom: 0; }
.tl-label { font-family: var(--mono); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; color: var(--ink); margin: 0 0 4px; }
.timeline p:last-child { margin: 0; max-width: 62ch; }

/* Formulaire */
.form { display: grid; gap: 18px; margin-top: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media screen and (max-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #8C8F9F; border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--orange); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay { margin-top: 1.6rem; }
.flash { padding: 14px 18px; border-radius: 8px; margin: 0 0 18px; font-weight: 500; }
.flash-ok { background: #DDF2E3; color: #124B25; border: 1px solid #8CC7A0; }
.flash-err { background: #FBE3DF; color: #7A1A0E; border: 1px solid #E0968B; }

/* Pied de page */
.footer { background: var(--navy); color: var(--on-dark); padding: 56px 0; font-size: .96rem; }
.footer-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer p { margin: 0 0 .4em; }
.footer a { color: var(--orange); }
.footer-title { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: .5em !important; }
@media screen and (max-width: 760px) { .footer-in { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Impression / PDF : rendu fidèle au site, format A4 portrait.
   - la mise en page « bureau » est conservée (zoom 0,72 ≈ 1100 px de large)
   - fonds et couleurs imprimés tels quels
   - 1 formule / carte / fiche ne sont jamais coupées entre deux pages
   ========================================================= */
@page { size: A4 portrait; margin: 0; }

@media screen { .screen-hide, .num-print { display: none !important; } }

@media print {
  .print-hide, .num-screen { display: none !important; }
  html { zoom: .72; }
  html, body { background: var(--cream); }
  *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { font-size: 17px; }

  /* Éléments purement interactifs */
  .nav-toggle, .nav-burger, .skip, .flash { display: none !important; }
  /* Formulaire : sans objet sur papier */
  .field.consent, .form button[type=submit], .hero-cta { display: none !important; }
  /* Pas d'en-tête (bandeau + menu) sur papier */
  .topbar { display: none !important; }
  /* Pas de menu de navigation sur papier : seul le nom du spectacle reste dans le bandeau */
  .nav { display: none !important; }

  /* Page 1 : bandeau + hero occupent exactement une page A4 (297 mm / 0,72) */
  .hero { min-height: calc(412mm - 1px); break-after: page; page-break-after: always; }

  /* Les sections ne perdent pas leurs marges haut/bas quand elles changent de page */
  .section, .footer { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-top: 44px; padding-bottom: 44px; }
  /* Une page A4 par bloc logique ; « Organisateur » et « Partenaires » partagent la leur */
  #spectacle, #equipe, #organisateur, #partenaires, #formules, #formules .recap-block, #calendrier, #devenir-partenaire { break-before: page; page-break-before: always; }
  /* Formules : page 1 = cartes par rangées de 3 ;
     page 2 = tableau des contreparties + sponsoring en nature + visibilité, ensemble */
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 0; }
  .tiers .tier header { padding: 16px 14px; }
  .tiers .tier .perks { padding-left: 14px; padding-right: 14px; }
  .tiers .tier .btn { margin: 0 14px 16px; }
  #formules .recap-block { min-height: calc(412mm - 88px - 3px); }   /* le fond sombre remplit toute la 2e page */
  #formules .recap-title { margin-top: 0; }

  /* Rien de coupé en deux */
  h1, h2, h3, .kicker, .sponsor-tier { break-after: avoid; page-break-after: avoid; }
  .stat, .fiche, .person, .cause, .tiers > article, .sponsor, .sponsor-group, .inkind, .visibility,
  .timeline li, .recap tr, .recap thead, .footer-in > div, .pay, figure, .section-img, img { break-inside: avoid; page-break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }

  /* Formulaire imprimé : la liste déroulante devient des cases à cocher vides */
  .screen-only, .hero-admin { display: none !important; }
  .print-only { display: block !important; }
  .print-label { font-weight: 600; font-size: .95rem; margin: 0 0 8px; color: var(--ink); }
  .print-options { list-style: none; display: grid; gap: 10px; }
  .print-options li { display: flex; align-items: center; gap: 12px; color: var(--ink); }
  .print-options .box { flex: none; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; }
  .form select { display: none; }
  .form { gap: 11px; margin-top: 1rem; }
  .grid-2 { gap: 11px; }
  .field input, .field textarea { padding: 8px 12px; }
  .field textarea { height: 64px; }
  .print-options { gap: 6px; }
  #devenir-partenaire { padding-top: 32px; padding-bottom: 28px; }

  /* Tableau complet visible, pas de défilement */
  .table-scroll { overflow: visible; }
  .recap { min-width: 0; }

  /* Liens : pas de soulignement ajouté, pas d'URL en clair */
  a[href]::after { content: none !important; }
}
