:root {
    --color-bg: #f7f1e8;
    --color-surface: #fffaf2;
    --color-wine: #681f35;
    --color-wine-dark: #3f1020;
    --color-vine: #415c38;
    --color-gold: #c49a4a;
    --color-text: #25211d;
    --color-muted: #756b61;
    --color-border: #e1d4c3;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--color-text);
    background: radial-gradient(circle at top left, #fff8ee 0%, var(--color-bg) 45%, #efe5d7 100%);
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.container-wide {
    width: min(1480px, 97%);
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 250, 242, 0.92);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
}

.brand {
    font-size: 1.2rem;
    color: var(--color-wine-dark);
    text-decoration: none;
    font-weight: 700;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
}

nav a:hover,
.nav-admin {
    background: var(--color-wine);
    color: #fff;
}

.hero {
    padding: 68px 0 52px;
}

.section-band {
    position: relative;
}

.section-band-hero {
    background: linear-gradient(180deg, rgba(255, 248, 236, 0.88) 0%, rgba(243, 231, 215, 0.68) 100%);
    border-bottom: 1px solid rgba(225, 212, 195, 0.7);
}

.section-band-domaine {
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.85) 0%, rgba(241, 231, 216, 0.55) 100%);
    border-top: 1px solid rgba(225, 212, 195, 0.7);
    border-bottom: 1px solid rgba(225, 212, 195, 0.7);
}

.section-band-cuvees {
    margin-top: 12px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.8) 0%, rgba(244, 235, 223, 0.55) 100%);
    border-top: 1px solid rgba(225, 212, 195, 0.7);
    border-bottom: 1px solid rgba(225, 212, 195, 0.7);
    padding-top: 18px;
    padding-bottom: 22px;
}

.section-band-contact {
    margin-top: 12px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.76) 0%, rgba(243, 234, 221, 0.5) 100%);
    border-top: 1px solid rgba(225, 212, 195, 0.7);
    border-bottom: 1px solid rgba(225, 212, 195, 0.7);
    padding-top: 18px;
    padding-bottom: 22px;
}

.section-band-tarifs {
    margin-top: 12px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.78) 0%, rgba(242, 232, 217, 0.56) 100%);
    border-top: 1px solid rgba(225, 212, 195, 0.7);
    border-bottom: 1px solid rgba(225, 212, 195, 0.7);
    padding-top: 18px;
    padding-bottom: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.75fr) minmax(620px, 1.25fr);
    align-items: center;
    gap: 34px;
}

.hero-copy {
    min-width: 0;
}

.hero-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 38px rgba(63, 16, 32, 0.14);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-visual:hover {
    box-shadow: 0 22px 44px rgba(63, 16, 32, 0.17);
    border-color: rgba(196, 154, 74, 0.65);
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 1672 / 941;
    height: auto;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.hero-visual:hover img {
    transform: scale(1.01);
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.14;
    margin: 10px 0;
    max-width: 900px;
}

.hero p {
    max-width: 840px;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.eyebrow {
    color: var(--color-vine);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.section {
    padding: 34px 0;
}

.domaine-showcase {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding-top: 28px;
    padding-bottom: 28px;
}

.domaine-image {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 14px 30px rgba(63, 16, 32, 0.12);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.domaine-image:hover {
    box-shadow: 0 18px 34px rgba(63, 16, 32, 0.15);
    border-color: rgba(196, 154, 74, 0.65);
}

.domaine-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.domaine-image:hover img {
    transform: scale(1.012);
}

.domaine-copy {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 10px 22px rgba(63, 16, 32, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.domaine-copy:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(63, 16, 32, 0.1);
    border-color: rgba(196, 154, 74, 0.55);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.pricing-intro {
    max-width: 920px;
    color: var(--color-muted);
}

.pricing-list {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.pricing-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) minmax(180px, 0.28fr);
    gap: 18px;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 10px 22px rgba(63, 16, 32, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.pricing-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(63, 16, 32, 0.11);
    border-color: rgba(196, 154, 74, 0.55);
}

.pricing-row-image {
    display: grid;
    place-items: center;
    height: 142px;
    background: #f8efdf;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

.pricing-row-image img {
    width: 86px;
    height: 124px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.pricing-row-content h2 {
    margin: 0 0 6px;
}

.pricing-row-content p {
    margin: 0;
    color: var(--color-muted);
}

.pricing-row-price {
    text-align: right;
}

.pricing-row-price strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-wine-dark);
}

.pricing-row-price span,
.pricing-row-price small {
    display: block;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.pricing-faq {
    margin-top: 18px;
}

.pricing-cta {
    margin-top: 22px;
}

.two-col {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card,
.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 10px 22px rgba(63, 16, 32, 0.06);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.feature-cards .card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.feature-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-cards .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(63, 16, 32, 0.11);
    border-color: rgba(196, 154, 74, 0.55);
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-grid span {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 12px;
}

.btn {
    border: none;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 700;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(63, 16, 32, 0.14);
    filter: brightness(1.03);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
.example-btn:focus-visible,
.cuvee-image-button:focus-visible,
.image-modal-close:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-wine), var(--color-wine-dark));
    color: #fff;
}

.btn-secondary,
.btn-mini {
    background: #ede2d2;
    color: var(--color-wine-dark);
    border: 1px solid rgba(63, 16, 32, 0.08);
}

.btn-secondary:hover,
.btn-mini:hover {
    box-shadow: 0 6px 12px rgba(63, 16, 32, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #8b1a1a, #5c1010);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.3);
    filter: brightness(1.08);
}

.btn-mini {
    padding: 7px 10px;
    border-radius: 10px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.center {
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px;
    font-size: 1rem;
}

.full {
    grid-column: 1 / -1;
}

.notice.success {
    background: #e7f0e4;
    border: 1px solid #aec9a6;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.notice.error {
    background: #f7e5e5;
    border: 1px solid #d19b9b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.admin-login-card {
    box-shadow: 0 16px 34px rgba(63, 16, 32, 0.12);
    border-radius: 18px;
}

.admin-login-card h1 {
    margin-top: 6px;
}

.admin-login-help {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.badge {
    background: rgba(196, 154, 74, 0.2);
    padding: 3px 8px;
    border-radius: 999px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.ai-config-card {
    margin: 16px 0;
}

.ai-toggle-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 8px 0 12px;
}

.toggle-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.map-card {
    margin-top: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 10px 22px rgba(63, 16, 32, 0.06);
}

.map-card h2 {
    margin-top: 0;
}

.map-frame {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 14px;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.assistant-box {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.assistant-box input {
    flex: 1;
}

.assistant-engine-badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #efe6d8;
    color: var(--color-wine-dark);
    font-weight: 700;
    font-size: 0.86rem;
}

.assistant-engine-badge.live {
    background: rgba(65, 92, 56, 0.16);
    border-color: rgba(65, 92, 56, 0.4);
    color: var(--color-vine);
}

.assistant-engine-badge.fallback {
    background: rgba(196, 154, 74, 0.18);
    border-color: rgba(196, 154, 74, 0.5);
    color: #6d531f;
}

.assistant-engine-badge.pending {
    background: rgba(104, 31, 53, 0.14);
    border-color: rgba(104, 31, 53, 0.35);
    color: var(--color-wine-dark);
}

.assistant-response-card {
    position: relative;
    padding-bottom: 118px;
}

.assistant-ai-logo {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 96px;
    height: 96px;
    object-fit: contain;
    opacity: 0.95;
}

.example-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.example-btn {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 999px;
    padding: 7px 11px;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease;
}

.example-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(63, 16, 32, 0.1);
    filter: brightness(1.02);
}

.example-btn:active {
    transform: translateY(0) scale(0.98);
}

.api-output,
pre {
    white-space: pre-wrap;
    background: #fcf8f1;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px;
}

.cuvee-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.cuvee-card:hover,
.cuvee-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(63, 16, 32, 0.15);
    border-color: rgba(196, 154, 74, 0.7);
}

.cuvee-image-button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.cuvee-image-frame {
    position: relative;
    width: 100%;
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 16px;
    background: linear-gradient(180deg, #f9f2e6 0%, #f3e8d7 100%);
    transition: transform 0.28s ease;
}

.cuvee-image {
    width: min(100%, 300px);
    max-height: 430px;
    object-fit: contain;
    display: block;
}

.cuvee-card:hover .cuvee-image-frame,
.cuvee-card:focus-within .cuvee-image-frame {
    transform: translateY(-4px);
}

.cuvee-image-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(63, 16, 32, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 6px 10px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.cuvee-image-button:hover .cuvee-image-hint,
.cuvee-image-button:focus-visible .cuvee-image-hint {
    opacity: 1;
    transform: translateY(0);
}

.cuvee-card h2,
.cuvee-card p,
.cuvee-card .btn,
.cuvee-card .api-output {
    margin-left: 18px;
    margin-right: 18px;
}

.cuvee-card h2 {
    margin-top: 14px;
}

.cuvee-card .api-output,
.cuvee-card .btn {
    margin-bottom: 16px;
}

.cuvees-cta {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(63, 16, 32, 0.1);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.cuvees-cta:hover {
    box-shadow: 0 16px 34px rgba(63, 16, 32, 0.13);
    border-color: rgba(196, 154, 74, 0.55);
}

.cuvees-cta img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.cuvees-cta:hover img {
    transform: scale(1.025);
}

.cuvees-cta-copy {
    padding: 20px 24px;
}

.cuvees-cta-copy h2 {
    margin-top: 0;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.image-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 33, 29, 0.72);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.image-modal.is-open .image-modal-overlay {
    opacity: 1;
    cursor: pointer;
}

.image-modal-panel {
    position: relative;
    z-index: 2;
    width: min(760px, 92vw);
    margin: 5vh auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 24px 48px rgba(37, 33, 29, 0.35);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-modal.is-open .image-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    color: var(--color-wine-dark);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.22s ease, color 0.22s ease;
}

.image-modal-close:hover {
    transform: scale(1.08);
    color: var(--color-wine);
}

.image-modal-img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    margin-top: 10px;
    border-radius: 14px;
    background: #f8efdf;
}

.muted {
    color: var(--color-muted);
}

.degustation-banner {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 22px rgba(63, 16, 32, 0.08);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.degustation-banner:hover {
    box-shadow: 0 18px 34px rgba(63, 16, 32, 0.15);
    border-color: rgba(196, 154, 74, 0.65);
}

.degustation-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.degustation-banner:hover img {
    transform: scale(1.02);
}

.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
    padding: 22px 0;
    color: var(--color-muted);
}

.footer-admin-link {
    color: var(--color-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
    color: var(--color-wine);
    border-bottom-color: var(--color-wine);
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .example-btn,
    .cuvee-image-button,
    .image-modal-close,
    .pricing-row,
    .btn-danger,
    .hero-visual,
    .domaine-image,
    .hero-visual img,
    .domaine-image img,
    .feature-cards .card,
    .domaine-copy,
    .cuvees-cta,
    .cuvees-cta img,
    .cuvee-image-frame,
    .degustation-banner,
    .degustation-banner img {
        transition: none;
    }

    .btn:hover,
    .example-btn:hover,
    .btn:active,
    .example-btn:active,
    .image-modal-close:hover,
    .btn-danger:hover,
    .pricing-row:hover,
    .hero-visual:hover,
    .domaine-image:hover,
    .feature-cards .card:hover,
    .hero-visual:hover img,
    .domaine-image:hover img,
    .domaine-copy:hover,
    .degustation-banner:hover,
    .degustation-banner:hover img,
    .cuvees-cta:hover img {
        transform: none;
    }
}

@media (max-width: 1100px) {
    .feature-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .assistant-box {
        flex-direction: column;
    }

    .hero-grid,
    .domaine-showcase,
    .cuvees-cta {
        grid-template-columns: 1fr;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .pricing-row {
        grid-template-columns: 82px 1fr;
    }

    .pricing-row-price {
        grid-column: 1 / -1;
        text-align: left;
        border-top: 1px solid var(--color-border);
        padding-top: 10px;
    }

    .pricing-row-image {
        height: 110px;
    }

    .pricing-row-image img {
        width: 68px;
        height: 96px;
    }

    .hero-visual img,
    .domaine-image img {
        height: 280px;
    }

    .container-wide {
        width: min(1480px, 95%);
    }

    .cuvee-image-frame {
        min-height: 300px;
    }

    .image-modal-panel {
        margin-top: 8vh;
        padding: 16px;
    }
}
