/* ==============================
   IMPORT GOOGLE FONTS
============================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;700&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #f5f2ed;
    padding-top: 112px;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f1f1f;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
}


.button {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: none;
    background-color: #bfa76f;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #a18d5d;
    transform: translateY(-2px);
}


.police-1 {
    font-family: 'League Spartan', sans-serif;
}

.police-2 {
    font-family: 'Montserrat Alternates', sans-serif;
}

.justify {
    text-align: justify;
}

.center {
    text-align: center;
}

.link-plm {
    color: inherit;
    text-decoration: none;
    opacity: 1;
}

.link-plm:hover {
    opacity: 0.65;
    text-decoration: underline;
}

/* Header luxueux */
#mobile-header { 
    display: none; 
}

.header-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 95vw;
    z-index: 1000;
    padding: 0;
}

header.lux-header {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    background-color: #fffefc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 20px;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    box-sizing: border-box;
}


.header-center {
    display: flex;
    justify-content: center;
}


.header-right {
    display: flex;
    justify-content: right;
    gap: 40px;
    align-items: center;
}

.header-left {
    display: flex;
    justify-content: left;
    gap: 40px;
    align-items: center;
}

/* Items */
.header-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header-item img {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.header-item:hover {
    color: #bfa76f;
    text-decoration: none;
}

/* Logo */
header img.logo {
    height: 80px;
    object-fit: contain;
}

/* banner */
.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: filter 6s ease; /* transition sur 2s */
}

.banner-image.color {
    filter: grayscale(0%);
}

#bannermb {
    display: none;
}

/* Footer luxueux minimaliste */

footer.lux-footer {
background-color: #fffefc; /* blanc crème luxueux */
padding: 25px 40px;
box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
display: flex;
justify-content: center;
align-items: center; /* centrage vertical */
color: #333;
flex-wrap: wrap;
}


footer .footer-content {
display: flex;
justify-content: space-between;
width: 100%;
max-width: 1200px;
gap: 20px;
align-items: stretch; /* alignement haut-bas uniforme */
}


footer .footer-left, footer .footer-center, footer .footer-right {
display: flex;
flex-direction: column;
justify-content: space-between; /* répartir le contenu verticalement */
gap: 8px;
text-align: center;
}


footer .footer-center a, footer .footer-right a {
color: #333;
text-decoration: none;
transition: color 0.3s ease;
}


footer .footer-center a:hover, footer .footer-right a:hover {
color: #bfa76f; /* accent doré luxueux */
}

.lux-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.slide-right {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.slide-left {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

.lux-image img {
    width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lux-section .visible {
    opacity: 1;
    transform: translateX(0);
}

/* form */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px 40px;
}

.contact-form-container {
    background-color: #fffefc;
    padding: 20px 50px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    width: 100%;
}

.contact-form-title {
    font-size: 2rem;
    text-align: center;
    color: #1c1c1c;
    margin : 20px;
}

.contact-form-group, .contact-form-group-name, .contact-captcha-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-form-group-name {
    flex-direction: row;
    gap: 20px;
}

.contact-div-name {
    flex: 1;
}

.contact-form-label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #555;
}

.contact-input, .contact-input-message, .contact-form-select {
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-input:focus, .contact-input-message:focus, .contact-form-select:focus {
    outline: none;
    border-color: #bfa76f;
    box-shadow: 0 0 8px rgba(191, 167, 111, 0.3);
}

.contact-input-message {
    min-height: 60px;
    resize: vertical;
}

.contact-captcha-container {
    flex-direction: column;
    gap: 10px;
}

.contact-captcha-container label {
    font-weight: 500;
}

.contact-captcha-color {
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-div-btn {
    text-align: center;
}

.contact-btn {
    padding: 14px 30px;
    background-color: #bfa76f;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #a68d5f;
    transform: translateY(-2px);
}

.contact-success, .contact-error {
    text-align: center;
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-weight: 600;
}

.contact-success {
    background-color: #d4edda;
    color: #155724;
}

.contact-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ==========================
   Newsletter Form
   ========================== */
.newsletter-section {
    display: flex;
    justify-content: center;
    padding: 0px 20px 40px;
}

.newsletter-container {
    background-color: #fffefc;
    padding: 0px 30px 30px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.newsletter-container p {
    margin: 20px;
}

.newsletter-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-container input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-container input[type="email"]:focus {
    outline: none;
    border-color: #bfa76f;
    box-shadow: 0 0 8px rgba(191, 167, 111, 0.3);
}

.newsletter-container button {
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    background-color: #bfa76f;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.newsletter-container button:hover {
    background-color: #a18d5d;
    transform: translateY(-2px);
}

/* Messages */
.newsletter-message {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.newsletter-message.success {
    color: green;
}

.newsletter-message.warning {
    color: orange;
}

.newsletter-message.error {
    color: red;
}

/* ===============================
   SECTION PRODUITS
=============================== */
.product-section-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
    padding: 0 20px;
    max-width: 850px; /* aligné avec le header */
    width: 100%;
}

/* Texte d’intro au-dessus de la grille */
.product-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 16px;
}

.product-section-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Grille des produits */
.product-grid {
    display: flex;
    flex-wrap: nowrap; /* Toujours sur une ligne */
    justify-content: center;
    gap: 20px; /* Espace entre les cartes */
    width: 100%;
}

/* Carte produit */
.product-index {
    flex: 1 1 0; /* Chaque carte prend une part égale */
    max-width: calc((100% - 60px)/4); /* 4 cartes avec gap */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Wrapper image */
.product-image-wrapper {
    width: 100%;
    aspect-ratio: 454 / 1467; /* Ratio image */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Titre produit */
.product-title {
    margin: 12px 0px 12px;
    text-align: center;
    font-size: 16px; /* max 14px comme demandé */
    font-weight: 500;
    color: #1f1f1f;
    word-wrap: break-word; /* pour éviter que ça déborde */
}

/* Hover léger carte */
.product-index:hover {
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

/* Description globale */
.product-description-global {
    margin-top: 40px;
    padding: 24px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    max-width: 900px;
    text-align: center;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-hint {
    display: none;
}

.mar {
    margin-bottom: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #1f1f1f;
    word-wrap: break-word;
}
/* =============================
    Bec css ouverture
==============================*/

.img-bec {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ouv-m {
    margin-bottom: 0px;
}

.ouv-li {
    margin-top: 8px;
}

.div-ouv {
    display: grid;
    grid-template-columns: 20% 56% 20%;
    gap : 2%;
    width: 100%;
}

.ouv-left,
.ouv-right {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.ouv-left {
    text-align: left;
}

.ouv-right {
    text-align: right;
    direction: rtl;
}

.ouv-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.size {
    font-size: 13px;
}

/* =============================
    Bec css audio
==============================*/

.div-audio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap : 10%;
    width: 100%;
}

.audio-left {
    text-align: left;
}

.audio-right {
    text-align: right;
    direction: rtl;
}

.audio-left audio,
.audio-right audio {
    width: 100%;
    max-width: 100%;
}

.div-btn {
    text-align: center;
    margin: 20px 0px 5px;
}

.div-btn-n {
    text-align: center;
    margin: 0px;
}

/* ==========================
   Popup Overlay
   ========================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

/* Activer le popup */
.popup-overlay.active {
    display: flex;
}

.popup-content {
    position: relative;
    background-color: #fffefc;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 20px 20px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    animation: popupFade 0.3s ease-out;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: #bfa76f;
}

.popup-padd {
    padding: 20px 30px 30px;
}

/* ===============================
   RESPONSIVE – MOBILE
=============================== */
@media (max-width: 768px) {

    body {
        padding-top: 90px; /* header plus compact plus tard */
    }

    h2 {
        font-size: 26px;
        text-align: center;
    }

    p {
        font-size: 15px;
        padding: 0 10px;
    }

    /* ===============================
       SECTIONS GÉNÉRALES
    =============================== */
    .lux-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        text-align: center;
    }

    .slide-left,
    .slide-right {
        transform: none;
        opacity: 1;
    }

    .lux-image img {
        border-radius: 10px;
    }

    #banner {
        display: none;
    }
    #bannermb {
        display: block;
    }

    /* ===============================
       FORMULAIRES
    =============================== */
    .contact-section {
        padding: 20px 10px 40px;
    }

    .contact-form-container {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .contact-form-group-name {
        flex-direction: column;
        gap: 14px;
    }

    .contact-form-title {
        font-size: 1.6rem;
    }

    .contact-btn {
        width: 100%;
    }

    /* ===============================
       NEWSLETTER
    =============================== */
    .newsletter-container {
        padding: 20px;
    }

    /* ===============================
       Popup NEWSLETTER
    =============================== */

    .popup-content {
        box-sizing: border-box;
    }

    .popup-padd {
        padding: 10px;
        box-sizing: border-box;
    }

    /* ===============================
       FOOTER
    =============================== */
    footer.lux-footer {
        padding: 30px 20px;
    }

    footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    footer .footer-left,
    footer .footer-center,
    footer .footer-right {
        align-items: center;
    }

    /* ===============================
       header
    =============================== */

    #desktop-header { 
        display: none; 
    }

    #mobile-header { 
        display: flex; 
        flex-direction: column; 
    }

    .mobile-header-inner {
        display: grid;
        grid-template-columns: 50% 50%;
        padding: 15px 20px;
        align-items: center;
        background-color: #fffefc;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        box-sizing: border-box;
    }

    .mobile-header-left {
        display: flex;
        justify-content: left;
        align-items: center;
    }

    .mobile-header-right {
        display: flex;
        justify-content: right;
        align-items: center;
    }

    .logo-mobile {
        height: 50px;
        object-fit: contain;
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        background-color: #fffefc;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        width: 100%;
        border-radius: 20px;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .mobile-menu a {
        padding: 12px 20px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .mobile-menu a:first-child {
        border-top: none;
    }

    .mobile-menu a:hover {
        color: #bfa76f;
    }

    /* Hamburger Uiverse */
    .hamburger {
        cursor: pointer;
    }
    .hamburger input { 
        display: none; 
    }

    .hamburger svg {
        height: 2.5em;
        transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .line {
        fill: none;
        stroke: #333;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
        transition: stroke-dasharray 600ms cubic-bezier(0.4,0,0.2,1), stroke-dashoffset 600ms cubic-bezier(0.4,0,0.2,1);
    }
    .line-top-bottom { 
        stroke-dasharray: 12 63; 
    }

    .hamburger input:checked + svg { 
        transform: rotate(-45deg); 
    }

    .hamburger input:checked + svg .line-top-bottom {
        stroke-dasharray: 20 300;
        stroke-dashoffset: -32.42;
    }
}

@media (max-width: 900px) {
    /* ===============================
       PRODUITS
    =============================== */
    .button {
        padding: 9px 10px;
        border-radius: 8px;
        border: none;
        font-size: clamp(11px, 3vw, 14px);
        white-space: nowrap;
        cursor: pointer;
        text-decoration: none;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .product-section-index {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 40px auto;
        padding: 0 20px;
        max-width: 700px;
        max-width: 90vw;
    }

    .product-section-header h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 16px;
        color: #1f1f1f;
    }

    .product-section-header p {
        font-size: 15px;
        line-height: 1.6;
        color: #333;
        max-width: 800px;
        margin: 0 auto;
    }

    /* Grille des cartes */
    .product-grid {
        display: flex;
        flex-wrap: nowrap; /* empêche le passage en colonne */
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding-bottom: 5px;
    }

    .product-index {
        max-width: calc((100% - 20px)/2);
        padding: 5px;
    }

    /* Titre */
    .product-title {
        margin: 10px 0px 8px 0px;
        text-align: center;
        font-size: 12px;
        font-weight: 500;
        color: #1f1f1f;
        word-wrap: break-word;
    }

    .mobile-hint {
        display: block;
        font-size: 12px;
        font-style: italic;
        text-align: center;
    }

    .mar {
        margin-bottom: 8px;
        text-align: center;
        font-size: 12px;
        font-weight: 500;
        color: #1f1f1f;
        word-wrap: break-word;
    }
}
