/* ═══════════════════════════════════════════════════════════════
   COMPOSANTS PARTAGÉS (toutes les pages)
   ═══════════════════════════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center p { margin-inline: auto; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3.5rem); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticks { display: grid; gap: .65rem; margin-block: .6rem 1rem; flex: 1; }
.ticks li { display: flex; gap: .7rem; align-items: baseline; font-size: .95rem; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 14px; transform: translateY(2px); background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ── FAQ ───────────────────────────────────────────────────── */
.sec-faq { padding-top: 0; }
.sec-faq .container { padding-top: clamp(4rem, 3rem + 5vw, 7rem); border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 2rem; }
.faq-grid .sec-head { margin-bottom: 0; } .faq-grid .sec-head p { font-size: 1rem; }
.acc-item { border-bottom: 1px solid var(--line); } .acc-item:first-child { border-top: 1px solid var(--line); }
.acc-item h3 { font-size: inherit; letter-spacing: 0; }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: -.02em; }
.acc-btn i { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .25s, border-color .25s, transform .4s var(--ease); }
.acc-btn i::before, .acc-btn i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; transition: transform .4s var(--ease); }
.acc-btn i::after { transform: rotate(90deg); }
.acc-btn:hover i { border-color: var(--accent); }
.acc-item.is-open .acc-btn i { background: var(--violet-500); border-color: var(--violet-500); color: #fff; }
.acc-item.is-open .acc-btn i::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-panel > div { overflow: hidden; } .acc-panel p { padding: 0 3rem 1.5rem 0; color: var(--text-2); max-width: 40rem; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); } .faq-grid .sec-head { position: sticky; top: 110px; align-self: start; } }

/* ── CTA FINAL ─────────────────────────────────────────────── */
.sec-final { overflow: hidden; text-align: center; background: linear-gradient(180deg, #0b0b18, #1a0f45 55%, #0b0b18); }
.final-glow { background: radial-gradient(50% 60% at 50% 100%, rgba(124,58,237,.5), transparent 70%); }
.final-inner { position: relative; display: grid; gap: 1.4rem; justify-items: center; }
.final-inner h2 { font-size: var(--step-5); max-width: 14ch; } .final-inner p { color: var(--text-2); font-size: var(--step-1); max-width: 34rem; }
.final-inner .cta-row { justify-content: center; margin-top: .75rem; }
@media (max-width: 520px) { .final-inner .cta-row, .final-inner .btn { width: 100%; } }

/* ── Entête de page intérieure (sous le menu fixe) ── */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-3); margin-bottom: 1.25rem; }
.crumb a { color: var(--text-2); transition: color var(--dur-1); } .crumb a:hover { color: var(--text); }
.crumb span[aria-hidden] { opacity: .5; }
.page-top { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)); }
.lede { font-size: var(--step-1); color: var(--text-2); max-width: 40rem; line-height: 1.65; }
.todo { background: #fde68a; color: #422006; padding: 0 .3em; border-radius: 4px; font-style: normal; }
.divider-top { border-top: 1px solid var(--line); }
.final-glow { position: absolute; inset: 0; pointer-events: none; }

/* Formulaires */
.f-grid { display: grid; gap: 1rem; } @media (min-width: 640px) { .f-grid { grid-template-columns: 1fr 1fr; } .f--wide { grid-column: 1 / -1; } }
.f { display: grid; gap: .4rem; min-width: 0; } .f > span { font-size: .88rem; font-weight: 500; } .f em { color: var(--accent); font-style: normal; } .f small { color: var(--text-3); font-weight: 400; }
.f input, .f select, .f textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: .8rem 1rem; transition: border-color .25s, box-shadow .25s; }
.f textarea { min-height: 130px; resize: vertical; } .f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.f-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--text-2); } .f-check input { margin-top: .25rem; accent-color: var(--accent); flex: none; } .f-check a { color: var(--accent); }
.f-svc { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; } .f-svc legend { font-size: .88rem; font-weight: 500; margin-bottom: .5rem; padding: 0; }
.f-svc label { cursor: pointer; } .f-svc input { position: absolute; opacity: 0; } .f-svc span { display: inline-block; padding: .45rem .95rem; border-radius: 99px; border: 1px solid var(--line-2); font-size: .9rem; transition: all .25s; } .f-svc input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; } .f-svc input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-status { min-height: 1.4em; font-size: .92rem; color: var(--text-2); } .f-status.ok { color: var(--ok); } .f-status.ko { color: #e5484d; } .f-status a { color: var(--accent); text-decoration: underline; }
.f-card { border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2); padding: clamp(1.25rem, 4vw, 2.25rem); display: grid; gap: 1.25rem; }

/* Tableaux adaptatifs : sur mobile, chaque ligne devient une carte (aucun défilement latéral) */
@media (max-width: 680px) {
  table.rt, table.rt tbody, table.rt tr, table.rt td, table.rt th { display: block; width: 100%; min-width: 0 !important; }
  table.rt { min-width: 0 !important; }
  table.rt thead, table.rt tr.rt-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.rt tbody tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  table.rt tbody tr:last-child { border-bottom: 0; }
  table.rt td.rt-h, table.rt th.rt-h { padding: 0 0 .5rem; border: 0; font-weight: 700; color: var(--text); font-size: 1rem; background: none; }
  table.rt td[data-label], table.rt th[data-label] { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .3rem 0; border: 0; text-align: right; background: none; }
  table.rt td[data-label]::before, table.rt th[data-label]::before { content: attr(data-label); color: var(--text-3); font-size: .82rem; font-weight: 600; text-align: left; flex: none; max-width: 45%; }
}

/* Composer son pack */
.compose { display: grid; gap: 1.5rem; }
.compose-picks { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; align-content: start; min-width: 0; }
.pick { cursor: pointer; display: block; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-box { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .85rem; align-items: center; padding: 1rem 1.15rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--dur-2), background-color var(--dur-2), transform var(--dur-2) var(--ease); height: 100%; }
.pick-box img { grid-row: 1 / 3; width: 28px; height: 28px; object-fit: contain; }
.pick-box b { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; } .pick-box small { color: var(--text-3); font-size: .82rem; }
.pick:hover .pick-box { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.pick input:checked + .pick-box { border-color: var(--violet-500); background: var(--accent-soft); }
.pick input:focus-visible + .pick-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.compose-out { padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; justify-items: start; box-shadow: var(--shadow-sm); }
.compose-out h3 { font-size: var(--step-2); } .compose-out p { color: var(--text-2); }
.compose-out .ticks { margin: 0; }
.compose-out.is-swap > * { animation: swap .45s var(--ease) both; } @keyframes swap { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 900px) { .compose { grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; } }


/* Fenêtre « demander un devis » */
.qd { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 2rem)); width: 100%; color: var(--text); overflow: visible; }
.qd::backdrop { background: rgba(6,4,18,.66); backdrop-filter: blur(6px); }
.qd[open] { animation: qd-in .35s var(--ease) both; } @keyframes qd-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.qd-card { position: relative; display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); max-height: calc(100dvh - 2rem); overflow: auto; }
.qd-card h2 { font-size: var(--step-3); padding-right: 2.5rem; } .qd-pack { color: var(--accent); font-weight: 600; margin-top: -.4rem; }
.qd-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1.4rem; line-height: 1; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s; }
.qd-x:hover { background: var(--surface-2); color: var(--text); }
html.qd-open { overflow: hidden; }

/* ═══ Dégradés vivants : les halos flous dérivent et respirent en continu ═══ */
@property --gx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --gy { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --gx2 { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@keyframes hv-drift-a { 0%, 100% { --gx: 24%; --gx2: 78%; } 50% { --gx: 74%; --gx2: 26%; } }
@keyframes hv-drift-b { 0%, 100% { --gy: 6%; } 50% { --gy: 46%; } }
@keyframes hv-orb1 { 0% { transform: translate(-50%, 0) scale(1); } 33% { transform: translate(-30%, 50px) scale(1.18); } 66% { transform: translate(-68%, 20px) scale(.92); } 100% { transform: translate(-50%, 0) scale(1); } }
@keyframes hv-orb2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-90px, 70px) scale(1.25); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes hv-orb3 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(110px, -60px) scale(1.3); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes hv-orb4 { 0% { transform: translate(0, 0) scale(.9); opacity: .8; } 50% { transform: translate(-160px, -90px) scale(1.2); opacity: 1; } 100% { transform: translate(0, 0) scale(.9); opacity: .8; } }
@keyframes hv-breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.14); opacity: 1; } }

.hero .hero-orb { will-change: transform; }
.hero .hero-orb1 { animation: hv-orb1 22s ease-in-out infinite; }
.hero .hero-orb2 { animation: hv-orb2 17s ease-in-out infinite; }
.hero .hero-orb3 { animation: hv-orb3 19s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; z-index: 1; pointer-events: none; width: 460px; height: 460px; border-radius: 50%; right: 12%; top: 46%; background: radial-gradient(circle, rgba(217,70,239,.13), transparent 70%); animation: hv-orb4 24s ease-in-out infinite; }

body .final-glow { background: radial-gradient(46% 62% at var(--gx) 100%, rgba(124,58,237,.52), transparent 70%), radial-gradient(34% 50% at var(--gx2) 112%, rgba(217,70,239,.3), transparent 70%); animation: hv-drift-a 16s ease-in-out infinite; }
body .ai-glow { background: radial-gradient(56% 52% at var(--gx) var(--gy), rgba(124,58,237,.3), transparent 70%), radial-gradient(36% 40% at var(--gx2) 8%, rgba(217,70,239,.16), transparent 70%); animation: hv-drift-a 18s ease-in-out infinite, hv-drift-b 13s ease-in-out infinite; }
.sv-hero::before { animation: hv-orb2 20s ease-in-out infinite; }
.sv-hero::after { content: ""; position: absolute; left: -160px; bottom: -200px; width: 480px; height: 480px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, #d946ef 22%, transparent), transparent 68%); animation: hv-orb3 23s ease-in-out infinite; }
.nf-glow { animation: hv-breathe 8s ease-in-out infinite; }
html[data-motion="reduce"] .hero .hero-orb, html[data-motion="reduce"] .hero::after, html[data-motion="reduce"] .sv-hero::before, html[data-motion="reduce"] .sv-hero::after, html[data-motion="reduce"] .final-glow, html[data-motion="reduce"] .ai-glow, html[data-motion="reduce"] .nf-glow { animation: none !important; }
.pl-hero::before { animation: hv-orb2 21s ease-in-out infinite; }
.ai-hero::before { animation: hv-orb3 20s ease-in-out infinite; }
.au-hero::before { animation: hv-orb2 22s ease-in-out infinite; }
.ct::before { animation: hv-orb3 24s ease-in-out infinite; }
.ab-hero::before { animation: hv-orb2 23s ease-in-out infinite; }
html[data-motion="reduce"] :is(.pl-hero, .ai-hero, .au-hero, .ct, .ab-hero)::before { animation: none !important; }

/* ── Bandeau de consentement aux cookies ── */
.ck { position: fixed; z-index: 400; left: 16px; right: 16px; bottom: 16px; max-width: 880px; margin-inline: auto; display: flex; align-items: center; gap: 20px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface-solid); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(24px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ck.is-in { opacity: 1; transform: none; }
.ck-main { flex: 1; min-width: 0; }
.ck-main strong { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -.02em; }
.ck-main p { margin-top: 6px; font-size: var(--step--1); line-height: 1.55; color: var(--text-2); }
.ck-main a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ck-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex: none; }
.ck-detail { margin-top: 12px; display: grid; gap: 8px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.ck-row b { display: block; font-size: var(--step--1); } .ck-row small { color: var(--text-3); font-size: .78rem; }
.ck-row input { width: 20px; height: 20px; accent-color: var(--accent-strong); flex: none; }
@media (max-width: 720px) { .ck { flex-direction: column; align-items: stretch; gap: 14px; left: 10px; right: 10px; bottom: 10px; padding: 16px; } .ck-act { justify-content: stretch; } .ck-act .btn { flex: 1 1 auto; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }
.ck-detail[hidden] { display: none; }
