/* ==========================================================================
   STYLES POUR L'ESPACE CLIENT - PAGES DE MODULE (VERSION DÉFINITIVE)
   ========================================================================== */

/* --- Structure générale --- */
body {
    background-color: var(--white);
    color: var(--black-pearl);
}

/* --- Header Spécifique Client --- */
.header.client-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 1.5rem 0;
    transition: background-color var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}
.header.client-header:not(.scrolled) .nav-link { 
    color: var(--black-pearl); 
}
.header.client-header:not(.scrolled) .logo-light { 
    display: none; 
}
.header.client-header:not(.scrolled) .logo-dark { 
    display: block; 
}
.header.client-header.scrolled {
    background: linear-gradient(to right, rgb(80, 40, 15) 0%, rgb(132, 70, 29) 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}
.header.client-header.scrolled .nav-link { 
    color: var(--white-rock); 
}
.header.client-header.scrolled .logo-dark { 
    display: none; 
}
.header.client-header.scrolled .logo-light { 
    display: block; 
}

/* --- Section Hero --- */
.client-hero {
    padding-top: 16rem;
    padding-bottom: 8rem;
    text-align: center;
    background-color: var(--white-rock-light);
}
.client-hero .overline { color: var(--walnut); }

/* --- Journal de Bord --- */
.journal-prompt {
    display: flex;
    align-items: center;
    background-color: var(--white-rock);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 3rem;
    max-width: 800px;
    margin: 0 auto 5rem auto;
    border: 1px solid var(--white-rock-medium);
}

.journal-prompt-icon {
    flex-shrink: 0;
    margin-right: 2.5rem;
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--walnut-light), var(--walnut));
    color: var(--white-rock-light);
    box-shadow: var(--shadow-sm);
}

.journal-prompt-icon i {
    width: 2.4rem;
    height: 2.4rem;
}

.journal-prompt-content h4 {
    font-weight: 600;
    font-size: 2.4rem;
    color: var(--black-pearl);
    margin-bottom: 0.5rem;
}

.journal-prompt-content p {
    font-size: 1.6rem;
    color: var(--black-pearl-light);
    line-height: 1.6;
    margin: 0;
}

/* --- Contenu du Module --- */
.module-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.sessions-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 8rem;
}
.session-card-v2 {
    background-color: var(--white-rock-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.session-header {
    background: linear-gradient(to right, rgb(132, 70, 29) 0%, var(--walnut) 100%);
    color: var(--white-rock);
    padding: 2.5rem;
    text-align: center;
}
.session-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}
.session-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    margin: 0.5rem 0;
    letter-spacing: 1px;
}
.session-metaphor {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    opacity: 0.9;
}
.session-content {
    padding: 3rem;
}
.session-content p {
    line-height: 1.7;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- Lecteur Audio de Session --- */
.audio-card-v2.session-player {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--white-rock);
    border-radius: var(--border-radius-lg);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 3rem;
}

.audio-cd {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.audio-card-v2.is-playing .audio-cd {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.audio-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto;
}

.progress-bar-container {
    width: 100%;
    order: 2;
}

.progress-bar { 
    -webkit-appearance: none; 
    appearance: none; 
    width: 100%; 
    height: 4px; 
    background: var(--white-rock-medium); 
    outline: none; 
    border-radius: 2px; 
    cursor: pointer; 
}

.progress-bar::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    appearance: none; 
    width: 16px; 
    height: 16px; 
    background: var(--walnut); 
    border-radius: 50%; 
    border: 2px solid var(--white); 
    box-shadow: 0 0 5px rgba(0,0,0,0.2); 
}

.progress-bar::-moz-range-thumb { 
    width: 16px; height: 16px; 
    background: var(--walnut); 
    border-radius: 50%; 
    border: 2px solid var(--white); 
    box-shadow: 0 0 5px rgba(0,0,0,0.2); 
}

.time-display { 
    display: flex; 
    justify-content: space-between; 
    font-size: 1rem; color: var(--gray); 
    margin-top: 0.5rem; 
}

.control-btn.play-pause-btn { 
    order: 1; 
    background: none; 
    border: none; 
    padding: 0; 
    cursor: pointer; 
    color: var(--walnut); 
    transition: all var(--transition-fast); 
    display: block; 
}

.control-btn.play-pause-btn:hover { 
    color: var(--walnut-light); 
    transform: scale(1.1); 
}

.control-btn.play-pause-btn i { 
    width: 36px; 
    height: 36px; 
}

.control-btn span { 
    display: flex; 
}

.audio-card-v2 .icon-pause { 
    display: none; 
}

.audio-card-v2.is-playing .icon-pause { 
    display: block; 
}

.audio-card-v2.is-playing .icon-play { 
    display: none; 
}

.audio-element { 
    display: none; 
}

/* --- RESSOURCES DE SESSION (Téléchargement & Exercices) --- */
.session-resources {
    margin-top: 3rem; /* Espace avant le bloc */
    text-align: center;
}

.session-resources h4 {
    font-weight: 600;
    font-size: 2.2rem; /* Augmenté (était ~1.5rem) - Match le titre du bas */
    color: var(--black-pearl);
    margin-bottom: 0.5rem; /* RÉDUIT (était 1.5rem) - Rapproche le sous-titre */
    font-family: 'Bebas Neue', sans-serif; /* Optionnel : pour matcher le style des titres */
    letter-spacing: 1px;
}

.session-resources p {
    font-size: 1.3rem; /* Augmenté (était 1.1rem) */
    color: var(--black-pearl-light);
    margin-bottom: 2rem; /* Espace avant les boutons */
    line-height: 1.4;
}

.resource-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Style spécifique pour le bouton PDF (contour) */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--walnut);
    color: var(--walnut);
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background-color: var(--walnut);
    color: var(--white);
}

/* --- CTA de Fin de Session --- */
.session-cta-booking {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--white-rock-medium);
    text-align: center;
}

.session-cta-booking h4 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.session-cta-booking p {
    font-size: 1.5rem;
    max-width: 60ch;
    margin: 0 auto 1.5rem auto;
}

/* --- Bouton Retour au Hub --- */
.back-to-hub-cta {
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 2rem;
}

.back-to-hub-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Design Initial : Contour Marron */
    background-color: transparent;
    color: var(--walnut); /* <-- Changement ici (était black-pearl) */
    border: 2px solid var(--walnut); /* <-- Changement ici */
    
    padding: 1rem 2.5rem;
    border-radius: 50px;
    
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* L'icône flèche */
.back-to-hub-link i {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.3s ease;
}

/* --- Interaction au Survol (Hover) --- */
.back-to-hub-link:hover {
    background-color: var(--walnut); /* <-- Fond marron au survol */
    color: var(--white); /* Texte blanc */
    border-color: var(--walnut);
    
    transform: translateY(-3px);
    /* Ombre portée légèrement teintée marron */
    box-shadow: 0 10px 20px rgba(132, 70, 29, 0.2); 
}

/* Animation de la flèche au survol */
.back-to-hub-link:hover i {
    transform: translateX(-5px);
}

.back-to-hub-link::after { display: none; }

/* --- Footer Client --- */
.client-footer-minimal {
    background: linear-gradient(to right, rgb(80, 40, 15) 0%, rgb(132, 70, 29) 100%);
    color: var(--white-rock);
    padding: 1.5rem 0; /* Réduit de 2rem à 1.5rem */
    margin-top: 2rem;  /* Un peu moins d'écart avec le contenu */
    text-align: center;
}

.footer-tagline-minimal {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 1.3rem; /* Réduit de 1.4rem à 1.1rem */
    opacity: 0.8;
    margin-bottom: 1rem; /* Moins d'espace sous le texte */
}

.footer-divider-minimal {
    width: 60px; /* Trait plus court */
    height: 1px;
    background-color: rgba(240, 235, 223, 0.2);
    margin: 0 auto 1rem auto; /* Moins d'espace sous le trait */
}

.footer-bottom-minimal {
    display: flex;
    justify-content: center; /* Centré par défaut */
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem; /* Espace entre copyright et liens */
}

.footer-bottom-minimal .copyright,
.footer-bottom-minimal .legal-link {
    color: var(--white-rock);
    opacity: 0.6;
    font-size: 1rem; /* Réduit de 1.2rem à 0.85rem (taille standard footer) */
}

.footer-bottom-minimal .legal-link:hover {
    color: var(--white);
    opacity: 1;
}

.footer-bottom-minimal .footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* ==========================================================================
   STYLES RESPONSIVES (Tablettes & Mobiles)
   ========================================================================== */

/* --- Jusqu'à 992px (Tablettes) --- */
@media (max-width: 992px) {
    .client-hero {
        padding-top: 14rem;
        padding-bottom: 6rem;
    }
}

/* --- Jusqu'à 768px (Petites tablettes & grands mobiles) --- */
@media (max-width: 768px) {
    .client-hero {
        padding-top: 12rem;
    }
    main.module-content { 
        padding-top: 4rem;
        padding-bottom: 4rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .session-header h3 { font-size: 2.8rem; }
    .session-content { padding: 2rem; }
    .client-hero .title {
        font-size: clamp(4.5rem, 8vw, 7rem);
    }
    .client-hero .subtitle {
        font-size: 1.8rem;
        max-width: 55ch;
    }
    
    /* --- Box "Préparez-vous" Compacte --- */
    .journal-prompt {
        padding: 2rem;         /* Augmenté de 1.5rem à 2rem */
        margin-bottom: 3rem;
        align-items: flex-start;
    }

    .journal-prompt-icon {
        width: 4.5rem;         /* Augmenté de 3.5rem à 4.5rem */
        height: 4.5rem;
        margin-right: 1.2rem;  /* Un peu plus d'espace */
        flex-shrink: 0;        /* Empêche l'icône de s'écraser */
    }

    .journal-prompt-icon i {
        width: 2rem;           /* Icône interne un peu plus grande */
        height: 2rem;
    }

    .journal-prompt-content h4 {
        font-size: 1.8rem;     /* Titre plus présent (était 1.4rem) */
        margin-bottom: 0.4rem;
    }

    .journal-prompt-content p {
        font-size: 1.3rem;     /* Texte plus lisible (était 1.1rem) */
        line-height: 1.5;
    }
    
    /* --- En-tête de Session (Header Marron) --- */
    .session-header {
        padding: 1.5rem;       /* Réduit de 2.5rem à 1.5rem */
    }

    .session-header h3 {
        font-size: 2.2rem;     /* Réduit de 2.8rem à 2.2rem */
        margin: 0.2rem 0;
    }

    .session-number {
        font-size: 1rem;       /* Plus discret */
    }

    .session-metaphor {
        font-size: 1.1rem;
    }

    /* --- Contenu Principal de la Session --- */
    .session-content {
        padding: 1.5rem;       /* Réduit de 2rem à 1.5rem */
    }

    .session-content p {
        margin-bottom: 2rem;   /* Réduit de 3rem à 2rem */
        font-size: 1.3rem;
        line-height: 1.5;
    }

    /* --- Lecteur Audio Compact --- */
    .audio-card-v2.session-player {
        padding: 1.5rem;       /* Réduit de 2.5rem à 1.5rem */
        margin-bottom: 2rem;
    }

    .audio-cd {
        width: 100px;          /* CD un peu plus petit (était 120px) */
        height: 100px;
        margin-bottom: 1rem;
    }

    /* --- Section "Passez à l'action" --- */
    .session-resources {
        margin-top: 2rem;
    }

    .session-resources h4 {
        font-size: 1.8rem;     /* Augmenté (était 1.6rem) */
    }

    .session-resources p {
        font-size: 1.25rem;    /* Augmenté (était 1.1rem) */
        margin-bottom: 1.5rem;
    }

    /* Boutons côte à côte sur mobile */
    .resource-buttons-wrapper {
        display: flex;
        flex-direction: row;   /* Force l'alignement horizontal */
        gap: 0.8rem;           /* Espace entre les deux */
        width: 100%;
    }

    .session-resources .btn {
        flex: 1;               /* Les deux boutons prennent chacun 50% */
        padding: 0.8rem 0.5rem; /* Padding réduit pour que ça rentre */
        font-size: 1rem;    /* Texte plus petit pour éviter le débordement */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;   /* Autorise le texte à passer à la ligne DANS le bouton si besoin */
        line-height: 1.2;
        height: auto;          /* Hauteur flexible */
    }
    
    .session-resources .btn i {
        width: 16px;
        height: 16px;
        margin-right: 6px;
        flex-shrink: 0;
    }

    /* --- Section "Prêt à faire le point" (Réservation) --- */
    .session-cta-booking {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    .session-cta-booking h4 {
        font-size: 1.8rem;     /* Augmenté */
    }

    .session-cta-booking p {
        font-size: 1.25rem;    /* Augmenté */
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    /* Bouton Calendly plus petit */
    .session-cta-booking .btn {
        width: auto;           /* Ne prend plus toute la largeur */
        display: inline-flex;  /* S'adapte au contenu */
        padding: 1.2rem 1.9rem; /* Taille compacte */
        font-size: 1.2rem;
    }

    /* Bouton Retour au Hub */
    .back-to-hub-cta {
        margin-top: 4rem;
        margin-bottom: 3rem;
    }

    .back-to-hub-link {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
        width: 80%;
        max-width: 300px;
    }
}

/* --- Jusqu'à 576px (Mobiles) --- */
@media (max-width: 576px) {
    .header.client-header { padding: 1rem 0; }
    .client-hero {
        padding-top: 10rem;
        padding-bottom: 4rem;
    }
    .module-content { padding: 3rem 0; }
    .session-header h3 { font-size: 2.5rem; }
    .footer-bottom-minimal {
        flex-direction: column;
        gap: 0.8rem; /* Espace réduit entre les lignes sur mobile */
    }
    
    /* On s'assure que le texte reste petit sur mobile */
    .footer-bottom-minimal .copyright,
    .footer-bottom-minimal .legal-link {
        font-size: 0.8rem;
    }

    .client-hero .title {
        font-size: clamp(4.5rem, 8vw, 7rem);
    }
    .client-hero .subtitle {
        font-size: 1.8rem;
        max-width: 55ch;
    }
}