/* Odin (ai.boum.it) — gabarit boum.it : variables, nav, boutons et pied de page de www.boum.it
   (common.css = copie de sites/www/public/css/common.css). Propre à Odin : la forme de points animée
   (#odin-canvas, piloté par js/odin.js) et le récit qui apparaît au défilement. */
[hidden]{display:none!important}

/* ── Forme animée : fixe derrière l'accueil et le récit, puis recouverte par la suite de la page ── */
#odin-canvas{position:fixed;inset:0;width:100%;height:100vh;height:100lvh;z-index:0;pointer-events:none;transition:opacity .6s ease}
main,footer{position:relative;z-index:1}
.after-story{position:relative;background:var(--bg)}
footer{background:var(--bg)}

/* ── Nav (reprise de www.boum.it) ── */
nav{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.75rem 5vw;border-bottom:1px solid transparent;transition:border-color .4s,background-color .4s,padding .4s}
nav.scrolled{border-color:var(--border);background:rgba(246,242,234,.88);padding-top:1.1rem;padding-bottom:1.1rem;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.logo .logo-sub{font-family:var(--font-body);font-size:.72rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--text-faint);margin-inline-start:.6rem;vertical-align:middle}
.nav-links{display:flex;gap:2.5rem;list-style:none}
.nav-links a{text-decoration:none;color:var(--text-muted);font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;transition:color .3s;padding:.5rem 0}
.nav-links a:hover{color:var(--gold)}
.nav-cta{padding:.7rem 1.6rem;border:1px solid rgba(132,101,31,.65);color:var(--gold);text-decoration:none;font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;transition:background-color .3s,color .3s;white-space:nowrap}
.nav-cta:hover{background:var(--gold);color:var(--bg)}
@media(max-width:1000px){.nav-links{display:none}}
@media(max-width:480px){nav{padding:1.1rem 1.25rem}nav.scrolled{padding-top:.8rem;padding-bottom:.8rem}.nav-cta{padding:.6rem .9rem;font-size:.68rem;letter-spacing:.12em}}

/* ── Boutons (repris de www.boum.it) ── */
.btn-primary{padding:1rem 2.6rem;border:1.5px solid var(--gold);color:var(--gold);background:transparent;text-decoration:none;font-family:inherit;font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;transition:color .4s;position:relative;overflow:hidden;display:inline-block;text-align:center;cursor:pointer}
.btn-primary::before{content:'';position:absolute;inset:0;background:var(--gold);transform:translateX(-101%);transition:transform .4s cubic-bezier(.76,0,.24,1)}
[dir="rtl"] .btn-primary::before{transform:translateX(101%)}
.btn-primary:hover::before,.btn-primary:focus-visible::before{transform:translateX(0)}
.btn-primary:hover,.btn-primary:focus-visible{color:var(--bg)}
.btn-primary span{position:relative;z-index:1}
.btn-primary[disabled]{opacity:.6;cursor:progress}
.btn-block{width:100%}
.btn-ghost{color:var(--text-muted);text-decoration:none;font-size:.8rem;letter-spacing:.16em;display:inline-flex;align-items:center;gap:.75rem;transition:color .3s;padding:.75rem 0}
.btn-ghost:hover{color:var(--text)}
.btn-ghost .arrow{transition:transform .3s;display:inline-block}
.btn-ghost:hover .arrow{transform:translateX(5px)}
[dir="rtl"] .btn-ghost .arrow{transform:scaleX(-1)}

/* ── Accueil ── */
#hero{position:relative;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:9rem 5vw 6rem}
#hero::before,.story-inner::before{content:'';position:absolute;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at center,rgba(246,242,234,.62) 0%,rgba(246,242,234,.3) 50%,transparent 75%)}
#hero::before{inset:10% 5%}
.hero-eyebrow{font-size:.75rem;letter-spacing:.4em;text-transform:uppercase;color:var(--gold);margin-bottom:2.5rem;line-height:1.8;animation:fadeUp .6s 0s both}
.hero-title{font-family:var(--font-display);font-size:clamp(2.5rem,7vw,6.4rem);font-weight:700;line-height:1;letter-spacing:-.03em;margin-bottom:2.5rem;max-width:15ch;overflow-wrap:break-word;animation:fadeUp .6s .05s both}
.hero-title em,.story-t em{font-style:normal;color:var(--gold)}
.hero-sub{font-size:1.05rem;color:var(--text-muted);max-width:560px;line-height:1.85;margin-bottom:3rem;animation:fadeUp .6s .12s both}
.hero-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem 2rem;align-items:center;animation:fadeUp .6s .18s both}
.hero-fine{margin-top:2rem;font-size:.85rem;color:var(--text-faint);animation:fadeUp .6s .2s both}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(max-width:480px){#hero{padding:7.5rem 1.25rem 4.5rem}.hero-eyebrow{font-size:.7rem;letter-spacing:.28em;margin-bottom:2rem}.hero-sub{font-size:.98rem;margin-bottom:2.5rem}.hero-cta{flex-direction:column;width:100%}.hero-cta .btn-primary{width:100%}}

/* ── Récit : une idée par écran, qui apparaît au défilement ── */
.story-step{min-height:100vh;min-height:100svh;display:flex;align-items:center;justify-content:center;padding:6rem 5vw;text-align:center}
.story-inner{position:relative;max-width:900px}
.story-inner::before{inset:-20% -15%}
.story-k{font-size:.75rem;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);margin-bottom:1.5rem;display:flex;flex-wrap:wrap;gap:.75rem 1rem;justify-content:center;align-items:center}
.badge{font-size:.65rem;letter-spacing:.16em;border:1px dashed var(--border-gold);color:var(--text-faint);padding:.3rem .7rem}
.badge.live{border-style:solid;color:var(--gold-dim);background:rgba(132,101,31,.07)}
.story-t{font-family:var(--font-display);font-size:clamp(2.1rem,5.6vw,4.8rem);font-weight:600;line-height:1.05;letter-spacing:-.025em;margin-bottom:1.5rem}
.story-d{font-size:clamp(1rem,1.5vw,1.2rem);color:var(--text-muted);line-height:1.8;max-width:620px;margin:0 auto}
.story-final .story-t{font-size:clamp(2.3rem,6.4vw,5.6rem)}
.story-final .btn-primary{margin-top:2.75rem}

/* Apparition façon « keynote » : flou + montée, et disparition quand on dépasse l'écran */
.js .reveal{opacity:0;transform:translateY(36px);filter:blur(8px);transition:opacity .9s ease,transform .9s cubic-bezier(.22,1,.36,1),filter .9s ease}
.js .reveal.visible{opacity:1;transform:none;filter:none}
.reveal-delay-1{transition-delay:.12s!important}
.reveal-delay-2{transition-delay:.24s!important}

/* ── Sections ── */
.section{max-width:1240px;margin:0 auto;padding:clamp(4.5rem,9vw,7.5rem) 5vw}
.section-head{max-width:760px;margin-bottom:clamp(2.25rem,4vw,3.25rem)}
.section-label{font-size:.75rem;letter-spacing:.32em;color:var(--gold);text-transform:uppercase;display:block;margin-bottom:1.2rem}
.section-title{font-family:var(--font-display);font-size:clamp(2rem,4.2vw,3.4rem);font-weight:600;line-height:1.1;letter-spacing:-.01em}
.section-lead{color:var(--text-muted);font-size:1.05rem;line-height:1.8;margin-top:1rem}
h3{font-family:var(--font-display);font-size:1.15rem;font-weight:600;letter-spacing:-.01em;margin-bottom:.5rem}
.after-story>.section+.section{border-top:1px solid var(--border)}

/* Console « Ask Odin » */
.console{background:var(--surface-2);border:1px solid var(--border);box-shadow:0 30px 70px -40px rgba(17,17,17,.35);max-width:820px}
.console-bar{display:flex;align-items:center;gap:.75rem;padding:.8rem 1.1rem;border-bottom:1px solid var(--border);background:var(--surface)}
.dots{display:inline-flex;gap:6px}.dots i{width:9px;height:9px;border-radius:50%;border:1px solid var(--border-gold)}
.console-title{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem;color:var(--text-faint);flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.console-live{font-size:.65rem;letter-spacing:.18em;color:var(--gold);border:1px solid var(--border-gold);padding:.15rem .45rem;animation:blink 2.4s ease-in-out infinite}
@keyframes blink{50%{opacity:.4}}
.console-body{list-style:none;padding:1.4rem;display:grid;gap:.8rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88rem;line-height:1.6}
:lang(ar) .console-body{font-family:inherit;font-size:.95rem}
.console-body li{display:flex;gap:.8rem;align-items:flex-start;color:var(--text-muted)}
.console-body .tag{flex:none;width:1.45rem;height:1.45rem;display:inline-flex;align-items:center;justify-content:center;font-size:.78rem;border:1px solid var(--border)}
.console-body .ok .tag{color:#2E6B4F;border-color:rgba(46,107,79,.35)}
.console-body .warn{color:var(--ink)}
.console-body .warn .tag{color:#8A4B0F;border-color:rgba(138,75,15,.4);background:rgba(138,75,15,.06)}
.console-body .ask{color:var(--ink);border:1px solid var(--border-gold);background:rgba(132,101,31,.06);padding:.7rem .8rem;margin-top:.2rem}
.console-body .ask .tag{color:var(--gold);border-color:var(--border-gold)}
.caret{display:inline-block;width:.5rem;height:1rem;background:var(--gold);margin-inline-start:.3rem;vertical-align:-2px;animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.console figcaption{font-size:.8rem;color:var(--text-faint);padding:0 1.4rem 1.2rem}

/* Constats */
.findings{border-top:1px solid var(--ink)}
.f-row{display:grid;grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid var(--border)}
.f-row>span{padding:1.15rem 1rem;color:var(--text-muted);line-height:1.6}
.f-row>span:first-child{padding-inline-start:0;color:var(--ink);font-weight:500}
.f-row>span:last-child{color:var(--ink)}
.f-head>span{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-faint)!important;font-weight:400!important}
.f-head>span:nth-child(3){color:var(--gold)!important}
.note{margin-top:1.25rem;color:var(--text-faint);font-size:.92rem}
@media(max-width:820px){
  .f-head{display:none}
  .f-row{grid-template-columns:1fr;padding:.9rem 0}
  .f-row>span{padding:.3rem 0}
  .f-row>span::before{content:attr(data-label);display:block;font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;color:var(--text-faint);margin-bottom:.15rem;font-weight:400}
  .f-row>span:nth-child(3)::before{color:var(--gold)}
}

/* Sécurité */
.sec-list{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:1.5rem}
.sec-list li{border-top:1.5px solid var(--gold);padding-top:1.1rem}
.sec-list p{color:var(--text-muted);font-size:.95rem;line-height:1.7}
@media(max-width:1100px){.sec-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.sec-list{grid-template-columns:1fr}}
.who{margin-top:3rem;padding:2rem;background:var(--surface);border-inline-start:2px solid var(--gold)}
.who p{color:var(--text-muted);max-width:720px;line-height:1.8}

/* Formulaire (style de www.boum.it/contact) */
.audit{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(2.5rem,6vw,5rem);align-items:start}
@media(max-width:940px){.audit{grid-template-columns:1fr}}
.mini-steps{list-style:none;margin-top:2.25rem;display:grid;gap:1.4rem}
.mini-steps li{display:flex;gap:1.1rem;align-items:flex-start}
.mini-steps .step-num{font-family:var(--font-display);font-size:1rem;color:var(--gold);min-width:2rem}
.mini-steps p{color:var(--text-muted);font-size:.95rem}
.audit-box{background:var(--surface-2);border:1px solid var(--border);padding:clamp(1.5rem,4vw,3rem)}
.audit-form{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
@media(max-width:600px){.audit-form{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.field-wide{grid-column:1/-1}
.field label{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-muted)}
:lang(ar) .field label{letter-spacing:0;font-size:.85rem}
.field input,.field select,.field textarea{background:rgba(17,17,17,.03);border:1px solid rgba(17,17,17,.12);color:var(--text);font-family:inherit;font-size:16px;padding:.85rem 1rem;border-radius:0;width:100%;-webkit-appearance:none;appearance:none;transition:border-color .25s,background-color .25s}
.field input::placeholder,.field textarea::placeholder{color:rgba(17,17,17,.4)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold);background:rgba(132,101,31,.04);outline:none}
.field select{cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2384651F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;padding-right:2.5rem}
[dir="rtl"] .field select{background-position:left 1rem center;padding-right:1rem;padding-left:2.5rem}
.field textarea{resize:vertical;min-height:110px;line-height:1.7}
[aria-invalid="true"]{border-color:#B5452F!important}
.field-error{font-size:.8rem;color:#A63A26;line-height:1.5}
.field-error:empty{display:none}
.consent{font-size:.82rem;color:var(--text-faint);line-height:1.6}
.consent a{color:var(--text-muted)}
.form-alert{font-size:.9rem;color:#A63A26;margin-top:.8rem}
.form-alert:empty{display:none}
.hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);opacity:0;pointer-events:none}
.form-success{text-align:center;padding:3rem 1rem;display:flex;flex-direction:column;align-items:center;gap:1rem}
.form-success[hidden]{display:none}
.form-success svg{width:56px;height:56px;fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.form-success h3{font-size:1.6rem}
.form-success p{color:var(--text-muted);max-width:380px}

/* FAQ (style de apps.boum.it) */
.faq{border-top:1px solid var(--border);max-width:880px}
.faq details{border-bottom:1px solid var(--border)}
.faq summary{list-style:none;cursor:pointer;padding:1.4rem 0;padding-inline-end:2.5rem;position:relative;font-family:var(--font-display);font-size:1.1rem;font-weight:600;transition:color .3s}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';position:absolute;inset-inline-end:.25rem;top:50%;transform:translateY(-50%);color:var(--gold);font-size:1.4rem;font-weight:400;transition:transform .3s}
.faq details[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.faq summary:hover{color:var(--gold)}
.faq p{padding:0 0 1.5rem;font-size:.95rem;line-height:1.8;color:var(--text-muted);max-width:680px}

/* Construire en public */
.build{text-align:center;max-width:820px}
.build p{color:var(--text-muted);line-height:1.8;margin:1.25rem auto 1.5rem;max-width:640px}

/* Arabe : titres plus aérés */
:lang(ar) .hero-title,:lang(ar) .story-t,:lang(ar) .section-title{line-height:1.3;letter-spacing:0}

/* Mouvement réduit : tout est visible tout de suite (common.css coupe déjà les animations) */
@media (prefers-reduced-motion:reduce){.js .reveal{opacity:1;transform:none;filter:none}}

/* ── Correctifs et pages ajoutées (feuille de route, à propos) ── */
.story-step{overflow:hidden}
#hero{overflow:hidden}
.hero-fine .badge{margin-inline-end:.5rem}
.story-cta{display:flex;flex-wrap:wrap;gap:1.25rem 2rem;justify-content:center;align-items:center;margin-top:2.75rem}
.hero-sub-page{min-height:72vh;min-height:72svh;padding-bottom:3rem}
.hero-sub-page .hero-title{font-size:clamp(2.3rem,6vw,5.4rem)}

/* Encart « construit en public » */
.teaser{text-align:center;max-width:860px}
.teaser p{color:var(--text-muted);line-height:1.8;margin:1.25rem auto 2rem;max-width:640px}
.teaser .section-title em{font-style:normal;color:var(--gold)}
.teaser-links{display:flex;flex-wrap:wrap;gap:1.25rem 2rem;justify-content:center;align-items:center}

/* Feuille de route */
.legend{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;animation:fadeUp .6s .2s both}
.status{display:inline-block;font-size:.65rem;letter-spacing:.16em;text-transform:uppercase;padding:.3rem .7rem;border:1px solid var(--border-gold);color:var(--text-faint)}
:lang(ar) .status{letter-spacing:0;font-size:.8rem}
.status-done{background:var(--gold);border-color:var(--gold);color:var(--bg)}
.status-doing{background:rgba(132,101,31,.12);color:var(--gold-dim)}
.status-next{color:var(--gold-dim)}
.status-later{border-style:dashed}
.roadmap{display:grid;gap:clamp(3rem,6vw,5rem)}
.phase{display:grid;grid-template-columns:.8fr 1.2fr;gap:2rem 4rem;border-top:1px solid var(--ink);padding-top:2rem}
@media(max-width:860px){.phase{grid-template-columns:1fr}}
.phase-title{font-family:var(--font-display);font-size:clamp(1.6rem,3vw,2.4rem);font-weight:600;line-height:1.1;margin-bottom:.75rem}
.phase-head p{color:var(--text-muted);line-height:1.7}
.items{list-style:none;display:grid;gap:0}
.item{padding:1.25rem 0;border-bottom:1px solid var(--border);display:grid;grid-template-columns:8.5rem 1fr;gap:.35rem 1.25rem;align-items:baseline}
.item .status{grid-row:span 2;justify-self:start}
.item h3{margin:0}
.item p{color:var(--text-muted);font-size:.95rem;line-height:1.7;grid-column:2}
@media(max-width:560px){.item{grid-template-columns:1fr}.item .status{grid-row:auto}.item p{grid-column:1}}

/* À propos */
.thesis-body{display:grid;gap:1.4rem;max-width:760px}
.thesis-body p{font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.8;color:var(--text-muted)}
.thesis-body .thesis-key{color:var(--ink);border-inline-start:2px solid var(--gold);padding-inline-start:1.25rem}
.principles{grid-template-columns:repeat(4,1fr)}
@media(max-width:1000px){.principles{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.principles{grid-template-columns:1fr}}
.founder-body{max-width:760px;background:var(--surface);border-inline-start:2px solid var(--gold);padding:2rem}
.founder-body p{color:var(--text-muted);line-height:1.85;font-size:1.05rem}
.founder-body .founder-sign{margin-top:1.25rem;color:var(--ink);font-size:.8rem;letter-spacing:.18em;text-transform:uppercase}
:lang(ar) .founder-body .founder-sign{letter-spacing:0;font-size:.95rem}
.founder .section-title em{font-style:normal;color:var(--gold)}

/* Logo : « boum.it odin » reste écrit de gauche à droite, même en arabe */
.logo{direction:ltr;unicode-bidi:isolate}
.section-title em{font-style:normal;color:var(--gold)}
.hero-fine{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;align-items:center}
.hero-fine .badge{margin:0}
