/* ========================
   VARIABLES :root et dark
======================== */
:root {
    --bg-color: #ffffff;
    --text-color: #1f1f1f;
    --primary-color: #b59b08;
    --primary-hover: #997c06;
    --section-bg: #f9f9f9;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --scroll-thumb: #b59b08;
    --transition: all 0.3s ease;
    --font-main: 'Poppins', sans-serif;
    --font-title: 'Playfair Display', serif;
    --section-title-size: 38px;
    --section-title-weight: 700;
    --section-title-spacing: 1.5px;
    --section-title-margin: 0 0 40px 0;
    --section-title-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

body.dark-mode {
    --bg-color: #0d0d0d;
    --text-color: #f5f5f5;
    --primary-color: #d4af37;
    --primary-hover: #bfa133;
    --section-bg: #1a1a1a;
    --card-bg: #1a1a1a;
    --border-color: #333333;
    --scroll-thumb: #d4af37;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Poppins:wght@400;600&display=swap');

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-title);
}

h2 {
    font-size: var(--section-title-size);
    font-weight: var(--section-title-weight);
    letter-spacing: var(--section-title-spacing);
    margin: var(--section-title-margin);
    text-align: center;
    color: var(--primary-color);
    text-shadow: var(--section-title-shadow);
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

/* ========================
   BOUTON FIXE DARK MODE
======================== */
.toggle-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 15px;
    font-size: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-fixed:hover {
    background: var(--primary-hover);
}

/* ========================
   HEADER & NAV
======================== */
header {
    background: var(--bg-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 32px;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 4px;
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Existing code continues unchanged below this point */


/* ========================
   HERO SECTION
======================== */
.hero {
    background: url('../images/fond3.jpg') center/cover no-repeat;
    background: url('../images/fond2.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 1px 1px 5px #00000080;
}

/* ========================
   BOUTONS
======================== */
.btn, .contact button {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover, .contact button:hover {
    background: var(--primary-hover);
}

/* ========================
   SECTIONS
======================== */
section {
    padding: 80px 20px;
    background: var(--bg-color);
}

.about img {
    max-width: 900px;
    width: 100%;
    display: block;
    margin: 30px auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    height: auto;
    border: 4px solid var(--primary-color);
}

.about p {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
    text-align: justify;
}

/* ========================
   PRODUITS
======================== */
.product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 30px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.product-card {
    flex: 0 0 280px;
    background: linear-gradient(to bottom right, #fffef5, #fff);
    color: var(--text-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    transform: perspective(600px);
    backdrop-filter: blur(6px);
    position: relative;
}

.product-card:hover {
    transform: perspective(600px) scale(1.05) rotateX(2deg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-bottom: 3px solid var(--primary-color);
    filter: brightness(0.95);
}

.product-card img:hover {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 22px;
    margin: 15px 0 5px;
    color: var(--primary-color);
    font-weight: 700;
}

.product-card p {
    padding: 0 15px 20px;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

/* ========================
   COFFRETS
======================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 10px;
    justify-items: center;
}

.product-grid .product-card {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 0;
}

.product-grid .product-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.product-grid .product-card img:hover {
    transform: scale(1.05);
}

.product-grid .product-card h3,
.product-grid .product-card p {
    display: none;
}

/* ========================
   AVIS CLIENTS
======================== */
.testimonial {
    background: var(--section-bg);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    font-style: italic;
}

/* ========================
   FORMULAIRE
======================== */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

.contact input, .contact textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    background: var(--bg-color);
    color: var(--text-color);
}

.contact input::placeholder, .contact textarea::placeholder {
    color: #999;
}

/* ========================
   FOOTER
======================== */
footer {
    background: var(--section-bg);
    color: var(--text-color);
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================
   SCROLLBAR
======================== */
.product-carousel::-webkit-scrollbar {
    height: 8px;
}

.product-carousel::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 10px;
}

/* ========================
   RESPONSIVE
======================== */
@media(max-width: 768px) {
    .logo-title {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul {
        justify-content: center;
    }

    .arrow {
        font-size: 24px;
        padding: 8px;
    }

    .arrow.left {
        left: 5px;
    }

    .arrow.right {
        right: 5px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .product-card img {
        height: 200px;
    }

    .product-grid .product-card img {
        height: 200px;
    }
}
/* ========================
   MENU MOBILE RESPONSIVE
======================== */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--primary-hover);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 1001;
    }

    nav ul.nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    nav ul.nav-links li {
        width: 100%;
        text-align: center;
    }

    nav ul.nav-links.active {
        display: flex;
    }

    #mode-toggle {
        margin: 10px auto 0 auto;
    }

    .logo-title {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .logo {
        height: 40px;
    }

    header h1 {
        font-size: 22px;
    }

    header {
        padding: 10px 0;
        position: sticky;
        top: 0;
    }
}
@media (max-width: 768px) {
    nav ul.nav-links {
        top: 60px; /* réduit légèrement la hauteur pour éviter tout chevauchement potentiel */
    }
}
/* Correction définitive des descriptions sous les dragées en mode sombre */
body.dark-mode .product-card p {
    color: #000000 !important;
}
.hero {
    position: relative;
    overflow: hidden;
  }
  
  .hero-slides, .hero-slides .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .hero-slides .slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .hero-slides .slide.active {
    opacity: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    color: white;
  }
  .masonry-gallery {
    columns: 3;
    column-gap: 15px;
  }
  
  .masonry-gallery img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .masonry-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  
  /* Responsive pour mobile/tablette */
  @media(max-width: 768px) {
    .masonry-gallery {
      columns: 2;
    }
  }
  
  @media(max-width: 480px) {
    .masonry-gallery {
      columns: 1;
    }
  }
  /* HERO SECTION SLIDER */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-slides, .hero-slides .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slides .slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slides .slide.active {
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Conserve l'effet sombre que tu avais */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 150px 20px;
    max-width: 700px;
    margin: auto;
}
/* Section Contenants Personnalisés - Design interactif premium */
.custom-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.custom-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.custom-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-title);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.custom-card:hover img {
    transform: scale(1.2);
}

.custom-card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive soigné */
@media(max-width: 768px) {
    .custom-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media(max-width: 480px) {
    .custom-gallery {
        grid-template-columns: 1fr;
    }
}
.about-background {
    background-image: url('background-image: url('/images/IMG_5479.png'); /* ← ajuste le chemin si besoin */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
}

.about-background .overlay {
    background-color: rgba(255, 255, 255, 0.85); /* fond blanc transparent */
    padding: 40px;
    border-radius: 16px;
}
/* ===== MODALE PAYPAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-content img.paypal-qr {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.modal .close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}