:root {
    --bg: #f6f4fd;
    --surface: #ffffff;
    --ink: #17122b;
    --muted: #6d6687;
    --line: #e6e1f5;
    --brand: #6c3cf0;
    --brand-2: #ff5fa2;
    --brand-3: #22c6d8;
    --ok: #2f9e62;
    --warn: #e8930c;
    --danger: #e0445b;
    --radius: 18px;
    --shadow: 0 10px 30px -12px rgba(52, 26, 140, .25);
    --shadow-lg: 0 30px 60px -20px rgba(52, 26, 140, .35);
    --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- Fond animé */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; animation: float 22s ease-in-out infinite; }
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; background: #b49bff; top: -160px; left: -120px; }
.bg-orbs span:nth-child(2) { width: 420px; height: 420px; background: #ffb3d4; top: 30%; right: -140px; animation-delay: -7s; }
.bg-orbs span:nth-child(3) { width: 380px; height: 380px; background: #9ff0f7; bottom: -160px; left: 30%; animation-delay: -14s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(60px,40px) scale(1.08); } 66% { transform: translate(-40px,70px) scale(.95); } }

/* ---------------------------------------------------------------- Header */
.topbar {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; padding: .9rem clamp(1rem, 4vw, 3rem);
    background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(230,225,245,.7);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: 1.15rem; }
.brand em { font-style: normal; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); font-size: 1.3rem; box-shadow: var(--shadow); animation: wobble 6s ease-in-out infinite; }
@keyframes wobble { 0%,90%,100% { transform: rotate(0); } 93% { transform: rotate(-14deg); } 96% { transform: rotate(10deg); } }
.topbar nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.topbar nav a { padding: .55rem .85rem; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .93rem; transition: background .2s, color .2s; }
.topbar nav a:hover { background: #efeafd; }
.topbar nav a.active { color: var(--brand); background: #efeafd; }
.topbar nav a.nav-cta { background: var(--ink); color: #fff; margin-left: .5rem; }
.topbar nav a.nav-cta:hover { background: var(--brand); }
.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
@media (max-width: 960px) {
    .burger { display: block; }
    .topbar nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 1rem; gap: .25rem; box-shadow: var(--shadow-lg); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s; }
    .topbar.open nav { transform: none; opacity: 1; pointer-events: auto; }
    .topbar.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .topbar.open .burger span:nth-child(2) { opacity: 0; }
    .topbar.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .topbar nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
}

.page { max-width: 1200px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 4rem; min-height: 70vh; }

/* ---------------------------------------------------------------- Boutons, champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 25px -10px rgba(108,60,240,.7); }
.btn--primary:hover { box-shadow: 0 16px 30px -10px rgba(108,60,240,.8); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--danger { background: #fff0f2; color: var(--danger); border: 1px solid #ffd0d7; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
input, select, textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108,60,240,.12); }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
label > input, label > select, label > textarea { margin-top: .4rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.error { color: var(--danger); background: #fff0f2; padding: .75rem 1rem; border-radius: 12px; font-weight: 600; animation: shake .4s; }
.success { color: var(--ok); background: #eafaf1; padding: .75rem 1rem; border-radius: 12px; font-weight: 600; animation: pop .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- Hero */
.hero { text-align: center; padding: clamp(2rem, 6vw, 5rem) 0 2.5rem; }
.hero--small { padding: 2rem 0 1.5rem; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto 1.5rem; }
.hero__badge { display: inline-flex; gap: .4rem; padding: .4rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.hero__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.search { position: relative; max-width: 680px; margin: 0 auto 1.5rem; }
.search input { padding: 1.2rem 1.4rem 1.2rem 3.4rem; font-size: 1.1rem; border-radius: 999px; border: 0; box-shadow: var(--shadow-lg); }
.search::before { content: "🔎"; position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
.search__results { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: left; overflow: hidden; z-index: 10; animation: pop .2s; }
.search__results a { display: flex; gap: .8rem; padding: .9rem 1.2rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.search__results a:hover { background: #f7f4ff; }
.typing::after { content: "|"; animation: blink 1s steps(1) infinite; margin-left: 2px; color: var(--brand); }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Cartes & grilles */
.section { margin: 3.5rem 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section__head p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile { position: relative; display: block; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(108,60,240,.09), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover::after { opacity: 1; }
.tile__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 1.6rem; margin-bottom: 1rem; background: color-mix(in srgb, var(--c, var(--brand)) 14%, white); transition: transform .3s; }
.tile:hover .tile__icon { transform: scale(1.1) rotate(-6deg); }
.tile h3 { font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }
.tile__arrow { position: absolute; right: 1.2rem; top: 1.4rem; opacity: 0; transform: translateX(-8px); transition: .25s; color: var(--brand); font-weight: 800; }
.tile:hover .tile__arrow { opacity: 1; transform: none; }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #f0edf8; color: var(--muted); white-space: nowrap; }
.chip--amber { background: #fff4e0; color: #b46a00; }
.chip--blue { background: #e6f0ff; color: #2a5bd7; }
.chip--violet { background: #f0e8ff; color: #6c3cf0; }
.chip--green { background: #e3f7ec; color: var(--ok); }
.chip--red { background: #ffe9ec; color: var(--danger); }
.chip-btn { cursor: pointer; border: 1px solid var(--line); background: #fff; transition: .2s; font-family: inherit; }
.chip-btn:hover, .chip-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot--pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------------------------------------------------------------- Bandeaux */
.band { position: relative; border-radius: 28px; padding: clamp(1.8rem, 4vw, 3rem); background: var(--ink); color: #fff; overflow: hidden; }
.band::before { content: ""; position: absolute; width: 500px; height: 500px; right: -150px; top: -200px; background: var(--grad); border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 18s infinite; }
.band > * { position: relative; }
.band p { color: #cfc8e8; }
.band .btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.band__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .band__grid { grid-template-columns: 1fr; } }
.phone-big { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: .02em; display: inline-block; }
.phone-big:hover { animation: ring .5s; }
@keyframes ring { 20%,60% { transform: rotate(-4deg); } 40%,80% { transform: rotate(4deg); } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 1.2rem; border-radius: 16px; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; }
.stat span { color: #cfc8e8; font-size: .9rem; }
.card .stat { background: #f7f4ff; border-color: var(--line); }
.card .stat span { color: var(--muted); }

/* ---------------------------------------------------------------- Accordéon FAQ */
.acc { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: .7rem; overflow: hidden; transition: box-shadow .2s; }
.acc[open] { box-shadow: var(--shadow); }
.acc summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #f0edf8; color: var(--brand); font-size: 1.2rem; transition: transform .3s; }
.acc[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.acc__body { padding: 0 1.3rem 1.2rem; color: var(--muted); line-height: 1.65; animation: slide .3s ease; }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Article */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-size: 1.4rem; margin-top: 2rem; }
.article ul { padding-left: 1.2rem; line-height: 1.9; }
.article li::marker { color: var(--brand); }
.breadcrumb { display: flex; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.vote { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: 2.5rem; padding: 1.2rem; border-radius: 16px; background: #f7f4ff; }
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--grad); z-index: 100; width: 0; transition: width .1s; }

/* ---------------------------------------------------------------- Espace / listes */
.layout-2 { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: .3rem; }
.side a { padding: .75rem 1rem; border-radius: 12px; color: var(--ink); font-weight: 600; transition: .2s; }
.side a:hover, .side a.active { background: #fff; box-shadow: var(--shadow); color: var(--brand); }
.list-item { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: .7rem; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.list-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.list-item__main { flex: 1; min-width: 0; }
.list-item__main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item__main small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; font-size: 1.3rem; background: color-mix(in srgb, var(--c, var(--brand)) 14%, white); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty span { display: block; font-size: 3rem; margin-bottom: .5rem; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- Conversation */
.thread { display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem 0; }
.bubble { max-width: 78%; padding: .9rem 1.1rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; line-height: 1.55; animation: pop .3s; }
.bubble small { display: block; margin-top: .4rem; color: var(--muted); font-size: .78rem; }
.bubble--me { align-self: flex-end; background: var(--grad); color: #fff; border: 0; border-bottom-right-radius: 6px; }
.bubble--me small { color: rgba(255,255,255,.8); }
.bubble--staff { border-bottom-left-radius: 6px; }
.compose { display: flex; gap: .7rem; align-items: flex-end; position: sticky; bottom: 1rem; background: #fff; padding: .7rem; border-radius: 18px; box-shadow: var(--shadow-lg); }
.compose textarea { border: 0; resize: none; box-shadow: none !important; }

/* ---------------------------------------------------------------- Commande & suivi */
.stepper { display: flex; justify-content: space-between; position: relative; margin: 1.5rem 0 2rem; }
.stepper::before { content: ""; position: absolute; top: 18px; left: 8%; right: 8%; height: 4px; background: var(--line); border-radius: 4px; }
.stepper__fill { position: absolute; top: 18px; left: 8%; height: 4px; background: var(--grad); border-radius: 4px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; flex: 1; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.step__dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--line); transition: .4s; }
.step.done .step__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.current .step__dot { animation: pulse 1.6s infinite; color: var(--brand); }
.step.done, .step.current { color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.3rem .8rem; animation: slide .4s both; }
.timeline li::before { content: ""; position: absolute; left: -1.95rem; top: .25rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li:first-child::before { background: var(--brand); box-shadow: 0 0 0 5px rgba(108,60,240,.15); }
.truck { display: inline-block; animation: drive 3s ease-in-out infinite; }
@keyframes drive { 0%,100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
.items { display: flex; flex-direction: column; gap: .7rem; }
.item { display: flex; gap: .9rem; align-items: center; }
.item img { width: 48px; height: 68px; object-fit: cover; border-radius: 8px; background: #eee; }

/* ---------------------------------------------------------------- Modale */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(23,18,43,.5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; animation: fade .2s; }
.modal { background: #fff; border-radius: 24px; padding: 2rem; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: rise .3s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* ---------------------------------------------------------------- Stepper formulaire */
.wizard { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.wizard span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; position: relative; }
.wizard span.on::after { content: ""; position: absolute; inset: 0; background: var(--grad); animation: grow .5s ease both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.pick button { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.1rem .6rem; border-radius: 16px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: .2s; color: var(--ink); }
.pick button span { font-size: 1.8rem; transition: transform .3s; }
.pick button:hover { border-color: var(--brand); transform: translateY(-3px); }
.pick button:hover span { transform: scale(1.15); }
.pick button.sel { border-color: var(--brand); background: #f4efff; box-shadow: 0 0 0 4px rgba(108,60,240,.12); }

/* ---------------------------------------------------------------- Statut */
.status-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.status-row:last-child { border: 0; }
.bars { display: flex; gap: 2px; flex: 1; max-width: 360px; }
.bars i { flex: 1; height: 26px; border-radius: 3px; background: #3ccf85; opacity: .85; animation: grow .5s both; transform-origin: bottom; }
.bars i.warn { background: var(--warn); }

/* ---------------------------------------------------------------- Bouton téléphone flottant */
.fab-phone { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; display: flex; align-items: center; gap: .5rem; padding: .9rem 1.3rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; box-shadow: var(--shadow-lg); transition: transform .2s; }
.fab-phone:hover { transform: scale(1.05); }
.fab-phone__ring { position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--brand); animation: ripple 2.4s infinite; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 600px) { .fab-phone__txt { display: none; } }

/* ---------------------------------------------------------------- Footer */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 3rem clamp(1rem, 4vw, 3rem) 1.5rem; margin-top: 3rem; }
.footer__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer a { display: block; color: var(--ink); padding: .25rem 0; font-size: .93rem; }
.footer a:hover { color: var(--brand); }
.footer__phone { font-size: 1.4rem !important; font-weight: 800; }
.footer__legal { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer__legal a { display: inline; }

/* ---------------------------------------------------------------- Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.stagger > *:nth-child(2) { animation-delay: .06s; } .stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .18s; } .stagger > *:nth-child(5) { animation-delay: .24s; }
.stagger > *:nth-child(6) { animation-delay: .3s; } .stagger > *:nth-child(7) { animation-delay: .36s; }
.stagger > *:nth-child(n+8) { animation-delay: .42s; }
.skeleton { background: linear-gradient(90deg, #eee9f8 25%, #f7f4fd 50%, #eee9f8 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 16px; height: 84px; margin-bottom: .7rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff4e0; padding: .8rem 1.2rem; z-index: 1000; box-shadow: 0 -4px 20px rgba(0,0,0,.1); }
#blazor-error-ui .reload { font-weight: 700; margin-left: .5rem; }

/* Correctifs mobile */
html, body { max-width: 100%; overflow-x: hidden; }
.bg-orbs, .bg-orbs span { pointer-events: none; }
.page { padding-bottom: 6rem; }
@media (max-width: 960px) {
    .topbar { gap: .5rem; }
    .topbar nav { visibility: hidden; max-height: calc(100vh - 70px); overflow-y: auto; }
    .topbar.open nav { visibility: visible; }
    .burger { position: relative; z-index: 2; min-width: 44px; min-height: 44px; }
}
@media (max-width: 900px) {
    .side { position: static; }
    .compose { bottom: 4.8rem; }
}
@media (max-width: 600px) {
    .fab-phone { right: .8rem; bottom: .8rem; padding: .8rem; }
    .grid, .grid--3 { grid-template-columns: 1fr; }
    .tile, .card { max-width: 100%; }
    .footer__grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .btn { max-width: 100%; white-space: normal; text-align: center; }
}
