/* IDEASTORM · site participant — toutes les couleurs et polices viennent du thème de l'événement */
:root {
  --primary: #111111; --accent: #C8A96A; --bg: #F6F4F0; --text: #16181d; --surface: #ffffff;
  --on-primary: #ffffff; --on-accent: #ffffff; --muted: #6b6f76; --line: rgba(0,0,0,.1);
  --font-heading: Georgia, "Times New Roman", serif; --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px; --btn-radius: 999px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--primary); }
img { max-width: 100%; }

.boot, .fatal { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.fatal > * { max-width: 460px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.test-banner { background: #fff4d6; color: #6b4e00; font-size: 13px; text-align: center; padding: 6px 12px; }

/* Conteneur centré */
.wrap { width: min(1180px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--primary); font-family: var(--font-heading); font-size: 18px; font-weight: 600; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 24px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; color: var(--text); font-size: 14px; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; opacity: .8; }
.nav a.on, .nav a:hover { opacity: 1; border-bottom-color: var(--accent); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.lang { background: none; border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; font-size: 12px; cursor: pointer; color: var(--text); }
.btn-reg, .btn-hero, .btn-primary, .fab { display: inline-block; text-decoration: none; background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--btn-radius); padding: 10px 20px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: var(--font-body); }
.btn-reg:hover, .btn-hero:hover, .btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 10px 20px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.fab { display: none; position: fixed; z-index: 30; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 15px; font-size: 16px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* Accueil : photo plein cadre */
.hero { position: relative; min-height: min(80vh, 760px); display: flex; align-items: flex-end; color: var(--on-primary); background: var(--primary); background-image: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.65) 100%), var(--hero-img, none); background-size: cover; background-position: center; }
.hero-inner { padding: clamp(40px, 7vw, 88px) 0; }
.hero h1 { font-size: clamp(40px, 6.5vw, 84px); margin-bottom: 14px; max-width: 16ch; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin: 0 0 14px; opacity: .9; }
.subtitle { font-size: clamp(18px, 2vw, 24px); max-width: 620px; margin: 0 0 26px; opacity: .95; }
.btn-hero { padding: 15px 32px; font-size: 16px; }
.countdown { display: flex; gap: 12px; margin: 6px 0 30px; flex-wrap: wrap; }
.countdown div { min-width: 76px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); text-align: center; backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.countdown b { display: block; font-size: 28px; font-family: var(--font-heading); line-height: 1.1; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }

/* Accueil : texte et visuel côte à côte */
.hero-split { min-height: 0; background: var(--surface); color: var(--primary); align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 84px) 0; }
.hero-split .hero-media img { display: block; width: 100%; height: auto; }
.hero-split .subtitle { color: var(--text); }
.hero-split .countdown div { background: var(--bg); border-color: var(--line); color: var(--primary); backdrop-filter: none; }
.hero-split .countdown span { color: var(--text); }

/* Bande d'informations clés */
.facts { background: var(--primary); color: var(--on-primary); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.facts-grid div { padding: 22px 24px 22px 0; border-right: 1px solid rgba(255,255,255,.18); margin-right: 24px; }
.facts-grid div:last-child { border-right: 0; }
.facts-grid span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; margin-bottom: 4px; }
.facts-grid strong { font-size: 16px; font-weight: 600; }

.page-band { background: var(--primary); color: var(--on-primary); padding: clamp(44px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); background-size: cover; background-position: center; }
.page-band.with-image { background-image: linear-gradient(90deg, color-mix(in srgb, var(--primary) 92%, transparent) 0%, color-mix(in srgb, var(--primary) 55%, transparent) 60%, transparent 100%), var(--band-img); padding-top: clamp(80px, 12vw, 160px); }
.page-band p { margin: 10px 0 0; font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; opacity: .92; }
.page-band h1 { font-size: clamp(32px, 5vw, 56px); margin: 0; }

/* Pages : blocs de mise en page */
.content { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 96px); }
.page > * + * { margin-top: clamp(28px, 4vw, 56px); }
.page h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--primary); text-wrap: balance; }
.page h3 { font-size: 20px; color: var(--primary); }
.page p { max-width: 70ch; }
.lead { text-align: center; max-width: 820px; margin-inline: auto; }
.lead p { margin-inline: auto; font-size: clamp(17px, 1.6vw, 20px); }
.band { margin-inline: calc(50% - 50vw); padding: clamp(40px, 6vw, 80px) max(calc(50vw - 590px), clamp(16px, 4vw, 48px)); background: var(--surface); }
.band.dark { background: var(--primary); color: var(--on-primary); }
.band.dark h2, .band.dark h3 { color: var(--on-primary); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(14px, 2vw, 24px); }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.card .card-body { padding: 18px 20px 22px; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; font-size: 15px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.top { align-items: start; }
.split.top > div > img:first-child { position: sticky; top: 90px; }
.split img { width: 100%; border-radius: var(--radius); display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(140px, 16vw, 260px)); gap: 10px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: calc(var(--radius) * .66); }
.mosaic img:first-child { grid-row: span 2; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.timeline { display: grid; gap: 0; }
.timeline .slot { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline .time { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 2px 0 4px; font-size: 19px; }
.timeline p { margin: 0; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(14px, 2vw, 24px); }
.pillars div { background: var(--surface); padding: 26px 24px; border-radius: var(--radius); border-top: 3px solid var(--accent); }
.pillars b { display: block; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.pillars strong { display: block; color: var(--primary); font-size: 21px; margin: 6px 0 8px; line-height: 1.2; }
.pillars p { margin: 0; font-size: 15px; }
.photo-block { margin: 0; }
.photo-block img { width: 100%; display: block; border-radius: var(--radius); }
.photo-block.full { margin-inline: calc(50% - 50vw); }
.photo-block.full img { border-radius: 0; max-height: 70vh; object-fit: cover; }
.photo-block figcaption, .quote-block figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.quote-block { margin: 0; }
.quote { font-family: var(--font-heading); font-size: clamp(26px, 3.6vw, 44px); color: var(--accent); text-align: center; margin: 0; font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: 17px; }
.faq details p { margin: 10px 0 0; }
.spacer-s { height: 8px; } .spacer-m { height: 32px; } .spacer-l { height: 72px; }
.img-empty, .video-empty { background: repeating-linear-gradient(45deg, #eceae6, #eceae6 10px, #f4f3f0 10px, #f4f3f0 20px); min-height: 200px; display: grid; place-items: center; color: var(--muted); font-size: 14px; border-radius: var(--radius); width: 100%; height: 100%; }
.video-empty { position: absolute; inset: 0; }
.cta { text-align: center; }
.cta p { margin-inline: auto; }
.cta .btn-primary { padding: 15px 34px; font-size: 16px; margin-top: 8px; }
.note-small { font-size: 14px; color: var(--muted); }
.page table.agenda, .rich table { width: 100%; border-collapse: collapse; }
.page table.agenda td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page table.agenda td:first-child { width: 90px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.footer { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; padding: 26px 0 96px; }

/* Fenêtres */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(10,12,16,.55); display: flex; align-items: flex-start; justify-content: center; padding: clamp(0px, 4vh, 48px) 12px; overflow-y: auto; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; background: var(--surface); width: 100%; max-width: 680px; border-radius: 16px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: calc(100vh - 8vh); overflow-y: auto; }
.modal.narrow { max-width: 480px; }
.modal.wide { max-width: 760px; }
.modal-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.form-head { margin: calc(-1 * clamp(22px, 4vw, 40px)) calc(-1 * clamp(22px, 4vw, 40px)) 28px; padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 40px) 24px; background: var(--primary); color: var(--on-primary); border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.form-head .kicker { color: var(--on-primary); opacity: .75; }
.form-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0; color: var(--on-primary); }
.form-sub { margin: 8px 0 0; font-size: 15px; opacity: .9; }
.modal-x { z-index: 2; }
.form-head ~ * .modal-x, .modal:has(.form-head) .modal-x { color: var(--on-primary); }
#regform { counter-reset: step; }
.identity-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: color-mix(in srgb, var(--bg) 70%, #fff); border-left: 3px solid var(--accent); border-radius: var(--radius); margin-bottom: 20px; }
.identity-card .field { margin: 0; padding: 14px 16px; }
.identity-card .field + .field { border-left: 1px solid var(--line); }
.identity-card .f-email { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
.locked-value { font-size: 16px; font-weight: 600; color: var(--primary); overflow-wrap: anywhere; }
.field.identity .flabel { font-weight: 500; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.notice { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); padding: 10px 14px; border-radius: 8px; font-size: 14px; }

/* Formulaire */
.section { border: 0; padding: 0; margin: 0 0 36px; counter-increment: step; }
.section legend { display: flex; align-items: baseline; gap: 12px; width: 100%; font-family: var(--font-heading); font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; margin-bottom: 18px; padding: 0 0 12px; color: var(--primary); border-bottom: 2px solid var(--line); }
.section legend .step::before { content: counter(step, decimal-leading-zero); font-size: 15px; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.field { margin-bottom: 18px; }
.flabel { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.req { color: #c0392b; }
.help { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 1px solid #cfd2d6; border-radius: min(var(--radius), 8px); background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 0; border-color: var(--accent); }
input.locked { background: color-mix(in srgb, var(--bg) 70%, #fff); color: var(--muted); }
.phone { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 8px; }
.opts { display: grid; gap: 8px; }
.opts.inline { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.opts.big .opt { padding: 14px 16px; font-weight: 600; }
.opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: min(var(--radius), 10px); cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.opt:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #fff); }
.opt.disabled { opacity: .5; cursor: not-allowed; }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.opt-label { flex: 1; font-size: 15px; }
.opt-label small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.seats { font-size: 12px; color: var(--muted); white-space: nowrap; }
.seats.low { color: #b9770e; font-weight: 600; }
.seats.full { color: #c0392b; font-weight: 600; }
.consent .opt { align-items: flex-start; }
.err { color: #c0392b; font-size: 13px; margin: 6px 0 0; }
.err.global { background: #fdecea; padding: 10px 14px; border-radius: 8px; }
.has-err input, .has-err select, .has-err textarea, .has-err .opt { border-color: #e6a39b; }
.file-state { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.text-block { font-size: 14px; background: color-mix(in srgb, var(--bg) 60%, #fff); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.form-actions .btn-primary { padding: 13px 34px; font-size: 15px; }
.relink { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.relink input { flex: 1; min-width: 200px; }
.confirm h2 { color: var(--primary); }

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 16px; padding-bottom: 8px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; gap: 18px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; max-height: none; }
  .mosaic img { aspect-ratio: 1; }
  .mosaic img:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 3 / 2; }
  .facts-grid div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); margin-right: 0; padding: 16px 0; }
  .facts-grid div:last-child { border-bottom: 0; }
  .timeline .slot { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .split.top > div > img:first-child { position: static; }
  .timeline .time { font-size: 20px; }
  .topbar .btn-reg { display: none; }
  .fab { display: block; }
  .modal { border-radius: 0; max-height: none; min-height: 100vh; }
  .identity-card { grid-template-columns: 1fr; }
  .identity-card .field + .field { border-left: 0; border-top: 1px solid var(--line); }
  .overlay { padding: 0; }
  .countdown div { min-width: 60px; }
  .countdown b { font-size: 22px; }
}
