/*
 * Thèmes du site — variables pures, activées via [data-theme].
 *
 * « Rose Signature » (classic) reprend exactement les valeurs historiques
 * déclarées dans :root de public/css/app.css et public/css/admin.css :
 * aucune régression visuelle si le thème par défaut est conservé.
 */

/* ============================================================
   Rose Signature — style historique (par défaut)
   ============================================================ */
[data-theme="classic"] {
    --bg: #fbf7f4;
    --surface: #ffffff;
    --surface-2: #f3e3d8;
    --ink: #3e2a33;
    --muted: #75606a;
    --brand: #c97b84;
    --brand-dark: #a85f69;
    --brand-ink: #9c505b;
    --brand-text: #9c505b;
    --brand-strong: #8f4550;
    --on-brand: #2b1a20;
    --accent: #c9a227;
    --accent-text: #7d5f0a;
    --accent-soft: #f3d9c9;
    --on-accent: #2b1a20;
    --line: #ead9d2;
    --success: #4e8a6b;
    --success-text: #2f6b4f;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 10px 30px rgba(62, 42, 51, 0.08);
    --shadow-lg: 0 24px 60px rgba(62, 42, 51, 0.14);

    --a-bg: #fbf7f4;
    --a-surface: #ffffff;
    --a-surface-2: #fdf9f6;
    --a-ink: #3e2a33;
    --a-muted: #75606a;
    --a-line: #ead9d2;
    --a-brand: #c97b84;
    --a-brand-dark: #a85f69;
    --a-on-brand: #2b1a20;
    --a-accent: #c9a227;
    --a-sidebar: #3e2a33;
    --a-sidebar-2: #5a3a47;
    --a-radius: 16px;
    --a-radius-sm: 11px;
    --a-shadow: 0 1px 2px rgba(62, 42, 51, 0.04), 0 8px 24px rgba(62, 42, 51, 0.07);
}

/* ============================================================
   Nuit & Or — prune profond + or champagne
   ============================================================ */
[data-theme="premium"] {
    --bg: #120d12;
    --surface: #1c141b;
    --surface-2: #271c25;
    --ink: #f7edf2;
    --muted: #bfa8b4;
    --brand: #d987a6;
    --brand-dark: #b25f7f;
    --brand-ink: #f0c9a8;
    --on-brand: #1a1016;
    --accent: #d8b26a;
    --accent-soft: #3b2a34;
    --on-accent: #1a1206;
    --line: #352733;
    --success: #74c19c;
    --radius: 18px;
    --radius-sm: 11px;
    --radius-xs: 8px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);

    --a-bg: #f5eef1;
    --a-surface: #fffdfd;
    --a-surface-2: #f1e6ea;
    --a-ink: #2c1c25;
    --a-muted: #7c6370;
    --a-line: #e6d6dd;
    --a-brand: #8c3c5e;
    --a-brand-dark: #6b2946;
    --a-on-brand: #f5eef1;
    --a-accent: #b98d3e;
    --a-sidebar: #1a1117;
    --a-sidebar-2: #33202b;
    --a-radius: 15px;
    --a-radius-sm: 10px;
    --a-shadow: 0 1px 2px rgba(44, 28, 37, 0.05), 0 10px 28px rgba(44, 28, 37, 0.08);
}

[data-theme="premium"] .site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

[data-theme="premium"] .site-footer {
    background: #0c0a08;
    color: rgba(255, 255, 255, 0.82);
}

[data-theme="premium"] body.public-site .btn-primary,
[data-theme="premium"] body.public-site .btn-outline:hover,
[data-theme="premium"] body.public-site .pack-badge,
[data-theme="premium"] body.public-site .step-num,
[data-theme="premium"] body.public-site .pager-item.active,
[data-theme="premium"] body.public-site .menu-open-orders-btn,
[data-theme="premium"] body.public-site .menu-add-btn,
[data-theme="premium"] body.public-site .menu-cart-button,
[data-theme="premium"] body.public-site .menu-pill.active,
[data-theme="premium"] body.public-site .form-section,
[data-theme="premium"] body.public-site .resv-hero,
[data-theme="premium"] body.public-site .resv-day.is-active,
[data-theme="premium"] body.public-site .resv-room.is-active,
[data-theme="premium"] body.public-site .resv-slot.is-selected,
[data-theme="premium"] body.public-site .resv-cal-cell.is-active {
    color: var(--on-brand);
}

[data-theme="premium"] .brand-mark {
    color: var(--on-brand);
    box-shadow: 0 0 0 1px rgba(233, 197, 129, 0.25), 0 10px 26px rgba(0, 0, 0, 0.35);
}

[data-theme="premium"] .menu-item-media--empty,
[data-theme="premium"] .tracking-pop-box,
[data-theme="premium"] .resv-stepper-btn,
[data-theme="premium"] .resv-cal-nav {
    background: var(--surface);
    color: var(--ink);
}

[data-theme="premium"] .resv-track {
    background:
        repeating-linear-gradient(45deg, rgba(224, 178, 94, 0.06) 0 8px, transparent 8px 16px),
        var(--surface);
}

[data-theme="premium"] .resv-status-pending,
[data-theme="premium"] .resv-status-confirmed,
[data-theme="premium"] .resv-status-cancelled {
    background: var(--surface-2);
    color: var(--ink);
}

[data-theme="premium"] .hero-badge,
[data-theme="premium"] .eyebrow {
    background: var(--accent-soft);
    color: var(--brand-ink);
}

/* ============================================================
   Atelier Éclat — ivoire chaud + rose bronze
   ============================================================ */
[data-theme="minimal"] {
    --bg: #fcfaf7;
    --surface: #ffffff;
    --surface-2: #f5efe9;
    --ink: #2b2528;
    --muted: #75696f;
    --brand: #b76c7c;
    --brand-dark: #945162;
    --brand-ink: #945162;
    --on-brand: #211518;
    --accent: #c49a56;
    --accent-soft: #f4e7da;
    --on-accent: #241a10;
    --line: #e8dfd8;
    --success: #4f8a6f;
    --radius: 14px;
    --radius-sm: 9px;
    --radius-xs: 6px;
    --shadow: 0 12px 34px rgba(43, 37, 40, 0.07);
    --shadow-lg: 0 28px 70px rgba(43, 37, 40, 0.12);

    --a-bg: #f8f5f2;
    --a-surface: #ffffff;
    --a-surface-2: #f5efe9;
    --a-ink: #2b2528;
    --a-muted: #75696f;
    --a-line: #e8dfd8;
    --a-brand: #b76c7c;
    --a-brand-dark: #945162;
    --a-on-brand: #211518;
    --a-accent: #c49a56;
    --a-sidebar: #2b2528;
    --a-sidebar-2: #453a3f;
    --a-radius: 13px;
    --a-radius-sm: 9px;
    --a-shadow: 0 1px 2px rgba(43, 37, 40, 0.04), 0 8px 24px rgba(43, 37, 40, 0.06);
}

[data-theme="minimal"] .site-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
}

/* ============================================================
   Éditorial Couture — angles droits, lignes franches
   ============================================================ */
[data-theme="editorial"] {
    --bg: #f3efec;
    --surface: #fbf8f5;
    --surface-2: #e9e1dc;
    --ink: #161114;
    --muted: #625a5e;
    --brand: #161114;
    --brand-dark: #a8324f;
    --brand-ink: #161114;
    --on-brand: #f3efec;
    --accent: #a8324f;
    --accent-soft: #efe4e2;
    --on-accent: #fdf7f4;
    --line: #c9beb9;
    --success: #2f7d5b;
    --radius: 0;
    --radius-sm: 0;
    --radius-xs: 0;
    --shadow: none;
    --shadow-lg: none;
    --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --a-bg: #f3efec;
    --a-surface: #fbf8f5;
    --a-surface-2: #e9e1dc;
    --a-ink: #161114;
    --a-muted: #625a5e;
    --a-line: #c9beb9;
    --a-brand: #161114;
    --a-brand-dark: #161114;
    --a-on-brand: #f3efec;
    --a-accent: #a8324f;
    --a-sidebar: #161114;
    --a-sidebar-2: #161114;
    --a-radius: 0;
    --a-radius-sm: 0;
    --a-shadow: none;
}

[data-theme="editorial"] .site-header {
    background: var(--bg);
    backdrop-filter: none;
    border-bottom: 2px solid var(--ink);
}

[data-theme="editorial"] .nav {
    min-height: 64px;
}

[data-theme="editorial"] .nav-links {
    gap: 22px;
}

[data-theme="editorial"] .nav-links a {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

[data-theme="editorial"] .brand {
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

[data-theme="editorial"] .brand-mark {
    border-radius: 0;
    background: var(--ink);
    color: var(--on-brand);
}

[data-theme="editorial"] .lang-switch,
[data-theme="editorial"] .lang-switch a {
    border-radius: 0;
}

[data-theme="editorial"] .lang-switch {
    border: 1px solid var(--line);
    background: transparent;
    padding: 0;
}

[data-theme="editorial"] .lang-switch a.active {
    background: var(--surface-2);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
}

[data-theme="editorial"] .hero {
    padding: 64px 0 48px;
    background: none;
    border-bottom: 2px solid var(--ink);
}

[data-theme="editorial"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
}

[data-theme="editorial"] .hero-badge {
    border-radius: 0;
    padding: 6px 0;
    background: transparent;
    border-top: 2px solid var(--accent);
    color: var(--accent-text, var(--accent));
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

[data-theme="editorial"] .hero-title {
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.98;
    text-transform: uppercase;
    max-width: 14ch;
}

[data-theme="editorial"] .hero-subtitle {
    max-width: 620px;
    font-size: 1.06rem;
}

[data-theme="editorial"] .hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    border: 2px solid var(--ink);
    background: transparent;
    box-shadow: none;
    padding: 24px;
}

[data-theme="editorial"] .hero-card h3 {
    grid-column: 1 / -1;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

[data-theme="editorial"] .hero-stats {
    gap: 0;
    text-align: start;
    border: 1px solid var(--line);
}

[data-theme="editorial"] .hero-stat {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: transparent;
}

[data-theme="editorial"] .hero-stat:last-child {
    border-bottom: 0;
}

[data-theme="editorial"] .hero-list {
    margin: 0;
}

[data-theme="editorial"] .btn {
    border-radius: 0;
    padding: 13px 22px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

[data-theme="editorial"] .btn:hover {
    transform: none;
}

[data-theme="editorial"] .section {
    padding: 64px 0;
}

[data-theme="editorial"] .section-head {
    display: grid;
    grid-template-columns: minmax(130px, 210px) minmax(0, 1fr);
    gap: 6px 32px;
    max-width: none;
    border-top: 2px solid var(--ink);
    padding-top: 20px;
    margin-bottom: 32px;
}

[data-theme="editorial"] .section-head .eyebrow {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    padding-right: 20px;
    border-right: 1px solid var(--line);
    color: var(--accent-text, var(--accent));
}

[data-theme="editorial"] .section-head .section-title {
    grid-column: 2;
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

[data-theme="editorial"] .section-head .section-subtitle {
    grid-column: 2;
    margin: 0;
    max-width: 640px;
}

[data-theme="editorial"] .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

[data-theme="editorial"] .service-card {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 26px 30px;
    background: transparent;
}

[data-theme="editorial"] .service-card:nth-child(odd) {
    border-right: 1px solid var(--line);
}

[data-theme="editorial"] .service-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--surface-2);
}

[data-theme="editorial"] .service-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
}

[data-theme="editorial"] .packs-grid {
    gap: 0;
    border: 2px solid var(--ink);
}

[data-theme="editorial"] .pack-card {
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 22px;
    background: transparent;
}

[data-theme="editorial"] .pack-card:last-child {
    border-right: 0;
}

[data-theme="editorial"] .pack-card:hover {
    transform: none;
    box-shadow: none;
}

[data-theme="editorial"] .pack-card.featured {
    border-color: var(--line);
    background: var(--surface-2);
    box-shadow: none;
}

[data-theme="editorial"] .pack-badge {
    top: 0;
    border-radius: 0;
    padding: 4px 10px;
    background: var(--accent);
    letter-spacing: 0.1em;
}

[data-theme="editorial"] .pack-yearly {
    border-radius: 0;
}

[data-theme="editorial"] .steps {
    gap: 0;
    border-top: 1px solid var(--line);
}

[data-theme="editorial"] .step {
    text-align: start;
    padding: 22px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

[data-theme="editorial"] .step:last-child {
    border-right: 0;
}

[data-theme="editorial"] .step-num {
    width: 42px;
    height: 42px;
    margin: 0 0 14px;
    border-radius: 0;
    background: var(--ink);
    color: var(--on-brand);
    font-size: 1.1rem;
}

[data-theme="editorial"] .testimonials-grid {
    gap: 0;
    border: 1px solid var(--line);
}

[data-theme="editorial"] .testimonial {
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 24px;
    background: transparent;
}

[data-theme="editorial"] .testimonial:last-child {
    border-right: 0;
}

[data-theme="editorial"] .faq-list {
    max-width: none;
    gap: 0;
    border-top: 1px solid var(--line);
}

[data-theme="editorial"] .faq-item {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0 18px;
    background: transparent;
}

[data-theme="editorial"] .site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    border-top: 2px solid var(--ink);
}

[data-theme="editorial"] .site-footer h4 {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

[data-theme="editorial"] .badge,
[data-theme="editorial"] .restaurant-badge,
[data-theme="editorial"] .pager-item,
[data-theme="editorial"] .menu-pill,
[data-theme="editorial"] .resv-status-badge {
    border-radius: 0;
}

[data-theme="editorial"] .admin-sidebar {
    background-image: none;
}

[data-theme="editorial"] .admin-nav a,
[data-theme="editorial"] .admin-card,
[data-theme="editorial"] .stat-card,
[data-theme="editorial"] .admin-brand-icon {
    border-radius: 0;
}

[data-theme="editorial"] .admin-card h2 {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

[data-theme="editorial"] .admin-table th {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    [data-theme="editorial"] .hero-card {
        grid-template-columns: 1fr;
    }

    [data-theme="editorial"] .section-head {
        grid-template-columns: 1fr;
    }

    [data-theme="editorial"] .section-head .eyebrow {
        grid-column: 1;
        grid-row: auto;
        border-right: 0;
        padding-right: 0;
    }

    [data-theme="editorial"] .services-grid {
        grid-template-columns: 1fr;
    }

    [data-theme="editorial"] .service-card:nth-child(odd) {
        border-right: 0;
    }

    [data-theme="editorial"] .packs-grid {
        border: 0;
    }

    [data-theme="editorial"] .pack-card {
        border: 1px solid var(--line);
        border-bottom: 0;
    }

    [data-theme="editorial"] .pack-card:last-child {
        border-bottom: 1px solid var(--line);
    }

    [data-theme="editorial"] .steps {
        border-top: 0;
    }

    [data-theme="editorial"] .step {
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    [data-theme="editorial"] .testimonial {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    [data-theme="editorial"] .testimonial:last-child {
        border-bottom: 0;
    }
}

/* Variante « Cadré » — chaque bloc de service / fonctionnalité est encadré */
[data-theme="editorial"][data-variant="cadre"] .services-grid {
    gap: 18px;
    border-top: 0;
}

[data-theme="editorial"][data-variant="cadre"] .service-card {
    padding: 26px;
    border: 2px solid var(--ink);
    background: var(--surface);
}

[data-theme="editorial"][data-variant="cadre"] .service-card:nth-child(odd) {
    border-right: 2px solid var(--ink);
}

[data-theme="editorial"][data-variant="cadre"] .service-card:hover {
    transform: translate(-2px, -2px);
    background: var(--surface-2);
    box-shadow: 6px 6px 0 var(--ink);
}

[data-theme="editorial"][data-variant="cadre"] .packs-grid {
    gap: 18px;
    border: 0;
}

[data-theme="editorial"][data-variant="cadre"] .pack-card {
    border: 2px solid var(--ink);
    background: var(--surface);
}

[data-theme="editorial"][data-variant="cadre"] .pack-card.featured {
    background: var(--surface-2);
    box-shadow: 6px 6px 0 var(--ink);
}

[data-theme="editorial"][data-variant="cadre"] .steps {
    gap: 18px;
    border-top: 0;
}

[data-theme="editorial"][data-variant="cadre"] .step {
    border: 2px solid var(--ink);
    background: var(--surface);
}

[data-theme="editorial"][data-variant="cadre"] .testimonials-grid {
    gap: 18px;
    border: 0;
}

[data-theme="editorial"][data-variant="cadre"] .testimonial {
    border: 2px solid var(--ink);
    background: var(--surface);
}

[data-theme="editorial"][data-variant="cadre"] .faq-list {
    gap: 14px;
    border-top: 0;
}

[data-theme="editorial"][data-variant="cadre"] .faq-item {
    border: 2px solid var(--ink);
    background: var(--surface);
}

/* ============================================================
   Variante « Net » — structure droite, légers arrondis de contrôle
   ============================================================ */
[data-variant="net"] {
    --radius: 8px;
    --radius-sm: 6px;
    --radius-xs: 4px;
    --shadow: none;
    --shadow-lg: none;
    --a-radius: 8px;
    --a-radius-sm: 6px;
    --a-shadow: none;
}

[data-variant="net"] .btn,
[data-variant="net"] .btn-icon,
[data-variant="net"] .hero-badge,
[data-variant="net"] .pack-badge,
[data-variant="net"] .lang-switch,
[data-variant="net"] .lang-switch a,
[data-variant="net"] .brand-mark,
[data-variant="net"] .service-icon,
[data-variant="net"] .step-num,
[data-variant="net"] .pager-item,
[data-variant="net"] .menu-pill,
[data-variant="net"] .badge,
[data-variant="net"] .restaurant-badge,
[data-variant="net"] .resv-status-badge,
[data-variant="net"] .delivery-card,
[data-variant="net"] .delivery-card-icon,
[data-variant="net"] .delivery-btn,
[data-variant="net"] .delivery-card-status,
[data-variant="net"] .admin-nav a,
[data-variant="net"] .admin-card,
[data-variant="net"] .stat-card,
[data-variant="net"] .admin-brand-icon,
[data-variant="net"] .admin-user-avatar {
    border-radius: 6px;
}

[data-variant="net"] .service-card:hover,
[data-variant="net"] .pack-card:hover,
[data-variant="net"] .btn:hover {
    transform: none;
}

[data-variant="net"] :is(.form-section, .resv-notice, .alert, .hero-stats, .hero-stat, .pack-yearly, .admin-card, .stat-card) {
    border-radius: 6px;
}

/* ============================================================
   Variante « Carré » — angles vifs partout
   ============================================================ */
[data-variant="carre"] {
    --radius: 0;
    --radius-sm: 0;
    --shadow: none;
    --shadow-lg: none;
    --a-radius: 0;
    --a-radius-sm: 0;
    --a-shadow: none;
}

[data-variant="carre"] * {
    border-radius: 0 !important;
}

[data-variant="carre"] .service-card:hover,
[data-variant="carre"] .pack-card:hover,
[data-variant="carre"] .btn:hover {
    transform: none;
}

/* ============================================================
   Variante « Contour » — blocs cadrés et légèrement arrondis
   ============================================================ */
[data-variant="contour"] {
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: none;
    --shadow-lg: none;
    --a-radius: 12px;
    --a-radius-sm: 8px;
    --a-shadow: none;
}

[data-variant="contour"] :is(
    .hero-card,
    .service-card,
    .pack-card,
    .testimonial,
    .faq-item,
    .form-section,
    .resv-notice,
    .resv-calendar,
    .tracking-pop-box,
    .menu-item-media,
    .delivery-card,
    .admin-card,
    .stat-card
) {
    border: 2px solid var(--brand) !important;
    box-shadow: none !important;
}

[data-variant="contour"] :is(.btn, .btn-icon, .badge, .restaurant-badge, .resv-status-badge, .pack-badge, .hero-badge, .lang-switch, .lang-switch a) {
    border-radius: var(--radius-sm);
}

/* ============================================================
   Variante « Contour vif » — blocs cadrés sans arrondi ni ombres
   ============================================================ */
[data-variant="contour_net"] {
    --radius: 0;
    --radius-sm: 0;
    --shadow: none;
    --shadow-lg: none;
    --a-radius: 0;
    --a-radius-sm: 0;
    --a-shadow: none;
}

[data-variant="contour_net"] * {
    border-radius: 0 !important;
}

[data-variant="contour_net"] :is(
    .hero-card,
    .service-card,
    .pack-card,
    .testimonial,
    .faq-item,
    .form-section,
    .resv-notice,
    .resv-calendar,
    .tracking-pop-box,
    .menu-item-media,
    .delivery-card,
    .admin-card,
    .stat-card
) {
    border: 2px solid var(--brand) !important;
    box-shadow: none !important;
}

:is([data-variant="carre"], [data-variant="contour_net"]) :is(
    .brand-mark,
    .admin-brand-icon,
    .service-icon,
    .delivery-card-icon,
    .restaurant-logo,
    .discover-header-logo,
    .order-line-thumb
) {
    border-radius: 10px !important;
}

:is([data-variant="carre"], [data-variant="contour_net"]) :is(
    .step-num,
    .resv-step-num,
    .resv-cal-nav,
    .admin-user-avatar,
    .account-popover-avatar,
    .menu-logo,
    .restaurant-team-avatar,
    .restaurant-team-photo,
    .practitioner-preview-photo
) {
    border-radius: 50% !important;
}

:is([data-variant="carre"], [data-variant="contour_net"]) :is(
    .restaurant-cover,
    .menu-head-cover,
    .menu-item-media,
    .restaurant-card-media,
    .restaurant-card-media img,
    .restaurant-gallery a,
    .restaurant-gallery img,
    .discover-gallery a,
    .discover-gallery img,
    .discover-card-media,
    .discover-card-media > img,
    .resv-hero,
    .resv-hero-img,
    .resv-treatment-image,
    .resv-treatment-image img,
    .restaurant-hero
) {
    border-radius: 10px !important;
}

/* ============================================================
   Éditorial — variante « Arrondi »
   ============================================================ */
[data-theme="editorial"][data-variant="arrondi"] {
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(18, 18, 18, 0.08);
    --shadow-lg: 0 24px 60px rgba(18, 18, 18, 0.14);
    --a-radius: 14px;
    --a-radius-sm: 10px;
    --a-shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 8px 24px rgba(18, 18, 18, 0.06);
}

[data-theme="editorial"][data-variant="arrondi"] .btn {
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 0.82rem;
}

[data-theme="editorial"][data-variant="arrondi"] .brand-mark {
    border-radius: 10px;
}

[data-theme="editorial"][data-variant="arrondi"] .lang-switch {
    padding: 3px;
    border: 0;
    background: var(--surface-2);
}

[data-theme="editorial"][data-variant="arrondi"] .lang-switch,
[data-theme="editorial"][data-variant="arrondi"] .lang-switch a {
    border-radius: 999px;
}

[data-theme="editorial"][data-variant="arrondi"] .hero-badge {
    padding: 7px 14px;
    border-top: 0;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--brand-ink);
    font-size: 0.82rem;
    letter-spacing: normal;
    text-transform: none;
}

[data-theme="editorial"][data-variant="arrondi"] .hero-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

[data-theme="editorial"][data-variant="arrondi"] .services-grid {
    gap: 24px;
    border-top: 0;
}

[data-theme="editorial"][data-variant="arrondi"] .service-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

[data-theme="editorial"][data-variant="arrondi"] .service-card:nth-child(odd) {
    border-right: 1px solid var(--line);
}

[data-theme="editorial"][data-variant="arrondi"] .service-icon {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--brand-text, var(--brand));
}

[data-theme="editorial"][data-variant="arrondi"] .packs-grid {
    gap: 18px;
    border: 0;
}

[data-theme="editorial"][data-variant="arrondi"] .pack-card {
    padding: 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

[data-theme="editorial"][data-variant="arrondi"] .pack-card.featured {
    border-color: var(--brand-text, var(--brand));
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

[data-theme="editorial"][data-variant="arrondi"] .pack-badge {
    top: -13px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--brand);
}

[data-theme="editorial"][data-variant="arrondi"] .steps {
    gap: 24px;
    border-top: 0;
}

[data-theme="editorial"][data-variant="arrondi"] .step {
    padding: 12px;
    border: 0;
    background: transparent;
    text-align: center;
}

[data-theme="editorial"][data-variant="arrondi"] .step-num {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 50%;
}

[data-theme="editorial"][data-variant="arrondi"] .testimonials-grid {
    gap: 24px;
    border: 0;
}

[data-theme="editorial"][data-variant="arrondi"] .testimonial {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

[data-theme="editorial"][data-variant="arrondi"] .faq-list {
    gap: 12px;
    border-top: 0;
}

[data-theme="editorial"][data-variant="arrondi"] .faq-item {
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

[data-theme="editorial"][data-variant="arrondi"] .admin-nav a,
[data-theme="editorial"][data-variant="arrondi"] .admin-card,
[data-theme="editorial"][data-variant="arrondi"] .stat-card,
[data-theme="editorial"][data-variant="arrondi"] .admin-brand-icon {
    border-radius: var(--a-radius);
}

/* ============================================================
   Pages enseigne (annuaire, profil, réservation)
   Elles reprennent les variables du thème choisi tout en gardant
   leur mise en page dédiée (body.brand-site).
   ============================================================ */
[data-theme="classic"] body.brand-site {
    --bg: #fbf7f4;
    --surface: #ffffff;
    --surface-2: #f3e3d8;
    --ink: #3e2a33;
    --muted: #75606a;
    --brand: #c97b84;
    --brand-dark: #a85f69;
    --brand-text: #9c505b;
    --brand-strong: #8f4550;
    --on-brand: #2b1a20;
    --accent: #c9a227;
    --accent-text: #7d5f0a;
    --accent-soft: #f3d9c9;
    --on-accent: #2b1a20;
    --line: #ead9d2;
    --success: #4e8a6b;
    --success-text: #2f6b4f;
    --shadow: 0 18px 44px rgba(62, 42, 51, 0.10);
    --shadow-lg: 0 30px 74px rgba(62, 42, 51, 0.16);
    background:
        radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 34%),
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 30%),
        var(--bg);
}

[data-theme="premium"] body.brand-site {
    --bg: #120d12;
    --surface: #1c141b;
    --surface-2: #271c25;
    --ink: #f7edf2;
    --muted: #bfa8b4;
    --brand: #d987a6;
    --brand-dark: #b25f7f;
    --on-brand: #1a1016;
    --accent: #d8b26a;
    --accent-soft: #3b2a34;
    --on-accent: #1a1206;
    --line: #352733;
    --success: #74c19c;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 74px rgba(0, 0, 0, 0.6);
    background:
        radial-gradient(circle at 8% 4%, rgba(217, 135, 166, 0.12), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(216, 178, 106, 0.10), transparent 30%),
        var(--bg);
}

[data-theme="minimal"] body.brand-site {
    --bg: #fcfaf7;
    --surface: #ffffff;
    --surface-2: #f5efe9;
    --ink: #2b2528;
    --muted: #75696f;
    --brand: #b76c7c;
    --brand-dark: #945162;
    --on-brand: #211518;
    --accent: #c49a56;
    --accent-soft: #f4e7da;
    --on-accent: #241a10;
    --line: #e8dfd8;
    --success: #4f8a6f;
    --shadow: 0 16px 40px rgba(43, 37, 40, 0.08);
    --shadow-lg: 0 28px 66px rgba(43, 37, 40, 0.14);
    background:
        radial-gradient(circle at 8% 4%, rgba(183, 108, 124, 0.07), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(196, 154, 86, 0.08), transparent 30%),
        var(--bg);
}

[data-theme="editorial"] body.brand-site {
    --bg: #f3efec;
    --surface: #fbf8f5;
    --surface-2: #e9e1dc;
    --ink: #161114;
    --muted: #625a5e;
    --brand: #161114;
    --brand-dark: #a8324f;
    --on-brand: #f3efec;
    --accent: #a8324f;
    --accent-soft: #efe4e2;
    --on-accent: #fdf7f4;
    --line: #c9beb9;
    --success: #2f7d5b;
    --radius: 0;
    --radius-sm: 0;
    --shadow: none;
    --shadow-lg: none;
    background: var(--bg);
}

/* Variante « Net » sur les pages enseigne : contrôle droit adouci
   par de petits arrondis pour rester lisible et confortable. */
[data-variant="net"] body.brand-site .btn,
[data-variant="net"] body.brand-site .menu-pill,
[data-variant="net"] body.brand-site .menu-picker > summary,
[data-variant="net"] body.brand-site .restaurant-status,
[data-variant="net"] body.brand-site .restaurant-badge,
[data-variant="net"] body.brand-site .menu-open-orders-btn,
[data-variant="net"] body.brand-site .resv-stepper,
[data-variant="net"] body.brand-site .resv-stepper-btn,
[data-variant="net"] body.brand-site .resv-step-num,
[data-variant="net"] body.brand-site .resv-sim-duration,
[data-variant="net"] body.brand-site .resv-room,
[data-variant="net"] body.brand-site .resv-category-pill,
[data-variant="net"] body.brand-site .resv-category-count,
[data-variant="net"] body.brand-site .resv-pot-range,
[data-variant="net"] body.brand-site .resv-view-toggle,
[data-variant="net"] body.brand-site .resv-status-badge,
[data-variant="net"] body.brand-site .resv-cal-nav,
[data-variant="net"] body.brand-site .menu-cart-button span,
[data-variant="net"] body.brand-site .discover-highlights span,
[data-variant="net"] body.brand-site .discover-price {
    border-radius: 6px;
}

/* Thème Éditorial (variante Cadré) sur les pages enseigne : les contrôles
   gardent une ligne franche, avec un léger arrondi fonctionnel. */
[data-theme="editorial"][data-variant="cadre"] body.brand-site .btn,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .menu-pill,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .menu-picker > summary,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .restaurant-status,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .restaurant-badge,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .menu-open-orders-btn,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-stepper,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-stepper-btn,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-step-num,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-sim-duration,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-room,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-category-pill,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-category-count,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-pot-range,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-view-toggle,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-status-badge,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .resv-cal-nav,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .menu-cart-button span,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .discover-highlights span,
[data-theme="editorial"][data-variant="cadre"] body.brand-site .discover-price {
    border-radius: 6px;
}

/* ============================================================
   Émeraude Spa — vert profond, eucalyptus et or
   ============================================================ */
[data-theme="emerald"] {
    --bg: #f5faf7;
    --surface: #ffffff;
    --surface-2: #e3f0e9;
    --ink: #15291f;
    --muted: #5d7a6b;
    --brand: #2f7d5b;
    --brand-dark: #1f5c42;
    --brand-ink: #1f5c42;
    --on-brand: #f5faf7;
    --accent: #c9a24b;
    --accent-soft: #f3e6c8;
    --on-accent: #1d1608;
    --line: #d5e6dc;
    --success: #2f7d5b;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px #15291f14;
    --shadow-lg: 0 24px 60px #15291f24;

    --a-bg: #f4faf7;
    --a-surface: #ffffff;
    --a-surface-2: #e8f3ed;
    --a-ink: #15291f;
    --a-muted: #5d7a6b;
    --a-line: #d5e6dc;
    --a-brand: #2f7d5b;
    --a-brand-dark: #1f5c42;
    --a-on-brand: #f4faf7;
    --a-accent: #b98d3e;
    --a-sidebar: #12281d;
    --a-sidebar-2: #1f4231;
    --a-radius: 16px;
    --a-radius-sm: 11px;
    --a-shadow: 0 1px 2px #15291f0d, 0 8px 24px #15291f12;
}

/* ============================================================
   Lavande Douce — lilas poudré, prune et champagne
   ============================================================ */
[data-theme="lavender"] {
    --bg: #f9f7fc;
    --surface: #ffffff;
    --surface-2: #efe8f7;
    --ink: #2a2238;
    --muted: #75688a;
    --brand: #7a5aa6;
    --brand-dark: #5b3f82;
    --brand-ink: #5b3f82;
    --on-brand: #f9f7fc;
    --accent: #c9a24b;
    --accent-soft: #f1e7d2;
    --on-accent: #1d1608;
    --line: #e4dcef;
    --success: #4f8a6f;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px #2a223814;
    --shadow-lg: 0 24px 60px #2a223824;

    --a-bg: #f8f6fc;
    --a-surface: #ffffff;
    --a-surface-2: #f1ebf8;
    --a-ink: #2a2238;
    --a-muted: #75688a;
    --a-line: #e4dcef;
    --a-brand: #7a5aa6;
    --a-brand-dark: #5b3f82;
    --a-on-brand: #f8f6fc;
    --a-accent: #b98d3e;
    --a-sidebar: #241b31;
    --a-sidebar-2: #3b2d50;
    --a-radius: 16px;
    --a-radius-sm: 11px;
    --a-shadow: 0 1px 2px #2a22380d, 0 8px 24px #2a223812;
}

/* ============================================================
   Terracotta Soleil — terre cuite, sable et miel
   ============================================================ */
[data-theme="terracotta"] {
    --bg: #fdf8f3;
    --surface: #ffffff;
    --surface-2: #f7e8db;
    --ink: #33241b;
    --muted: #82695a;
    --brand: #b5623c;
    --brand-dark: #8a4527;
    --brand-ink: #8a4527;
    --on-brand: #180c04;
    --accent: #d3a24f;
    --accent-soft: #f5e6c9;
    --on-accent: #241708;
    --line: #eedccc;
    --success: #4f8a6f;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px #33241b14;
    --shadow-lg: 0 24px 60px #33241b24;

    --a-bg: #fcf7f2;
    --a-surface: #ffffff;
    --a-surface-2: #f8ebe0;
    --a-ink: #33241b;
    --a-muted: #82695a;
    --a-line: #eedccc;
    --a-brand: #b5623c;
    --a-brand-dark: #8a4527;
    --a-on-brand: #fcf7f2;
    --a-accent: #c08f3e;
    --a-sidebar: #2c1c13;
    --a-sidebar-2: #4a3021;
    --a-radius: 16px;
    --a-radius-sm: 11px;
    --a-shadow: 0 1px 2px #33241b0d, 0 8px 24px #33241b12;
}

/* ============================================================
   Onyx & Rose — onyx, rose poudré et or
   ============================================================ */
[data-theme="onyx"] {
    --bg: #120f12;
    --surface: #1b161b;
    --surface-2: #261f26;
    --ink: #f6edf3;
    --muted: #b9a7b3;
    --brand: #e08aa8;
    --brand-dark: #b85f83;
    --brand-ink: #f3cfdd;
    --on-brand: #180f14;
    --accent: #c9a24b;
    --accent-soft: #33262d;
    --on-accent: #1d1608;
    --line: #352b33;
    --success: #74c19c;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 10px 30px #f6edf314;
    --shadow-lg: 0 24px 60px #f6edf324;

    --a-bg: #f5f1f4;
    --a-surface: #ffffff;
    --a-surface-2: #f2eaef;
    --a-ink: #241a20;
    --a-muted: #776371;
    --a-line: #e5d9e0;
    --a-brand: #9c3e62;
    --a-brand-dark: #7a2c4a;
    --a-on-brand: #f5f1f4;
    --a-accent: #b98d3e;
    --a-sidebar: #150f14;
    --a-sidebar-2: #2c2028;
    --a-radius: 15px;
    --a-radius-sm: 10px;
    --a-shadow: 0 1px 2px #241a200d, 0 8px 24px #241a2012;
}

/* Fonds sombres des thèmes nocturnes */
[data-theme="onyx"] .site-footer {
    background: #0b090b;
}

[data-theme="onyx"] .btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
}

/* Pages enseigne : les nouveaux thèmes reprennent leur palette */
[data-theme="emerald"] body.brand-site {
    --bg: #f5faf7;
    --surface: #ffffff;
    --surface-2: #e3f0e9;
    --ink: #15291f;
    --muted: #5d7a6b;
    --brand: #2f7d5b;
    --brand-dark: #1f5c42;
    --on-brand: #f5faf7;
    --accent: #c9a24b;
    --accent-soft: #f3e6c8;
    --on-accent: #1d1608;
    --line: #d5e6dc;
    --success: #2f7d5b;
    --shadow: 0 18px 44px rgba(21, 41, 31, 0.10);
    --shadow-lg: 0 30px 74px rgba(21, 41, 31, 0.16);
    background: var(--bg);
}

[data-theme="lavender"] body.brand-site {
    --bg: #f9f7fc;
    --surface: #ffffff;
    --surface-2: #efe8f7;
    --ink: #2a2238;
    --muted: #75688a;
    --brand: #7a5aa6;
    --brand-dark: #5b3f82;
    --on-brand: #f9f7fc;
    --accent: #c9a24b;
    --accent-soft: #f1e7d2;
    --on-accent: #1d1608;
    --line: #e4dcef;
    --success: #4f8a6f;
    --shadow: 0 18px 44px rgba(42, 34, 56, 0.10);
    --shadow-lg: 0 30px 74px rgba(42, 34, 56, 0.16);
    background: var(--bg);
}

[data-theme="terracotta"] body.brand-site {
    --bg: #fdf8f3;
    --surface: #ffffff;
    --surface-2: #f7e8db;
    --ink: #33241b;
    --muted: #82695a;
    --brand: #b5623c;
    --brand-dark: #8a4527;
    --on-brand: #180c04;
    --accent: #d3a24f;
    --accent-soft: #f5e6c9;
    --on-accent: #241708;
    --line: #eedccc;
    --success: #4f8a6f;
    --shadow: 0 18px 44px rgba(51, 36, 27, 0.10);
    --shadow-lg: 0 30px 74px rgba(51, 36, 27, 0.16);
    background: var(--bg);
}

[data-theme="onyx"] body.brand-site {
    --bg: #120f12;
    --surface: #1b161b;
    --surface-2: #261f26;
    --ink: #f6edf3;
    --muted: #b9a7b3;
    --brand: #e08aa8;
    --brand-dark: #b85f83;
    --on-brand: #180f14;
    --accent: #c9a24b;
    --accent-soft: #33262d;
    --on-accent: #1d1608;
    --line: #352b33;
    --success: #74c19c;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 74px rgba(0, 0, 0, 0.6);
    background: var(--bg);
}

/* ============================================================
   Variantes sans arrondi : mixte léger
   Les champs, les images et les fonds décoratifs gardent un
   léger arrondi pour rester agréables à l'œil.
   ============================================================ */
:is([data-variant="net"], [data-theme="editorial"][data-variant="cadre"]) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
:is([data-variant="net"], [data-theme="editorial"][data-variant="cadre"]) select,
:is([data-variant="net"], [data-theme="editorial"][data-variant="cadre"]) textarea {
    border-radius: 8px;
}

:is([data-variant="net"], [data-theme="editorial"][data-variant="cadre"]) :is(.hero-card, .menu-item-media, .menu-head-cover, .restaurant-cover, .restaurant-gallery a, .restaurant-gallery img, .discover-gallery a, .discover-gallery img, .discover-card-media, .resv-hero-img, .menu-cat-head img) {
    border-radius: 10px;
}

:is([data-variant="net"], [data-theme="editorial"][data-variant="cadre"]) :is(.brand-mark, .discover-header-logo, .discover-brand-logo, .restaurant-logo, .menu-logo, .restaurant-team-avatar, .account-popover-avatar, .admin-user-avatar, .practitioner-preview-photo) {
    border-radius: 50%;
}

/* ============================================================
   Adoucissement des thèmes angulaires
   Les blocs structurels restent francs, mais les contrôles et
   les cartes reçoivent un petit arrondi pour éviter la dureté
   d'une règle « zéro arrondi » appliquée partout.
   ============================================================ */
[data-theme="editorial"] :is(.btn, .btn-icon, .hero-badge, .pack-badge, .lang-switch, .lang-switch a, .badge, .restaurant-badge, .pager-item, .menu-pill, .resv-status-badge, .step-num, .service-icon, .admin-nav a) {
    border-radius: 6px;
}

[data-theme="editorial"] :is(.hero-card, .service-card, .pack-card, .testimonial, .faq-item, .admin-card, .stat-card, .admin-brand-icon, .review-card, .restaurant-card, .menu-item, .brand-mark, .pack-yearly, .form-section, .resv-notice, .alert) {
    border-radius: 8px;
}

[data-theme="editorial"] :is(.hero-stats, .hero-stat) {
    border-radius: 6px;
}

/* ============================================================
   Contraste des pages enseigne
   Un libellé posé sur un fond de marque doit toujours trancher :
   le thème clair utilise un texte clair, le thème sombre un texte
   sombre, sans jamais forcer une couleur unique.
   ============================================================ */
[data-theme] body.brand-site :is(.btn-primary, .btn-outline:hover, .menu-open-orders-btn, .menu-add-btn, .menu-cart-button, .menu-pill.active, .step-num, .pack-badge, .resv-day.is-active, .resv-room.is-active, .resv-slot.is-selected) {
    color: var(--on-brand);
}

[data-theme] body.brand-site .resv-hero {
    color: var(--on-brand);
}

[data-theme] body.brand-site .resv-slot.is-selected .resv-slot-meta {
    color: color-mix(in srgb, var(--on-brand) 82%, transparent);
}
