/* 
* Champagne Champion - Styles principaux
* Polices : Playfair Display (titres) et Montserrat (texte)
*/

/* Variables */
:root {
    --white: #ffffff;
    --black: #1a1a1a;
    --brown: #2E1F11;
    --beige: #CAAE93;
    --cream: #F8F5F0;
    --gold: #D4AF37;
    --transition: all 0.3s ease;
    --header-height: 70px;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--beige);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--beige);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0;
}

.logo {
    height: 60px;
    width: 60px;
    margin-right: 15px;
}

.desktop-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-weight: 400;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--beige);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--black);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: calc(100% - 100px);
    height: 100%;
    background-color: var(--white);
    z-index: 999;
    padding: calc(var(--header-height) + 1rem) 2rem 2rem;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.menu-open .mobile-nav {
    left: 0;
}

body.menu-open .burger-menu span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .burger-menu span:nth-child(2) {
    opacity: 0;
}

body.menu-open .burger-menu span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Bouton de fermeture du menu mobile */
.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1002;
}

.close-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--black);
    position: absolute;
    top: 50%;
    left: 0;
}

.close-menu span:first-child {
    transform: rotate(45deg);
}

.close-menu span:last-child {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 60vh;
    background-image: url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--beige);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--beige);
}

/* Family Section */
.family {padding: 2rem 0;background: var(--white);}
.family .container {display: flex;flex-wrap: wrap;align-items: flex-start;}
.family .container > h2 {width: 100%;margin-bottom: 2rem;}
.family .container > div {text-align: left;}

/* Family Responsive */
/* 2 colonnes sur grand écran */
@media (min-width: 992px) {
    .family .container > div:first-of-type {flex: 0 0 30%;}
    .family .container > div:last-of-type {flex: 0 0 70%;padding-left: 2rem;}
}

/* 1 colonne sur écrans moyens et petits */
@media (max-width: 991px) {
    .family .container > div {flex: 0 0 100%;margin-bottom: 1.5rem;}
    .family .container > div:first-of-type {text-align: center;}
}

/* Stats Section */
.stats {padding: 2rem 0;background: var(--cream);}
.stats .container {max-width: 1200px;margin: 0 auto;}
.stats-container {display: flex;flex-wrap: wrap;justify-content: space-around;}
.stat-item {text-align: center;margin-bottom: 2rem;}
.stat-number {font-family: 'Playfair Display', serif;font-size: 3.5rem;color: var(--beige);margin-bottom: 0.5rem;}
.stat-label {display: block;}

/* Stats Responsive */
/* 4 chiffres sur une ligne (grands écrans) */
@media (min-width: 992px) {
    .stat-item {flex: 0 0 25%;}
}

/* 2 chiffres par ligne (écrans moyens) */
@media (min-width: 576px) and (max-width: 991px) {
    .stat-item {flex: 0 0 50%;}
}

/* 1 chiffre par ligne (petits écrans) */
@media (max-width: 575px) {
    .stat-item {flex: 0 0 100%;}
}

/* Values Section */
.values {padding: 2rem 0;background: var(--white);}
.values-container {display: flex;flex-wrap: wrap;justify-content: space-between;}
.value-item {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cream);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-item:hover::before {
    transform: translateY(0);
}

.value-item:hover .value-icon {
    transform: scale(1.2);
    color: var(--brown);
}

.value-item:hover h3 {
    color: var(--brown);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--beige);
    margin-bottom: -1rem;
    transition: all 0.4s ease;
}

/* Values Responsive */
/* 3 colonnes sur grand écran */
@media (min-width: 992px) {
    .value-item {flex: 0 0 30%;}
}

/* 1 colonne sur écrans moyens et petits */
@media (max-width: 991px) {
    .value-item {flex: 0 0 100%;margin-bottom: 2rem;}
}

/* Avis Section */
.avis {padding: 2rem 0;background: var(--cream);}
.avis .container {max-width: 900px;margin: 0 auto;}

/* Carrousel d'avis */
.avis-carousel {
    position: relative;
    margin: 2rem auto;
}

.avis-slides {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.avis-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.avis-slide.active {
    opacity: 1;
    visibility: visible;
}

.avis-card {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.avis-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.avis-stars {
    margin-bottom: 1.5rem;
    color: var(--beige);
}

.avis-stars i {
    font-size: 1rem;
    margin: 0 2px;
}

.avis-texte {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.avis-date {
    color: #999;
    font-size: 0.9rem;
}

/* Navigation du carrousel */
.avis-navigation {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.avis-prev, .avis-next {
    background-color: transparent;
    border: none;
    color: var(--beige);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

.avis-prev:hover, .avis-next:hover {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .avis-card {
        padding: 1.5rem;
    }
    
    .avis-slides {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .avis-slides {
        min-height: 400px;
    }
}




/* Featured Cuvées */
.featured-cuvees {padding: 8rem 0;background-color: var(--white);}
.cuvees-grid {display: grid;grid-template-columns: repeat(3, 1fr);gap: 2rem;}
.cuvee-card {border: 1px solid rgba(0, 0, 0, 0.1);border-radius: 5px;overflow: hidden;transition: var(--transition);}
.cuvee-card:hover {box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);}
.cuvee-image {height: 250px;overflow: hidden;}
.cuvee-image img {width: 100%;height: 100%;object-fit: cover;transition: var(--transition);}
.cuvee-card:hover .cuvee-image img {transform: scale(1.05);}
.cuvee-info {padding: 1.5rem;}
.cuvee-info h3 {margin-bottom: 0.5rem;}

/* Learn More */
.learn-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    position: relative;
}

.learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--beige);
    transition: width 0.3s ease;
}

.learn-more:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--brown);
    padding: 3rem 0 0.5rem;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    padding: 0 25px;
}

/* Distribution de l'espace entre les colonnes */
.footer-col:first-child {
    flex: 0 0 30%;
    align-items: center;
    justify-content: center;
}

.footer-col:nth-child(2) {
    flex: 0 0 30%;
    align-items: flex-start;
    padding-left: 5%;
}

.footer-col:last-child {
    flex: 0 0 30%;
    align-items: flex-start;
    padding-left: 5%;
}



.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
}

.footer-logo .logo {
    max-width: 80px;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.tagline::before,
.tagline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: var(--white);
}

.tagline::before {
    left: -15px;
}

.tagline::after {
    right: -15px;
}

.footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--white);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
}

/* Styles pour le footer-bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.footer-bottom .copyright p {
    margin: 0;
    line-height: 1.2;
}

/* Responsive pour le footer-bottom */
@media (max-width: 768px) {
    .footer-bottom {
        display: flex;
        flex-direction: row; /* Maintenir l'alignement horizontal */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        text-align: left;
        padding-bottom: 10px; /* Espace en bas pour le sous-menu */
    }
    
    /* Ajustement de la position du language-switcher en mobile */
    .language-switcher {
        position: static; /* Position normale dans le flux */
        display: flex;
        align-items: center;
        margin: 0;
    }
    
    /* Positionnement du sous-menu en mobile */
    .language-dropdown {
        position: absolute; /* Changé de fixed à absolute */
        bottom: auto;
       /* top: 25px; *//* Position fixe depuis le haut */
        right: 10px;
        left: auto;
        margin-top: 5px;
    }
    
    .language-selector,
    .current-language {
        display: flex;
        align-items: center;
    }
}

/* Styles pour le sélecteur de langue */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 8px;
    color: #fff;
    margin-left: 2px;
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 0;
    vertical-align: middle;
}

.language-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: var(--brown);
    border: none;
    border-radius: 0;
    overflow: hidden;
    z-index: 100;
    min-width: 160px;
    box-shadow: none;
    margin-bottom: 5px;
    text-align: left; /* Forcer l'alignement à gauche */
}

.language-menu {
    width: 100%;
}

/* Le menu déroulant est géré par JavaScript */
/* .language-selector:hover .language-dropdown {
    display: block;
} */

/* Style pour la langue courante */
.language-option.active {
    background-color: rgba(255, 255, 255, 0.05);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    gap: 8px;
    border-bottom: 1px solid var(--beige);
    font-size: 14px;
    text-align: left; /* Forcer l'alignement à gauche */
    justify-content: flex-start; /* Aligner le contenu à gauche */
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background-color: var(--brown);
    cursor: default;
}

.check {
    margin-left: auto;
    color: #fff;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

.language-selector a {
    color: var(--white);
    text-decoration: none;
    margin: 0 5px;
}

.language-selector a:hover {
    color: var(--beige);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .burger-menu {
        display: block;
        margin-right:5px;
    }
    
    .values-grid,
    .cuvees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-bottom: 3rem;
        align-items: center !important;
        text-align: center;
        padding: 0;
    }
    
    .footer-col:last-child {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .footer-address {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Garder footer-bottom en ligne même sur mobile */
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .copyright p {
        font-size: 0.7rem;
        margin: 0;
    }
    
    .language-selector a {
        font-size: 0.8rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    
    
    .values-grid,
    .cuvees-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-contact-col,
    .footer-links-col {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
    
    .language-selector {
        position: static;
        text-align: center;
    }
    
    .language-selector a {
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    /* Règle spécifique pour le header */
    .header .container {
        padding: 0 5px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero {
        height: 60vh;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
}

/* Styles spécifiques pour les liens du footer */
.footer a {
    color: var(--beige);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer .footer-links li {
    margin-bottom: 0.8rem;
    list-style: none;
}

.footer .language-selector a {
    color: var(--white);
}

.footer .language-selector a.active {
    color: var(--beige);
    font-weight: 500;
}

.footer .language-selector .separator {
    color: var(--white);
    margin: 0 0.5rem;
}

.footer .copyright {
    color: var(--beige);
    opacity: 0.8;
    font-size: 0.8rem;
}

main {
    padding-top: var(--header-height);
}
