/* --- Variables de couleur et polices --- */
:root {
    --primary-color: #ffc300; /* Jaune miel */
    --secondary-color: #976026; /* Brun foncé / Noir */
    --accent-color: #FFA726; /* Orange doux */
    --nav-color: #ffc300; /* Orange doux */
    --bg-color: #FFF8E1; /* Fond crème */
    --text-color: #4F4F4F;

    --font-title: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- Styles généraux --- */
html, body {
    /* MODIFICATION : Empêche la navigation "précédent/suivant" au swipe sur trackpad */
    overscroll-behavior: none;
    /* Optionnel : peut aider sur certains navigateurs tactiles */
    touch-action: pan-y; 
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    /* Améliore le défilement sur mobile */
    -webkit-overflow-scrolling: touch;
}

/* --- AJOUT POUR SEO --- */
/* Classe utilitaire pour cacher du texte visuellement mais le garder pour les lecteurs d'écran et Google */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    /* Assure que le padding ne s'ajoute pas à la largeur */
    box-sizing: border-box; 
}

h1, h2, h3 {
    font-family: var(--font-title);
    color: var(--secondary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Évite les espaces blancs sous les images */
}

/* --- En-tête (accueil.html) --- */
.main-header {
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    padding: 0px 0;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Permet au menu de s'adapter en hauteur */
    min-height: 80px; 
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex; 
    align-items: center; 
    gap: 10px; 
    /* Empêche le logo de rétrécir de manière indésirable */
    flex-shrink: 0; 
}
.logo img {
    height: 100px; 
    width: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    /* Ajout d'une transition pour le redimensionnement */
    transition: height 0.3s ease;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

/* MODIFICATION : Le .cart-link est maintenant l'ancre <a> */
.main-nav a.active,
.main-nav a:hover, 
.main-nav i:hover { /* Gardé pour la compatibilité si i est utilisé ailleurs */
    color: var(--nav-color);
    border-bottom-color: var(--nav-color);
}

/* MODIFICATION : .cart-link est maintenant l'ancre <a> */
.cart-link {
    display: flex;
    align-items: center;
    position: relative;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    padding-right: 15px; /* Laisse de la place pour la pastille */
    border-bottom: 2px solid transparent; /* Pour l'alignement */
}

/* MODIFICATION : L'ancre <a> hérite de la couleur, pas l'icône */
.cart-link:hover {
    color: var(--nav-color); /* Change la couleur de l'icône et la pastille */
    border-bottom-color: var(--nav-color);
}

.cart-link i {
    font-size: 1.2rem; /* Ajuste la taille de l'icône si nécessaire */
}

/* MODIFICATION : Styles de la pastille ajustés */
.cart-count {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 0.75rem; /* Plus petit */
    font-weight: bold;
    
    position: absolute;
    top: -8px;   /* Ajusté pour remonter */
    right: 0px; /* Ajusté pour être sur la droite */
    
    display: none; /* Masqué par défaut, géré par JS */
    
    /* Centrage du chiffre */
    min-width: 18px;
    height: 18px;
    padding: 0;
    box-sizing: border-box;
    /* Utilisation de flex pour un centrage parfait */
    /*display: flex; */
    justify-content: center;
    align-items: center;
    line-height: 1; /* Réinitialise line-height pour flex */
}


/* --- Section Hero --- */
.hero-section {
    height: 60vh;
    /* Min-height pour éviter qu'il ne soit trop petit */
    min-height: 300px; 
    /* background: url('images/contact-hero-paysage.jpg') no-repeat center center/cover; <-- SUPPRIMÉ */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 0 20px; /* Ajout de padding pour le texte sur mobile */
    box-sizing: border-box;
    overflow: hidden; /* <-- AJOUTÉ */
}

/* --- NOUVELLE RÈGLE AJOUTÉE --- */
.hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Place la vidéo en arrière-plan */
    transform: translate(-50%, -50%);
    object-fit: cover; /* Assure que la vidéo couvre toute la zone sans déformation */
}


/* Superposition pour la lisibilité du texte */
.hero-section::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: 750px;
}

.hero-content h1, .hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    line-height: 1.2; /* Améliore la lisibilité */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block; /* Pour que les <a> et <button> se comportent pareil */
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}


/* --- Sections de contenu --- */
.presentation-section, .featured-product-section .container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.presentation-section {
    display: flex;
    align-items: center;
    gap: 50px;
}

.presentation-text, .presentation-image {
    flex: 1;
    /* Empêche les éléments de rétrécir bizarrement */
    min-width: 0; 
}

.presentation-text h3 {
    font-size: 2.5rem;
}

.btn-secondary {
    display: inline-block;
    margin-top: 20px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    cursor: pointer;
    color: white;
}

.featured-product-section {
    background-color: #fff;
    /* Assure que la section s'étend sur toute la largeur */
    width: 100%; 
}

.featured-product-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.product-details {
    display: flex;
    align-items: center;
    gap: 50px;
}

.product-image, .product-text {
    flex: 1;
    min-width: 0;
}

/* --- Pied de page --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    padding: 30px 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-footer a {
    color: var(--primary-color);
    margin-left: 15px;
}

.main-footer a:hover {
    color: white;
}

.content-page {
    padding-top: 40px;
    padding-bottom: 40px;
}
.info-section {
    margin-bottom: 60px;
}
.info-section h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    font-size: 1.1rem;
}
.two-columns {
    display: flex;
    gap: 50px;
    align-items: center;
}
.column-text, .column-image {
    flex: 1;
    min-width: 0;
}
.column-text ul {
    list-style: none;
    padding-left: 0;
}
.column-text li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.column-text li::before {
    content: '🐝';
    position: absolute;
    left: 0;
    top: 0;
}
.alternate-bg {
    background-color: #fff;
    padding: 60px 20px; /* Ajout de padding horizontal */
    margin: 60px 0;
    width: 100%;
    box-sizing: border-box;
}
.info-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    /* Permet aux cartes de passer à la ligne */
    flex-wrap: wrap; 
}
.card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex: 1;
    /* Définit une base de taille pour le wrapping */
    flex-basis: 300px; 
    max-width: 400px;
}
.card h4 {
    font-size: 1.5rem;
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.recommendations {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* Permet de passer à la ligne */
}
.reco-block {
    flex: 1;
    flex-basis: 300px; /* Base pour le wrapping */
    padding: 30px;
    border-radius: 8px;
}
.reco-block.good {
    background-color: #e8f5e9; /* Vert clair */
    border-left: 5px solid #4caf50; /* Vert */
}
.reco-block.bad {
    background-color: #ffcdd2; /* Rouge clair */
    border-left: 5px solid #f44336; /* Rouge */
}
.reco-block h4 {
    margin-top: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.reco-block .icon {
    font-size: 1.5rem;
    margin-right: 10px;
}
.reco-block ul {
    padding-left: 20px;
}

.two-columns.reverse {
    flex-direction: row-reverse;
}
.recipe-grid {
    display: grid;
    /* auto-fit est déjà responsive */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.recipe-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.recipe-content {
    padding: 25px;
}

.recipe-content h4 {
    margin-top: 0;
    font-size: 1.4rem;
}

/* --- Styles pour la page Boutique --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr)); 
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Style pour l'image cliquable */
.product-card a > img {
    max-width: 280px;
    margin: 0 auto 0px auto;
    transition: opacity 0.3s ease;
}

.product-card a:hover > img {
    opacity: 0.85;
}

/* Cible l'image dans la carte produit pour le style */
.product-card img {
    max-height: 250px; /* Hauteur max pour l'image */
    width: 100%; /* L'image prend la largeur de son conteneur */
    aspect-ratio: 1/1; 
    object-fit: cover;
    margin-bottom: 15px;
}

.product-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 10px 0;
}

.product-desc {
    font-size: 0.9rem;
    color: #777;
    min-height: 40px;
    flex-grow: 1;
}

.product-card .btn-primary {
    margin-top: 20px;
}

/* --- Styles pour la page Galerie --- */
.gallery-section {
    margin-bottom: 60px;
}

/* --- Styles pour la page Contact --- */
.contact-section {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap; 
}

.contact-form {
    flex: 2;
    flex-basis: 400px; /* Base pour le wrapping */
    height: auto;
}

.contact-info {
    flex: 1;
    flex-basis: 300px; /* Base pour le wrapping */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    height: auto;
}
.contact-info iframe {
    height: 300px;
    width: 100%;
}

.contact-info h4 {
    margin-top: 0;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select { /* Ajout du select */
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box; /* Important pour le width: 100% */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}
.burger-menu {
    display: none; /* Masqué par défaut sur les grands écrans */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 600; /* Assure que le bouton est au-dessus du menu */
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px auto;
    transition: all 0.3s ease;
}

/* ======================================================= */
/* --- Styles spécifiques pour la page d'accueil (index.html) --- */
/* ======================================================= */

body#splash-page {
    height: 90vh; /* Utilise vh pour la hauteur totale */
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
#splash-page .header {
    width: 100%;
    padding: 2rem 1rem; /* Ajout de padding horizontal */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-sizing: border-box;
}
#splash-page .logo {
    width: 15%;
    max-width: 15%; /* Responsive */
    height: auto;
}
#splash-page .ecriture {
    width: 30%;
    max-width: 30%; /* Responsive */
    height: auto;
}

/* --- Main Content --- */
#splash-page .main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh; /* Réduit un peu le padding */
    width: 100%;
    overflow: hidden; /* Empêche le débordement */
}

/* --- Carousel Scene --- */
#splash-page .scene {
    width: 400px;
    height: 264px;
    perspective: 1333px;
    position: relative;
    /* Scale pour les petits écrans */
    transform: scale(1);
    transition: transform 0.3s ease;
}
#splash-page .carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    
    /* MODIFICATION DEMANDÉE : Ajustement de la taille initiale */
    /* On change -500px par -346px qui est la valeur calculée pour 6 éléments (panelWidth/2 / tan(30deg)) */
    transform: translateZ(-346px) rotateY(0deg);
    
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: grab;
}
#splash-page .carousel.dragging {
    cursor: grabbing;
    transition: none;
}

/* --- Panneaux du Carousel --- */
#splash-page .carousel-panel {
    position: absolute;
    width: 400px;
    height: 264px;
    background-color: rgba(255, 195, 0, 0.1);
    border: 2px solid rgb(255, 195 , 0);
    border-radius: 10px;
    overflow: hidden;
    -webkit-box-reflect: below 30px linear-gradient(transparent, transparent, #0005);
}
#splash-page .carousel-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    opacity: 0.85;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
#splash-page .carousel-panel:hover img {
    opacity: 1;
}

/* --- Titre de l'image active --- */
#splash-page #image-title {
    position: absolute;
    bottom: calc(100% + 2rem);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    color: rgb(255, 195 , 0);
    font-size: 3rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    white-space: nowrap; /* Empêche le titre de casser */
}
#splash-page #image-title.visible {
    opacity: 1;
}

/* --- Arrière-plan --- */
#splash-page #background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
#splash-page .bg-hexagon {
    position: absolute;
    width: 100px;
    height: auto;
    transition: transform 0.5s ease-out, opacity 3s ease-in-out;
    animation: pulse 4s infinite alternate ease-in-out;
}
/* Définition de l'animation de pulsation */
@keyframes pulse {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.35;
    }
    100% {
        opacity: 0.1;
    }
}


/* ======================================================= */
/* --- NOUVEAUX STYLES POUR LA PAGE DÉTAIL PRODUIT --- */
/* ======================================================= */

.product-detail-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.product-detail-image {
    flex: 1;
    max-width: 500px; /* Limite la taille de l'image */
    /* Permet au conteneur de rétrécir */
    min-width: 0;
}

.product-detail-image img {
    width: 100%;
    border-radius: 8px;
    /* L'ombre est maintenant sur .main-image-container */
}

.product-detail-info {
    flex: 1;
    min-width: 0;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.product-detail-info .product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.product-detail-info .product-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.quantity-selector label {
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.1rem;
}

.quantity-selector input[type="number"] {
    width: 70px;
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    -moz-appearance: textfield; /* Cache flèches sur Firefox */
}

.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#add-to-cart-detail {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* ... (tous les styles précédents restent identiques) ... */
/* ... (jusqu'à .cart-message-success) ... */

.cart-message-success {
    display: none;
    margin-top: 20px;
    color: #4caf50; /* Vert */
    font-weight: bold;
    font-size: 1.1rem;
}
/* --- Dans styles.css --- */

.cart-product-info img {
    width: 20%;  /* Définissez la largeur souhaitée */
    height: 20%; /* Définissez la hauteur souhaitée */
    object-fit: cover; /* S'assure que l'image remplit l'espace sans être déformée */
    border-radius: 8px; /* Joli pour arrondir les coins */
    margin-right: 16px; /* Ajoute de l'espace entre l'image et le nom du produit */
    aspect-ratio: 1/1;
}

/* ======================================================= */
/* --- NOUVEAUX STYLES POUR LA GALERIE PRODUIT --- */
/* ======================================================= */

.product-detail-image {
    flex: 1;
    max-width: 500px;
}

.main-image-container {
    position: relative; /* Contexte pour les flèches */
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #fff; /* Fond blanc au cas où l'image est transparente */
}

#main-product-image {
    width: 100%;
    height: auto; /* Garde le ratio */
    aspect-ratio: 1/1; /* Force un ratio carré */
    object-fit: cover; /* Recadre l'image pour remplir */
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 1);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    opacity: 0.7;
    /* Améliore l'accessibilité */
    user-select: none;
}

.gallery-arrow:hover {
    background-color: rgba(255, 195, 0, 0.7);
    opacity: 1;
}

.carousel-arrow-left {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.carousel-arrow-right {
    right: 0;
    border-radius: 5px 0 0 5px;
}

#arrow-left {
    left: 0;
    border-radius: 0 5px 5px 0;
}

#arrow-right {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.thumbnail-gallery {
    display: grid;
    /* MODIFIÉ : Grille fluide qui s'adapte */
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    gap: 10px;
    margin-top: 15px;
    width: 100%; /* Prend toute la largeur disponible */
}

.thumbnail-item {
    width: 100%; /* Prend la largeur de la colonne de la grille */
    height: auto; /* La hauteur est gérée par aspect-ratio */
    aspect-ratio: 1 / 1; /* Force le format carré */
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    background-color: #fff;
}

.thumbnail-item:hover {
    opacity: 1;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary-color);
}


/* ======================================================= */
/* --- STYLES AJOUTÉS POUR LA PAGE PANIER (CART.HTML) --- */
/* ======================================================= */

.cart-section {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Aligne le haut du tableau et le résumé */
}

#cart-items {
    flex: 6; /* Le tableau prend 2/3 de la place */
    min-width: 0; /* Permet de rétrécir */
    overflow-x: auto; /* <-- AJOUTEZ CETTE LIGNE */
}

.cart-summary {
    flex: 1; /* Le résumé prend 1/3 */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky; /* Le résumé reste visible au scroll */
    top: 120px; /* Espace depuis le header (80px) + marge (40px) */
    flex-basis: 300px; /* Base pour le wrapping */
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden; /* Pour que le radius s'applique aux coins */
}

.cart-table th,
.cart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-table th {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

/* --- Style de la cellule produit --- */
.cart-product-info {
    display: flex;
    align-items: center;
}

/* J'ajuste votre style existant pour l'image */
.cart-product-info img {
    width: 80px;  /* Taille fixe au lieu de 20% */
    height: 80px; /* Taille fixe */
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
    aspect-ratio: 1/1; /* Gardé, c'est bien */
    flex-shrink: 0; /* Empêche l'image de se réduire */
}

.cart-product-info p {
    margin: 0;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* --- Styles pour les contrôles --- */
.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    background-color: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: background-color 0.3s;
}

.quantity-controls button:hover {
    background-color: #e0e0e0;
}

.quantity-controls span {
    padding: 0 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
}

.remove-item:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* --- Message Panier Vide --- */
.empty-cart-message {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- Styles pour le résumé --- */
.cart-summary-total,
.shipping-info,
.total-final {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.shipping-info p:last-child {
    color: #777;
    font-size: 1rem;
    text-align: right;
}

.total-final {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--secondary-color);
    border-top: 2px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
}

.checkout-button {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    font-size: 1.1rem;
}


/* ======================================================= */
/* --- MEDIA QUERIES (Styles Responsive) --- */
/* ======================================================= */

/* --- Tablettes (jusqu'à 1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .main-nav ul {
        gap: 15px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .presentation-text h3, 
    .featured-product-section h3,
    .info-section h3 {
        font-size: 2.2rem;
    }

    /* Empilement pour certaines sections flex */
    .presentation-section, 
    .product-details,
    .two-columns {
        flex-direction: column;
        gap: 30px;
    }
    /* Inverse l'ordre pour .reverse en colonne */
    .two-columns.reverse {
        flex-direction: column-reverse;
    }

    .cart-section {
        flex-direction: column;
        gap: 30px;
    }
    .cart-summary {
        position: static;
        width: 100%;
        box-sizing: border-box;
    }

    /* Page index.html */
    #splash-page .header {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
    }
    #splash-page .main-content {
        padding-top: 10vh;
    }
    #splash-page .scene {
        transform: scale(0.9);
    }
    #splash-page #image-title {
        font-size: 2.5rem;
        bottom: calc(100% + 1rem);
    }
}


/* --- Mobiles (jusqu'à 768px) --- */
@media (max-width: 768px) {
    .main-header .container {
        min-height: 60px; /* Header plus petit */
    }

    .logo img {
        height: 60px; /* Logo plus petit */
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .main-footer .container, .presentation-section, .product-details {
        flex-direction: column;
        gap: 20px;
        text-align: center; /* Centre le texte du footer */
    }
    .main-footer .social-links {
        margin-top: 15px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%; /* Se base sur la hauteur du header */
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
        padding: 20px 0;
        animation: slideDown .4s ease-out;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    .main-nav a {
        font-size: 1.2rem;
    }
    @keyframes slideDown {
        0% { transform: translateY(-100%); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }
    
    .main-nav.active ul {
        display: flex;
    }

    /* --- MODIFICATION DEMANDÉE : Hero sur mobile --- */
    .hero-section {
        /* On permet à la hauteur de s'adapter au contenu ou d'être plus petite */
        height: auto;
        min-height: 200px; /* Réduit de 250px pour moins forcer le zoom */
        padding: 60px 20px; /* Ajoute du padding pour que le texte respire */
        
        /* Astuce pour montrer plus de largeur de l'image sur mobile :
           Au lieu de 'cover' qui zoome beaucoup sur les écrans hauts et étroits,
           on peut essayer de réduire le zoom. '120% auto' signifie que l'image fera 120% de la largeur de l'écran.
           ATTENTION : Cela peut créer des espaces vides en haut/bas si l'image n'est pas assez haute.
           Si cela arrive, remettre à 'cover'. */
        background-size: cover !important; /* On garde cover pour éviter les blancs, mais la hauteur réduite aidera */
        background-position: center center !important; /* Centre l'image */
    }
    
    /* Si vous voulez vraiment voir TOUTE la largeur (au risque d'avoir du blanc en haut/bas ou une image très petite) :
    .hero-section {
        background-size: 100% auto !important;
        background-repeat: no-repeat !important;
    } 
    */

    .hero-content h2 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .presentation-text h3, .featured-product-section h3 {
        font-size: 2rem;
    }
    .two-columns, .info-cards, .recommendations {
        flex-direction: column;
    }
    .info-section h3 {
        font-size: 2rem;
    }
    .two-columns.reverse {
        /* Déjà en column-reverse depuis le breakpoint 1024px */
        flex-direction: column-reverse;
    }
    .contact-section {
        flex-direction: column;
    }
    .burger-menu {
        display: block; 
    }
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Responsive pour la grille boutique et page détail --- */
    .product-grid {
        /* 1 colonne sur mobile */
        grid-template-columns: 1fr;
    }
    
    .product-card img {
        max-height: 280px; /* Un peu plus grand en 1 colonne */
    }

    .product-detail-layout {
        /* Passe en colonne sur mobile */
        flex-direction: column;
    }

    .product-detail-info h1 {
        font-size: 2rem;
    }

    .product-detail-info .product-price {
        font-size: 1.8rem;
    }

    .gallery-arrow {
        padding: 8px 12px;
        font-size: 1.5rem; /* Taille adaptée au tactile */
    }

    /* --- Responsive pour la page Panier --- */

    /* Permet au tableau de scroller horizontalement */
    #cart-items {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        border-radius: 8px;
        border: 1px solid #f0f0f0; /* Ajoute une bordure visible */
    }

    .cart-table {
        min-width: 650px; /* Force le tableau à être large pour le scroll */
        box-shadow: none; /* Le conteneur #cart-items gère l'ombre/radius */
        border: none;
    }
    
    /* --- MODIFICATIONS DEMANDÉES : Page index.html (Splash) --- */
    #splash-page .header {
        gap: 0.5rem;
    }
    #splash-page .logo {
        /* MODIFICATION : Logo plus grand (était 100px ou max-width auto) */
        max-width: 140px; 
        width: 40%; /* Prend plus de place relative */
    }
    
    /* MODIFICATION : Écriture agrandie sur mobile pour correspondre au logo */
    #splash-page .ecriture {
        max-width: 250px; /* Augmenté de 200px à 250px */
        width: 60%; /* Augmenté pour prendre plus de largeur */
    }
    
    /* MODIFICATION : Images de fond (hexagones) réduites sur mobile */
    #splash-page .bg-hexagon {
        width: 50px !important; /* Force une petite taille au lieu de 100px */
    }
    
    /* MODIFICATION : Centrage vertical du carrousel */
    #splash-page .main-content {
        padding-top: 0; /* Supprime le padding pour permettre le centrage exact */
        align-items: center; /* Centre verticalement dans le flex container (column par défaut sur body, row ici ?) */
        /* Note: body#splash-page est flex-column. main-content est flex-row (par défaut). 
           Pour centrer verticalement le contenu de main-content (la scene), on utilise align-items: center 
           car main-content prend toute la hauteur restante. */
    }
    
    #splash-page .scene {
        transform: scale(0.75);
    }
    #splash-page #image-title {
        font-size: 2rem;
    }
}


/* --- Téléphone en mode Paysage (basse hauteur) --- */
@media (max-height: 480px) and (orientation: landscape) {
    .main-header .container {
        min-height: 50px; /* Header très compact */
    }
    
    .logo img {
        height: 50px; /* Logo très petit */
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* Cache le menu burger ouvert s'il l'était */
    .main-nav.active {
        display: none;
    }
    
    .hero-section {
        height: auto; /* Hauteur auto */
        min-height: 0;
        padding: 40px 20px; /* Padding au lieu d'une hauteur fixe */
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    /* Page index.html en paysage */
    body#splash-page {
        overflow: auto; /* Permet de scroller si besoin */
    }
    #splash-page .header {
        flex-direction: row;
        padding: 0.5rem 1rem;
    }
    #splash-page .logo {
        max-width: 80px;
    }
    #splash-page .ecriture {
        max-width: 180px;
    }
    #splash-page .main-content {
        padding-top: 2vh;
        align-items: center; /* Centre verticalement */
        min-height: 300px; /* Donne de l'espace au carrousel */
    }
    #splash-page .scene {
        transform: scale(0.7);
    }
    #splash-page #image-title {
        font-size: 1.8rem;
        position: relative; /* Le met dans le flux */
        bottom: auto;
        left: auto;
        transform: none;
        margin-bottom: 1rem;
    }
}

/* ======================================================= */
/* --- STYLES AJOUTÉS POUR LA PAGE CHECKOUT (PAIEMENT) --- */
/* ======================================================= */

.checkout-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-form-container {
    flex: 2; /* 2/3 de la largeur */
    min-width: 0; /* Permet de rétrécir sur mobile */
}

.checkout-summary-container {
    flex: 1; /* 1/3 de la largeur */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 120px; /* Colle au scroll (hauteur header + padding) */
    flex-basis: 350px; /* Base pour le wrapping */
}

.checkout-summary-container h4 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#checkout-form h3 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
#checkout-form h3:first-of-type {
    margin-top: 0;
}

.order-number-display {
    font-weight: bold; 
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-group.half-width {
    flex: 1;
}

/* Style pour le faux formulaire de CB */
.payment-placeholder {
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}
.payment-placeholder p {
    margin-bottom: 15px;
}
.fake-cc-form input[disabled] {
    background-color: #eee;
    cursor: not-allowed;
}

/* Styles pour le résumé de commande (colonne de droite) */
#order-summary {
    max-height: 400px; /* Permet le scroll si bcp d'articles */
    overflow-y: auto;
    margin-bottom: 20px;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.summary-item:last-child {
    border-bottom: none;
}

.summary-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.summary-item-info {
    flex-grow: 1;
}
.summary-item-name {
    margin: 0;
    font-weight: 700;
}
.summary-item-qty {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.summary-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Responsive pour le layout checkout */
@media (max-width: 900px) {
    .checkout-layout {
        /* Met le résumé en haut sur mobile */
        flex-direction: column-reverse; 
    }
    .checkout-summary-container {
        position: static;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .form-row {
        /* Met les champs 1/2 largeur en pleine largeur */
        flex-direction: column;
        gap: 0; /* Le gap est déjà géré par form-group */
    }
}


/* ======================================================= */
/* --- STYLES AJOUTÉS POUR BANNIÈRE COOKIE ET FOOTER --- */
/* ======================================================= */

/* --- Bannière Cookie --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(40, 40, 40, 0.95);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

#cookie-banner p {
    margin: 0;
    flex-grow: 1;
}

#cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

#cookie-banner .btn-primary {
    flex-shrink: 0;
    padding: 10px 20px;
    /* On force la couleur pour le contraste */
    background-color: var(--primary-color);
    color: var(--secondary-color);
}
#cookie-banner .btn-secondary {
    flex-shrink: 0;
    padding: 10px 20px;
    /* On force la couleur pour le contraste */
    background-color: var(--primary-color);
    color: var(--secondary-color);
}


#cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cookie-modal {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#cookie-modal h4 {
    margin-top: 0;
    font-size: 1.5rem;
}

.cookie-category {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
}
.cookie-category label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    cursor: pointer;
}
.cookie-category small {
    display: block;
    margin-top: 5px;
    color: #777;
}
.cookie-category input[type="checkbox"] {
    transform: scale(1.2);
}
.cookie-category input:disabled {
    cursor: not-allowed;
}

#cookie-save-prefs {
    margin-top: 20px;
    width: 100%;
}

/* Responsive pour la bannière */
@media (max-width: 768px) {
    #cookie-banner .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
}
/* --- Liens du Footer --- */
.main-footer .container {
    flex-direction: row; /* Reste en ligne sur desktop */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copyright {
    flex-shrink: 0;
}
.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-grow: 1; /* Prend l'espace au milieu */
}

.footer-links a {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}
.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}
.social-links a {
    color: var(--primary-color);
    font-size: 1rem; /* Taille de l'icône/texte */
    display: flex;
    align-items: center;
    gap: 8px; /* Espace entre icône et texte */
}
.social-links a:hover {
    color: white;
}
.social-links i {
    font-size: 1.2rem; /* Taille de l'icône seule */
}


/* --- Responsive Footer & Cookie --- */
@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    /* Le footer était déjà en column, on ajuste */
    .main-footer .container {
        flex-direction: column;
        gap: 20px;
    }
    .footer-links {
        order: -1; /* Remonte les liens légaux */
        flex-wrap: wrap; /* Au cas où */
    }
    .social-links {
        margin-top: 0;
    }
}

/* ======================================================= */
/* --- STYLES POUR LA MODALE DE RÉSERVATION (AJOUTÉS) --- */
/* ======================================================= */

#reservation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond plus sombre */
    z-index: 2000; /* Au-dessus de tout */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none; /* Inactif par défaut */
    transition: opacity 0.3s ease;
}

#reservation-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#reservation-modal {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#reservation-modal-overlay.active #reservation-modal {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.modal-close-btn:hover {
    color: var(--accent-color);
}

#reservation-modal h3 {
    margin-top: 0;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

#reservation-modal p {
    margin-bottom: 25px;
    color: #555;
}

/* Styles pour le bouton de réservation spécifique */
.btn-reservation {
    background-color: var(--primary-color);
    color:  var(--secondary-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-reservation:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}