/* Scripta Intelektual — démo vitrine. Palette tirée du sceau (bleu nuit) et du dégradé OJS (#1295e6 → #0e1837). */
:root {
  --ink: #0e1837;
  --ink-2: #1b2650;
  --blue: #1e6292;
  --sky: #1295e6;
  --sky-soft: #8fd0ff;
  --paper: #f7f5ef;
  --card: #ffffff;
  --tint: #ecf2f8;
  --line: #dcd8cc;
  --text: #1a2233;
  --muted: #4a5368;
  --red: #b3261e;
  --gold: #8a5f17;
  --wa: #0e7a3e;
  --wa-dark: #0a5e30;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(14, 24, 55, .28);
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 600; max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.kicker { font: 600 .78rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .9rem; }
.kicker-light { color: var(--sky-soft); }
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.sec-tint { background: var(--tint); }
.sec-dark { background: radial-gradient(120% 120% at 15% 0%, #17306a 0%, var(--ink) 60%); color: #e7ecf7; }
.sec-dark h2, .sec-dark h3 { color: #fff; }

/* --- boutons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .98rem/1 var(--f-body); padding: .85em 1.25em; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 1.04rem; padding: 1em 1.5em; }
.btn-sm { font-size: .88rem; padding: .62em 1em; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #b9c0cf; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.wa-ico { width: 1.2em; height: 1.2em; flex: none; }

/* --- en-tête -------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(247, 245, 239, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; }
.brand small { font-size: .72rem; color: var(--muted); }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--blue); }
.top-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { font-weight: 600; font-size: .85rem; color: var(--ink); text-decoration: none; border: 1.5px solid #b9c0cf; border-radius: 999px; padding: .45em .8em; }
.lang:hover { border-color: var(--ink); }
.top .btn-wa span { display: none; }
@media (min-width: 560px) { .top .btn-wa span { display: inline; } }
@media (min-width: 980px) { .nav { display: flex; } .top-act { margin-left: 8px; } }
@media (max-width: 400px) { .brand small { display: none; } }

/* --- héros ---------------------------------------------------------------- */
.hero { background: radial-gradient(110% 120% at 85% 10%, #1563a8 0%, #12306b 38%, var(--ink) 75%); color: #e7ecf7; padding: clamp(48px, 7vw, 88px) 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--sky-soft); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d3dcef; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; min-height: 340px; display: grid; place-items: center; }
.fan { list-style: none; margin: 0; padding: 0; position: relative; width: 200px; height: 284px; }
.fan li { position: absolute; inset: 0; transform-origin: 50% 110%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform: rotate(calc((var(--k) - 2) * 9deg)) translateX(calc((var(--k) - 2) * 26px)); }
.fan li:nth-child(3) { z-index: 3; }
.fan li:nth-child(2), .fan li:nth-child(4) { z-index: 2; }
.fan .cover { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .15); }
.hero-art:hover .fan li { transform: rotate(calc((var(--k) - 2) * 13deg)) translateX(calc((var(--k) - 2) * 44px)); }
@media (min-width: 560px) { .fan { width: 230px; height: 326px; } }
.doi-chip { position: absolute; right: 4%; bottom: 6%; z-index: 5; background: #fff; color: var(--ink); font: 700 1rem/1 var(--f-body); padding: .6em .9em; border-radius: 10px; box-shadow: var(--shadow); display: flex; gap: .55em; align-items: center; transform: rotate(-4deg); }
.doi-chip span { background: var(--gold); color: #fff; font-size: .72rem; padding: .3em .5em; border-radius: 5px; letter-spacing: .08em; }
.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat { background: rgba(14, 24, 55, .72); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat:last-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .stat:last-child { grid-column: auto; } }
.stat b { font: 600 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--f-display); color: #fff; }
.stat span { font-size: .86rem; color: #c3cde3; }
.stats-note { font-size: .8rem; color: #aebbd6; margin: 12px 0 0; }

/* --- services ------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 36px; }
@media (min-width: 680px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.svc-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.ico { width: 26px; height: 26px; }
.svc p { color: var(--muted); font-size: .96rem; }
.svc ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.svc li { font-size: .92rem; padding-left: 22px; position: relative; color: var(--text); }
.svc li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* --- rayonnage ------------------------------------------------------------ */
.finder { margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 860px) { .frow { grid-template-columns: 170px minmax(0, 1fr); align-items: start; } .flabel { padding-top: 8px; } }
.flabel { font-weight: 600; font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .88rem/1.2 var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); padding: .5em .9em; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.months { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mo { flex: none; font: 600 .84rem/1 var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); padding: .6em .7em; border-radius: 8px; cursor: pointer; min-width: 46px; }
.mo:first-child { padding-inline: .9em; }
.mo:hover { border-color: var(--blue); }
.mo[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.fcount { margin: 22px 0 14px; color: var(--muted); }
.fcount b { font: 600 1.4rem var(--f-display); color: var(--ink); }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; transition: box-shadow .2s, transform .2s; }
.jcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.jcard[hidden] { display: none; }
.jcover { display: block; align-self: start; }
.jcover .cover { width: 96px; height: 136px; object-fit: cover; border-radius: 4px; box-shadow: 0 8px 18px -8px rgba(14, 24, 55, .5); }
.cover-type { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 9px; background: linear-gradient(160deg, var(--blue), var(--ink)); color: #fff; }
.ct-name { font: 600 .95rem/1.1 var(--f-display); }
.ct-sub { font-size: .55rem; line-height: 1.25; color: #d7e3f6; }
.ct-pub { font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-soft); }
.jbody { min-width: 0; display: flex; flex-direction: column; }
.jplat { font-size: .72rem; font-weight: 600; letter-spacing: .04em; margin: 0 0 4px; color: var(--muted); }
.jplat::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--blue); }
.jplat-int::before { background: var(--gold); }
.jplat-sov::before { background: var(--red); }
.jcard h3 { font-size: 1.18rem; margin: 0 0 2px; }
.jcard h3 a { color: var(--ink); text-decoration: none; }
.jcard h3 a:hover { color: var(--blue); }
.jsub { font-size: .84rem; color: var(--muted); line-height: 1.4; margin-bottom: 10px; }
.jmeta { margin: 0 0 8px; display: grid; gap: 3px; font-size: .8rem; }
.jmeta div { display: flex; gap: 6px; flex-wrap: wrap; }
.jmeta dt { color: var(--muted); }
.jmeta dt::after { content: ":"; }
.jmeta dd { margin: 0; font-weight: 600; color: var(--text); }
.jmeta .next { color: var(--blue); }
.jout { font-size: .78rem; color: var(--muted); margin: 0 0 12px; }
.jact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.jact .btn-sm { font-size: .82rem; padding: .55em .9em; }
.fempty { text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px 20px; margin-top: 8px; }
.fempty .cta-row { justify-content: center; margin-top: 12px; }

/* --- plateformes ---------------------------------------------------------- */
.plat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 36px; }
@media (min-width: 900px) { .plat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plat-fan { list-style: none; margin: 0 0 22px; padding: 0; height: 120px; position: relative; }
.plat-fan li { position: absolute; top: 0; left: calc(var(--k) * 46px); transform: rotate(calc((var(--k) - 1.5) * 4deg)); transition: transform .3s; }
.plat:hover .plat-fan li { transform: rotate(calc((var(--k) - 1.5) * 7deg)) translateY(-4px); }
.plat-fan .mini { width: 80px; height: 113px; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .7); }
.plat-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-soft); margin: 0 0 6px; }
.plat h3 { font-size: 1.4rem; overflow-wrap: anywhere; }
.plat p { color: #cfd8ea; font-size: .96rem; }
.plat-nums { color: #e7ecf7; }
.plat-nums b { font-family: var(--f-display); font-size: 1.25rem; color: #fff; }
.plat .btn { margin-top: auto; align-self: flex-start; white-space: normal; text-align: left; }

/* --- parcours du manuscrit ------------------------------------------------ */
.journey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 36px; }
@media (min-width: 900px) { .journey { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.jr-stage { position: sticky; top: 76px; z-index: 2; align-self: start; display: flex; flex-direction: column; align-items: center; background: var(--paper); padding: 8px 0; }
@media (min-width: 900px) { .jr-stage { top: 110px; padding: 0; } }
.paper { position: relative; margin: 0; width: min(100%, 400px); aspect-ratio: 1 / 1.2; background: #fff; border-radius: 4px; box-shadow: 0 30px 50px -24px rgba(14, 24, 55, .45), 0 0 0 1px var(--line); padding: 7% 8%; overflow: hidden; font-size: clamp(.62rem, 1.5vw, .8rem); }
@media (max-width: 899px) { .paper { width: min(100%, 250px); } }
.pp-head { display: flex; justify-content: space-between; gap: 8px; font-size: .78em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .6em; margin-bottom: 1em; opacity: 0; transition: opacity .5s; }
.pp-jn { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.pp-title { font: 600 1.5em/1.2 var(--f-display); color: var(--ink); margin: 0 0 .8em; transition: all .5s; }
.pp-abs { background: transparent; border-left: 0 solid var(--blue); padding: 0; margin-bottom: 1em; transition: all .5s; }
.pp-abs b { display: block; font-size: .85em; color: var(--blue); max-height: 0; overflow: hidden; transition: max-height .5s; }
.pp-cols { display: grid; grid-template-columns: 1fr; gap: 0 1.2em; transition: all .5s; }
.pp-col2 { display: none; }
.paper i { display: block; height: .62em; border-radius: 3px; background: #d9dde6; margin: 0 0 .7em; position: relative; transition: all .5s; }
.paper i.s { width: 62%; }
.pp-ok, .pp-note, .pp-stamp, .pp-idx { position: absolute; opacity: 0; transform: scale(.9); transition: opacity .45s, transform .45s; pointer-events: none; }
.pp-ok { right: 7%; top: 30%; background: #e3f2e9; color: #14592f; font-weight: 600; font-size: 1em; padding: .35em .7em; border-radius: 6px; border: 1px solid #9fd0b2; }
.pp-note { font-family: "Segoe Print", "Bradley Hand", cursive; color: var(--red); font-size: 1.1em; background: #fff6f5; border: 1.5px solid var(--red); padding: .25em .6em; border-radius: 6px; transform: rotate(-3deg) scale(.9); }
.pp-note.n1 { right: 5%; top: 46%; }
.pp-note.n2 { left: 6%; bottom: 14%; transform: rotate(2deg) scale(.9); }
.pp-stamp { right: 7%; bottom: 16%; width: 7.6em; height: 7.6em; border-radius: 50%; border: 3px double var(--blue); color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-14deg) scale(1.6); background: rgba(255, 255, 255, .88); }
.pp-stamp b { font-size: 1.15em; letter-spacing: .12em; }
.pp-stamp small { font-size: .85em; font-weight: 600; }
.pp-idx { left: 8%; bottom: 5%; display: flex; gap: .4em; flex-wrap: wrap; }
.pp-idx em { font-style: normal; font-size: .8em; font-weight: 600; color: var(--ink); background: var(--tint); border-radius: 4px; padding: .2em .5em; }
.pp-cap { position: absolute; left: 8%; top: 2.4%; font-size: .72em; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
/* états */
.paper[data-state="1"] i:nth-child(odd) { transform: rotate(-.6deg); }
.paper[data-state="1"] .pp-title { color: #50586b; font-family: var(--f-body); font-weight: 500; }
.paper[data-state="2"] .pp-ok { opacity: 1; transform: none; }
.paper[data-state="3"] .pp-note, .paper[data-state="3"] i.hl, .paper[data-state="3"] i.del { opacity: 1; }
.paper[data-state="3"] .pp-note.n1 { opacity: 1; transform: rotate(-3deg); }
.paper[data-state="3"] .pp-note.n2 { opacity: 1; transform: rotate(2deg); }
.paper[data-state="3"] i.hl { background: #f6d7a6; }
.paper[data-state="3"] i.del { background: #f1c4c0; }
.paper[data-state="3"] i.del::after { content: ""; position: absolute; left: -2%; right: -2%; top: 50%; height: 2px; background: var(--red); }
.paper[data-state="4"] i.hl { background: #c9e6d3; }
.paper[data-state="4"] i.del { width: 0; margin: 0; height: 0; }
.paper[data-state="4"] .pp-note { opacity: .25; transform: rotate(-3deg); text-decoration: line-through; }
.paper[data-state="5"] .pp-head, .paper[data-state="6"] .pp-head { opacity: 1; }
.paper[data-state="5"] .pp-title, .paper[data-state="6"] .pp-title { text-align: center; font-size: 1.35em; }
.paper[data-state="5"] .pp-abs, .paper[data-state="6"] .pp-abs { background: var(--tint); border-left-width: 3px; padding: .7em .9em .2em; }
.paper[data-state="5"] .pp-abs b, .paper[data-state="6"] .pp-abs b { max-height: 2em; margin-bottom: .4em; }
.paper[data-state="5"] .pp-cols, .paper[data-state="6"] .pp-cols { grid-template-columns: 1fr 1fr; }
.paper[data-state="5"] .pp-col2, .paper[data-state="6"] .pp-col2 { display: block; }
.paper[data-state="5"] i, .paper[data-state="6"] i { background: #c4cad6; height: .5em; margin-bottom: .6em; }
.paper[data-state="5"] i.del, .paper[data-state="6"] i.del { height: 0; margin: 0; }
.paper[data-state="6"] .pp-stamp { opacity: 1; transform: rotate(-14deg) scale(1); }
.paper[data-state="6"] .pp-idx { opacity: 1; transform: none; }
.paper[data-state="5"] .pp-cap, .paper[data-state="6"] .pp-cap { opacity: 0; }
.jr-dots { list-style: none; display: flex; gap: 8px; padding: 0; margin: 14px 0 0; }
.jr-dots li { width: 8px; height: 8px; border-radius: 50%; background: #c2c8d4; transition: background .3s, width .3s; }
.jr-dots li.on { background: var(--blue); width: 22px; border-radius: 4px; }
.jr-steps { list-style: none; margin: 0; padding: 0; }
.jr-step { padding: 28px 0 28px 0; border-top: 1px solid var(--line); opacity: .45; transition: opacity .35s; min-height: 32vh; }
@media (min-width: 900px) { .jr-step { min-height: 46vh; padding-top: 36px; } }
.jr-step:last-child { min-height: 0; }
.jr-step.on { opacity: 1; }
.jr-num { font: 600 .9rem var(--f-body); color: var(--blue); letter-spacing: .1em; }
.jr-step h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: .3em; }
.jr-step p { color: var(--muted); max-width: 44ch; }
@media (prefers-reduced-motion: reduce) { .jr-step { opacity: 1; } * { transition: none !important; scroll-behavior: auto !important; } }

/* --- brief WhatsApp ------------------------------------------------------- */
.brief { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 980px) { .brief { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); column-gap: 48px; } .brief-intro { grid-column: 1 / -1; } }
.brief-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 20px; }
.brief-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.brief-form legend, .field span { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 10px; padding: 0; display: block; }
.brief-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 620px) { .brief-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { display: block; }
.field select, .field input { width: 100%; font: 400 .95rem var(--f-body); color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: .7em .8em; }
.field select:focus, .field input:focus { border-color: var(--blue); outline: none; }
.field input::placeholder { color: #6b7385; }
.br-ms[hidden] { display: none; }
.bubble-wrap { align-self: start; }
@media (min-width: 980px) { .bubble-wrap { position: sticky; top: 96px; } }
.bubble-label { font-weight: 600; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.phone { background: #e7ddd3; border-radius: 18px; overflow: hidden; border: 1px solid #d3c7ba; margin-bottom: 14px; }
.phone-top { background: #0b5a4a; color: #fff; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: .92rem; }
.bubble { margin: 16px 16px 18px auto; max-width: 90%; background: #dcf8c6; color: #10251a; border-radius: 12px 0 12px 12px; padding: 12px 14px; font-size: .92rem; line-height: 1.5; white-space: pre-line; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); min-height: 80px; overflow-wrap: anywhere; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 600 1.1rem/1.35 var(--f-display); color: var(--ink); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.6rem var(--f-body); color: var(--blue); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 65ch; }

/* --- contact & pied ------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.contact .lead { color: #cfd8ea; max-width: 46ch; margin-bottom: 24px; }
.ct-list { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.ct-list div { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 4px; }
.ct-list dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-soft); font-weight: 600; }
.ct-list dd { margin: 0; color: #fff; font-size: 1.05rem; }
.ct-list a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.ct-list a:hover { text-decoration-color: #fff; }
.ct-sites { display: flex; flex-direction: column; gap: 4px; }
.foot { background: #0a1129; color: #aab6cf; padding: 32px 0 96px; font-size: .86rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.brand-foot b { color: #fff; font-size: 1rem; }
.brand-foot small { color: #aab6cf; font-size: .74rem; }
.demo { color: #aab6cf; }

/* --- bouton WhatsApp flottant -------------------------------------------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 14px; box-shadow: 0 12px 28px -8px rgba(13, 110, 58, .6); transition: transform .15s, background .15s; }
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); }
.wa-float .wa-ico { width: 28px; height: 28px; }
.wa-float span { display: none; }
@media (min-width: 760px) { .wa-float { padding: 12px 20px 12px 16px; } .wa-float span { display: inline; } }

/* --- marquage démo : à valider par Scripta (visible avec ?review=1) ------- */
.review-on [data-review] { outline: 2px dashed #e0a100; outline-offset: 3px; }

/* ancres sous l'en-tête collant ; bulle flottante masquée quand un bouton WhatsApp est déjà visible */
section[id] { scroll-margin-top: 68px; }
.wa-float { transition: transform .15s, background .15s, opacity .25s; }
.wa-float.away { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* rayonnage sur téléphone : cartes compactes, repliées à 6 */
.shelf-more { display: none; margin: 18px auto 0; }
@media (max-width: 639px) {
  .jcard { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .jcover .cover { width: 72px; height: 102px; }
  .jcard h3 { font-size: 1.08rem; }
  .jsub { font-size: .8rem; margin-bottom: 8px; }
  .jact .btn-sm { font-size: .8rem; padding: .5em .8em; }
  .shelf.collapsed .jcard:nth-child(n+7) { display: none; }
  .shelf.collapsed ~ .shelf-more { display: flex; }
}
