/* ========================= */
/* PALETTE BORDEAUX          */
/* ========================= */

:root {
    --bordeaux: #7a0f2e;
    --bordeaux-dark: #4d0a1e;
    --bordeaux-light: #b44a61;
    --cream: #f7f3f1;
    --cream-soft: #f0e8e4;
    --gold: #c7a46a;
}

/* ========================= */
/* RESET SIMPLE & BASE       */
/* ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: var(--cream);
    color: #2b1b1f;
}

/* ========================= */
/* HEADER AVEC IMAGE         */
/* ========================= */

.site-header {
    position: relative;
    height: 260px;
    background-image:
        url("assets/images/header-bouteille.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: flex-end;
    padding-bottom: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

/* Overlay sombre bordeaux pour lisibilité du texte */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 0, 0, 0.15) 0%,
        rgba(20, 0, 0, 0.75) 100%
    );
}

.header-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.brand-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.95;
    margin-top: 4px;
    color: var(--cream-soft);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ========================= */
/* MAIN STRUCTURE            */
/* ========================= */

.main-container {
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.intro {
    margin-bottom: 24px;
}

.intro h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bordeaux-dark);
}

.intro p {
    max-width: 700px;
    font-size: 0.98rem;
    color: #5a4a4e;
}

/* ========================= */
/* TABS BORDEAUX             */
/* ========================= */

.tabs-section {
    margin-top: 16px;
}

.tabs {
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 24px;
    box-shadow: 0 10px 30px rgba(120, 0, 30, 0.15);
    border: 1px solid rgba(120, 0, 30, 0.15);
}

/* Inputs invisibles */
.tabs input[type="radio"] {
    display: none;
}

/* Labels onglets */
.tab-label {
    display: inline-block;
    padding: 10px 18px;
    margin-right: 8px;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--cream-soft);
    color: var(--bordeaux-dark);
    border: 1px solid rgba(120, 0, 30, 0.15);
    transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
    user-select: none;
}

.tab-label:hover {
    background: var(--bordeaux-light);
    color: white;
}

/* Label actif */
#tab-grand-public:checked + label[for="tab-grand-public"],
#tab-professionnels:checked + label[for="tab-professionnels"] {
    background: var(--bordeaux);
    color: #fff;
    border-color: var(--bordeaux-dark);
}

/* Contenu */
.tab-content {
    display: none;
    margin-top: 16px;
    animation: fadeIn 0.25s ease-out;
}

#tab-grand-public:checked ~ #grand-public-content,
#tab-professionnels:checked ~ #professionnels-content {
    display: block;
}

/* ========================= */
/* CARTES VINS               */
/* ========================= */

.wine-grid,
.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.wine-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(120, 0, 30, 0.15);
    box-shadow: 0 12px 32px rgba(120, 0, 30, 0.08);
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.wine-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(120, 0, 30, 0.16);
}

.wine-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bordeaux-dark);
}

.wine-type {
    font-size: 0.85rem;
    color: var(--bordeaux-light);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.wine-notes {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #3a292e;
}

.wine-details {
    font-size: 0.88rem;
    color: #5b434a;
}

/* ========================= */
/* BLOC CONTACT PRO          */
/* ========================= */

.contact-block {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(120, 0, 30, 0.25);
}

.contact-block h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bordeaux-dark);
}

.contact-email a {
    color: var(--bordeaux);
    text-decoration: none;
    font-weight: 600;
}

.contact-email a:hover {
    text-decoration: underline;
    color: var(--bordeaux-light);
}

/* ========================= */
/* FOOTER                    */
/* ========================= */

.site-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--bordeaux-dark);
    padding: 16px 0 24px;
    background: #fff;
    border-top: 1px solid rgba(120, 0, 30, 0.15);
}

/* ========================= */
/* ANIMATIONS                */
/* ========================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */

@media (max-width: 600px) {
    .header-inner {
        align-items: flex-start;
    }

    .intro h1 {
        font-size: 1.6rem;
    }

    .tab-label {
        margin-bottom: 6px;
    }

    .tabs {
        padding: 12px 12px 20px;
    }
}
