/**
 * site.css — Pages publiques, direction « bento doux » (validée le 2026-10-27).
 *
 * Clair et lumineux : halos rose/bleu en fond, cartes très arrondies, gros
 * titres serrés, couleur portée par l'interface (boutons et accents en
 * dégradé), le logo restant libre d'être en couleur, gris ou noir.
 * Préfixe st- ; les composants partagés avec le back-office (.ca-card,
 * .ca-btn, .ca-input…) sont réhabillés ici, sous body.site uniquement.
 */

.site {
    --st-bg: #F6F6F9; --st-ink: #0E1015; --st-muted: #5E6472; --st-card: #FFFFFF;
    --st-line: rgba(14,16,21,.08); --st-chip: rgba(14,16,21,.05);
    --st-grad: linear-gradient(135deg, #FF5FB1 0%, #EC2E8E 45%, #B4227C 100%);
    --st-grad-text: linear-gradient(100deg, #EC2E8E 10%, #8F5BF0 55%, #2FA4E0 95%);
    --st-shadow: 0 1px 1px rgba(14,16,21,.04), 0 12px 32px -12px rgba(14,16,21,.14);
    --st-r-lg: 28px; --st-r: 20px; --st-r-sm: 14px;
    --st-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
    --st-nav: rgba(255,255,255,.75); --st-field: #FFFFFF; --st-surface-2: #EEEEF3; --st-field-line: #E2E2E8;
    --st-glow-1: rgba(236,46,142,.20); --st-glow-2: rgba(47,164,224,.18);

    /* Les tokens du thème suivent, pour les composants partagés. */
    --ca-bg: var(--st-bg); --ca-ink: var(--st-ink); --ca-muted: var(--st-muted);
    --ca-surface: var(--st-card); --ca-surface-2: var(--st-surface-2); --ca-line: var(--st-field-line);
    color-scheme: light;
    margin: 0; background: var(--st-bg); color: var(--st-ink); font-family: var(--st-font); line-height: 1.55; overflow-x: clip;
}
/* Mode sombre : choisi par le bouton de l'en-tête (html[data-theme]), sinon le réglage du téléphone. */
html[data-theme="dark"] .site {
    --st-bg: #0A0B0F; --st-ink: #F4F5F8; --st-muted: #9AA0AE; --st-card: #15161C;
    --st-line: rgba(255,255,255,.09); --st-chip: rgba(255,255,255,.07);
    --st-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
    --st-nav: rgba(16,17,22,.72); --st-field: #1C1D24; --st-surface-2: #1F2027; --st-field-line: #2C2E37;
    --st-glow-1: rgba(236,46,142,.34); --st-glow-2: rgba(47,164,224,.28);
    color-scheme: dark;
}
.site h1, .site h2, .site h3 { font-family: var(--st-font); }

.st-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(42rem 30rem at 8% -6%, var(--st-glow-1), transparent 60%),
        radial-gradient(36rem 28rem at 105% 18%, var(--st-glow-2), transparent 62%),
        radial-gradient(30rem 24rem at 50% 110%, var(--st-glow-1), transparent 65%); }

/* Logo inversé selon le mode, bouton de bascule. */
html[data-theme="dark"] .st-logo-l, html:not([data-theme="dark"]) .st-logo-d { display: none; }
.st-logo.is-tile img { background: #fff; border-radius: 10px; padding: 2px 6px; }
.st-mode { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--st-line); background: var(--st-chip); color: var(--st-ink);
    display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; flex: none; padding: 0; }
.st-mode:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(236,46,142,.35); }
html[data-theme="dark"] .st-mode .st-moon, html:not([data-theme="dark"]) .st-mode .st-sun { display: none; }
.st-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* --- Boutons --- */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
    border-radius: 999px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease; }
.st-btn:active { transform: scale(.98); }
.st-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(236,46,142,.35); }
.st-btn--primary { color: #fff; background: var(--st-grad); box-shadow: 0 10px 24px -10px rgba(236,46,142,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.st-btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(236,46,142,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.st-btn--ghost { background: var(--st-chip); color: var(--st-ink); border: 1px solid var(--st-line); }
.st-btn--white { background: #fff; color: #C81E76; }
.st-btn--sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.st-arrow { transition: transform .2s; } .st-btn:hover .st-arrow { transform: translateX(3px); }

/* --- Barre de navigation flottante --- */
.st-nav { position: sticky; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 50; margin-top: 12px; }
.st-nav-in { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 10px;
    background: var(--st-nav); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--st-line); border-radius: 999px; box-shadow: var(--st-shadow); }
.st-logo { display: flex; align-items: center; height: 44px; padding: 0 6px; }
.st-logo img { height: 40px; width: auto; display: block; }
.st-links { display: none; gap: 4px; margin-left: 8px; }
.st-links a { text-decoration: none; color: var(--st-muted); font-weight: 600; font-size: .94rem; padding: 8px 12px; border-radius: 999px; }
.st-links a:hover { color: var(--st-ink); background: var(--st-chip); }
.st-sp { flex: 1; }
.st-tel { display: none; text-decoration: none; font-weight: 700; font-size: .94rem; padding: 0 10px; color: var(--st-ink); }

/* --- Hero --- */
.st-hero { padding: 56px 0 32px; text-align: center; }
.st-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
    background: var(--st-card); border: 1px solid var(--st-line); font-size: .86rem; font-weight: 600; color: var(--st-muted); box-shadow: var(--st-shadow); }
.st-eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: var(--st-grad); display: grid; place-items: center; color: #fff; font-size: .7rem; font-style: normal; }
.st-hero h1 { font-size: clamp(2.5rem, 8.4vw, 5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 850; margin: 22px auto 18px; max-width: 13ch; text-wrap: balance; }
.st-grad-text { background: var(--st-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--st-muted); max-width: 40ch; margin: 0 auto 28px; }
.st-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.st-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 26px; color: var(--st-muted); font-size: .92rem; font-weight: 600; }
.st-trust span::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%;
    background: rgba(30,158,106,.14); color: #1E9E6A; font-size: .7rem; font-weight: 900; }
.st-shot { margin: 8px 0 0; border-radius: var(--st-r-lg); overflow: hidden; box-shadow: var(--st-shadow); aspect-ratio: 16 / 8; max-width: 100%; }
.st-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .st-shot { aspect-ratio: 4 / 5; } }   /* photo verticale sur téléphone (<picture>) */
.st-shot picture { display: contents; }

/* --- Sur place : photos d'intervention --- */
.st-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-photos figure { margin: 0; display: grid; gap: 10px; }
.st-photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 60%; display: block; border-radius: var(--st-r-lg); box-shadow: var(--st-shadow); }
.st-photos figcaption { font-weight: 700; font-size: .95rem; }
@media (max-width: 640px) { .st-photos { grid-template-columns: 1fr; } .st-photos img { aspect-ratio: 4 / 5; } }

/* --- Sections --- */
.st-block { padding: 48px 0; }
.st-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.st-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); letter-spacing: -.035em; line-height: 1.08; margin: 0; font-weight: 800; text-wrap: balance; }
.st-head p { color: var(--st-muted); margin: 6px 0 0; }
.st-kicker { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #EC2E8E; margin-bottom: 8px; }

/* --- Cartes prestations --- */
.st-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.st-card { position: relative; background: var(--st-card); border: 1px solid var(--st-line); border-radius: var(--st-r-lg); padding: 22px; box-shadow: var(--st-shadow); }
.st-svc { display: flex; flex-direction: column; gap: 14px; min-height: 200px; transition: transform .2s ease, border-color .2s; text-decoration: none; color: inherit; }
.st-svc:hover { transform: translateY(-3px); border-color: rgba(236,46,142,.35); }
.st-svc-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.st-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--st-chip); flex: none; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--st-chip); font-size: .82rem; font-weight: 700; color: var(--st-muted); }
.st-svc h3 { font-size: 1.3rem; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.st-svc .st-desc { color: var(--st-muted); margin: 4px 0 0; font-size: .95rem; }
.st-svc-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.st-price { font-size: 2.2rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.st-svc.is-featured { background: var(--st-grad); color: #fff; border-color: transparent; box-shadow: 0 24px 50px -22px rgba(236,46,142,.8); }
.st-svc.is-featured .st-desc { color: rgba(255,255,255,.85); }
.st-svc.is-featured .st-chip, .st-svc.is-featured .st-ico { background: rgba(255,255,255,.18); color: #fff; }
.st-svc.is-featured .st-btn--ghost { background: #fff; color: #C81E76; border: 0; }
.st-extras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; color: var(--st-muted); font-weight: 600; font-size: .92rem; }
.st-extras .st-chip { background: var(--st-card); border: 1px solid var(--st-line); color: var(--st-ink); padding: 8px 14px; }
.st-extras .st-chip b { color: #EC2E8E; }
.st-quotes { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 14px; }
.st-quote { display: flex; align-items: center; gap: 14px; padding: 18px 20px; flex-wrap: wrap; }
.st-quote h3 { font-size: 1.05rem; margin: 0; }
.st-quote p { margin: 2px 0 0; color: var(--st-muted); font-size: .9rem; }
.st-quote > div { flex: 1 1 calc(100% - 70px); min-width: 0; }
.st-quote .st-btn { flex: 1 1 100%; }
@media (min-width: 520px) { .st-quote > div { flex: 1; } .st-quote .st-btn { flex: 0 0 auto; } }

/* --- Avant / après --- */
/* Cadre portrait : les photos sont prises au téléphone, à la verticale. */
.st-ba { position: relative; aspect-ratio: 4 / 5; width: min(100%, 520px); margin: 0 auto; border-radius: var(--st-r-lg); overflow: hidden; user-select: none; box-shadow: var(--st-shadow); --p: 50%; }
.st-ba-after, .st-ba-before { position: absolute; inset: 0; display: grid; padding: 16px; background-position: center; background-size: cover; }
.st-ba-after { place-items: end end; }
.st-ba-before { place-items: end start; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
/* Carrousel des avant/après */
.st-car { overflow: hidden; }
.st-car-track { display: flex; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.st-car-slide { flex: 0 0 100%; min-width: 0; margin: 0; display: grid; gap: 10px; padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .st-car-track { transition: none; } }
.st-car-slide figcaption { font-weight: 700; text-align: center; }
.st-car-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.st-car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--st-line); background: var(--st-card); color: var(--st-ink); font-size: 1.1rem; font-weight: 800; cursor: pointer; box-shadow: var(--st-shadow); }
.st-car-btn:focus-visible, .st-car-dots button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(236,46,142,.35); }
.st-car-dots { display: flex; gap: 8px; }
.st-car-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: var(--st-line); cursor: pointer; transition: width .2s, background .2s; }
.st-car-dots button[aria-current="true"] { width: 26px; background: var(--st-grad); }
.st-ba-after span, .st-ba-before span { background: rgba(0,0,0,.5); color: #fff; padding: 5px 12px; border-radius: 99px; font-size: .85rem; font-weight: 700; }
.st-ba-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.st-ba-line::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%;
    background: #fff; color: #0E1015; display: grid; place-items: center; font-weight: 900; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.st-ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* --- Étapes --- */
.st-steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
.st-step { counter-increment: s; }
.st-step::before { content: counter(s, decimal-leading-zero); display: block; font-size: 2.6rem; font-weight: 850; letter-spacing: -.05em; line-height: 1;
    background: var(--st-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.st-step h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -.02em; }
.st-step p { margin: 0; color: var(--st-muted); }

/* --- Bandeau final, pied --- */
.st-band { margin: 24px 0 0; padding: 40px 24px; text-align: center; border-radius: var(--st-r-lg); color: #fff; background: var(--st-grad);
    position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(236,46,142,.8); }
.st-band::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(103,198,245,.55), transparent); }
.st-band > * { position: relative; z-index: 1; }
.st-band h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); letter-spacing: -.04em; margin: 0 0 10px; line-height: 1.08; }
.st-band p { margin: 0 0 22px; opacity: .9; }
.st-foot { padding: 40px 0 120px; color: var(--st-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.st-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* --- Barre d'action collante (mobile) --- */
.st-sticky { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; padding: 8px;
    background: var(--st-nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-line); border-radius: 999px; box-shadow: var(--st-shadow); }
.st-sticky .st-btn { flex: 1; min-height: 46px; }
.st-sticky .st-sticky-tel { flex: 0 0 46px; padding: 0; }

/* --- Composants partagés (tunnel de réservation) réhabillés --- */
.site .ca-card { background: var(--st-card); border: 1px solid var(--st-line); border-radius: var(--st-r-lg); box-shadow: var(--st-shadow); padding: 22px; }
.site .ca-btn { border-radius: 999px; background: var(--st-grad); box-shadow: 0 10px 24px -10px rgba(236,46,142,.75); }
.site .ca-btn:hover { background: var(--st-grad); filter: brightness(1.05); }
.site .ca-btn--ghost { background: var(--st-chip); color: var(--st-ink); box-shadow: none; border: 1px solid var(--st-line); }
.site .ca-input, .site .ca-select, .site .ca-textarea { border-radius: var(--st-r-sm); background: var(--st-field); border-color: var(--st-field-line); color: var(--st-ink); }
.site .rs-edit { color: #EC2E8E; }
html[data-theme="dark"] .site .rs-edit { color: #FF7DC0; }
.site .ca-title-grad { background: var(--st-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }

@media (min-width: 760px) {
    .st-links, .st-tel { display: flex; }
    .st-grid { grid-template-columns: repeat(3, 1fr); }
    .st-quotes { grid-template-columns: 1fr 1fr; }
    .st-steps { grid-template-columns: repeat(3, 1fr); }
    .st-sticky { display: none; }
    .st-hero { padding: 88px 0 48px; }
    .st-foot { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .st-svc, .st-btn, .st-arrow { transition: none; }
}

/* --- Pages légales (mentions légales, confidentialité) --- */
.st-legal { max-width: 760px; padding: 32px 0 24px; line-height: 1.6; }
.st-legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 6px; }
.st-legal h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.st-legal p, .st-legal li { color: var(--st-ink); }
.st-legal ul { padding-left: 1.2em; }
.st-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.st-legal .st-legal-upd { color: var(--st-muted); font-size: .9rem; }
.st-legal .st-todo { color: #C0392B; font-style: italic; }
