/* JD Core — version claire et chaleureuse
   Charte : Bleu nuit #141A23, Bleu JD #365DAB, Bleu clair #5B86E0, Gris texte #5A6270, Gris clair #AEB6C2, Papier #F4F5F1 */
:root {
  --bg: #F4F5F1;           /* Papier */
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #E8EEFA;         /* bleu très léger */
  --tint-2: #F0F4FC;
  --line: #E3E6E1;
  --line-2: #D5DAE1;
  --ink: #141A23;          /* Bleu nuit */
  --text: #141A23;
  --muted: #5A6270;        /* Gris texte */
  --dim: #68707C;
  --bleu: #365DAB;
  --bleu-hover: #2C4E92;
  --bleu-clair: #5B86E0;
  --bleu-pale: #DCE6FA;
  --soleil: #FFD46B;       /* petits badges uniquement */
  --ok: #1E8F62;
  --nuit: #141A23;
  --btn: #365DAB;          /* fond des boutons et pastilles pleines */
  --btn-hover: #2C4E92;
  --chip: #F4F5F1;         /* petits blocs des maquettes */
  --frame: #141A23;        /* cadres de téléphone, TV */
  --solid: #141A23;        /* onglet sélectionné */
  --on-solid: #FFFFFF;
  --featured: #141A23;
  --nav-bg: rgba(255,255,255,.82);
  --nav-bg-2: rgba(255,255,255,.94);
  --warm: #FFF6DF;
  --cool: #E9EBF0;
  --err: #B42318;
  --err-bg: #FDECEA;
  --check-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.8 2.8L14.5 7.4' fill='none' stroke='%23365DAB' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --plus-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%23365DAB' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");

  --font: "Avenir Next", "Avenir", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --step-4: clamp(2.5rem, 1.5rem + 4vw, 4.6rem);

  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20,26,35,.04), 0 14px 34px -16px rgba(54,93,171,.22);
  --shadow-lg: 0 2px 4px rgba(20,26,35,.04), 0 30px 60px -24px rgba(54,93,171,.32);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: var(--step-3); font-weight: 800; max-width: 22ch; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }
a { color: var(--bleu); }
kbd { font-family: var(--mono); font-size: .78em; padding: .1em .45em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; color: var(--muted); background: var(--surface); }
:focus-visible { outline: 3px solid var(--bleu-clair); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--bleu-pale); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--solid); color: var(--on-solid); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
.lead { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.panel-path { font-size: .85rem; color: var(--dim); margin-bottom: 1rem; }
.eyebrow-pill { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--bleu); background: var(--tint); padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.5rem;
  font: 700 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .92rem; }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(54,93,171,.7); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--bleu-clair); color: var(--bleu); }

/* ---------- Navbar ---------- */
.nav-shell { position: fixed; inset: 14px 0 auto; z-index: 100; padding-inline: 1rem; pointer-events: none; }
.navbar {
  pointer-events: auto; max-width: var(--wrap); margin-inline: auto; height: 64px;
  display: flex; align-items: center; gap: 1.5rem; padding: 0 .6rem 0 1.2rem;
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(20,26,35,.06); border-radius: 999px; box-shadow: var(--shadow);
  transition: max-width .4s var(--ease), background-color .3s;
}
.nav-shell.compact .navbar { max-width: 1040px; background: var(--nav-bg-2); }
.brand { flex: none; display: block; }
.brand img { height: 31px; width: auto; }
.nav-links { display: flex; gap: .15rem; margin-inline: auto; min-width: 0; }
.nav-links a { position: relative; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .85rem; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--tint-2); }
.nav-links a.active { color: var(--bleu); background: var(--tint); }
.nav-links .nav-mobile-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.cmdk-trigger { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .65rem 0 .8rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color .2s, color .2s; }
.cmdk-trigger:hover { color: var(--ink); border-color: var(--line-2); }
.cmdk-trigger kbd { border: 0; background: var(--surface); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 999px; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, background-color .25s; position: relative; margin: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Fonds décoratifs ---------- */
.dots-bg, .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(54,93,171,.16) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, #000 25%, transparent 75%);
}
.dots-bg::before, .grid-bg::before { /* halo bleu doux */
  content: ""; position: absolute; right: -8%; top: -10%; width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,134,224,.22), transparent 62%);
}

/* ---------- Hero ---------- */
.hero { --marquee-h: 0px; position: relative; overflow: hidden; padding: clamp(96px, 13vh, 130px) 0 0; height: 100vh; height: 100svh; min-height: 600px; display: flex; flex-direction: column; }
.hero-grid { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-bottom: clamp(4.5rem, 10vh, 6rem); }
.status { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: clamp(.8rem, 2.5vh, 1.4rem); font-size: .92rem; font-weight: 600; color: var(--muted); padding: .4rem .95rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.3rem, min(1.5rem + 4vw, 8vh), 4.4rem); font-weight: 800; max-width: 15ch; letter-spacing: -0.035em; margin-bottom: .4em; }
.hero-lead { color: var(--muted); font-size: clamp(1rem, 2.3vh, 1.22rem); line-height: 1.6; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.1rem, 3.2vh, 1.9rem); }
.reassure { list-style: none; padding: 0; margin: clamp(1rem, 3vh, 1.8rem) 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; font-weight: 600; color: var(--muted); }
.reassure li { display: flex; align-items: center; gap: .45rem; }
.reassure li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) var(--check-ico) center/100% no-repeat; }
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .25s; }
.hero-copy > :nth-child(4) { animation-delay: .35s; }
.hero-copy > :nth-child(5) { animation-delay: .45s; }

/* Vitrine animée : le site et l'appli d'un client fictif (couleurs fixes : ce sont des captures, pas l'interface du site) */
.showcase { position: relative; min-width: 0; opacity: 0; transform: translateY(18px); animation: rise .9s .25s var(--ease) forwards; }
.sc-tabs { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.sc-tabs-label { font-size: .82rem; font-weight: 700; color: var(--dim); margin-right: .3rem; }
.sc-tabs button { display: inline-flex; align-items: center; gap: .4rem; font: 600 .9rem var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; transition: all .2s; }
.sc-tabs button:hover { color: var(--ink); border-color: var(--line-2); }
.sc-tabs button[aria-selected="true"] { color: var(--on-solid); background: var(--solid); border-color: var(--solid); }

.sc-stage {
  --sh: clamp(300px, 46vh, 430px);          /* hauteur de la scène */
  --pw: calc(var(--sh) * .4865);            /* largeur du téléphone (ratio 9 / 18.5) */
  --c: #C2562B; --img: url("assets/demo/restaurant.svg"); --ov: 18, 12, 8;
  --ink-m: #1D2230; --mute-m: #737985; --chip-m: #EFEEEA;
  position: relative; height: var(--sh); isolation: isolate;
}
.sc-stage[data-scene="coach"] { --c: #1F8F73; --img: url("assets/demo/studio.svg"); --ov: 10, 34, 28; }
.sc-stage[data-scene="artisan"] { --c: #9A6332; --img: url("assets/demo/atelier.svg"); --ov: 34, 22, 12; }
.sc-scene { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.sc-stage[data-scene="resto"] .sc-scene[data-scene="resto"],
.sc-stage[data-scene="coach"] .sc-scene[data-scene="coach"],
.sc-stage[data-scene="artisan"] .sc-scene[data-scene="artisan"] { opacity: 1; transform: none; }

/* Navigateur */
.sc-browser { position: absolute; left: 0; top: 0; width: calc(100% - var(--pw) * .55); height: 86%; background: #fff; color: var(--ink-m); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(20,26,35,.08); }
.sc-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F2F3F1; border-bottom: 1px solid #E5E7E3; }
.sc-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.sc-bar > i:nth-child(2) { background: #FEBC2E; }
.sc-bar > i:nth-child(3) { background: #28C840; }
.sc-url { margin-left: 10px; flex: 0 1 240px; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #5D6470; background: #fff; border: 1px solid #E3E5E1; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.sc-url svg { flex: none; color: #9AA0A8; }
.sc-site { top: 34px; padding: 10px 14px 14px calc(14px); padding-right: calc(var(--pw) * .45 + 12px); display: flex; flex-direction: column; gap: 10px; }
.sc-nav { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; color: var(--mute-m); white-space: nowrap; }
.sc-logo { margin-right: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-m); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.sc-logo--serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 14px; font-weight: 700; }
.sc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 4px 0 0 -1px color-mix(in srgb, var(--c) 45%, #fff); }
.sc-banner { flex: 1; min-height: 0; border-radius: 12px; padding: clamp(12px, 2.4vh, 20px); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: #fff; background: linear-gradient(90deg, rgba(var(--ov), .86), rgba(var(--ov), .55) 55%, rgba(var(--ov), .08)), var(--img) 70% center / cover; }
.sc-banner small { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.sc-banner b { font-size: clamp(15px, 2.5vh, 21px); line-height: 1.15; max-width: 15em; letter-spacing: -.015em; }
.sc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.sc-banner em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--c); padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: background .45s; }
.sc-meta { font-size: 10.5px; font-weight: 600; opacity: .9; white-space: nowrap; }
.sc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sc-cards > span { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 7px; align-items: center; padding: 6px; border-radius: 10px; background: #F6F5F2; }
.sc-thumb { grid-row: span 2; width: 26px; height: 26px; border-radius: 7px; background: var(--img) var(--x) var(--y) / 420% auto; }
.sc-cards b { font-size: 10.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-cards small { font-size: 10px; color: var(--mute-m); }

/* Téléphone */
.sc-phone { position: absolute; z-index: 1; right: 0; bottom: 0; height: 100%; width: auto; aspect-ratio: 9 / 18.5; background: #0D1117; border-radius: 32px; padding: 7px; box-shadow: var(--shadow-lg); }
.sc-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 30%; height: 17px; border-radius: 10px; background: #0D1117; z-index: 2; }
.sc-app { inset: 7px; background: #FBFAF8; color: var(--ink-m); border-radius: 26px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.sc-app p { margin: 0; }
.sc-status { display: flex; justify-content: space-between; align-items: center; height: 16px; padding: 0 6px 0 8px; font-size: 10px; margin-bottom: 4px !important; }
.sc-status i { width: 17px; height: 8px; border-radius: 3px; border: 1.4px solid var(--ink-m); background: linear-gradient(90deg, var(--ink-m) 72%, transparent 0) content-box; padding: 1px; }
.sc-app-head { display: flex; align-items: center; gap: 8px; }
.sc-app-head > span:last-child { display: grid; min-width: 0; line-height: 1.2; }
.sc-app-head b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.sc-app-head small { font-size: 9.5px; color: var(--mute-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-app-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.sc-app-ico--resto { background: #C2562B; font-family: Georgia, serif; font-style: italic; }
.sc-app-ico--coach { background: #1F8F73; }
.sc-app-ico--artisan { background: #9A6332; font-family: Georgia, serif; }
.sc-days, .sc-slots, .sc-choices, .sc-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.sc-days span { display: grid; text-align: center; padding: 4px 0 5px; border-radius: 9px; background: var(--chip-m); font-size: 13px; font-weight: 800; line-height: 1.15; }
.sc-days small { font-size: 8.5px; font-weight: 700; color: var(--mute-m); text-transform: uppercase; letter-spacing: .04em; }
.sc-days .on, .sc-slots .on, .sc-choices .on { background: var(--c); color: #fff; }
.sc-days .on small { color: rgba(255,255,255,.85); }
.sc-stepper { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--mute-m); background: var(--chip-m); border-radius: 9px; padding: 5px 6px 5px 9px; }
.sc-qty { display: flex; align-items: center; gap: 7px; color: var(--ink-m); }
.sc-qty i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.sc-slots span { font-size: 10.5px; font-weight: 700; text-align: center; padding: 7px 0; border-radius: 8px; background: var(--chip-m); }
.sc-slots .full { color: #B3B6BB; text-decoration: line-through; }
.sc-cta { margin-top: auto; text-align: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--c); border-radius: 999px; padding: 9px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .45s; }
.sc-progress { display: flex; align-items: center; gap: 9px; padding: 7px; border-radius: 10px; background: var(--chip-m); }
.sc-progress > span:last-child { display: grid; min-width: 0; line-height: 1.25; }
.sc-progress > span:last-child b { font-size: 11px; }
.sc-progress small { font-size: 9.5px; color: var(--mute-m); }
.sc-ring { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #DAD9D3 0); }
.sc-ring b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; background: var(--chip-m); }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.sc-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 7px 8px; border-radius: 9px; background: var(--chip-m); font-size: 10.5px; }
.sc-list b { font-size: 8.5px; color: var(--mute-m); text-transform: uppercase; letter-spacing: .03em; }
.sc-list span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-list small { color: var(--mute-m); font-size: 9.5px; }
.sc-list .done span::after { content: " ✓"; color: var(--c); }
.sc-list .on { background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset 0 0 0 1.5px var(--c); }
.sc-bar-progress { display: block; height: 4px; border-radius: 4px; background: #E4E3DE; overflow: hidden; }
.sc-bar-progress i { display: block; width: 66%; height: 100%; background: var(--c); }
.sc-choices span { font-size: 9.5px; font-weight: 700; text-align: center; padding: 7px 1px; border-radius: 8px; background: var(--chip-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-label { font-size: 9.5px; font-weight: 700; color: var(--mute-m); text-transform: uppercase; letter-spacing: .05em; }
.sc-photos i { aspect-ratio: 1; border-radius: 8px; background: var(--img) var(--x) var(--y) / 400% auto; }
.sc-photos .add { display: grid; place-items: center; font-style: normal; font-size: 16px; color: var(--mute-m); background: var(--chip-m); border: 1.5px dashed #CFCDC6; }
.sc-field { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; padding: 7px 8px; border-radius: 9px; background: var(--chip-m); }
.sc-field small { color: var(--mute-m); }
@media (max-height: 760px) { .sc-opt { display: none !important; } }

/* Notification */
.sc-toast { position: absolute; z-index: 2; left: 4%; bottom: 3%; width: min(310px, 62%); margin: 0; }
.sc-note { display: none; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: var(--shadow-lg); border: 1px solid rgba(20,26,35,.06); color: var(--ink-m); font-size: 11.5px; line-height: 1.35; }
.sc-stage[data-scene="resto"] .sc-note[data-scene="resto"],
.sc-stage[data-scene="coach"] .sc-note[data-scene="coach"],
.sc-stage[data-scene="artisan"] .sc-note[data-scene="artisan"] { display: grid; }
.sc-note .sc-app-ico { width: 30px; height: 30px; }
.sc-note > span:last-child { display: grid; min-width: 0; }
.sc-note-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 1px; font-size: 9.5px; color: var(--mute-m); }
.sc-note-top b { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-note strong { font-size: 12px; }
.sc-note strong + span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #454B57; }
.sc-toast.pop { animation: toast-pop .5s var(--ease); }
@keyframes toast-pop { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 100% { opacity: 1; transform: none; } }

/* Indicateur « découvrir » */
.scroll-cue { position: absolute; left: 50%; bottom: clamp(.6rem, 2vh, 1.4rem); translate: -50% 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .4rem .8rem; font-size: .8rem; font-weight: 600; color: var(--dim); text-decoration: none; opacity: 0; transform: translateY(8px); animation: rise .8s 1.2s var(--ease) forwards; transition: color .2s; }
.scroll-cue:hover { color: var(--bleu); }
.cue-track { position: relative; width: 2px; height: clamp(24px, 4vh, 36px); border-radius: 2px; background: var(--line-2); margin-bottom: 7px; }
.cue-track::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 9px; height: 9px; translate: -50% 0; border: 2px solid var(--bleu); border-radius: 50%; background: var(--bg); }
.cue-dot { position: absolute; left: 50%; top: 0; width: 6px; height: 6px; translate: -50% 0; border-radius: 50%; background: var(--bleu); animation: cue-run 1.9s var(--ease) infinite; }
@keyframes cue-run { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 70% { top: calc(100% - 6px); opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
html.scrolled .scroll-cue { opacity: 0 !important; pointer-events: none; transition: opacity .4s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pop { to { transform: scale(1); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tight { padding-top: 1.5rem; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 2.8rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 58ch; }
.section-head--center { text-align: center; }
.section-head--center h2, .section-head--center p { margin-inline: auto; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }

.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 1.85rem; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--tint) var(--check-ico) center/100% no-repeat; }
.checks strong { color: var(--ink); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .82rem; font-weight: 600; color: var(--bleu); padding: .3rem .75rem; border-radius: 999px; background: var(--tint); }

/* ---------- Pour qui ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.audience { position: relative; display: flex; flex-direction: column; padding: 2rem 1.8rem 1.8rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.audience--perso { background: linear-gradient(160deg, var(--warm), var(--surface) 55%); }
.audience--indep { background: linear-gradient(160deg, var(--tint), var(--surface) 55%); }
.audience--pro { background: linear-gradient(160deg, var(--cool), var(--surface) 55%); }
.audience-ico { font-size: 2rem; line-height: 1; margin-bottom: 1rem; }
.audience p { color: var(--muted); }
.audience .checks { flex: 1; }
.audience-price { margin: 0; font-weight: 800; color: var(--ink); }

/* ---------- Services (bento) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { padding: 1.8rem; border-radius: var(--r); background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service--big { grid-row: span 2; background: linear-gradient(165deg, var(--btn), #24427E); color: #fff; padding: 2.2rem; display: flex; flex-direction: column; }
.service--big h3 { color: #fff; font-size: var(--step-2); }
.service--big p { color: rgba(255,255,255,.85); flex: 1; }
.service--big .tags li { background: rgba(255,255,255,.16); color: #fff; }
.service p { color: var(--muted); margin: 0; }
.service.service--big p { color: rgba(255,255,255,.88); margin-bottom: 1.5rem; }
.service-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface); margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.service-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--bleu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service--big .service-ico { background: rgba(255,255,255,.14); box-shadow: none; }
.service--big .service-ico svg { stroke: #fff; }
.service--big .service-ico circle { fill: #fff; stroke: none; }

/* ---------- Services : besoins concrets (sans prix, ceux-ci sont dans Tarifs) ---------- */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.use { --u: #365DAB; position: relative; display: flex; flex-direction: column; padding: 1.7rem 1.6rem 1.4rem; border-radius: var(--r); background: var(--bg); border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.use:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--u) 35%, transparent); }
.use--b { --u: #1F8F73; } .use--c { --u: #C2562B; } .use--d { --u: #7B5CE0; } .use--e { --u: #2F7FA3; } .use--f { --u: #9A6332; }
:root[data-theme="dark"] .use { --u-ico: color-mix(in srgb, var(--u) 70%, #fff); }
.use-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 16px; background: color-mix(in srgb, var(--u) 13%, var(--surface)); }
.use-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--u-ico, var(--u)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.use h3 { margin-bottom: .45rem; }
.use p { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; }
.use-tags { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.use-tags li { font-size: .78rem; font-weight: 600; color: var(--muted); padding: .22rem .6rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.use-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--u-ico, var(--u)); text-decoration: none; transition: gap .2s; }
.use-link:hover { gap: .6rem; }
.uses-foot { margin: 1.6rem 0 0; text-align: center; max-width: none; color: var(--muted); }
.uses-foot a { font-weight: 700; margin-left: .3rem; }
#tarifs .included { background: var(--bg); margin-top: 1.25rem; }
@media (max-width: 1080px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .uses { grid-template-columns: 1fr; } }

/* ---------- Multi-écrans ---------- */
.switcher { display: inline-flex; padding: 5px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); }
.switcher button { font: 700 .95rem var(--font); color: var(--muted); background: none; border: 0; padding: .6rem 1.4rem; border-radius: 999px; cursor: pointer; min-height: 42px; transition: background-color .25s, color .25s; }
.switcher button[aria-selected="true"] { background: var(--btn); color: #fff; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 560px; margin-top: 2rem; padding: 1rem 0; }
.stage-note { text-align: center; color: var(--muted); margin: 1.2rem auto 0; }
.device { --w: 270px; --h: 540px; --r: 38px; --b: 10px; position: relative; width: var(--w); height: var(--h); max-width: 100%; background: var(--frame); border-radius: var(--r); padding: var(--b); box-shadow: var(--shadow-lg); transition: width .7s var(--ease), height .7s var(--ease), border-radius .7s var(--ease), padding .7s var(--ease); }
.device[data-mode="web"] { --w: 760px; --h: 470px; --r: 16px; --b: 0px; background: var(--surface); }
.device[data-mode="tv"] { --w: 820px; --h: 470px; --r: 10px; --b: 12px; }
.chrome { height: 0; overflow: hidden; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--chip); border-radius: 16px 16px 0 0; transition: height .5s var(--ease); border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.chrome span { margin-left: 14px; font-size: 12px; color: var(--dim); background: var(--surface); padding: 3px 14px; border-radius: 999px; flex: 1; max-width: 300px; border: 1px solid var(--line); }
.device[data-mode="web"] .chrome { height: 36px; }
.screen { height: 100%; background: #F4F5F1; color: #141A23; border-radius: calc(var(--r) - var(--b)); overflow: hidden; display: grid; grid-template-columns: 0 1fr; transition: grid-template-columns .7s var(--ease), border-radius .7s var(--ease); }
.device[data-mode="web"] .screen { height: calc(100% - 36px); border-radius: 0 0 16px 16px; grid-template-columns: 64px 1fr; }
.device[data-mode="tv"] .screen { grid-template-columns: 84px 1fr; background: #18202B; color: #F4F5F1; }
.ui-side { background: #141A23; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 18px; overflow: hidden; }
.ui-side span { width: 22px; height: 22px; border-radius: 7px; background: #2A3444; }
.ui-side span.on { background: #365DAB; }
.ui-main { padding: 34px 18px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: padding .6s var(--ease); }
.device[data-mode="web"] .ui-main, .device[data-mode="tv"] .ui-main { padding: 26px 30px; }
.ui-top { display: flex; justify-content: space-between; align-items: center; }
.ui-top small { display: block; color: #5A6270; font-size: 12px; }
.ui-top strong { font-size: 18px; }
.device[data-mode="tv"] .ui-top strong { font-size: 24px; }
.device[data-mode="tv"] .ui-top small, .device[data-mode="tv"] .ui-kpis small { color: #AEB6C2; }
.ui-avatar { width: 34px; height: 34px; border-radius: 50%; background: #365DAB; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ui-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.device[data-mode="web"] .ui-kpis, .device[data-mode="tv"] .ui-kpis { grid-template-columns: repeat(3, 1fr); }
.ui-kpi-3 { display: none; }
.device[data-mode="web"] .ui-kpi-3, .device[data-mode="tv"] .ui-kpi-3 { display: block; }
.ui-kpis > div { background: #fff; border-radius: 12px; padding: 10px 12px; }
.device[data-mode="tv"] .ui-kpis > div { background: #222C3A; }
.ui-kpis small { display: block; font-size: 11px; color: #5A6270; }
.ui-kpis strong { font-size: 17px; display: block; }
.ui-kpis em { font-style: normal; font-size: 11px; color: #365DAB; font-weight: 700; }
.device[data-mode="tv"] .ui-kpis em { color: var(--bleu-clair); }
.ui-chart { flex: 1; min-height: 90px; display: flex; align-items: flex-end; gap: 8px; background: #fff; border-radius: 12px; padding: 14px; }
.device[data-mode="tv"] .ui-chart { background: #222C3A; }
.ui-chart span { flex: 1; height: var(--h); background: #5B86E0; border-radius: 4px 4px 0 0; opacity: .85; transform-origin: bottom; }
.ui-chart span:last-child { background: #365DAB; opacity: 1; }
.device.redraw .ui-chart span { animation: grow .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes grow { from { transform: scaleY(0); } }
.ui-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ui-list li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 8px 10px; }
.ui-list b { width: 8px; height: 8px; border-radius: 50%; background: #365DAB; flex: none; }
.ui-list span { margin-left: auto; color: #5A6270; font-size: 11px; white-space: nowrap; }
.device[data-mode="web"] .ui-list, .device[data-mode="tv"] .ui-list { grid-template-columns: repeat(3, 1fr); }
.device[data-mode="tv"] .ui-list li { background: #222C3A; }
.device[data-mode="tv"] .ui-list li:first-child { outline: 2px solid var(--bleu-clair); outline-offset: 2px; }
.device[data-mode="tv"] .ui-list span { color: #AEB6C2; }
.ui-more { display: none !important; }
.device[data-mode="web"] .ui-more, .device[data-mode="tv"] .ui-more { display: flex !important; }
.stand { position: absolute; left: 50%; bottom: -46px; width: 160px; height: 46px; translate: -50% 0; opacity: 0; transition: opacity .4s; }
.stand::before { content: ""; position: absolute; left: 50%; top: 0; width: 14px; height: 34px; translate: -50% 0; background: var(--frame); }
.stand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; border-radius: 6px; background: var(--frame); }
.device[data-mode="tv"] .stand { opacity: 1; transition-delay: .4s; }

/* ---------- Tarifs ---------- */
.price-toggle { display: inline-flex; margin-top: 1.2rem; padding: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.price-toggle button { font: 700 .95rem var(--font); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: .6rem 1.3rem; cursor: pointer; min-height: 44px; transition: background-color .25s, color .25s; }
.price-toggle button small { font-weight: 600; opacity: .75; margin-left: .2rem; }
.price-toggle button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2.1rem 1.8rem 1.8rem; background: var(--bg); border-radius: var(--r-lg); }
.plan h3 { margin-bottom: .35rem; }
.plan-desc { color: var(--muted); font-size: .98rem; min-height: 3em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; margin: .4rem 0 1.4rem; }
.price span { width: 100%; font-size: .88rem; color: var(--dim); }
.price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-size: .95rem; font-weight: 700; }
.price strong.flip { animation: price-flip .35s var(--ease); }
@keyframes price-flip { 0% { opacity: 0; transform: translateY(-6px); } }
.plan .checks { flex: 1; }
.plan .btn { width: 100%; }
.plan--featured { background: var(--featured); color: #fff; box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .price strong { color: #fff; }
.plan--featured .plan-desc, .plan--featured .checks li, .plan--featured .price small, .plan--featured .price span { color: rgba(255,255,255,.78); }
.plan--featured .checks li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.8 2.8L14.5 7.4' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-flag { position: absolute; top: -14px; left: 1.8rem; margin: 0; font-size: .8rem; font-weight: 800; color: #141A23; background: var(--soleil); padding: .3rem .8rem; border-radius: 999px; }
.plan-line { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 1.25rem; padding: 1.5rem 1.8rem; border-radius: var(--r); background: var(--bg); }
.plan-line h3 { margin-bottom: .2rem; }
.plan-line p { color: var(--muted); margin: 0; }
.price--inline { margin: 0; }
.price--inline strong { font-size: 1.7rem; }
.pricing-note { color: var(--dim); font-size: .88rem; margin: 1.2rem auto 0; text-align: center; }

/* ---------- Méthode ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; padding: 1.8rem 1.5rem; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 2.75rem; right: -1.25rem; width: 1.25rem; height: 2px; background: var(--line-2); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--bleu); font-weight: 800; font-size: 1.1rem; margin-bottom: 1.1rem; }
.steps li:last-child .step-n { background: var(--btn); color: #fff; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Projets ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project { position: relative; display: flex; flex-direction: column; text-align: left; width: 100%; font: inherit; color: inherit; padding: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.section-alt .project { background: var(--bg); box-shadow: none; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project:hover .cover-art { transform: translateY(-4px) scale(1.02); }
.project-body { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project-meta { display: flex; gap: .8rem; align-items: center; font-size: .82rem; color: var(--dim); margin: 0; }
.project-meta .type { color: var(--bleu); font-weight: 700; }
.project h3 { font-size: 1.15rem; margin: 0; }
.project p { color: var(--muted); font-size: .96rem; margin: 0; }
.project .tags { margin-top: auto; padding-top: .6rem; }
.badge-example { font-size: .72rem; font-weight: 700; color: #7A5A00; background: #FFF1C7; border-radius: 999px; padding: .1rem .5rem; }
.project[hidden] { display: none; }
.project-link { color: inherit; text-decoration: none; background: none; border: 0; font: inherit; padding: 0; cursor: pointer; text-align: left; }
.project-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.project-link:focus-visible { outline: none; }
.project:has(.project-link:focus-visible) { outline: 3px solid var(--bleu-clair); outline-offset: 3px; }
.cover { --accent: var(--bleu-clair); position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), radial-gradient(rgba(54,93,171,.14) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--tint-2); display: grid; place-items: end center; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-path { display: none; }
.cover-art { transition: transform .5s var(--ease); background: #fff; box-shadow: var(--shadow-lg); display: grid; gap: 6px; align-content: start; padding: 10px; }
.cover-art i { display: block; height: 8px; border-radius: 3px; background: #E3E6E1; }
.cover-art i.a { background: var(--accent); width: 45%; }
.cover-art .cbars { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin: 4px 0; }
.cover-art .cbars i { flex: 1; height: var(--h); background: var(--accent); opacity: .8; border-radius: 2px 2px 0 0; }
.cover--mobile .cover-art { width: 30%; height: 80%; border-radius: 18px 18px 0 0; border: 5px solid var(--frame); border-bottom: 0; }
.cover--web .cover-art, .cover--site .cover-art, .cover--outil .cover-art { width: 74%; height: 76%; border-radius: 10px 10px 0 0; padding-top: 22px; position: relative; }
.cover--web .cover-art::before, .cover--site .cover-art::before, .cover--outil .cover-art::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: #EEF0EC; border-radius: 10px 10px 0 0; }
.cover--tv { place-items: center; }
.cover--tv .cover-art { width: 70%; height: 66%; border-radius: 6px; border: 5px solid var(--frame); background: #1D2633; }
.cover--tv .cover-art i { background: #364254; }
.cover--tv .cover-art .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; height: 40%; margin-top: 6px; }
.cover--tv .cover-art .row i { height: 100%; border-radius: 3px; }
.cover--tv .cover-art .row i:first-child { outline: 2px solid var(--accent); }
.cover--site .cover-art .hero-block { height: 40%; border-radius: 6px; background: linear-gradient(120deg, var(--accent), var(--bleu-pale)); }

/* ---------- Stratégie (entreprises) ---------- */
.strat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.strat-copy .checks { margin-top: 1.8rem; gap: .9rem; }
.sim { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.sim h3 { margin-bottom: .2em; }
.sim-sub { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.6rem; }
.sim label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.sim output { color: var(--bleu); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sim input[type="range"], .field input[type="range"] { width: 100%; margin: 0 0 1.5rem; accent-color: var(--bleu); height: 28px; cursor: pointer; }
.sim-result { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.2rem; border-radius: var(--r-sm); background: var(--tint-2); }
.sim-result strong { display: block; font-size: var(--step-2); font-weight: 800; color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sim-result span { color: var(--muted); font-size: var(--step--1); }
.sim-hyp { color: var(--dim); font-size: .8rem; margin: 1rem 0 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; }
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--bg); border-radius: var(--r-sm); padding: 0 1.3rem; transition: background-color .2s; }
.faq details[open] { background: var(--tint-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.1rem 0; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface) var(--plus-ico) center/12px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 2.5rem 1.2rem 0; margin: 0; }
.faq details[open] p { animation: rise .35s var(--ease) both; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; }
.contact-info { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; margin: 2rem 0 0; }
.contact-info dt { color: var(--dim); }
.contact-info dd { margin: 0; font-weight: 700; }
.circuit--contact { width: min(300px, 70%); margin-top: 3rem; opacity: .9; color: var(--ink); }
.circuit-lines > *, .circuit-accent > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.circuit .core { transform-origin: 56px 34px; transform: scale(0); }
.circuit.in .circuit-lines > *, .circuit.in .circuit-accent > * { animation: draw 1.6s var(--ease) forwards; }
.circuit.in .circuit-lines > :nth-child(2n) { animation-delay: .2s; }
.circuit.in .circuit-lines > :nth-child(3n) { animation-delay: .4s; }
.circuit.in .circuit-accent > * { animation-delay: 1.1s; animation-duration: .8s; }
.circuit.in .core { animation: pop .5s 1.3s var(--ease) forwards; }
.contact-form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); display: grid; gap: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: .4rem; }
.field input:not([type="range"]), .field textarea, .field select { font: inherit; color: var(--ink); background: var(--bg); border: 2px solid transparent; border-radius: var(--r-sm); padding: .8rem 1rem; width: 100%; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field input:not([type="range"]):focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--bleu-clair); background: var(--surface); box-shadow: 0 0 0 4px rgba(91,134,224,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field textarea::placeholder { color: #9AA1AB; }
.field [aria-invalid="true"] { border-color: #D64545 !important; }
.field input[type="range"] { margin-bottom: 0; }
.label-row { display: flex; justify-content: space-between; gap: 1rem; }
.label-row output { color: var(--bleu); font-weight: 800; font-variant-numeric: tabular-nums; }
.range-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--dim); margin: -.1rem 0 0; max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips label > span { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: var(--bg); border: 2px solid transparent; font-size: .92rem; font-weight: 600; color: var(--muted); transition: background-color .2s, border-color .2s, color .2s; }
.chips label:hover > span { color: var(--ink); }
.chips input:checked + span { background: var(--tint); border-color: var(--bleu-clair); color: var(--bleu); }
.chips input:focus-visible + span { outline: 3px solid var(--bleu-clair); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-error { color: var(--err); font-weight: 600; margin: 0; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--err-bg); }
.form-error[hidden] { display: none; }
.form-error a { color: inherit; }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-legal { font-size: .84rem; color: var(--dim); margin: 0; max-width: 40ch; }
.form-legal a { color: var(--muted); }
.contact-form button[aria-busy="true"] { opacity: .75; cursor: progress; }
.contact-form button[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: grid; place-items: center; text-align: center; gap: .6rem; padding: 3rem 1.5rem; min-height: 420px; }
.form-success .ok-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #DDF4EA; color: var(--ok); margin-bottom: .6rem; }
.form-success h3 { font-size: var(--step-2); margin: 0; }
.form-success p { color: var(--muted); margin: 0 auto; }

/* ---------- Pied de page (bleu nuit, dans les deux thèmes) ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: clamp(1rem, 3vw, 2rem); padding: 0 0 2rem; color: #AEB6C2; background: var(--nuit); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.site-footer::before { /* halo et trame de points, comme le haut de page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 85% 0%, rgba(91,134,224,.22), transparent 70%),
    radial-gradient(rgba(174,182,194,.09) 1.2px, transparent 1.3px) 0 0 / 26px 26px;
  mask-image: linear-gradient(#000, transparent 75%); -webkit-mask-image: linear-gradient(#000, transparent 75%);
}
.site-footer .wrap { position: relative; }
.site-footer a { color: #C9D0DA; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }

.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; margin: 0 0 3.5rem; padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.4rem, 4vw, 2.8rem); border-radius: 0 0 var(--r-lg) var(--r-lg); background: linear-gradient(120deg, #365DAB, #24427E 70%); box-shadow: 0 24px 50px -30px rgba(0,0,0,.6); }
.foot-cta p { margin: 0; }
.foot-cta-t { font-size: var(--step-2); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.foot-cta-p { margin-top: .35rem !important; color: rgba(255,255,255,.82); }
.site-footer .foot-cta-btn { background: #fff; color: #1E3A72; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.site-footer .foot-cta-btn:hover { background: #EEF3FD; color: #1E3A72; }
body[data-page="home"] .foot-cta { display: none; }   /* l'accueil se termine déjà par le formulaire */
body[data-page="home"] .site-footer { padding-top: 3.5rem; }

.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1.2fr; gap: 2.5rem; padding-bottom: 2.8rem; }
.foot-brand img { height: 46px; width: auto; }
.foot-brand p { margin: 1.1rem 0 1.2rem; font-size: .94rem; line-height: 1.6; max-width: 36ch; }
.foot-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.foot-badges li { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: #C9D0DA; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; font-size: .94rem; }
.foot-col p { margin: 0; line-height: 1.5; }
.foot-h { margin-bottom: .35rem !important; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: .55; }
.foot-col a { font-weight: 600; }
.site-footer .foot-mail { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 1px; }
.site-footer .foot-mail:hover { border-bottom-color: #fff; }
.foot-place { color: #8E97A5; }

.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: .8rem 2rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.09); }
.legal { margin: 0; font-size: .85rem; max-width: none; color: #8E97A5; }
.legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .85rem; }
.site-footer .legal-links a, .link-btn { color: #8E97A5; }
.site-footer .legal-links a:hover, .link-btn:hover { color: #fff; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.site-footer .to-top { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: #C9D0DA; padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.06); }
.site-footer .to-top:hover { background: rgba(255,255,255,.12); }
.site-footer kbd { background: #222C3A; border-color: #364254; color: #AEB6C2; }
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .foot-cta-btn { width: 100%; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Page Réalisations ---------- */
.page-hero { position: relative; overflow: hidden; padding: 170px 0 3rem; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; margin-bottom: .3em; }
.page-hero .hero-lead { font-size: var(--step-1); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: 600 .94rem var(--font); color: var(--muted); background: var(--surface); border: 2px solid transparent; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; min-height: 42px; box-shadow: var(--shadow); transition: all .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.filters .count { font-size: .78rem; opacity: .7; margin-left: .25rem; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; }
.case { width: min(920px, 100% - 2rem); max-height: calc(100vh - 3rem); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); overflow: auto; box-shadow: 0 40px 100px rgba(20,26,35,.35); }
.case::backdrop { background: rgba(20,26,35,.45); backdrop-filter: blur(6px); }
.case[open] { animation: case-in .35s var(--ease); }
@keyframes case-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.case-cover .cover { aspect-ratio: 21 / 8; }
.case-body { position: relative; padding: clamp(1.5rem, 4vw, 2.6rem); }
.case-close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; display: grid; place-items: center; color: var(--muted); background: var(--bg); border: 0; border-radius: 50%; cursor: pointer; }
.case-close:hover { color: var(--ink); }
.case-meta { font-size: .85rem; color: var(--dim); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding-right: 3rem; }
.case h2 { max-width: none; font-size: var(--step-2); padding-right: 3rem; }
.case h3 { font-size: .95rem; color: var(--bleu); margin-bottom: .4rem; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1rem; }
.case-cols p { color: var(--muted); }
.case .tags { margin-bottom: 1.2rem; }
.case-link { margin: 0; }

/* ---------- Palette de commandes ---------- */
.cmdk { width: min(600px, 100% - 2rem); margin-top: 14vh; padding: 0; border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px rgba(20,26,35,.3); overflow: hidden; }
.cmdk::backdrop { background: rgba(20,26,35,.35); backdrop-filter: blur(4px); }
.cmdk[open] { animation: case-in .2s var(--ease); }
.cmdk-input-row { display: flex; align-items: center; gap: .7rem; padding: 0 1.1rem; border-bottom: 1px solid var(--line); color: var(--dim); }
.cmdk input { flex: 1; height: 58px; background: none; border: 0; color: var(--ink); font: 600 1.02rem var(--font); }
.cmdk input:focus { outline: none; }
.cmdk ul { list-style: none; margin: 0; padding: .5rem; max-height: 360px; overflow: auto; }
.cmdk li { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: var(--r-sm); cursor: pointer; color: var(--muted); }
.cmdk li[aria-selected="true"] { background: var(--tint); color: var(--bleu); }
.cmdk li .hint { margin-left: auto; font-size: .76rem; color: var(--dim); }
.cmdk .empty { padding: 1.2rem .9rem; color: var(--dim); }
.cmdk-foot { display: flex; gap: 1.2rem; padding: .65rem 1.1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--dim); }

/* ---------- Bandeau cookies ---------- */
.cookie { position: fixed; left: 1rem; bottom: 1rem; z-index: 150; width: min(440px, calc(100% - 2rem)); background: var(--surface); border-radius: var(--r); padding: 1.3rem; box-shadow: 0 30px 80px -20px rgba(20,26,35,.35); animation: cookie-in .5s var(--ease); }
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
.cookie-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.cookie-head svg { flex: none; color: var(--bleu); }
.cookie h2 { font-size: 1.05rem; margin: 0; max-width: none; letter-spacing: 0; }
.cookie p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 1rem; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cookie-actions .btn { min-height: 44px; font-size: .92rem; padding-inline: .8rem; }
.cookie-actions .cookie-custom { grid-column: 1 / -1; }
.cookie-prefs { display: grid; gap: .6rem; margin: 0 0 1rem; }
.cookie-prefs[hidden] { display: none; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .8rem .95rem; border-radius: var(--r-sm); background: var(--bg); }
.pref strong { font-size: .94rem; }
.pref small { grid-column: 1; color: var(--dim); font-size: .8rem; line-height: 1.45; }
.pref .switch { grid-row: 1 / span 2; grid-column: 2; }
.switch { position: relative; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--btn); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 3px solid var(--bleu-clair); outline-offset: 2px; }

/* ---------- Pages légales ---------- */
.legal-page { padding: 150px 0 6rem; position: relative; }
.legal-page > .grid-bg { mask-image: radial-gradient(ellipse 70% 40% at 60% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 40% at 60% 0%, #000 20%, transparent 70%); }
.legal-layout { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start; }
.legal-page h1 { font-size: var(--step-3); font-weight: 800; margin-bottom: .3em; max-width: none; }
.legal-updated { font-size: .85rem; color: var(--dim); margin-bottom: 2.5rem; }
.toc { position: sticky; top: 110px; font-size: .9rem; }
.toc p { font-size: .8rem; font-weight: 700; color: var(--dim); margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .3rem 0 .3rem 1rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--bleu); border-left-color: var(--bleu); }
.prose { max-width: 74ch; background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.prose section { padding-top: 1.2rem; margin-bottom: 1.4rem; }
.prose h2 { font-size: var(--step-1); font-weight: 800; max-width: none; margin-bottom: .7em; scroll-margin-top: 110px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--ink); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1em; }
.prose dt { color: var(--dim); }
.prose dd { margin: 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; }
.prose td { color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg); padding: .1em .35em; border-radius: 6px; }
mark.todo { background: #FFF1C7; color: #7A5A00; border: 1px dashed #E8C25A; border-radius: 6px; padding: 0 .35em; }

/* ---------- Page 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 3rem 0; }
.notfound-brand { display: inline-block; margin-bottom: 3rem; }
.notfound h1 { max-width: 16ch; }

/* ---------- Écran de chargement ---------- */
.loader { display: none; }
.loading .loader, .loader-exit .loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); }
.loading body { overflow: hidden; }
.loader .grid-bg { mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 55%); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 55%); }
.loader .grid-bg::before { right: auto; left: 50%; top: 45%; width: 40vw; height: 40vw; translate: -50% -50%; }
.loader-exit .loader { animation: loader-out .6s var(--ease) forwards; pointer-events: none; }
.loader-exit .loader-inner { animation: loader-zoom .6s var(--ease) forwards; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes loader-zoom { to { transform: scale(1.08); filter: blur(6px); } }
.loader-inner { position: relative; display: grid; justify-items: center; gap: 1.6rem; }
.loader-mark { position: relative; width: min(220px, 56vw); height: auto; overflow: visible; }
.loader-mark .l { stroke: var(--ink); }
.loader-mark .a { stroke: var(--bleu); }
.loader-mark .core { fill: var(--bleu); }
.loader-mark .pulse { fill: var(--bleu-clair); }
.loader-mark .l > *, .loader-mark .a > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards; }
.loader-mark .l > :nth-child(2n) { animation-delay: .12s; }
.loader-mark .l > :nth-child(3n) { animation-delay: .24s; }
.loader-mark .l > :nth-child(4), .loader-mark .l > :nth-child(9) { animation-duration: 1.1s; }
.loader-mark .a > * { animation-delay: .7s; animation-duration: .5s; }
.loader-mark .core { transform-origin: 56px 34px; transform: scale(0); animation: pop .4s .85s var(--ease) forwards, loader-beat 1.3s 1.3s ease-in-out infinite; }
.loader-mark .pulse { opacity: 0; animation: loader-fade .3s .9s forwards; }
@keyframes loader-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes loader-fade { to { opacity: 1; } }
.loader-bar { width: 160px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--bleu), var(--bleu-clair)); transform-origin: left; transform: scaleX(0); animation: loader-progress 1.25s var(--ease) forwards; }
@keyframes loader-progress { 60% { transform: scaleX(.75); } to { transform: scaleX(1); } }
.loader-label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--dim); display: flex; align-items: center; gap: .4rem; }
.loader-label b { color: var(--bleu); }
.loader-label i { display: inline-block; width: 7px; height: 1em; border-radius: 2px; background: var(--bleu); animation: blink 1s steps(1) infinite; }
.loading .hero-copy > *, .loading .showcase, .loading .scroll-cue, .loading .page-hero * { animation-play-state: paused; }

/* ---------- Thème sombre (choisi, ou « Auto » selon le système) ---------- */
:root[data-theme="dark"] {
  --bg: #0E131A;
  --bg-2: #141A23;
  --surface: #161D27;
  --tint: #1C2940;
  --tint-2: #18222F;
  --line: #253041;
  --line-2: #334154;
  --ink: #F1F3EE;
  --text: #E3E6E1;
  --muted: #B3BBC7;
  --dim: #9099A6;
  --bleu: #8FB0F0;
  --bleu-hover: #B0C8F5;
  --bleu-clair: #6E94E8;
  --bleu-pale: #25385E;
  --btn: #3F67BA;
  --btn-hover: #4A74C9;
  --nuit: #090C11;
  --chip: #1E2632;
  --frame: #04070B;
  --solid: #E9ECF2;
  --on-solid: #141A23;
  --featured: #1D2B47;
  --nav-bg: rgba(22,29,39,.82);
  --nav-bg-2: rgba(22,29,39,.95);
  --warm: #2B2618;
  --cool: #1D2330;
  --err: #FFA397;
  --err-bg: #3A1D1B;
  --check-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.8 2.8L14.5 7.4' fill='none' stroke='%238FB0F0' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --plus-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%238FB0F0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -16px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 60px -24px rgba(0,0,0,.75);
}
:root[data-theme="dark"] .navbar { border-color: rgba(255,255,255,.06); }
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .dots-bg, :root[data-theme="dark"] .grid-bg { background-image: radial-gradient(rgba(143,176,240,.13) 1.2px, transparent 1.3px); }
:root[data-theme="dark"] .sc-browser { border-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .sc-phone, :root[data-theme="dark"] .device { box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow-lg); }
:root[data-theme="dark"] .field textarea::placeholder, :root[data-theme="dark"] .field input::placeholder { color: #6B7482; }
:root[data-theme="dark"] .badge-example { background: #3A3218; color: #F3D27A; }
:root[data-theme="dark"] .form-success .ok-ico { background: #173A2C; color: #5CD3A0; }
:root[data-theme="dark"] mark.todo { background: #3A3218; color: #F3D27A; }
:root[data-theme="dark"] .contact-form button[aria-busy="true"]::before { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
/* Transition douce lors du changement de thème (désactivée au chargement) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s, border-color .35s, color .35s !important; }

/* ---------- Sélecteurs de langue et de thème ---------- */
.prefs { display: flex; align-items: center; gap: .3rem; }
.pref-menu { position: relative; }
.pref-btn { display: inline-flex; align-items: center; gap: .35rem; height: 40px; min-width: 40px; justify-content: center; padding: 0 .6rem; font: 700 .82rem var(--font); letter-spacing: .02em; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color .2s, color .2s; }
.pref-btn:hover, .pref-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--line-2); }
.pref-btn svg { width: 17px; height: 17px; flex: none; }
.pref-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; min-width: 190px; margin: 0; padding: .4rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); animation: case-in .18s var(--ease); }
.pref-pop[hidden] { display: none; }
.pref-pop button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .7rem; font: 600 .92rem var(--font); color: var(--muted); text-align: left; background: none; border: 0; border-radius: 9px; cursor: pointer; }
.pref-pop button:hover, .pref-pop button:focus-visible { background: var(--tint-2); color: var(--ink); outline: none; }
.pref-pop button[aria-checked="true"] { color: var(--bleu); background: var(--tint); }
.pref-pop button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 18px; height: 18px; background: var(--check-ico) center/100% no-repeat; }
.pref-pop .code { flex: none; width: 2.1rem; font-size: .74rem; font-weight: 800; color: var(--dim); }
.pref-pop svg { width: 17px; height: 17px; flex: none; }
.i18n-pending body { visibility: hidden; }

/* ---------- Services (refonte) ---------- */
.service { display: flex; flex-direction: column; gap: .2rem; border: 1px solid transparent; }
.service:hover { border-color: var(--line-2); }
.service h3 { margin-bottom: .35rem; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.svc-flag { font-size: .78rem; font-weight: 800; color: #141A23; background: var(--soleil); padding: .3rem .75rem; border-radius: 999px; }
.svc-examples { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.svc-examples li { font-size: .78rem; font-weight: 600; color: var(--muted); padding: .22rem .6rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.svc-foot { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.svc-price { display: inline-flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; font-size: .85rem; color: var(--dim); }
.svc-price strong { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.svc-price small { font-weight: 700; color: var(--muted); }
.svc-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--bleu); text-decoration: none; padding: .45rem .85rem; border-radius: 999px; background: var(--tint); transition: background-color .2s, gap .2s; }
.svc-link:hover { gap: .6rem; background: var(--bleu-pale); }
.service--big .svc-variants { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .4rem 0 1.4rem; }
.svc-variant { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; border-radius: var(--r-sm); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.svc-variant:hover { background: rgba(255,255,255,.17); transform: translateY(-2px); }
.svc-variant b { font-size: 1.05rem; }
.svc-variant > span:not(.svc-price) { font-size: .9rem; color: rgba(255,255,255,.82); line-height: 1.45; flex: 1; }
.service--big .svc-price, .service--big .svc-price small { color: rgba(255,255,255,.75); }
.service--big .svc-price strong { color: #fff; }
.service--big .svc-price .was { color: rgba(255,255,255,.6); }
.service--big p { flex: 0 1 auto !important; }
.service--big .tags { margin-top: auto; }
.included { margin-top: 1.25rem; padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--bg); display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: center; }
.included-title { margin: 0; font-weight: 800; color: var(--ink); }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 1.5rem; }
.included li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 600; color: var(--muted); }
.included li > span:first-child { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: .95rem; }

/* ---------- Remise particuliers et associations ---------- */
.disc-badge { display: inline-block; font-style: normal; font-size: .74rem; font-weight: 800; color: #0E5E3E; background: #CFF1E1; padding: .12rem .5rem; border-radius: 999px; vertical-align: middle; letter-spacing: 0; }
:root[data-theme="dark"] .disc-badge { color: #7FE0B4; background: #173A2C; }
.price-toggle button[aria-pressed="true"] .disc-badge { background: #2FB37D; color: #fff; }
.price-toggle button small { margin-left: .15rem; }
.was { color: var(--dim); font-size: .95rem; font-weight: 600; text-decoration-thickness: 1.5px; }
.was:empty, [data-tax-mode="ht"] .was { display: none; }
.price .was { order: 0; }
.plan--featured .was { color: rgba(255,255,255,.55); }
.audience-price { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.section-head--row .price-toggle { margin-top: 0; }

/* ---------- Formulaire adaptatif ---------- */
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235A6270' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; }
.field-group { display: grid; gap: 1rem; padding: 1.2rem; border-radius: var(--r); background: var(--tint-2); border: 1px solid var(--line); animation: rise .35s var(--ease) both; }
.field-group[hidden], .field[hidden] { display: none; }
.field-group .field input:not([type="range"]), .field-group .field select { background-color: var(--surface); }
.group-title { margin: .3rem 0 -.3rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.field-group .group-title { margin-top: 0; }
.hint { margin: 0; font-size: .8rem; color: var(--dim); line-height: 1.45; }
.req { text-decoration: none; color: var(--err); margin-left: .1rem; }
.req[hidden] { display: none; }
.chips--profile label > span { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem; font-size: .95rem; }
.profile-note { margin: .5rem 0 0; font-size: .86rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.profile-note .disc-badge { flex: none; }
.label-row small { font-weight: 600; color: var(--dim); }
.field [aria-invalid="true"] + .hint { color: var(--err); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding-inline: .6rem; }
  .cmdk-trigger kbd { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .services .service:nth-child(2) { grid-column: auto; }
  .service--big { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-grid, .strat-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero .showcase { display: none; }   /* le haut de page reste sur un seul écran */
  .hero-grid { align-content: center; padding-bottom: 5.8rem; }
  .audiences, .projects, .pricing { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .device[data-mode="web"], .device[data-mode="tv"] { --h: 420px; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-radius: var(--r); padding: .6rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: .85rem 1rem; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-links .nav-mobile-cta { display: flex; margin-top: .5rem; color: #fff; }
  .nav-actions { margin-left: auto; }
  .navbar { position: relative; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .audiences, .projects, .pricing, .services, .steps, .field-row, .case-cols { grid-template-columns: 1fr; }
  .sim-result { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .device[data-mode="web"], .device[data-mode="tv"] { --h: 520px; }
  .device[data-mode="web"] .screen, .device[data-mode="tv"] .screen { grid-template-columns: 0 1fr; }
  .device[data-mode="web"] .ui-list, .device[data-mode="tv"] .ui-list { grid-template-columns: 1fr; }
  .device[data-mode="web"] .ui-kpis, .device[data-mode="tv"] .ui-kpis { grid-template-columns: 1fr 1fr; }
  .device[data-mode="web"] .ui-main, .device[data-mode="tv"] .ui-main { padding: 20px 16px; }
  .brand img { height: 27px; }
  .navbar { gap: .75rem; }
  .prose dl { grid-template-columns: 1fr; gap: .1rem; }
  .prose dd { margin-bottom: .6rem; }
  .plan-flag { left: 1.4rem; }
}
@media (max-width: 960px) and (max-height: 900px) {
  .reassure { display: none; }
}
@media (max-width: 960px) and (max-height: 760px) {
  .hero h1 { font-size: clamp(2rem, 7.2vh, 2.7rem); }
  .hero-lead { font-size: .98rem; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .hero .status { display: none; }
}
@media (max-width: 480px) {
  .cookie { left: .5rem; right: .5rem; bottom: .5rem; width: auto; }
  .price-toggle button { padding-inline: .9rem; }
}

.nav-links a { white-space: nowrap; }
@media (max-width: 1180px) {
  .cmdk-trigger { display: none; }
  .navbar { gap: 1rem; }
}
@media (min-width: 961px) and (max-width: 1080px) {
  .nav-cta { display: none; }
}
@media (max-width: 1080px) {
  .included { grid-template-columns: 1fr; }
  .included ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .section-head--row .price-toggle { margin-top: .4rem; }
}
@media (max-width: 720px) {
  .service--big .svc-variants, .included ul { grid-template-columns: 1fr; }
  .cmdk-trigger { display: none; }
  .pref-btn { padding: 0 .55rem; gap: .25rem; }
  .pref-theme .pref-btn { padding: 0; width: 40px; }
  .nav-actions { gap: .3rem; }
}
@media (max-width: 400px) {
  .brand img { height: 23px; }
  .navbar { padding-left: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .circuit .circuit-lines > *, .circuit .circuit-accent > * { stroke-dashoffset: 0; }
  .circuit .core { transform: none; }
  .loader-mark .l > *, .loader-mark .a > * { stroke-dashoffset: 0; }
  .loader-mark .core { transform: none; }
  .loader-bar span { transform: none; }
  .scroll-cue { opacity: 1 !important; transform: none !important; }
  .cue-dot { animation: none !important; top: 40%; }
}

/* ---------- Bulle de discussion (chat.js) ---------- */
.jdchat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 140; font-size: .94rem; }
.jdchat-launcher { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; color: #fff; background: var(--btn); box-shadow: 0 10px 26px -10px rgba(20,26,35,.55), 0 2px 6px rgba(20,26,35,.12); cursor: pointer; opacity: 0; transform: scale(.8); animation: chat-in .5s 1.2s var(--ease) forwards; transition: background-color .2s, transform .2s var(--ease); }
.jdchat-launcher:hover { background: var(--btn-hover); transform: scale(1.05); }
.jdchat-launcher svg { grid-area: 1 / 1; width: 24px; height: 24px; transition: opacity .2s, transform .25s var(--ease); }
.jdchat-launcher .i-close { opacity: 0; transform: rotate(-60deg) scale(.6); }
.jdchat.open .jdchat-launcher .i-chat { opacity: 0; transform: rotate(60deg) scale(.6); }
.jdchat.open .jdchat-launcher .i-close { opacity: 1; transform: none; }
@keyframes chat-in { to { opacity: 1; transform: none; } }
.loading .jdchat { display: none; }
.jdchat-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font: 800 .72rem/1 var(--font); color: #fff; background: #E5484D; border: 2px solid var(--bg); }
.jdchat-badge[hidden] { display: none; }

.jdchat-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); height: min(560px, calc(100dvh - 120px)); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -24px rgba(20,26,35,.45), 0 4px 14px rgba(20,26,35,.08); transform-origin: bottom right; animation: chat-pop .28s var(--ease); }
.jdchat-panel[hidden] { display: none; }
@keyframes chat-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.jdchat-head { flex: none; display: flex; align-items: center; gap: .7rem; padding: .85rem .8rem .85rem 1rem; border-bottom: 1px solid var(--line); }
.jdchat-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; background: linear-gradient(140deg, #5B86E0, #365DAB); }
.jdchat-who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.jdchat-who b { font-size: .98rem; }
.jdchat-status { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jdchat-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--bleu-clair); }
.jdchat-status[data-state="on"] i { background: #2FB37D; box-shadow: 0 0 0 3px rgba(47,179,125,.2); }
.jdchat-status[data-state="off"] i { background: #C9A227; }
.jdchat-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: none; cursor: pointer; transition: background-color .2s, color .2s; }
.jdchat-icon:hover, .jdchat-icon[aria-expanded="true"] { background: var(--tint-2); color: var(--ink); }
.jdchat-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: none; cursor: pointer; }
.jdchat-x:hover { background: var(--tint-2); color: var(--ink); }
.jdchat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.jdchat-msg { max-width: 86%; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; animation: rise .25s var(--ease) both; }
.jdchat-msg p { margin: 0; padding: .6rem .85rem; border-radius: 16px 16px 16px 5px; background: var(--bg); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.jdchat-msg.from-visitor { align-self: flex-end; align-items: flex-end; }
.jdchat-msg.from-visitor p { color: #fff; background: var(--btn); border-radius: 16px 16px 5px 16px; }
.jdchat-msg.from-admin p { background: var(--tint); }
.jdchat-msg.from-auto p { background: var(--bg); border: 1px dashed var(--line-2); }
.jdchat-name.jdchat-name--auto { color: var(--dim); }
.jdchat-msg.from-system { align-self: center; max-width: 92%; align-items: center; text-align: center; }
.jdchat-msg.from-system p { background: none; padding: .2rem .4rem; font-size: .84rem; color: var(--dim); }
.jdchat-msg.sending p { opacity: .6; }
.jdchat-msg.failed p { opacity: .6; outline: 1.5px solid var(--err); }
.jdchat-name { font-size: .72rem; font-weight: 800; color: var(--bleu); margin-left: .3rem; }
.jdchat-link { font-size: .86rem; font-weight: 700; color: var(--bleu); text-decoration: none; margin-left: .2rem; }
.jdchat-link:hover { text-decoration: underline; }
.jdchat-actions, .jdchat-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.jdchat-actions button, .jdchat-chips button { font: 600 .84rem var(--font); color: var(--bleu); background: var(--surface); border: 1.5px solid var(--bleu-pale); border-radius: 999px; padding: .4rem .8rem; cursor: pointer; transition: background-color .2s, border-color .2s; }
.jdchat-actions button:hover, .jdchat-chips button:hover { background: var(--tint); border-color: var(--bleu-clair); }
.jdchat-chips { flex: none; padding: 0 1rem .7rem; }
.jdchat-chips:empty { display: none; }
.jdchat-contact { display: grid; gap: .45rem; width: 100%; min-width: 230px; padding: .7rem; border-radius: 14px; background: var(--tint-2); border: 1px solid var(--line); }
.jdchat-contact input { font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.jdchat-contact input:focus { outline: none; border-color: var(--bleu-clair); }
.jdchat-contact input[aria-invalid="true"] { border-color: var(--err); }
.jdchat-done { margin: 0; font-size: .84rem; color: var(--dim); }
.jdchat-form { flex: none; display: flex; align-items: flex-end; gap: .5rem; margin: 0 .75rem; padding: .35rem .35rem .35rem .9rem; border: 1.5px solid var(--line); border-radius: 18px; background: var(--bg); transition: border-color .2s; }
.jdchat-form:focus-within { border-color: var(--bleu-clair); }
.jdchat-form textarea { flex: 1; min-height: 24px; max-height: 120px; padding: .45rem 0; font: inherit; font-size: .94rem; color: var(--ink); background: none; border: 0; resize: none; outline: none; }
.jdchat-attach { flex: none; align-self: center; width: 32px; height: 32px; margin-left: -.45rem; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: none; cursor: pointer; }
.jdchat-attach:hover { color: var(--ink); background: var(--tint-2); }
.jdchat-img { display: block; width: min(220px, 100%); border-radius: 14px; overflow: hidden; background: var(--bg); min-height: 60px; }
.jdchat-img img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.jdchat-filelink { display: inline-block; padding: .6rem .85rem; border-radius: 14px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: .88rem; text-decoration: none; overflow-wrap: anywhere; }
.jdchat-msg.from-visitor .jdchat-filelink { color: #fff; background: var(--btn); }
.jdchat-send { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--btn); cursor: pointer; }
.jdchat-send:hover { background: var(--btn-hover); }
.jdchat-legal { flex: none; margin: .45rem 1rem .6rem; font-size: .72rem; color: var(--dim); text-align: center; max-width: none; }
.jdchat-legal a { color: var(--dim); }
@media (max-width: 600px) {
  .jdchat-launcher { width: 48px; height: 48px; }
  .jdchat.open .jdchat-panel { position: fixed; inset: auto 8px calc(max(16px, env(safe-area-inset-bottom)) + 60px); width: auto; height: min(78vh, calc(100dvh - 100px)); }
  .cookie:not([hidden]) ~ .jdchat { bottom: 210px; }
}
@media (prefers-reduced-motion: reduce) { .jdchat-launcher { opacity: 1; transform: none; } }

/* Bulle : saisie en cours, menu, émojis, avis, plein écran */
.jdchat-head { gap: .35rem; }
.jdchat-who { margin-right: .3rem; }
.jdchat-full .i-shrink, .jdchat.full .jdchat-full .i-expand { display: none; }
.jdchat.full .jdchat-full .i-shrink { display: block; }
.jdchat-more-wrap { position: relative; }
.jdchat-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 3; min-width: 250px; padding: .35rem; display: grid; gap: .15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); animation: chat-pop .18s var(--ease); }
.jdchat-menu[hidden] { display: none; }
.jdchat-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .7rem; font: 600 .9rem var(--font); color: var(--ink); text-align: left; background: none; border: 0; border-radius: 9px; cursor: pointer; }
.jdchat-menu button:hover, .jdchat-menu button:focus-visible { background: var(--tint-2); outline: none; }
.jdchat-menu [hidden] { display: none; }
.jdchat-typing-bubble p.jdchat-dots { display: inline-flex; align-items: center; gap: 5px; padding: .78rem .95rem; min-height: 40px; border-radius: 18px 18px 18px 5px; background: var(--bg); }
.jdchat-typing-bubble.from-admin p.jdchat-dots { background: var(--tint); }
.jdchat-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); animation: chat-dot 1.25s infinite ease-in-out; }
.jdchat-dots i:nth-child(2) { animation-delay: .18s; }
.jdchat-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes chat-dot-soft { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.jdchat-msg { animation: chat-msg .32s var(--ease) both; }
.jdchat-msg.from-visitor { transform-origin: bottom right; }
@keyframes chat-msg { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.jdchat-msg p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.jdchat-msg.from-bot p a, .jdchat-msg.from-admin p a, .jdchat-msg.from-auto p a { color: var(--bleu); }
.jdchat-emoji-btn { flex: none; align-self: center; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: none; cursor: pointer; }
.jdchat-emoji-btn:hover, .jdchat-emoji-btn[aria-expanded="true"] { color: var(--ink); background: var(--tint-2); }
.jdchat-attach + input + .jdchat-emoji-btn { margin-left: -.3rem; }
.jdchat-form > .jdchat-emoji-btn:first-of-type { margin-left: -.45rem; }
.jdchat-emojis { flex: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; margin: 0 .75rem .5rem; padding: .45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); animation: chat-pop .18s var(--ease); }
.jdchat-emojis[hidden] { display: none; }
.jdchat-emojis button { aspect-ratio: 1; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; background: none; border: 0; border-radius: 8px; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.jdchat-emojis button:hover { background: var(--tint-2); transform: scale(1.18); }
.jdchat-review { align-self: stretch; display: grid; gap: .55rem; padding: .9rem; border-radius: 16px; background: var(--tint-2); border: 1px solid var(--line); animation: chat-msg .35s var(--ease) both; }
.jdchat-review-t { margin: 0; font-weight: 800; font-size: .95rem; }
.jdchat-stars { display: flex; gap: .15rem; }
.jdchat-stars button { font-size: 1.7rem; line-height: 1; padding: 0 .1rem; color: var(--line-2); background: none; border: 0; cursor: pointer; transition: transform .15s var(--ease), color .15s; }
.jdchat-stars button.on { color: #F5B301; }
.jdchat-stars button:hover { transform: scale(1.15); }
.jdchat-review textarea { font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .7rem; resize: vertical; min-height: 54px; }
.jdchat-review textarea:focus { outline: none; border-color: var(--bleu-clair); }
.jdchat-consent { display: flex; align-items: flex-start; gap: .45rem; font-size: .8rem; color: var(--muted); line-height: 1.4; cursor: pointer; }
.jdchat-consent input { margin-top: .15rem; accent-color: var(--btn); }
.jdchat-review-err { margin: 0; font-size: .8rem; font-weight: 600; color: var(--err); }
.jdchat-review .btn { justify-self: start; }
.jdchat-msg.from-system .jdchat-actions { justify-content: center; }
/* Plein écran */
html.jdchat-lock, html.jdchat-lock body { overflow: hidden; }
.jdchat.full.open .jdchat-panel { position: fixed; inset: 0; width: auto; height: auto; max-height: none; border-radius: 0; border: 0; z-index: 160; animation: chat-full .28s var(--ease); }
@keyframes chat-full { from { opacity: 0; transform: scale(.98); } }
.jdchat.full.open .jdchat-launcher { display: none; }
.jdchat.full .jdchat-head { padding-inline: max(1rem, calc(50% - 400px)); padding-top: max(.85rem, env(safe-area-inset-top)); }
.jdchat.full .jdchat-log, .jdchat.full .jdchat-chips { padding-inline: max(1rem, calc(50% - 400px)); }
.jdchat.full .jdchat-form, .jdchat.full .jdchat-emojis { margin-inline: max(.75rem, calc(50% - 400px)); }
.jdchat.full .jdchat-msg { max-width: min(80%, 620px); font-size: 1rem; }
.jdchat.full .jdchat-legal { padding-bottom: env(safe-area-inset-bottom); }
.jdchat.full .jdchat-emojis { grid-template-columns: repeat(10, 1fr); }
/* « Réduire les animations » : pas de rebond, mais les points pulsent toujours (sinon on ne voit pas qu'on écrit) */
@media (prefers-reduced-motion: reduce) { .jdchat-dots i { animation: chat-dot-soft 1.25s infinite ease-in-out !important; } .jdchat-dots i:nth-child(2) { animation-delay: .18s !important; } .jdchat-dots i:nth-child(3) { animation-delay: .36s !important; } }

/* Visionneuse d'image du chat */
.jdchat-img { cursor: zoom-in; }
.jdchat-img img { transition: transform .25s var(--ease); }
.jdchat-img:hover img { transform: scale(1.03); }
.jdchat-viewer { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto minmax(0, 1fr); place-items: center; padding: max(.75rem, env(safe-area-inset-top)) .75rem max(1rem, env(safe-area-inset-bottom)); background: rgba(8, 11, 16, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: chat-viewer .22s var(--ease); }
.jdchat-viewer[hidden] { display: none; }
@keyframes chat-viewer { from { opacity: 0; } }
.jdchat-viewer-bar { justify-self: stretch; display: flex; align-items: center; gap: .6rem; padding: 0 .25rem .75rem; color: #E8ECF2; }
.jdchat-viewer-name { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jdchat-viewer-dl, .jdchat-viewer-x { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .9rem; border: 0; border-radius: 999px; color: #fff; background: rgba(255,255,255,.12); font: 600 .88rem var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s; }
.jdchat-viewer-x { width: 40px; padding: 0; justify-content: center; }
.jdchat-viewer-dl:hover, .jdchat-viewer-x:hover { background: rgba(255,255,255,.22); }
.jdchat-viewer-img { max-width: min(96vw, 1400px); max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: chat-viewer-img .28s var(--ease); }
@keyframes chat-viewer-img { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 600px) { .jdchat-viewer-dl span { display: none; } .jdchat-viewer-dl { width: 40px; padding: 0; justify-content: center; } }
