:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
  --bg: #09090B; --bg2: #101013; --bg3: #17171C; --field: #0E0E11;
  --fg: #F4F4F6; --fg2: #A3A3AD; --fg3: #6E6E78;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.15);
  --glass: rgba(255,255,255,.035);
  --red: #D72A3F; --red2: #FF5468; --red-soft: rgba(215,42,63,.16); --red-glow: rgba(215,42,63,.45);
  --r: 20px; --r-sm: 12px;
}
/* Le site est sombre par conception (le logo est blanc sur fond noir) : mêmes jetons quel que soit le réglage du lecteur. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #09090B; --fg: #F4F4F6; } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #09090B; --fg: #F4F4F6; }

*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { font-family: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5.5rem); height: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--red); color: #fff; }
img, svg { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, [contenteditable]:focus-visible { outline: 3px solid var(--red2); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: 999px; }
.skip:focus { left: .5rem; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
[data-cms-multiline] { white-space: pre-line; }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .2em; text-decoration-thickness: 2px; }
.link:hover { color: var(--red2); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid var(--line2); background: var(--glass); color: var(--fg); font: inherit; font-weight: 700; line-height: 1.1; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); transform: translateY(-1px); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn.red:hover { background: var(--red2); border-color: var(--red2); box-shadow: 0 14px 34px -10px var(--red-glow); }
.btn.small { padding: .6rem 1.05rem; font-size: .92rem; }
.btn svg { width: 1.1em; height: 1.1em; }
.mini { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg3); color: var(--fg); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.mini:hover { background: var(--red); border-color: var(--red); color: #fff; }
.mini[data-confirm] { background: var(--red2); border-color: var(--red2); color: #fff; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(9,9,11,.78); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4.5rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.menu-btn { display: none; margin-left: auto; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.top nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.top nav a:not(.btn) { display: block; padding: .55rem .85rem; border-radius: 999px; color: var(--fg2); font-weight: 600; font-size: .95rem; }
.top nav a:not(.btn):hover { color: var(--fg); background: var(--glass); }
@media (max-width: 900px) {
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(9,9,11,.97); border-bottom: 1px solid var(--line); padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem; flex-direction: column; align-items: stretch; }
  .top.open nav { display: flex; }
  .top nav ul { flex-direction: column; gap: .2rem; }
  .top nav a:not(.btn) { padding: .75rem .85rem; font-size: 1.05rem; }
  .menu-btn { display: inline-grid; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 6rem); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 12% 0%, rgba(215,42,63,.30), transparent 65%), radial-gradient(40% 50% at 88% 90%, rgba(215,42,63,.14), transparent 60%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 100%); opacity: .55; pointer-events: none; }
.hero-e { position: absolute; right: -4%; top: -6%; width: min(44vw, 620px); opacity: .07; pointer-events: none; user-select: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .7rem; border-radius: 999px; border: 1px solid var(--line2); background: var(--glass); font-size: .85rem; font-weight: 600; color: var(--fg2); }
.eyebrow .dot { width: .55rem; height: .55rem; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
h1 { margin: 1.4rem 0 1.25rem; font-size: clamp(2.6rem, 6vw, 5.1rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
h1 span { display: inline; }
.grad { background: linear-gradient(92deg, #fff 0%, #FFB7BF 35%, var(--red2) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--fg2); max-width: 32em; margin: 0 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--fg2); font-size: .92rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { width: 1.05rem; height: 1.05rem; color: var(--red2); flex: none; }

/* Maquette flottante */
.mock-wrap { position: relative; display: flex; justify-content: flex-end; }
.mock { position: relative; width: min(100%, 520px); border-radius: 18px; border: 1px solid var(--line2); background: linear-gradient(180deg, #17171C, #0D0D10); box-shadow: 0 50px 90px -35px rgba(0,0,0,.9), 0 30px 90px -40px var(--red-glow); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.mock-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255,255,255,.14); }
.mock-url { margin-left: .5rem; flex: 1; font-size: .75rem; color: var(--fg3); background: rgba(255,255,255,.05); border-radius: 6px; padding: .25rem .6rem; }
.mock-mode { font-size: .7rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: .22rem .6rem; }
.mock-body { padding: 1.1rem 1.25rem 1.4rem; }
.mock-nav { display: flex; gap: .55rem; align-items: center; margin-bottom: 1.3rem; }
.mock-logo { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 3.5px solid var(--red); border-right-color: transparent; transform: rotate(-20deg); }
.mock-l { width: 2rem; height: .38rem; border-radius: 999px; background: rgba(255,255,255,.14); }
.mock-cta { margin-left: auto; width: 3rem; height: 1rem; border-radius: 999px; background: var(--red); }
.mock-h1 { display: inline; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; padding: .1rem .35rem; outline: 2px dashed rgba(255,84,104,.85); border-radius: 5px; background: var(--red-soft); line-height: 1.5; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--red2); margin-left: 2px; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-p { height: .5rem; border-radius: 999px; background: rgba(255,255,255,.12); margin-top: .75rem; }
.w80 { width: 80%; } .w60 { width: 60%; }
.mock-btns { display: flex; gap: .5rem; margin-top: 1.1rem; }
.mock-b { width: 4.6rem; height: 1.45rem; border-radius: 999px; border: 1px solid var(--line2); }
.mock-b.red { background: var(--red); border-color: var(--red); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.4rem; }
.mock-cards span { height: 3.3rem; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.mock-toast { position: absolute; left: 1.25rem; bottom: -1.1rem; background: #fff; color: #0A0A0B; font-weight: 800; font-size: .8rem; padding: .5rem .85rem; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); }

/* Bandeau technologies */
.marquee { border-block: 1px solid var(--line); padding: 1.1rem 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--fg3); font-size: 1rem; white-space: nowrap; }
.marquee-track span::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--red); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(4rem, 9vw, 7.5rem); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.kicker { color: var(--red2); font-weight: 700; font-size: .95rem; margin: 0 0 .75rem; }
h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; font-weight: 800; }
.sec-head p { color: var(--fg2); font-size: 1.15rem; margin: 1rem 0 0; }
.sec-head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sec-head.row > div { max-width: 46rem; }

/* Services : bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.card { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); padding: 1.75rem; transition: border-color .3s, transform .3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(215,42,63,.20), transparent 45%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { border-color: var(--line2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.c-lg { grid-column: span 4; } .c-sm { grid-column: span 2; } .c-wide { grid-column: span 6; }
.ico { width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red2); margin-bottom: 1.2rem; }
.ico svg { width: 1.4rem; height: 1.4rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.35rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--fg2); }
.card .tools { margin: 1rem 0 0; font-size: .88rem; color: var(--fg3); font-weight: 600; }
.c-lg.has-illus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.c-wide.has-illus { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.pages { position: relative; height: 200px; }
.pages i { position: absolute; left: 10%; right: 10%; height: 130px; border-radius: 12px; border: 1px solid var(--line2); background: linear-gradient(180deg, #1E1E24, #131317); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.pages i:nth-child(1) { top: 60px; transform: rotate(-4deg); opacity: .55; }
.pages i:nth-child(2) { top: 40px; transform: rotate(2deg); opacity: .8; }
.pages i:nth-child(3) { top: 18px; }
.pages i::before { content: ""; position: absolute; left: 14px; top: 14px; width: 34%; height: 8px; border-radius: 999px; background: var(--red); }
.pages i::after { content: ""; position: absolute; left: 14px; top: 32px; width: 60%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.14); box-shadow: 0 14px 0 rgba(255,255,255,.1), 0 28px 0 rgba(255,255,255,.07); }
.editor { border-radius: 14px; border: 1px solid var(--line2); background: #0E0E11; padding: 1.1rem; }
.editor .ed-t { display: inline; font-weight: 800; padding: .1rem .35rem; outline: 2px dashed rgba(255,84,104,.85); border-radius: 5px; background: var(--red-soft); line-height: 1.6; }
.editor .ed-p { height: .5rem; border-radius: 999px; background: rgba(255,255,255,.12); margin-top: .8rem; }
.editor .ed-row { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; }
.editor .ed-btn { font-size: .78rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; background: var(--red); color: #fff; }
.editor .ed-ok { font-size: .78rem; font-weight: 700; color: #3DDC84; }

/* Réalisations */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.work { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); transition: transform .35s, border-color .3s; }
.work:hover { transform: translateY(-4px); border-color: var(--line2); }
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #131317; }
.cover img, .cover svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.work:hover .cover img, .work:hover .cover svg { transform: scale(1.04); }
.work-meta { padding: 1.25rem 1.5rem 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.work-cat { color: var(--red2); font-weight: 700; font-size: .85rem; margin: 0 0 .35rem; }
.work h3 { margin: 0 0 .4rem; font-size: 1.3rem; letter-spacing: -.02em; }
.work-desc { margin: 0; color: var(--fg2); font-size: .98rem; }
.work-link { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--fg); flex: none; transition: background .2s, border-color .2s; }
.work-link svg { width: 1.1rem; height: 1.1rem; }
.work-link:hover { background: var(--red); border-color: var(--red); color: #fff; }
.work-tools { display: none; position: absolute; right: .75rem; top: .75rem; z-index: 3; gap: .3rem; }
.work-add { display: none; min-height: 16rem; border-radius: var(--r); border: 1px dashed var(--line2); background: transparent; color: var(--fg2); font: inherit; font-weight: 700; cursor: pointer; align-items: center; justify-content: center; }
.work-add:hover { border-color: var(--red2); color: var(--fg); background: var(--red-soft); }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.step { border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); padding: 1.75rem; }
.step .num { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px var(--red-soft); margin-bottom: 1.25rem; }
.step h3 { margin: 0 0 .5rem; font-size: 1.2rem; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--fg2); font-size: .98rem; }

/* À propos */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.photo-card { border-radius: 24px; padding: 2px; background: linear-gradient(135deg, var(--red), rgba(255,255,255,.18) 50%, var(--red)); box-shadow: 0 40px 80px -40px var(--red-glow); }
.photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg2); }
.photo img, .photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-copy p { color: var(--fg2); }
.why { display: grid; gap: .7rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.why li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.why svg { width: 1.3rem; height: 1.3rem; color: var(--red2); flex: none; margin-top: .15rem; }
.stack-title { margin: 1.75rem 0 .6rem; font-weight: 700; font-size: .95rem; color: var(--fg2); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.pills li { padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line2); background: var(--glass); font-weight: 600; font-size: .9rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-copy p { color: var(--fg2); }
.big-mail { display: inline-block; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: .5rem 0; }
.contact-lines { margin: .75rem 0 0; padding: 0; list-style: none; color: var(--fg2); }
.contact-lines li { padding: .3rem 0; }
.clock { margin-top: 1.5rem; color: var(--fg3); font-size: .95rem; }
.form-card { border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--fg2); }
input, textarea, select { font: inherit; padding: .9rem 1rem; border: 1px solid var(--line2); background: var(--field); color: var(--fg); border-radius: var(--r-sm); width: 100%; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 8.5rem; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.mail-out { border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 1rem; display: grid; gap: .7rem; background: var(--glass); }
.mail-out p { margin: 0; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Pied */
footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; color: var(--fg3); font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
footer img { height: 26px; width: auto; display: block; }
footer p { margin: .2rem 0; }

/* Apparition au défilement */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- Mode édition ---------- */
.fab { position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 60; display: none; }
.fab.show { display: inline-flex; }
body.editing .fab { background: #fff; border-color: #fff; color: #0A0A0B; box-shadow: none; }
body.editing [data-cms] { outline: 2px dashed rgba(255,84,104,.7); outline-offset: 4px; cursor: text; border-radius: 3px; }
body.editing [data-cms]:hover { background: var(--red-soft); }
body.editing [data-cms]:focus { outline: 2px solid var(--red2); background: var(--red-soft); }
body.editing .grad { -webkit-text-fill-color: initial; color: var(--red2); background: none; }
body.editing [data-cms-img] { cursor: pointer; }
body.editing [data-cms-img]::before { content: "Changer l’image"; position: absolute; left: .75rem; top: .75rem; z-index: 2; background: #fff; color: #0A0A0B; padding: .4rem .75rem; font-size: .82rem; font-weight: 700; border-radius: 999px; pointer-events: none; }
body.editing [data-cms-img]:hover { outline: 2px solid var(--red2); outline-offset: -2px; }
body.editing .work-tools { display: flex; }
body.editing .work-add { display: flex; }
body.editing .work:hover { transform: none; }
body.editing .work:hover .cover img, body.editing .work:hover .cover svg { transform: none; }
body.editing .rv { opacity: 1; transform: none; }

.dash { position: fixed; top: env(safe-area-inset-top, 0px); right: 0; bottom: 0; width: min(440px, 100%); background: #0E0E11; border-left: 1px solid var(--line2); z-index: 55; overflow: auto; transform: translateX(102%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); display: flex; flex-direction: column; color: var(--fg); box-shadow: -30px 0 60px -30px rgba(0,0,0,.8); }
.dash.open { transform: none; }
.dash-head { position: sticky; top: 0; background: #0E0E11; border-bottom: 1px solid var(--line2); padding: .9rem 1.25rem; display: flex; align-items: center; gap: .75rem; z-index: 2; }
.dash-head h2 { margin: 0; font-size: 1.15rem; flex: 1; letter-spacing: -.01em; }
.status { font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line2); color: var(--fg2); white-space: nowrap; }
.status.dirty { background: #FFB020; color: #1A1200; border-color: #FFB020; }
.status.saving { background: var(--red); color: #fff; border-color: var(--red); }
.dash-body { flex: 1; }
.dash section, .dash details { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.dash summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.dash summary::-webkit-details-marker { display: none; }
.dash summary::after { content: "+"; font-size: 1.4rem; font-weight: 500; color: var(--fg2); }
.dash details[open] > summary::after { content: "–"; }
.dash details > *:not(summary) { margin-top: .75rem; }
.note { font-size: .9rem; color: var(--fg2); margin: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row strong { display: block; margin-bottom: .35rem; }
.row .row-tools { display: flex; gap: .3rem; }
.row input, .row select { padding: .55rem .65rem; font-size: .92rem; }
.dash textarea { min-height: 7rem; font-size: .85rem; }
.dash-foot { position: sticky; bottom: 0; background: #0E0E11; border-top: 1px solid var(--line2); padding: 1rem 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: #fff; color: #0A0A0B; padding: .8rem 1.15rem; border-radius: 999px; font-weight: 700; z-index: 70; transition: opacity .25s, transform .25s; pointer-events: none; max-width: min(92vw, 42rem); text-align: center; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
  .dash { top: auto; height: 74%; width: 100%; border-left: 0; border-top: 1px solid var(--line2); border-radius: 20px 20px 0 0; transform: translateY(102%); }
  .dash.open { transform: none; }
  body.editing .fab { bottom: calc(76% + .75rem); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mock-wrap { justify-content: flex-start; margin-top: 1rem; }
  .hero-e { width: 70vw; right: -20%; top: 30%; }
  .c-lg, .c-sm, .c-wide { grid-column: span 6; }
  .c-lg.has-illus, .c-wide.has-illus { grid-template-columns: 1fr; }
  .pages { height: 170px; }
  .works { grid-template-columns: 1fr; }
  .prox, .about, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .photo-card { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .work-meta { grid-template-columns: 1fr; }
  .work-link { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock, .caret, .pulse, .marquee-track { animation: none; }
  .pulse { opacity: 0; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .dash, .toast, .card, .work, .cover img, .cover svg, .btn { transition: none; }
}

/* Champ piège anti-robots du formulaire de contact */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pages d'administration (connexion, messages) */
.auth { min-height: 100%; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(420px, 100%); border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); padding: 2rem; display: grid; gap: 1rem; }
.auth-card img { height: 30px; width: auto; }
.auth-card h1 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.auth-card .error { color: var(--red2); font-weight: 600; margin: 0; }
.admin-page { padding: 2rem 0 4rem; }
.admin-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; margin: 0 0 1.5rem; }
.msg { border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.msg header { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline; margin-bottom: .6rem; color: var(--fg2); font-size: .92rem; }
.msg header strong { color: var(--fg); font-size: 1.05rem; }
.msg p { margin: 0; white-space: pre-line; }
.tag { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line2); }
.tag.ok { color: #3DDC84; border-color: rgba(61,220,132,.4); }
.tag.warn { color: #FFB020; border-color: rgba(255,176,32,.4); }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq-item { border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--glass); padding: 0 1.25rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--red2); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item > p { margin: 0 0 1.2rem; color: var(--fg2); }

/* Témoignages */
.testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.testi { margin: 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); padding: 1.75rem; display: grid; gap: 1rem; }
.testi blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.testi blockquote p { margin: 0; }
.testi blockquote p::before { content: "“"; color: var(--red2); font-weight: 800; }
.testi blockquote p::after { content: "”"; color: var(--red2); font-weight: 800; }
.testi figcaption { color: var(--fg2); font-size: .95rem; }
.testi figcaption strong { color: var(--fg); }
.testi .role::before { content: " · "; }

/* Sections libres */
.custom { display: grid; gap: 3rem; align-items: center; }
.custom.layout-image-left, .custom.layout-image-right { grid-template-columns: 1fr 1fr; }
.custom.layout-image-right .custom-img { order: 2; }
.custom.layout-center { text-align: center; justify-items: center; }
.custom.layout-center .custom-copy { max-width: 46rem; }
.custom-img { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg2); border: 1px solid var(--line); }
.custom-img img, .custom-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.custom-copy h2 { margin: 0 0 1rem; }
.custom-text { color: var(--fg2); font-size: 1.1rem; max-width: 40em; }
.custom.layout-center .custom-text { margin-inline: auto; }
@media (max-width: 960px) { .custom.layout-image-left, .custom.layout-image-right { grid-template-columns: 1fr; gap: 1.5rem; } .custom.layout-image-right .custom-img { order: 0; } }

/* Formulaire : options */
label small { font-weight: 500; color: var(--fg3); }
label.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; color: var(--fg2); }
label.check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--red); flex: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg2) 50%), linear-gradient(135deg, var(--fg2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }

/* Pied : pages */
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a { color: var(--fg2); }
.foot-links a:hover { color: var(--fg); }

/* Pages secondaires */
.page { padding: 3rem 0 5rem; }
.page-body { max-width: 46rem; }
.page-body h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 1.5rem; }
.page-body h2 { font-size: 1.6rem; margin: 2.2rem 0 .75rem; }
.page-body h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.page-body p, .page-body li { color: var(--fg2); }
.page-body ul { padding-left: 1.3rem; }
