/* ==========================================================================
   1. CONFIGURATION GÉNÉRALE & POLICE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* Empêche le scroll sur le body pour garder le titre fixe */
    background-color: #FFFFFF;
    /* Fond blanc opaque systématique */
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. EN-TÊTE FIXE (TITRE ORANGE) & LEGAL HEADER
   ========================================================================== */
.header-title {
    background-color: #F55B41;
    color: white;
    font-weight: 700;
    font-size: 24px;
    padding: 0 60px;
    height: 92px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
}

.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    width: 100%;
    box-sizing: border-box;
    background-color: #FFFFFF;
}

.btn-back {
    background-color: #F55B41;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: #d94e36;
}

.btn-back .arrow {
    font-size: 24px;
    line-height: 1;
}

.servier-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.header-title-blue {
    background-color: #323C8E;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 30px;
    padding: 0 60px;
    height: 92px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

/* ==========================================================================
   2. POPUP TEXTE/IMAGE
   ========================================================================== */

.split-layout {
    display: flex;
    height: 100%;
    width: 100%;
    /* On force l'alignement des colonnes vers le haut */
    align-items: flex-start;
}

.text-side {
    flex: 1.2;
    padding: 20px 20px 20px 0px;
    display: flex;
    color: #24226A;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    overflow-y: auto;
    /* Sécurité si le texte est long sur petit écran */
}

.split-layout .photo-side {
    flex: 0 1 40%;
    min-width: 25%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.split-layout .photo-side img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.quote {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #24226A;
    margin-bottom: 20px;
    line-height: 1.4;
}

.quote-orange {
    color: #F55B41;
}

.signature {
    margin-top: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    /* Ajustez cette valeur pour réduire la taille */
    font-weight: 700;
    color: #24226A;
}

.job-title {
    font-weight: 400;
    color: #24226A;
    font-size: 14px;
    /* Ajustez cette valeur pour réduire la taille */
    margin-left: 5px;
}

/* ==========================================================================
   3. ZONE DE CONTENU DÉFILANTE (SCROLL GLOBAL)
   ========================================================================== */
.content-container {
    flex-grow: 1;
    overflow-y: auto;
    /* Scroll vertical activé ici uniquement si nécessaire */
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 15px 60px 0 60px;
    /* 15px top, 60px side */
}

.content-image {
    display: block;
    margin: 0 auto;
    max-width: 95%;
    max-height: 95%;
    width: 100%;
    height: auto;
    flex: 1;
    min-height: 0;
    object-fit: contain;
}

/* Texte d'introduction au-dessus de la mosaïque */
.intro-text {
    padding: 0px 0px;
    color: #24226A;
    font-size: 16px;
    line-height: 1.6;
    max-width: 1200px;
    text-align: left;
}

/* ==========================================================================
   4. MOSAÏQUE VIDÉO RESPONSIVE
   ========================================================================== */
.video-mosaic {
    display: grid;
    /* Par défaut (Desktop) : 4 colonnes pour faire 2 lignes de 4 */
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    padding: 0 46px 40px 46px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    justify-content: center;
    box-sizing: border-box;
}

/* Tablette : 2 colonnes pour faire 4 lignes de 2 */
@media (max-width: 1100px) {
    .video-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile : 1 colonne pour faire 8 lignes de 1 */
@media (max-width: 600px) {
    .video-mosaic {
        grid-template-columns: repeat(1, 1fr);
    }
}

.video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Garantit que le format reste constant */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    transition: box-shadow 0.2s ease;
}

/* Layer bleu Servier #323C8E (Opacité 0.75) [cite: 5] */
.video-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 60, 142, 0.75);
    /* #323C8EBF */
    z-index: 1;
    transition: opacity 0.2s ease-in-out;
}

/* Masquage du bleu au survol */
.video-item:hover::before {
    opacity: 0;
}

.video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    /* Invisible par défaut */
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    /* Laisse le conteneur gérer le survol */
}

/* Affichage de la vidéo au survol */
.video-item:hover video {
    opacity: 1;
    pointer-events: auto;
}

.video-item.active {
    box-shadow: inset 0 0 0 3px #D4DEF2;
    /* Bordure de 3px couleur #D4DEF2 */
}

.video-item.active::before {
    opacity: 0;
}

.video-item.active video {
    opacity: 1;
}

/* ==========================================================================
   5. NAVIGATION & SCROLLBAR
   ========================================================================== */
.nav-btn {
    position: fixed;
    /* Centrage vertical */
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    /* Optionnel : transition pour un effet fluide */
    transition: opacity 0.3s ease;
}

.btn-prev {
    left: 10px;
}

.btn-next {
    right: 10px;
}

/* On s'assure que les images dans les boutons ne sont pas déformées */
.nav-btn img {
    display: block;
    width: auto;
    height: auto;
}

/* ==========================================================================
   6. SIGNATURE & TEXTES SPÉCIFIQUES
   ========================================================================== */
.signature {
    margin-top: 30px;
    font-weight: 700;
    font-size: 14px;
    color: #24226A;
}

.job-title {
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

/* ==========================================================================
   7. PAGES LAB
   ========================================================================== */
/* Grille des boutons */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 colonnes égales */
    grid-template-rows: repeat(5, 1fr);
    /* 5 lignes égales */
    gap: 10px;
    /* Espace entre les boutons */
    padding: 0 0px 20px 0px;
    flex-grow: 1;
    /* Prend tout l'espace restant */
    width: 100%;
    box-sizing: border-box;
}

/* Style de base des boutons */
.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: white;
    padding: 10px;
    border-radius: 0px;
}

/* Couleurs de fond (background)de la page Lab*/
.bg-blue-dark {
    background-color: #3B458C;
}

/* Bleu foncé */
.bg-cyan {
    background-color: #58C1D6;
}

/* Turquoise */
.bg-blue-light {
    background-color: #DDE4F3;
}

/* Bleu très clair */
.bg-orange {
    background-color: #F55B41;
}

/* Orange */
.bg-yellow {
    background-color: #FFC000;
}

/* Jaune */
.bg-navy {
    background-color: #262261;
}

/* Bleu nuit */

/* Couleurs de texte (foreground) */
.text-white {
    color: #FFFFFF;
}

.text-blue {
    color: #3B458C;
}

.text-dark {
    color: #1D1D1B;
}

/* Pour le bouton jaune */

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: clamp(10px, 1.5vw, 18px);
    padding: 5px 10px;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.2;
}

@media (max-height: 500px) {
    .grid-item {
        font-size: 10px;
        padding: 2px 5px;
    }

    .intro-text {
        font-size: 13px;
        padding: 10px 60px;
    }

    .header-title {
        height: 60px;
        font-size: 20px;
    }
}


/* ==========================================================================
   8. PAGE SPARTNERS
   ========================================================================== */

/* Bouton spécifique pour la page Spartners 03_03 */
.cta-container {
    position: absolute;
    bottom: 5%;
    right: 32%;
    width: 33%;
    height: 12%;
    display: flex;
}

.cta-link {
    width: 100%;
    height: 100%;
    text-decoration: none;
    background-color: transparent;
    cursor: pointer;
}

.btn-spartners {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space between text and arrow */
    background-color: #F55B41;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    /* Updated font size */
    padding: 0 30px;
    /* Horizontal padding, vertical handled by height/flex */
    text-decoration: none;
    border-radius: 4px;
    /* Assuming rounded corners from previous context, user didn't specify but it's standard */
    transition: background-color 0.3s;
    width: 362px;
    /* Fixed width */
    max-width: 100%;
    /* Adaptable */
    height: 62px;
    /* Fixed height */
    box-sizing: border-box;
}

.btn-spartners:hover {
    background-color: #d94e36;
}


/* ==========================================================================
   8. PAGE PODCAST
   ========================================================================== */

/* Conteneur spécifique pour les boutons de podcast 10_01 */
/* Conteneur spécifique pour les boutons de podcast 10_01 */
.podcast-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-start;
}

/* Base Podcast Button Style */
/* Base Podcast Button Style (Orange - similar to btn-spartners but smaller width) */
.btn-podcast-orange {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F55B41;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 0 20px;
    /* Reduced padding */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    width: 176px;
    /* Specific width */
    height: 62px;
    box-sizing: border-box;
}

.btn-podcast-orange:hover {
    background-color: #d94e36;
}

/* Styles spécifiques pour les documents textuels */
.policy-content {
    font-family: 'Poppins', sans-serif;
    color: #24226A;
    padding: 40px 60px;
    line-height: 1.6;
    overflow-y: auto;
    /* Permet le scroll vertical interne si le texte est long */
    flex-grow: 1;
}

.policy-content h2 {
    color: #24226A;
    font-weight: 700;
    font-size: 20px;
    margin-top: 30px;
    padding-bottom: 5px;
}

.policy-content h3 {
    color: #24226A;
    font-weight: 700;
    font-size: 20px;
    margin-top: 30px;
    padding-bottom: 5px;
}

.policy-content p,
.policy-content li {
    font-weight: 400;
    font-size: 15px;
}

.policy-content ul {
    padding-left: 20px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.cookie-table th {
    background-color: #DDE4F3;
    color: #24226A;
    text-align: left;
    padding: 10px;
    border: 1px solid #ccc;
}

.cookie-table td {
    padding: 10px;
    border: 1px solid #ccc;
}

.link-blue {
    color: #24226A;
    text-decoration: underline;
}

/* ==========================================================================
   PAGE LABORATOIRE
   ========================================================================== */

/* Conteneur pour centrer le tableau */
.info-table-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0px;
    width: 100%;
    box-sizing: border-box;
}

.content-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
}

/* Style de la ligne de titre du tableau */
.content-table th {
    padding: 10px;
    font-size: 22px;
    text-align: center;
    text-transform: uppercase;
    border: none;
}

/* Style des cellules */
.content-table td {
    background-color: transparent;
    padding: 0px;
    vertical-align: top;
    border: none;
}

.col-image {
    width: 200px;
    padding-right: 10px;
}

.col-text {
    padding-left: 0;
    font-size: 16px;
    color: #24226A;
    line-height: 1.5;
}

.col-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 0px;
}

.legend-text {
    font-size: 13px;
    color: #24226A;
    padding: 10px 60px;
    /* Alignement avec le reste du contenu (60px) */
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   PAGE OUR VALUES
   ========================================================================== */

/* --- Première ligne --- */
.row-intro {
    background-color: #FFFFFF;
    /* Fond blanc */
    padding: 0px 46px;
    color: #24226A;
    /* Texte bleu spécifié */
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
}

/* --- Deuxième ligne (4 colonnes) --- */
.row-columns {
    display: flex;
    gap: 10px;
    padding: 0 46px 20px 46px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    /* Force toutes les colonnes à avoir la même hauteur */
}

.col-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 15px;
    border-radius: 4px;
    color: #24226A;
}

/* Boîte englobante pour l'icône */
.icon-box {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Alignement des titres */
.col-item h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    /* On fixe une hauteur mini pour que les paragraphes commencent au même niveau */
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alignement des textes */
.col-item p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
    /* Pousse le contenu vers le haut mais garde l'espace occupé */
}

/* Couleurs de fond de la page Our values (Classes propres sans espaces invisibles) */
.bg-vert {
    background-color: #91C461;
}

.bg-cyan2 {
    background-color: #47BFD9;
}

.bg-bleu {
    background-color: #323C8E;
}

.bg-jaune {
    background-color: #FDC400;
}

/* Applique le texte blanc automatiquement aux colonnes vertes et bleues */
.bg-vert,
.bg-bleu {
    color: #FFFFFF;
}

/* Assure que les titres h3 héritent aussi de la couleur blanche */
.bg-vert h3,
.bg-bleu h3 {
    color: #FFFFFF;
}

/* Assure que les textes héritent aussi de la couleur blanche */
.bg-vert p,
.bg-bleu p {
    color: #FFFFFF;
}

/* Premiere ligne des pages hybride*/
.text-highlight {
    color: #F55B41;
    /* Utilise votre orange Servier par exemple */
    font-weight: bold;
    /* Optionnel : pour faire ressortir le mot */
}


/* ==========================================================================
   PAGE CHIFFRES CLES (Key Figures)
   ========================================================================== */
.key-figures-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 50px;
    padding: 0 46px 40px 46px;
    width: 80%;
    /* Width set to 80% */
    max-width: none;
    margin: 0 auto;
    align-items: start;
}

.constraint-80 {
    width: 80%;
    margin: 0 auto;
    max-width: none;
}

.constraint-90 {
    width: 90%;
    margin: 0 auto;
    max-width: none;
}

.key-figure-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.figure-icon-box {
    width: 70px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.figure-icon-box img {
    width: 60px;
    height: auto;
    display: block;
}

.figure-separator {
    width: 2px;
    align-self: stretch;
    background-color: #F55B41;
    min-height: 60px;
}

.figure-content {
    flex: 1;
    color: #24226A;
    font-size: 15px;
    line-height: 1.4;
}

.figure-highlight {
    color: #F55B41;
    font-weight: 700;
    font-size: 26px;
}

.figure-highlight-small {
    color: #F55B41;
    font-weight: 700;
    font-size: 20px;
}

.figure-title {
    color: #F55B41;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
    display: block;
}

.figure-content p {
    margin: 0;
    padding: 0;
}

.figure-group {
    margin-bottom: 8px;
}

.key-figure-full {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.oncology-highlight {
    color: #24226A;
    font-weight: 700;
    font-size: 20px;
}

.oncology-highlight span {
    color: #F55B41;
}

@media (max-width: 768px) {
    .key-figures-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .figure-highlight {
        font-size: 22px;
    }
}

/* ==========================================================================
   RANKING LIST (Popup 02_04_3)
   ========================================================================== */
.ranking-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.ranking-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ranking-icon {
    width: 60px;
    flex-shrink: 0;
}

.ranking-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.ranking-text {
    font-size: 16px;
    color: #24226A;
    line-height: 1.4;
}

.text-orange {
    color: #F55B41;
}

.text-small {
    font-size: 14px;
}

/* ==========================================================================
   POPUP 02_04_4 (3 Columns + Bottom Banner)
   ========================================================================== */
.col-3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 30px;
    padding: 0 46px 20px 46px;
    width: 80%;
    max-width: none;
    /* Remove max-width limit to respect 80% strictly, or keep a large max-width if preferred. 80% is usually enough */
    margin: 0 auto;
    align-items: start;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.feature-title {
    color: #F55B41;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
}

.feature-text {
    font-size: 14px;
    color: #24226A;
    line-height: 1.4;
}

.bottom-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 46px 40px 46px;
    /* Bottom padding larger */
    width: 80%;
    max-width: none;
    margin: 0 auto;
}

.banner-chart {
    width: 120px;
    flex-shrink: 0;
}

.banner-chart img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-text-box {
    background-color: #24226A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 0px;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .col-3-grid {
        grid-template-columns: 1fr;
    }

    .bottom-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   POPUP 05_02 (Certifications) - Unified Table Layout
   ========================================================================== */
.cert-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    align-items: start;
    box-sizing: border-box;
    padding: 0 0px 40px 0px;
}

/* Row 1: Gallup Top (Icon + Title) */
.cert-header-top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 0px;
}

.cert-gallup-logo {
    width: 100px;
    /* Adjusted size for icon */
    flex-shrink: 0;
}

.cert-header-title {
    font-size: 18px;
    /* Slightly larger */
    color: #24226A;
    /* Blue */
    font-weight: 700;
    /* Bold */
    line-height: 1.4;
}

/* Row 2: Gallup Description (Full Width) */
.cert-header-desc {
    grid-column: 1 / -1;
    font-size: 16px;
    color: #24226A;
    line-height: 1.4;
    margin-bottom: 20px;
}

.cert-focus-text {
    /* Deprecated, styles moved to .cert-header-title */
    display: none;
}

/* Row 2: 4 Columns (Individual Items) */
.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    /* Each item naturally takes 1 column of the grid */
}

.cert-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cert-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    display: block;
}

.cert-text {
    font-size: 14px;
    color: #24226A;
    font-weight: 700;
    line-height: 1.3;
}

/* Row 3: Footer (Banner + Subtext) - Full Width */
.cert-footer-block {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cert-subtext {
    font-weight: 400;
    font-size: 13px;
    color: #24226A;
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.cert-banner {
    background-color: #262261;
    /* Navy Blue */
    color: white;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    padding: 20px 46px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    /* Ensure block display */
}

.highlight-yellow {
    background-color: #FDC400;
    color: #262261;
    padding: 2px 5px;
}

@media (max-width: 900px) {
    .cert-table {
        grid-template-columns: 1fr 1fr;
    }

    .cert-header-gallup {
        flex-direction: column;
        align-items: flex-start;
    }
}