@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');
/* ---------------------------------------------------------------------- */
/* 1. VARIABLES GLOBALES ET RÉINITIALISATION */
/* ---------------------------------------------------------------------- */
:root {
    /* Couleurs originales (Chaudes et Actives) */
    --primary-color: #ff9966;
    --secondary-bg: #f7e6f0;
    --background-start: #ffedef;
    --background-end: #f0f8ff;
    --content-bg: #ffffff; /* Fond blanc classique */

    /* Ombres et Espacements pour un rendu luxe/moderne */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-deep: 0 8px 30px rgba(0, 0, 0, 0.2);
    --padding-wide: 40px;
    --main-radius: 20px; /* Nouvelle variable pour le rayon de la carte principale */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
}

body {
    /* Centrage de la "Carte Luxe" (main) avec padding autour */
    background: linear-gradient(135deg, var(--background-start) 0%, var(--background-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligner le contenu en haut */
    padding: 40px 20px; /* Espace autour du conteneur principal */
}

/* ---------------------------------------------------------------------- */
/* 2. STRUCTURE PRINCIPALE (MAIN & WRAPPER) - Grande Carte Arrondie */
/* ---------------------------------------------------------------------- */
main {
    width: 100%;
    /* Max-width pour un grand conteneur centré */
    max-width: 1050px;

    background: var(--content-bg);
    border-radius: var(--main-radius); /* Bords arrondis sur tout le conteneur principal */
    box-shadow: var(--shadow-deep);
    overflow: hidden; /* **ESSENTIEL** pour que le contenu (vidéo) respecte les bords arrondis */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wrapper pour limiter le contenu (texte\widgets) et le centrer à l'intérieur de MAIN */
.content-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--padding-wide);
}

/* ---------------------------------------------------------------------- */
/* 3. SECTION MEDIA (VIDÉO ET BANNIÈRE) - IMPOSANT */
/* ---------------------------------------------------------------------- */
.media-container {
    width: 100%;
    height: 550px;
    position: relative;
    overflow: hidden;
    /* Suppression des arrondis ici. Ils sont hérités de 'main' */
    box-shadow: none;
}

.media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- BANNIÈRE LOGO (Pleine largeur, centré) --- */
.banner-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 20;

    /* ========== CHANGEMENT PRINCIPAL : fond blanc ========== */
    background: #ffffff; /* barre blanche sur toute la largeur */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06); /* séparation délicate */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* léger relief pour se détacher de la vidéo */

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.banner-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    /* si ton logo a des bords clairs, on s'assure qu'il reste visible */
    display: block;
}

/* --- SLOGAN SOUS-TITRE (Luxueux et Imposant) --- */
.slogan-subtitle {
    position: absolute;
    bottom: 15%;
    left: 50%;
    /* Utilisation de translateX seul pour centrer horizontalement (bottom gère le vertical) */
    transform: translateX(-50%);

    color: white;
    font-size: 3em;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
    z-index: 10;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* 4. BARRE D'ONGLETS PRINCIPAUX (TABS) - Aéré */
/* ---------------------------------------------------------------------- */
.tabs {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 40px 0 20px 0;
}

.tab {
    cursor: pointer;
    margin: 0 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Style Inactif */
.tab {
    background: linear-gradient(to right, #f7e6f0, #ffe6f7);
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Style Actif (Couleurs Originales) */
.tab.active {
    color: white;
    background: linear-gradient(to right, var(--primary-color), #ff6699);
    box-shadow: 0 4px 10px rgba(255, 153, 102, 0.6);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------- */
/* 5. CONTENU EXPLICATIF ET SOUS-ONGLETS - Aéré */
/* ---------------------------------------------------------------------- */
.tab-content {
    width: 100%;
    padding: 20px 0 50px 0;
}

.explicatif {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
}
.explicatif img { max-width: 100%; height: auto; border-radius: 8px; margin-top: 15px; }

/* Barre des Sous-onglets */
.sub-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.sub-tab {
    cursor: pointer;
    padding: 10px 20px;
    margin: 0 8px;
    border-radius: 50px;
    background: #eee;
    transition: all 0.2s ease;
    font-size: 1em;
    font-weight: 500;
    color: #666;
}

/* Sous-onglet Actif (Couleurs Originales) */
.sub-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(255, 153, 102, 0.4);
}

.iframe-container {
    width: 100%;
    min-height: 550px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

/* ---------------------------------------------------------------------- */
/* 6. ADAPTATION RESPONSIVE */
/* ---------------------------------------------------------------------- */

/* --- Tablette (max 1050px) --- */
@media (max-width: 1050px) {
    .content-wrapper {
        padding: 0 20px;
    }
}

/* --- Tablette (max 768px) --- */
@media (max-width: 768px) {
    .media-container {
        height: 350px;
    }

    .tabs { flex-wrap: wrap; padding: 20px 0 10px 0; }
    .tab { margin: 5px 5px; font-size: 0.9em; padding: 10px 18px; }
    .sub-tabs { flex-wrap: wrap; margin-bottom: 15px; }
    .sub-tab { margin: 5px 5px; font-size: 0.9em; padding: 8px 15px; }

    .slogan-subtitle { font-size: 2em; bottom: 10%; }
}

/* --- Téléphone (max 480px) --- */
@media (max-width: 480px) {
    .media-container {
        height: 250px;
    }

    .tabs { flex-direction: column; }
    .tab { width: 90%; margin: 5px auto; }

    .sub-tabs { flex-direction: column; }
    .sub-tab { width: 90%; margin: 5px auto; }

    .banner-logo {
        height: 50px;
    }
    .banner-logo img {
        height: 35px;
    }
    .slogan-subtitle {
        font-size: 1.5em;
    }
}