/* Actia : page de présentation. Polices et images hébergées sur le site, aucun appel à un tiers. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --night: #0a0f1c;
  --night-2: #0f1729;
  --night-3: #16203a;
  --ivory: #f5f0e7;
  --ivory-2: #ebe3d4;
  --ink: #0d1424;
  --gold: #cfae6d;
  --gold-2: #e8cf98;
  --on-dark: #eef0f5;
  --on-dark-muted: #a6aec0;
  --on-light-muted: #5c6070;
  --glass: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .12);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--on-dark); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; color: var(--gold-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 1rem/1 var(--sans); text-decoration: none;
  padding: 17px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }

/* En-tête */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(10, 15, 28, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .08); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 1.9rem/1 var(--serif); text-decoration: none; color: #fff; letter-spacing: .01em; }
.logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 10px; }
.header nav { display: flex; align-items: center; gap: 34px; }
.header nav a:not(.btn) { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; }
.header nav a:not(.btn):hover { color: #fff; }
@media (max-width: 820px) { .header nav a:not(.btn) { display: none; } }

/* Héros */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.08); animation: drift 24s ease-out forwards; }
@keyframes drift { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, .55) 0%, rgba(10, 15, 28, .15) 35%, rgba(10, 15, 28, .75) 72%, var(--night) 100%),
    radial-gradient(60% 50% at 20% 85%, rgba(10, 15, 28, .7), transparent 70%); }
.hero .wrap { width: 100%; padding-bottom: clamp(64px, 11vh, 120px); padding-top: 140px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 9.6rem); color: #fff; margin: 26px 0 30px; max-width: 11ch; }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .84); max-width: 34em; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 40px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; }
.scroll-hint::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 700px) {
  .scroll-hint { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 15, 28, .5) 0%, rgba(10, 15, 28, .55) 40%, rgba(10, 15, 28, .85) 75%, var(--night) 100%); }
}

/* Manifeste */
.manifesto { background: var(--ivory); color: var(--ink); padding: clamp(96px, 16vw, 200px) 0; }
.manifesto h2 { font-size: clamp(2.6rem, 7vw, 6.4rem); max-width: 14ch; }
.manifesto h2 em { color: #9a7838; }
.manifesto-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: clamp(48px, 7vw, 88px); align-items: end; }
.manifesto-body p { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: #2c3242; max-width: 30em; }
.strike { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.strike span { font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--serif); color: #8a8f9c; position: relative; }
.strike span::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: #9a7838; transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.strike.in span::after { transform: scaleX(1); }
.strike.in span:nth-child(2)::after { transition-delay: .15s; }
.strike.in span:nth-child(3)::after { transition-delay: .3s; }
.strike.in span:nth-child(4)::after { transition-delay: .45s; }
.strike.in span:nth-child(5)::after { transition-delay: .6s; }
@media (max-width: 820px) { .manifesto-body { grid-template-columns: 1fr; } }

/* Une journée */
.day { padding: clamp(96px, 14vw, 180px) 0; background: radial-gradient(80% 50% at 85% 0%, rgba(207, 174, 109, .09), transparent 60%), var(--night); }
.section-title { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 16ch; }
.section-lead { margin-top: 22px; font-size: 1.15rem; color: var(--on-dark-muted); max-width: 34em; }
.moments { margin-top: clamp(64px, 9vw, 120px); display: grid; gap: clamp(72px, 10vw, 140px); }
.moment { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.moment:nth-child(even) .moment-text { order: 2; }
.time { font: 400 clamp(3.6rem, 7vw, 6rem)/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.moment h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin: 18px 0 16px; color: #fff; }
.moment p { color: var(--on-dark-muted); font-size: 1.08rem; max-width: 28em; }
@media (max-width: 860px) { .moment { grid-template-columns: 1fr; } .moment:nth-child(even) .moment-text { order: 0; } }

/* Vignettes d'interface */
.vignette {
  position: relative; border-radius: 22px; padding: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid var(--glass-line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  min-height: 300px; display: flex; flex-direction: column; justify-content: center; gap: 14px; overflow: hidden;
}
.vignette::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(207, 174, 109, .22), transparent 70%); top: -120px; right: -100px; pointer-events: none; }
.v-label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.v-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); font-size: .95rem; }
.chip { flex: none; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(207, 174, 109, .16); color: var(--gold-2); }
.chip-ok { background: rgba(120, 200, 160, .14); color: #9fe0bf; }

.wave { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.wave i { flex: 0 0 5px; border-radius: 3px; background: linear-gradient(var(--gold-2), var(--gold)); height: 20%; animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 92%; } }

.bubble { padding: 14px 18px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .08); font-size: .97rem; max-width: 88%; }
.bubble.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--gold); color: var(--night); font-weight: 500; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }

.docs { display: flex; gap: 10px; }
.docs i { flex: 1; height: 86px; border-radius: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .1); }
.docs i:nth-child(2) { transform: translateY(-8px); }
.docs i:nth-child(4) { transform: translateY(6px); }
.timeline { position: relative; display: flex; justify-content: space-between; padding: 18px 4px 6px; }
.timeline::before { content: ""; position: absolute; left: 4px; right: 4px; top: 24px; height: 1px; background: rgba(255, 255, 255, .25); }
.timeline span { position: relative; font-size: .74rem; color: var(--on-dark-muted); padding-top: 18px; text-align: center; }
.timeline span::before { content: ""; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(207, 174, 109, .2); }

.paper { background: var(--ivory); color: var(--ink); border-radius: 12px; padding: 22px 24px; font-size: .92rem; }
.paper strong { display: block; font: 400 1.3rem/1.2 var(--serif); margin-bottom: 12px; }
.line { height: 9px; border-radius: 5px; background: #d9d1c1; margin: 9px 0; }
.line.typing { background: linear-gradient(90deg, #9a7838 0 60%, #d9d1c1 60%); background-size: 200% 100%; animation: type 3s ease-in-out infinite; }
@keyframes type { from { background-position: 100% 0; } to { background-position: 0 0; } }

.big-stat { font: 400 3.4rem/1 var(--serif); color: #fff; }

/* Ce qui change */
.change { background: var(--ivory); color: var(--ink); padding: clamp(96px, 14vw, 180px) 0; }
.change .section-lead { color: var(--on-light-muted); }
.grid4 { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #cfc5b2; }
.cell { padding: 36px 28px 8px 0; border-right: 1px solid #cfc5b2; }
.cell + .cell { padding-left: 28px; }
.cell:last-child { border-right: 0; }
.cell .word { font: 400 clamp(2.4rem, 3.6vw, 3.4rem)/1 var(--serif); color: #9a7838; }
.cell h3 { font: 600 1.05rem/1.4 var(--sans); margin: 22px 0 10px; }
.cell p { color: var(--on-light-muted); font-size: .98rem; }
@media (max-width: 980px) { .grid4 { grid-template-columns: 1fr 1fr; } .cell:nth-child(2) { border-right: 0; } .cell:nth-child(3) { padding-left: 0; } .cell:nth-child(n+3) { border-top: 1px solid #cfc5b2; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } .cell, .cell + .cell { padding: 30px 0 26px; border-right: 0; } .cell + .cell { border-top: 1px solid #cfc5b2; } }

/* Secret */
.secret { position: relative; padding: clamp(110px, 16vw, 220px) 0; overflow: hidden; isolation: isolate; }
.secret-bg { position: absolute; inset: 0; z-index: -2; }
.secret-bg img { width: 100%; height: 100%; object-fit: cover; }
.secret::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 15, 28, .96) 0%, rgba(10, 15, 28, .85) 45%, rgba(10, 15, 28, .45) 100%); }
.secret .section-lead { color: rgba(255, 255, 255, .78); }
.pledges { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); gap: 34px 56px; }
.pledge { border-top: 1px solid rgba(207, 174, 109, .5); padding-top: 18px; }
.pledge h3 { font-size: 1.7rem; color: #fff; margin-bottom: 8px; }
.pledge p { color: var(--on-dark-muted); font-size: .98rem; }
@media (max-width: 900px) { .secret::after { background: rgba(10, 15, 28, .88); } }
@media (max-width: 640px) { .pledges { grid-template-columns: 1fr; } }

/* Bandeau des matières */
.ribbon { background: var(--night-2); border-block: 1px solid rgba(255, 255, 255, .06); padding: 34px 0; overflow: hidden; }
.ribbon-intro { text-align: center; color: var(--on-dark-muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 400 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--serif); color: rgba(255, 255, 255, .9); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; font-size: .9rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contact */
.contact { position: relative; padding: clamp(120px, 18vw, 240px) 0; overflow: hidden; isolation: isolate; text-align: center; }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(10, 15, 28, .72), rgba(10, 15, 28, .94)); }
.contact h2 { font-size: clamp(3rem, 8.5vw, 7.6rem); color: #fff; max-width: 12ch; margin: 22px auto 0; }
.contact p { margin: 28px auto 0; max-width: 32em; font-size: 1.18rem; color: rgba(255, 255, 255, .82); }
.contact .hero-cta { justify-content: center; }
.contact .kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.mail { display: inline-block; margin-top: 26px; color: rgba(255, 255, 255, .6); font-size: .95rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 2px; }
.mail:hover { color: #fff; border-color: var(--gold); }

/* Pied de page */
.footer { padding: 36px 0; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark-muted); font-size: .88rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .logo { font-size: 1.5rem; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .strike span::after { transform: scaleX(1); }
}

/* Page d'erreur */
.page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.page h1 { font-size: clamp(3rem, 8vw, 6rem); color: #fff; }
.page p { color: var(--on-dark-muted); margin: 18px 0 34px; }
