/* style.css (Version finale avec styles de légende Instagram) */

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

html, body {
    height: 100%;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #3d3d3d;
    background-color: #faf8f5;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

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

.hidden {
    display: none;
}

header {
    background-color: #f5f1e8;
    padding: 20px 0;
    border-bottom: 1px solid #d4c5a9;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo {
    height: 60px;
    width: auto;
}

.brand-name {
    font-size: 28px;
    font-weight: 400;
    color: #4a4035;
    letter-spacing: 2px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* style.css (Ajoutez cette nouvelle règle à la fin du fichier) */

/* Assure que le lien autour du titre n'ajoute pas de style visuel (comme un soulignement) */
.brand-name-link {
    text-decoration: none;
}

/* Styles de présentation pour la nouvelle page Conditions */
.conditions-section {
    padding: 60px 0;
    text-align: left;
    background-color: #ffffff;
}

.conditions-section h2 {
    font-size: 32px;
    font-weight: 500;
    color: #4a4035;
    margin-bottom: 30px;
    text-align: center;
}

.conditions-section h3 {
    font-size: 24px;
    font-weight: 500;
    color: #6b5d52;
    margin-top: 25px;
    margin-bottom: 10px;
}

.conditions-section p {
    font-size: 16px;
    color: #3d3d3d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-wrapper {
    display: flex;
    justify-content: flex-end;
}

.lang-btn {
    background: none;
    border: none;
    color: #8b7d6b;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.lang-btn.active {
    color: #4a4035;
    font-weight: 600;
}

.lang-btn:hover {
    color: #4a4035;
}

.separator {
    color: #d4c5a9;
}

.contact-btn {
    background-color: #4a4035;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

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

.contact-btn:active {
    transform: translateY(0);
}

.hero {
    background-color: #ffffff;
    padding: 5px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    font-weight: 400;
    color: #4a4035;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 18px;
    color: #6b5d52;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.action-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #4a4035;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(74, 64, 53, 0.2);
}

.btn-primary:hover {
    background-color: #6b5d52;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 64, 53, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #4a4035;
    border: 2px solid #4a4035;
}

.btn-secondary:hover {
    background-color: #f5f1e8;
    transform: translateY(-3px);
}


.values {
    background-color: #f5f1e8;
    padding: 80px 0;
}

.values h3 {
    font-size: 36px;
    font-weight: 400;
    color: #4a4035;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.value-item {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #e8dfc9;
    text-align: center;
}

.value-item h4 {
    font-size: 22px;
    font-weight: 500;
    color: #4a4035;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.value-item p {
    font-size: 16px;
    color: #6b5d52;
    line-height: 1.6;
}

.instagram-section {
    background-color: #ffffff;
    padding: 80px 0;
    text-align: center; /* Center the h3 */
}

.instagram-section h3 {
    font-size: 36px;
    font-weight: 400;
    color: #4a4035;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

footer {
    background-color: #4a4035;
    color: #f5f1e8;
    padding: 30px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
}

/* =============================================================
   CAROUSEL GÉNÉRAL (PHOTOS ET INSTAGRAM)
   Style 3D Card Carousel (5 CARTES)
   ============================================================= */

.carousel-wrapper,
.instagram-grid {
    position: relative;
    overflow: hidden;
    padding: 50px 0;
    background: none;
    min-height: 450px;
    display: block;
}

.slider,
#instagram-feed-container {
    position: relative;
    height: 420px;
    width: 100%;
}

/* Style général pour les cartes */
.slide {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg) scale(0.8);
    width: 250px;
    height: 350px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease, opacity 0.6s ease, z-index 0s 0.6s;
    opacity: 0;
    z-index: 1;
    backface-visibility: hidden;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.insta-link-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    z-index: 1;
}


/* Conteneur pour la vidéo et le bouton de lecture */
.video-wrapper {
    position: relative;
    flex-grow: 1; /* Permet au conteneur de grandir */
    min-height: 0; /* Correction pour Flexbox */
    width: 100%;
    background-color: #000; /* Fallback color */
}

/* New: iframe wrapper for aspect ratio */
.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio (Instagram posts are often square) */
    height: 0;
    overflow: hidden;
    flex-grow: 1;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Bouton de lecture personnalisé (now only for desktop) */
.play-button-overlay {
    /* Removed styles for play button overlay as it's no longer used */
    display: none; /* Ensure it's hidden */
}

.play-button-overlay.is-hidden {
    /* Removed styles for play button overlay as it's no longer used */
    display: none; /* Ensure it's hidden */
}

.play-button-overlay::after {
    /* Removed styles for play button overlay as it's no longer used */
    display: none; /* Ensure it's hidden */
}


/* Images et vidéos à l'intérieur des cartes */
.slide img,
.insta-link-wrapper img,
.insta-link-wrapper video,
.slide > .video-wrapper video { /* Added for mobile video direct child of slide */
    width: 100%;
    height: 100%; /* Fait en sorte que le média remplisse son conteneur */
    object-fit: cover;
    border-radius: 0;
}

/* Les légendes sous les images */
.caption {
    position: static;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    flex-shrink: 0; /* Empêche la légende de rétrécir */
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insta-caption-link {
    text-decoration: none;
    color: inherit;
}


/* Styles pour les flèches de navigation */
.carousel-wrapper .prev,
.carousel-wrapper .next,
.instagram-grid .prev,
.instagram-grid .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(74, 64, 53, 0.7);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    font-size: 1.5em;
    transition: background-color 0.3s ease;
}

.carousel-wrapper .prev:hover,
.carousel-wrapper .next:hover,
.instagram-grid .prev:hover,
.instagram-grid .next:hover {
    background-color: #4a4035;
}

.carousel-wrapper .prev,
.instagram-grid .prev {
    left: 10px;
}

.carousel-wrapper .next,
.instagram-grid .next {
    right: 10px;
}

/* Les indicateurs de points sous le carrousel photo */
.dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.dots-container .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dots-container .dot.active-dot {
    background-color: #4a4035;
}


/* =============================================================
   RÉACTIVITÉ
   ============================================================= */

@media (max-width: 768px) {
    .slide,
    .instagram-post-link {
        width: 220px;
        height: 320px;
    }

    .carousel-wrapper,
    .instagram-grid {
        padding: 30px 0;
    }

    .slider,
    #instagram-feed-container {
        height: 380px;
    }

    .play-button-overlay {
        display: none; /* Hide custom play button on mobile */
    }
}

@media (max-width: 480px) {
    .slide,
    .instagram-post-link {
        width: 180px;
        height: 250px;
    }

    .slider,
    #instagram-feed-container {
        height: 300px;
    }

    .carousel-wrapper .prev,
    .carousel-wrapper .next,
    .instagram-grid .prev,
    .instagram-grid .next {
        padding: 5px 10px;
        font-size: 1em;
    }

    .caption {
        font-size: 0.8em;
        padding: 8px;
        max-height: 3.5em;
    }
}

/* style.css (À ajouter à la fin) */

/* Styles pour la section de contact */
.contact-section {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
}

.contact-section h2 {
    font-size: 32px;
    font-weight: 500;
    color: #4a4035;
    margin-bottom: 20px;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #6b5d52;
}

/* Styles du formulaire */
#contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f5f1e8; /* Couleur de fond légère */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a4035;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="subject"],
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #ffffff;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #4a4035;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    background-color: #6b5d52;
}

/* Style pour le bouton "Contattaci" désactivé sur cette page */
.contact-btn.disabled {
    cursor: default;
    opacity: 0.6;
}
.contact-btn.disabled:hover {
    background-color: #8b7d6b; /* Maintient la couleur de base */
}

.form-header {
    margin-bottom: 30px;
    display: flex; /* Use flexbox */
    justify-content: center; /* Center horizontally */
    width: 100%; /* Ensure it takes full width to center its content */
}