/* --- Réinitialisation de base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Police moderne pour la lecture */
    color: #333;
    background-color: #fdfbf7; /* Blanc très légèrement crème */
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* Police élégante pour les titres */
    color: #4A3320; /* Marron chocolat */
}

/* --- En-tête (Header) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo h1 {
    font-size: 24px;
}

.logo p {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Style du nouveau Logo Image --- */
.logo {
    display: flex;
    align-items: center; /* Centre verticalement le logo s'il y a du padding dans le header */
}

.logo-img {
    /* C'est CETTE valeur qui contrôle la hauteur de votre header */
    height: 80px; /* Ajustez cette valeur (ex: 40px ou 60px) selon vos goûts */
    width: auto;  /* Conserve les proportions de l'image */
    display: block; /* Supprime l'espace vide sous l'image */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4a373; /* Couleur caramel/doré au survol */
}

.btn-commander {
    background-color: #4A3320;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0px;
}

.btn-commander:hover {
    background-color: #d4a373;
    color: #fff;
}

/* --- Bannière Principale (Hero) --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/entremet/fraisier.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero-content h2 {
    color: #fff;
    font-size: 56px;
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-principal {
    display: inline-block;
    background-color: #d4a373;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0px;
    transition: background 0.3s;
}

.btn-principal:hover {
    background-color: #4A3320;
}

.btn-secondaire {
    padding: 15px 30px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0;
    transition: 0.3s;
}

.btn-secondaire:hover {
    background: #fff;
    color: #4A3320;
}

/* --- Section Services --- */
.services {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 80px 20px;
}

.service-box {
    background: #fff;
    padding: 40px;
    border-radius: 0px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-box h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 10px;
    background-color: #eaddcf;
    font-size: small;
    color: #4A3320;
}

/* --- Section Contact --- */
.contact-section {
    padding: 80px 20px;
    background-color: #fff;
}

.contact-container {
    max-width: 800px;
    margin: 60px auto; /* 60px en haut/bas, 'auto' pour centrer gauche/droite */
    padding: 0 20px;   /* Un petit espace sur les côtés pour le mobile */
    text-align: center;
}

.contact-container h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.contact-container p {
    margin-bottom: 40px;
    color: #666;
}

/* --- Formulaire --- */
.contact-form {
    text-align: left;
    background: #fdfbf7;
    padding: 40px;
    border-radius: 0px;
    border: 1px solid #eaddcf;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4A3320;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0px;
    font-family: inherit;
    font-size: 16px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #d4a373;
    box-shadow: 0 0 5px rgba(212, 163, 115, 0.3);
}

.btn-envoyer {
    width: 100%;
    background-color: #4A3320;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 0px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-envoyer:hover {
    background-color: #d4a373;
    outline: 2px solid #4A3320; /* Ajoute un contour net au survol */
}

/* --- Adaptabilité mobile --- */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.subtitle {
    margin-bottom: 40px;
    color: #888;
}

/* Grille de gâteaux */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Espacement vertical (utilitaire) --- */
.spacer-large {
    margin-top: 40px; /* Vous pouvez ajuster cette valeur */
}

.cake-card {
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.cake-card:hover {
    transform: translateY(-5px);
}

.cake-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #eee; /* Couleur d'attente si pas d'image */
}

.cake-info {
    padding: 20px;
    text-align: left;
}

.cake-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.price {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #d4a373;
}

/* --- Raffinement des Cartes --- */
.cake-card {
    position: relative;
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(74, 51, 32, 0.08); /* Ombre douce chocolatée */
    transition: all 0.4s ease;
    border: 1px solid #f0e6dc;
}

/* Effet de zoom sur l'image */
.cake-img-container {
    height: 250px;
    overflow: hidden;
}

.cake-img {
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.cake-card:hover .cake-img {
    transform: scale(1.1); /* Zoom doux au survol */
}

/* Badges (Top Vente, Noël, etc.) */
.cake-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d4a373;
    color: #fff;
    padding: 5px 15px;
    border-radius: 0px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
}

.cake-badge.limited {
    background: #a63d40; /* Rouge élégant pour les fêtes */
}

/* Contenu textuel */
.cake-info {
    padding: 25px;
}

.category {
    font-size: 12px;
    text-transform: uppercase;
    color: #d4a373;
    letter-spacing: 1px;
    font-weight: 600;
}

.cake-info h3 {
    margin: 10px 0;
    font-size: 22px;
}

.cake-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Petits détails (icônes) */
.cake-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    border-top: 1px solid #f9f4f0;
    padding-top: 15px;
}

/* Bas de carte avec prix et bouton */
.cake-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #4A3320;
}

.btn-select {
    text-decoration: none;
    background: transparent;
    border: 1px solid #4A3320;
    color: #4A3320;
    padding: 8px 10px;
    border-radius: 0px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-select:hover {
    background: #4A3320;
    color: #fff;
}

/* --- Page Savoir-Faire --- */

/* Hero réduit pour les pages secondaires */
.about-hero {
    background-color: #4A3320;
    color: #fdfbf7;
    padding: 80px 20px;
    text-align: center;
}

.about-hero h1 {
    color: #fdfbf7;
    font-size: 42px;
}

.about-hero em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #d4a373;
}

/* Grille Histoire */
.container-small {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-img {
    height: 500px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 0px;
    box-shadow: 20px 20px 0px #f0e6dc; /* Petit effet déco */
}

.story-text h2 {
    margin-bottom: 20px;
}

.story-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 17px;
}

/* Section Valeurs */
.values {
    background-color: #f9f4f0;
    padding: 80px 20px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-item {
    padding: 20px;
}

.value-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.value-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.value-item p {
    color: #777;
    font-size: 15px;
}

/* Adaptabilité mobile */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    .story-img {
        height: 300px;
        order: -1; /* L'image passe au dessus du texte sur mobile */
    }
}

/* --- Menu Mobile (Responsive) --- */

@media (max-width: 768px) {
    /* On cache la liste de base */
    .nav-list {
        position: fixed;
        top: 70px; /* Juste en dessous du header */
        right: -100%; /* Caché à droite */
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease-in-out;
        padding-top: 50px;
        z-index: 100;
        gap: 40px !important;
    }

    /* Quand le menu est ouvert via JS */
    .nav-list.active {
        right: 0;
    }

    /* Style du bouton Burger */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: #4A3320;
    }

    /* Animation du burger en "X" quand il est ouvert */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* On cache le burger sur ordinateur */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Style pour la zone du titre + flèche */
.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sur mobile spécifiquement */
@media (max-width: 768px) {
    /* Cache le menu par défaut */
    .dropdown-menu {
        display: none;
        position: static; /* Le menu s'insère dans le flux au lieu de flotter */
        width: 100%;
        background: #f9f9f9;
        padding-left: 20px !important;
    }

    /* Quand on clique sur le parent, on affiche le menu via une petite astuce CSS */
    /* Ou plus simple : on force l'affichage si l'utilisateur survole la zone tactile */
    .dropdown:active .dropdown-menu, 
    .dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .submenu-arrow {
        padding: 10px; /* Zone de clic plus large */
        cursor: pointer;
        color: #4A3320;
    }
}

/* --- Section Featured (Bûches) --- */
.featured-section {
    padding: 100px 0;
    background-color: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

.featured-text {
    padding: 40px;
    text-align: left;
}

.featured-img {
    height: 500px;
    background-color: #f9f4f0;
    background-size: cover;
    background-position: center;
}

.link-arrow {
    display: inline-block;
    margin-top: 25px;
    color: #4A3320;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #d4a373;
    padding-bottom: 5px;
}

/* --- Highlights --- */
.highlights {
    background-color: #4A3320;
    color: #fff;
    padding: 80px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.h-item h3 {
    color: #d4a373;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 18px;
}

/* --- Ajustements Responsive --- */
@media (max-width: 768px) {
    .hero-content h2 { font-size: 32px; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-img { order: -1; height: 300px; }
    .hero-btns { flex-direction: column; }
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    color: #4A3320; /* Couleur chocolat */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 5px;
    border: 1px solid transparent; /* Prêt pour un cadre si besoin */
}

.social-icons svg {
    width: 20px;  /* Taille ajustable */
    height: 20px;
}

.social-icons a:hover {
    color: #d4a373; /* Couleur caramel au survol */
    transform: translateY(-2px); /* Petit saut élégant */
}

/* --- Sous-Menu (Dropdown) --- */

/* Le parent doit être en 'relative' pour que l'enfant 'absolute' se positionne par rapport à lui */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; /* Caché par défaut */
    position: absolute;
    top: 100%; /* S'affiche juste en dessous de "Nos Créations" */
    left: 0;
    background-color: #fff;
    min-width: 210px; /* Largeur du sous-menu */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    list-style: none;
    padding: 0 !important;
    z-index: 1000; /* Pour qu'il passe par-dessus les photos du site */
    
    /* Annuler le comportement flex de base de notre nav */
    flex-direction: column; 
    gap: 0; 
}

.dropdown-menu li {
    width: 100%;             /* Chaque ligne prend toute la largeur du bloc */
}

/* Les liens à l'intérieur du sous-menu */
.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    font-weight: 400; /* Moins gras que le menu principal */
    color: #4A3320;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: #fdfbf7;
    color: #d4a373;
}

/* Affichage au survol de la souris (Bureau) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: flex;
        position: absolute;
        background-color: #fff;
    }
}

/* Adaptation du Dropdown sur Mobile */
    .dropdown-menu {
        position: static; /* Annule la position absolue */
        box-shadow: none;
        background-color: transparent;
        padding-left: 20px; /* On décale un peu vers la droite pour montrer que c'est un sous-menu */
        display: none;
    }

    /* Sur mobile, un "tap" équivaut à un focus ou un hover en CSS */
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: flex;
    }

    /* --- Styles spécifiques à la Page Hub --- */

.hub-section {
    padding: 10px 0; /* Espace avant et après comme demandé précédemment */
}

.hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.hub-header h2 {
    font-size: 32px;
    color: #4A3320;
    margin-bottom: 10px;
}

.hub-footer {
    text-align: center;
    margin-top: 40px;
}

/* Bouton Hub - Style Carré */
.btn-hub {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: #4A3320;
    border: 2px solid #4A3320;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 0; /* Angles droits */
}

.btn-hub:hover {
    background-color: #4A3320;
    color: #fff;
}

/* --- Ligne séparatrice personnalisée --- */
.section-divider {
    border: 0;
    height: 1px;
    background: #eaddcf;
    max-width: 200px;
    /* 40px au-dessus, centré sur les côtés, 0px en-dessous */
    margin: 20px auto 0 auto; 
}

/* Réduit l'espace du conteneur qui suit immédiatement la ligne */
.section-divider + .hub-section .container {
    padding-top: 20px; /* Au lieu des 40px par défaut. Réduisez à 10px ou 0px si vous voulez encore moins d'espace */
}

/* On simplifie les cartes sur le Hub pour ne pas surcharger */
.hub-section .cake-footer, 
.hub-section .cake-details {
    display: none; /* Cache les détails sur la page de présentation pour inciter au clic */
}

#produit-selection {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0; /* On garde les angles droits */
    background-color: #fff;
    font-family: inherit;
    font-size: 16px;
    appearance: none; /* Supprime le style par défaut sur certains navigateurs */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg%20xmlns="http://www.w3.org/2000/svg"%20width="292.4"%20height="292.4"><path%20fill="%234A3320"%20d="M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

/* Style du cadre qui contient le formulaire Fillout */
[data-fillout-id="6gnqcpxkBFus"] {
    max-width: 800px;
    margin: 60px auto; /* On garde votre espacement de 60px */
    border: 1px solid #f0e6dc; /* Pour rappeler la bordure de vos menus */
    box-shadow: 0 10px 30px rgba(74, 51, 32, 0.05);
}

/* Configuration de la galerie en grille */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales par ligne */
    gap: 30px; /* Espace entre les cartes */
    align-items: stretch; /* Force les cartes à avoir la même hauteur */
    margin-bottom: 40px;
}

/* Ajustement de la carte pour qu'elle remplisse toute la hauteur */
.cake-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Remplit la cellule de la grille */
    background: #fff;
    border: 1px solid #f0e6dc;
    border-radius: 0; /* On garde vos angles droits */
}

/* Force le contenu textuel à prendre l'espace restant */
.cake-info {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Pousse le prix et le bouton tout en bas de la carte */
.cake-footer {
    margin-top: auto; 
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive : 2 colonnes sur tablette, 1 sur mobile */
@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* --- Section Témoignages --- */
.testimonials {
    padding: 80px 0;
    background-color: #fdfbf7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 0px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid #eaddcf; /* Rappel de la couleur de vos lignes séparatrices */
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #D4AF37; /* Couleur dorée pour les étoiles */
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
}

.client-info strong {
    display: block;
    color: #4A3320;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
}

.client-info span {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .testimonials {
        padding: 50px 20px;
    }
}

/* ============================================================
   RESPONSIVE DESIGN GLOBAL
   ============================================================ */

/* --- Ajustements pour Tablettes (moins de 1024px) --- */
@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .container, .container-small {
        padding: 40px 20px;
    }
}

/* --- Ajustements pour Mobiles (moins de 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Typographie : On réduit un peu la taille des titres */
    h2 {
        font-size: 28px !important;
    }

    /* 2. Page d'Accueil (Hero) */
    .hero {
        height: 60vh; /* Moins haut sur mobile */
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* 3. Les Grilles (Services & Galerie) */
    /* Grâce au "repeat(auto-fit...)" que nous avons mis plus haut, 
       les cartes se mettent déjà les unes sous les autres. 
       On ajuste juste l'espacement. */
    .services, .gallery {
        gap: 20px;
        padding: 40px 10px;
    }

    /* 4. Page Savoir-Faire (Story) */
    .story-grid {
        grid-template-columns: 1fr; /* On passe sur une seule colonne */
        text-align: center;
    }

    .story-img {
        height: 300px;
        box-shadow: 10px 10px 0px #f0e6dc; /* On réduit l'effet déco */
    }

    /* 5. Page Contact (Formulaire) */
    .contact-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column; /* Nom/Email l'un sous l'autre */
        gap: 0;
    }

    /* 6. Footer */
    footer {
        font-size: 14px;
        padding: 20px;
    }
}

/* --- Ajustements pour très petits téléphones (moins de 480px) --- */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .btn-principal, .btn-envoyer {
        width: 100%; /* Les boutons prennent toute la largeur */
        text-align: center;
    }
}