/* =================================== */
/* 1. VARIABLES & STYLES DE BASE       */
/* =================================== */
html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #e13b3b;
    --white-color: #ffffff;
    --dark-color: #1a1a1a;
    --font-header: 'Anton', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark-color);
    color: var(--white-color);
    padding-top: 80px; /* Espace pour le header fixe (aligné avec la section Header) */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =================================== */
/* 2. HEADER & NAVIGATION            */
/* =================================== */
.main-header {
    background-color: #000;
    padding: 10px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Évite les sauts/mises à la ligne imprévus et stabilise l’alignement */
    flex-wrap: nowrap;
    gap: 16px;
}

.logo {
    width: 80px;
    min-width: 62px;
    height: auto;
    display: block;
}

.main-nav {
    /* Meilleure répartition et résistance aux cassures de ligne */
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav ul {
    display: flex;
    flex-wrap: nowrap; /* évite que les items passent à la ligne */
}

/* SURVOL FIABLE (sans pseudo-élément et sans z-index négatif) */
.main-nav a {
    font-family: var(--font-header);
    color: var(--white-color);
    padding: 10px 15px;
    margin: 0 5px;
    position: relative;
    border-radius: 6px;
    /* Fond animé qui s’étire en largeur */
    background: linear-gradient(var(--primary-color), var(--primary-color)) no-repeat;
    background-size: 0% 100%;
    background-position: left center;
    transition: color .3s ease, background-size .3s ease;
    line-height: 1;          /* évite le rognage vertical du texte */
    white-space: nowrap;     /* empêche le retour à la ligne dans chaque lien */
}
.main-nav a:hover {
    background-size: 100% 100%;
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Alignement vertical parfait et hauteur constante */
    display: inline-flex;
    align-items: center;
    height: 44px;
    line-height: 1;
}

.btn-contact:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-contact i {
    font-size: 2em;
    margin-right: 8px;
    vertical-align: middle;
}

.hamburger { display: none; }
.mobile-menu { display: none; }

/* =================================== */
/* 3. SECTION HERO                     */
/* =================================== */
.hero {
    position: relative; /* Indispensable pour positionner la vague */
    height: 100vh;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 8% 8%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.61);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    padding-left: 35px;

    /* MODIFIÉ : État initial (caché en bas) */
    opacity: 0;
    transform: translateY(50px); /* On le décale vers le bas */

    /* Animation de transition + un petit délai pour laisser l'image de fond apparaître d'abord */
    transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
}

/* MODIFIÉ : Classe qui sera ajoutée par JS pour révéler le contenu */
.hero-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background-color: var(--white-color);
    border-radius: 5px;
}

.hero-content h1 {
    font-family: var(--font-header);
    font-size: 5rem;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.hero-content p {
    font-family: var(--font-header);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.hero-buttons .btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    margin: 10px 10px 10px 0;
    display: inline-flex;       /* passe en flexbox en ligne */
    align-items: center;        /* centre verticalement icône + texte */
    gap: 8px;                   /* espace entre icône et texte */
    transition: transform 0.2s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
}

.hero-buttons .btn i {
    margin-right: 10px;
    font-size: 2em;
}



.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.hero-wave-shape {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 250px;
    background-color: var(--primary-color);
    z-index: 4;
    clip-path: polygon(0 40%, 25% 60%, 50% 35%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    /*transform: translateY(1px);*/
}

/* =================================== */
/* 4. SECTION VIDÉO                    */
/* =================================== */
.video-feature {
    background-color: var(--primary-color);
    padding: 80px 5%; 
    position: relative; 
    z-index: 5;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-header);
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* =================================== */
/* 5. FOOTER                           */
/* =================================== */
.main-footer {
    background-color: #000;
    padding: 50px 5%;
    border-top: 3px solid #222;
}

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

.footer-column h4 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-column .footer-subtitle {
    margin-top: 30px;
}

.footer-column p, .footer-links a {
    color: #ccc;
    line-height: 1.8;
    font-size: 0.9rem;
}

.social-icons a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-links a {
    display: block;
    margin-top: 10px;
    color: var(--primary-color);
}

/* =================================== */
/* 6. RESPONSIVE (MEDIA QUERIES)       */
/* =================================== */

@media (max-width: 1024px) {
    .main-nav a {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .main-nav { 
        display: none; 
    }

    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto; 
        align-items: center;
        gap: 15px; 
    }

    .logo-link {
        grid-column: 1; 
        justify-self: start;
    }

    .btn-contact {
        grid-column: 2;
        justify-self: center;
        padding: 10px 20px;
    }
    
    .hamburger {
        display: block;
        grid-column: 3;
        justify-self: end;
        background: none;
        border: none;
        color: var(--white-color);
        font-size: 1.8rem;
        cursor: pointer;
    }

    .mobile-menu {
        display: none; 
        flex-direction: column;
        align-items: center;
        background-color: #000;
        padding: 20px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-nav ul {
        flex-direction: column;
        text-align: center;
    }
    .mobile-nav li {
        margin: 15px 0;
    }

    /* Même effet de survol rouge dans le menu mobile */
    .mobile-nav a {
        display: block;
        padding: 12px 16px;
        border-radius: 6px;
        background: linear-gradient(var(--primary-color), var(--primary-color)) no-repeat;
        background-size: 0% 100%;
        background-position: left center;
        transition: background-size .3s ease;
    }
    .mobile-nav a:hover {
        background-size: 100% 100%;
    }
}

@media (max-width: 765px) {
    .hero {
        justify-content: center;
        text-align: center;
        padding: 8%;
    }

    .hero-content {
        text-align: center;
        padding-left: 0;
    }

    .hero-content::before {
        display: none;
    }

    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.2rem; }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 90%;
        max-width: 350px;
        margin: 8px 0;
    }

    .hero-wave-shape {
        height: 150px;
        clip-path: polygon(0 20%, 25% 30%, 50% 20%, 75% 30%, 100% 15%, 100% 100%, 0 100%);
    }

    .video-feature {
        padding: 60px 5%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* =================================== */
/* 7. SECTION TÉMOIGNAGES VIDÉO        */
/* =================================== */
.testimonial-videos {
    background-color: var(--primary-color);
    padding: 80px 5%;
}

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

.google-badge {
    background-color: var(--white-color);
    color: #333;
    border-radius: 8px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 0 auto 30px auto;
    display: flex; /* Pour le centrer si besoin */
    width: fit-content;
}

.google-badge .google-g {
    width: 24px;
    height: 24px;
}

.google-badge strong {
    display: block;
    font-size: 0.9rem;
}

.google-badge span {
    font-size: 0.8rem;
    color: #555;
}

.google-badge .fa-star {
    color: #fbbc05;
}

.testimonial-videos .section-title {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.video-player-module {
    display: flex;
    gap: 30px;
}

.main-video-player {
    flex: 3; /* Prend plus de place */
}

.video-playlist {
    flex: 2; /* Prend moins de place */
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

.playlist-header h3 {
    margin: 0;
    font-family: var(--font-header);
    font-size: 1.2rem;
}

.playlist-items {
    overflow-y: auto; /* Ajoute une barre de scroll si besoin */
    max-height: 450px; /* Hauteur max avant scroll */
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}

.playlist-item:hover {
    background-color: rgba(0,0,0,0.15);
}

.playlist-item.active {
    background-color: rgba(255,255,255,0.2);
    border-color: var(--white-color);
}

.playlist-thumbnail {
    width: 100px;
    height: 56px; /* Ratio 16:9 */
    object-fit: cover;
    border-radius: 5px;
}

.playlist-item-info p {
    margin: 0;
    font-weight: bold;
    font-size: 0.9rem;
}
.playlist-item-info span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* Responsive pour le module vidéo */
@media (max-width: 992px) {
    .video-player-module {
        flex-direction: column;
    }
    .playlist-items {
        max-height: 200px; /* Réduit la hauteur sur tablette/mobile */
    }
}

/* =================================== */
/* 8. SECTION SERVICES                 */
/* =================================== */
.services-section {
    background-color: var(--primary-color);
    padding: 0px 5% 20px 5%; /* Padding en bas pour laisser place à la vague */
    position: relative;
    color: var(--white-color);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-main-title {
    font-family: var(--font-body);
    font-weight: normal;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.services-sub-title {
    font-family: var(--font-header);
    font-size: 2.5rem;
    margin: 10px auto 50px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
}

.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden; /* Important pour que l'overlay respecte les coins arrondis */
    background-size: cover;
    background-position: center;
    border: 2px solid var(--white-color);
    z-index: 5;
}

/* Images de fond pour chaque carte */
.card-collectifs {
    background-image: url('images/Alpille-Coach-49-scaled.jpg');
}

.card-coaching {
    background-image: url('images/Alpille-Coach-49-scaled.jpg');
}

.card-overlay {
    background-color: rgba(0, 0, 0, 0.75); /* Fond noir semi-transparent */
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card h4 {
    font-family: var(--font-header);
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-card p {
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Pousse le bouton vers le bas */
}

.service-card ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-card .card-note {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

/* Style des boutons dans les cartes de service */
.service-card .btn {
    margin-top: 20px;
    align-self: flex-start;
    
    /* On utilise Flexbox pour l'alignement interne */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pousse l'icône à gauche et le texte à droite */
    
    /* Style visuel */
    padding: 14px 20px; /* Ajustement du padding horizontal */
    font-size: 1.2rem; /* La taille du texte */
    font-weight: bold;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase; /* Met le texte en majuscules */
}

/* Règle spécifique pour l'icône dans le bouton */
.service-card .btn i {
    font-size: 1.6rem; /* On grossit l'icône */
    margin-right: 10px; /* Petit espace pour ne pas coller le texte si le bouton est étroit */
}

/* Effet au survol pour ces boutons */
.service-card .btn:hover {
    background-color: var(--white-color);
    color: #000000;
    border-color: #000000;
    transform: translateY(-2px);
}

.service-card i {
    font-size: 2em;
    margin-right: 8px;
    vertical-align: middle;
}



/* Responsive pour la grille des services */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr; /* Les blocs passent l'un sous l'autre */
    }

    .services-sub-title {
        font-size: 2rem;
    }
}

/* =================================== */
/* 9. SECTION OBJECTIFS                */
/* =================================== */
.objectives-section {
    background-color: #ffffff;
    color: #333; /* Texte foncé pour un fond blanc */
    padding: 80px 5%;
}

.objectives-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Style pour les titres sur fond clair */
.section-title-dark {
    font-family: var(--font-header);
    color: #1a1a1a;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.objectives-grid {
    display: grid;
    /* 4 colonnes par défaut */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.objective-card {
    background-color: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    /* Ombre subtile pour donner du relief */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 6;
}

.objective-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

.objective-icon {
    height: 70px;
    margin-bottom: 30px;
    /* Animations douces par défaut */
    display: inline-block;           /* garantit que transform s’applique proprement */
    transform-origin: 50% 60%;
    animation: icon-float 4s ease-in-out infinite;
    will-change: transform;
}

.objective-card h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.objective-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* Effet “wiggle” léger au survol de la carte (ou de l’icône) */
.objective-card:hover .objective-icon,
.objective-icon:hover {
    animation-name: icon-float, icon-wiggle;
    animation-duration: 4s, 700ms;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, 1;
}

/* Décalage des animations pour éviter un mouvement synchronisé */
.objectives-grid .objective-card:nth-child(1) .objective-icon { animation-delay: .15s; }
.objectives-grid .objective-card:nth-child(2) .objective-icon { animation-delay: .45s; }
.objectives-grid .objective-card:nth-child(3) .objective-icon { animation-delay: .75s; }
.objectives-grid .objective-card:nth-child(4) .objective-icon { animation-delay: 1.05s; }

/* Keyframes : flottement doux (haut/bas + légère rotation) */
@keyframes icon-float {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-6px) rotate(1.2deg); }
  50%  { transform: translateY(0) rotate(0deg); }
  75%  { transform: translateY(-6px) rotate(-1.2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Keyframes : petit “wiggle” amorti (déclenché au hover) */
@keyframes icon-wiggle {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(6deg); }
  30%  { transform: rotate(-5deg); }
  45%  { transform: rotate(4deg); }
  60%  { transform: rotate(-3deg); }
  75%  { transform: rotate(2deg); }
  90%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

/* Accessibilité : réduire/neutraliser les animations si l’utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .objectives-section .objective-icon {
    animation: none !important;
    transform: none !important;
  }
}
/* Responsive pour la grille des objectifs */
@media (max-width: 1200px) {
    .objectives-grid {
        /* On passe à 2 colonnes sur les écrans de type tablette */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .objectives-grid {
        /* On passe à 1 colonne sur mobile */
        grid-template-columns: 1fr;
    }
    
    .section-title-dark {
        font-size: 2rem;
    }
}

/* =================================== */
/* 10. SECTION HOME GYM                */
/* =================================== */
.homegym-section {
    position: relative;
    padding: 150px 5%;
    background-image: url('images/Alpille-Coach-185-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet parallaxe simple */
    color: var(--white-color);
    overflow-x: hidden; /* Empêche le scroll horizontal pendant l'animation */
}

/* Overlay noir transparent */
.homegym-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Conteneur pour le texte, positionné au-dessus de l'overlay */
.homegym-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Wrapper pour le texte qui sera animé */
.homegym-text-wrapper {
    max-width: 700px; /* Limite la largeur du texte */
    margin: 0 auto;
    
    /* MODIFIÉ : État initial (caché à droite) pour l'animation par transition */
    opacity: 0;
    transform: translateX(50%);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* MODIFIÉ : Classe qui sera ajoutée par JavaScript pour déclencher l'animation */
.homegym-text-wrapper.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.homegym-sub-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.homegym-main-title {
    font-family: var(--font-header);
    font-size: 3rem;
    margin: 10px 0 30px 0;
}

.homegym-text-wrapper p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.homegym-text-wrapper .btn {
    margin-top: 30px;
    display: inline-block;
}

/* Vague rouge en bas */
.section-wave-bottom-red {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--primary-color);
    z-index: 3;
    clip-path: polygon(0 40%, 25% 60%, 50% 35%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .homegym-main-title {
        font-size: 2.2rem;
    }
    .homegym-section {
        padding: 100px 5%;
    }
}

/* =========================================== */
/* STYLES DE BOUTONS (Mise à jour et nettoyage) */
/* =========================================== */

/* Style de base pour les boutons dans les cartes de service (ne contient que le positionnement) */
.service-card .btn {
    margin-top: 20px;
    align-self: flex-start;
}

/* NOUVEAU : Classe réutilisable pour le style de bouton complexe */
.btn-special-layout {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    margin: 10px 10px 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
    line-height: 1; /* Ajouté */
}

.btn-special-layout i {
    font-size: 1.6rem;
    margin-right: 10px;
    line-height: 1; /* Ajouté */
    /* Ajustement vertical possible */
    transform: translateY(2px); /* ou -2px selon besoin */
}


/* Effet au survol pour ce type de bouton */
.btn-special-layout:hover {
    background-color: var(--white-color);
    color: #000000;
    border-color: #000000;
    transform: translateY(-2px);
}

/* =========================================== */
/* 11. ANIMATIONS AU DÉFILEMENT (REUTILISABLE) */
/* =========================================== */

/* Classe de base pour tous les éléments à animer.
   Elle les cache par défaut et prépare la transition. */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1.2s ease-out;
}

/* --- Définitions des animations --- */

.animate-on-scroll.fade-in {
    transform: translateY(20px); /* Léger décalage vers le bas pour un effet subtil */
}

.animate-on-scroll.slide-in-from-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-from-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-in-from-bottom {
    transform: translateY(50px);
}

/* --- Classe ajoutée par JavaScript lorsque l'élément devient visible --- */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none; /* L'élément revient à sa position d'origine */
}

/* --- Classes optionnelles pour décaler les animations --- */
.animate-delay-1 { transition-delay: 0.2s; }
.animate-delay-2 { transition-delay: 0.4s; }

/* =================================== */
/* 12. SECTION COACH BIO               */
/* =================================== */

.coach-bio-section {
    background-color: var(--primary-color);
    padding: 8px 5%;
    color: var(--white-color);
}

.coach-bio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* La colonne de texte est légèrement plus grande */
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.coach-text h2 {
    font-family: var(--font-header);
    font-size: 3rem;
    margin-bottom: 5px;
}

.coach-text h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: normal;
}

.coach-text p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.coach-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Nouveau style de bouton sur fond foncé */
.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background-color: var(--white-color);
    color: var(--primary-color);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-light i {
    font-size: 1.2rem;
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive pour la section bio */
@media (max-width: 992px) {
    .coach-bio-container {
        grid-template-columns: 1fr; /* Les colonnes se superposent */
    }
    .coach-image {
        /* Place l'image en premier sur mobile pour un meilleur visuel */
        grid-row: 1; 
        margin-bottom: 30px;
    }
    .coach-text {
        text-align: center;
    }
    .btn-light {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =================================== */
/* 13. SECTION AVIS CLIENTS            */
/* =================================== */
.reviews-section {
    position: relative;
    padding: 150px 5% 80px 5%;
    background-image: url('images/Alpille-Coach-49-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white-color);
}
.reviews-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}
/* Vague décorative en haut */
.reviews-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 150px;
    background-color: var(--primary-color);
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 50% 70%, 25% 100%, 0 75%);
}

.reviews-section-coach {
    position: relative;
    padding: 150px 5% 80px 5%;
    background-image: url('images/Alpille-Coach-49-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white-color);
}
.reviews-section-coach::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}


.reviews-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: center;
    padding-top: 20px;
}

.review-summary h4 {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: normal;
}
.review-summary h2 {
    font-family: var(--font-header);
    font-size: 3rem;
    line-height: 1.2;
    margin: 10px 0 30px 0;
}

/* MODIFIÉ : Pour centrer les éléments à l'intérieur */
.google-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.google-rating p { font-size: 1.5rem; font-weight: bold; margin: 0; }
.stars { color: #fbbc05; font-size: 1.3rem; margin: 1px 0; }
.google-rating span { font-size: 0.9rem; }
.google-rating img { width: 100px; margin-top: 1px; }

/* Le "cadre" visible du slider */
.reviews-slider-container {
    position: relative;
    overflow: hidden;
}

/* La "piste" qui contient tous les avis et qui bouge */
.reviews-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 25px;
    border-radius: 12px;
    /* Largeur de chaque carte */
    flex: 0 0 100%; /* Sur mobile, une carte prend 100% de la place */
}

.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.2rem;
}
.name { flex-grow: 1; font-weight: bold; }
.google-icon-card { width: 20px; height: 20px; }
.review-card .stars { font-size: 1rem; margin-bottom: 15px; }

.review-text {
    font-size: 0.9rem; line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-out;
}

.review-text.expanded {
    max-height: 500px;
}

.read-more { font-size: 0.8rem; color: var(--primary-color); font-weight: bold; cursor: pointer; }

/* Style des flèches de navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}
.slider-arrow:hover {
    background: white;
}
.slider-arrow.prev-btn { left: -20px; }
.slider-arrow.next-btn { right: -20px; }
.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


/* Responsive */
@media(min-width: 768px) {
    .review-card {
        flex-basis: calc(50% - 10px); /* 2 cartes visibles */
    }
}
@media(min-width: 1200px) {
    .review-card {
        flex-basis: calc(33.33% - 14px); /* 3 cartes visibles */
    }
}

@media(max-width: 992px){
    .reviews-container { grid-template-columns: 1fr; text-align: center; }
    .review-summary { margin-bottom: 40px; }
    .slider-arrow.prev-btn { left: 5px; }
    .slider-arrow.next-btn { right: 5px; }
}


/* =================================== */
/* 14. PAGE VOTRE COACH                   */
/* =================================== */



.section-pre-title {
    text-align: center;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.section-intro-text {
    max-width: 800px;
    margin: 30px auto 50px auto;
    text-align: center;
    line-height: 1.7;
    color: #555;
}

.section-sub-title-red {
    text-align: center;
    font-family: var(--font-header);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 50px;
}



/* =================================== */
/* 15. SECTION HISTOIRE / TRANSFORMATION */
/* =================================== */

.story-section {
    background-color: #e13b3b;
    color: #fff;
    padding: 80px 5%;
    position: relative;
    overflow: hidden; /* Important pour la forme décorative */
}

/* Forme décorative rouge en haut à droite */
.story-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Colonne de texte plus large */
    gap: 50px;
    align-items: start; /* Aligne les colonnes en haut */
    position: relative; /* Pour être au-dessus de la forme décorative */
    z-index: 2;
}

.section-title-white {
    font-family: var(--font-header);
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.story-text p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #ffffff;
}

.story-bottom-img {
    /* MODIFIÉ : Ajout d'une largeur maximale */
    max-width: 400px;
    
    /* Garde l'image responsive en dessous de 250px */
    width: 100%; 
    
    /* MODIFIÉ : Permet de centrer l'image */
    display: block;
    margin: 20px auto 0 auto; /* margin-top de 20px, et centrage horizontal */

    border-radius: 8px;
}

.story-main-img {
    width: 100%;
    border-radius: 12px;
}

.story-quote {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.story-quote p {
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.section-title-white {
    text-align: center;
    font-family: var(--font-header);
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .story-container {
        grid-template-columns: 1fr; /* Les colonnes se superposent */
    }
}

/* =================================== */
/* 16. MODALE IMAGE                    */
/* =================================== */

#brevet-pro-img {
    /* MODIFIÉ : Occupe 50% de la largeur de sa colonne */
    width: 50%; 
    /* MODIFIÉ : Nécessaire pour que le centrage fonctionne */
    display: block; 
    /* MODIFIÉ : Centre l'image horizontalement */
    margin: 0 auto; 
    
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#brevet-pro-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Le fond noir semi-transparent (caché par défaut) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.61);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Style pour rendre la modale visible */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* L'image à l'intérieur de la modale */
.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

/* Le bouton pour fermer */
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
}

.story-section-coach {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1x 5%;
}
.story-bloc {
    display: flex;
    align-items: center;           /* Centrage vertical */
    justify-content: center;       /* Centrage horizontal */
    gap: 40px;
    margin-bottom: 80px;
}
.story-bloc .story-image,
.story-bloc .story-texte {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;       /* Centrage vertical si le contenu est petit */
    align-items: center;
}
.story-bloc .story-image img {
    max-width: 100%;
    border-radius: 12px;
    /* Hauteur minimum ou max-height si besoin */
    max-height: 400px;
    object-fit: cover;
}
.story-bloc .story-texte {
    text-align: left;
    padding: 30px;
}
.story-bloc.reverse {
    flex-direction: row-reverse;
}
.story-bloc h2 {
    font-family: var(--font-header);
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #FFF;
}
.story-bloc p {
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Responsive : passe en colonne sur mobile */
@media (max-width: 900px) {
    .story-bloc,
    .story-bloc.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }
    .story-bloc .story-texte {
        padding: 10px;
    }

}


/* =================================== */
/* 16. WAVE SHAPE                    */
/* =================================== */

/* Vague rouge en bas */
.section-wave-bottom-red {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--primary-color);
    z-index: 3;
    clip-path: polygon(0 40%, 25% 60%, 50% 35%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    transform: translateY(1px)
}


.coach-wave-shape {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 250px;
    background-color: #fff;
    z-index: 4;
    clip-path: polygon(0 40%, 25% 60%, 50% 35%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    transform: translateY(1px);
}

.red-wave-shape-up {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 250px;
    background-color: var(--primary-color);
    z-index: 4;
    clip-path: polygon(0 40%, 25% 60%, 50% 35%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    transform: translateY(1px);
}

.red-wave-shape-up2 {
    position: absolute;
    /* top: -8px; */
    left: 0;
    width: 100%;
    height: 250px;
    background-color: var(--primary-color);
    z-index: 0;
    clip-path: polygon(0 40%, 25% 60%, 50% 35%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    transform: translateY(-169px);
}

.red-wave-shape-down {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--primary-color);
    z-index: 4;
    clip-path: polygon(-14% 0, 105% 1%, 61% 52%);

    transform: translateY(1px);
}

.black-wave-shape-up {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #000;
    z-index: 4;
    clip-path: polygon(0 40%, 25% 60%, 50% 35%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    transform: translateY(-112px);
}

.coach-wave-shape-2 {
    position: absolute;
    left: 0;
    width: 100%;
    height: 170px;
    background-color: #e13b3b;
    z-index: 4;
    clip-path: polygon(0 16%, 25% 66%, 50% 0%, 75% 50%, 100% 34%, 100% 100%, 0 100%);
    
    /* MODIFIÉ : Valeur négative pour remonter l'élément de 50px */
    transform: translateY(-88px); 
}

/* Vague blanche en bas */
.section-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%; /* Hauteur de la zone de la vague */
    background-color: #ffffff;
    
    /* On utilise la même forme que la première vague */
    clip-path: polygon(0 10%, 25% 60%, 50% 20%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    transform: translateY(3px);
}

.section-wave-bottom2 {
    position: absolute;
    left: 0;
    width: 100%;
    height: 20%;
    background-color: #ffffff;
    clip-path: polygon(0 10%, 25% 60%, 50% 20%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    transform: translateY(-75px);
    z-index: 5;
}

.section-wave-bottom3 {
    position: absolute;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #ffffff;
    clip-path: polygon(0 10%, 25% 60%, 50% 20%, 75% 50%, 100% 25%, 100% 100%, 0 100%);
    transform: translateY(-35px);
    z-index: 5;
}

/* =================================== */
/* HEADER                                        */
/* (Ajoutez ou modifiez ces styles)   */
/* =================================== */

/* Étape 1 & 2 : Positionner le header et préparer la transition */
.main-header {
      position: fixed; /* ou 'sticky' */
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000; /* Assure que le header passe au-dessus des autres contenus */
      transition: transform 0.3s ease-in-out;
}

/* Étape 3 : Définir l'état "caché" du header */
.main-header.header-hidden {
      transform: translateY(-100%);
}


/* Étape 4 : Empêcher le contenu de passer sous le header fixe */
body {
    /* La valeur doit correspondre à la hauteur de votre header. */
    /* Ajustez-la si nécessaire. */
      padding-top: 80px; 
}

/* Vous pourriez avoir besoin d'ajuster ce padding pour mobile si la hauteur */
/* de votre header est différente sur les petits écrans. */
@media (max-width: 992px) {
      body {
        /* Par exemple, si votre header mobile fait 70px de haut */
            padding-top: 70px; 
      }
}

/* =================================== */
/* 17. SECTION VITRINE TÉMOIGNAGES     */
/* =================================== */
.testimonial-showcase {
    position: relative;
    padding: 150px 5%; /* Espace en haut/bas pour les formes */
    background: url('images/Alpille-Coach-49-scaled.jpg') center/cover fixed;
    color: var(--white-color);
    overflow: hidden; /* Important pour les formes qui dépassent */
}

/* Voile noir transparent */
.testimonial-showcase::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

/* Conteneur pour les formes décoratives */
.testimonial-showcase .shape {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px; /* Hauteur de la zone de la forme */
    background: var(--primary-color);
    z-index: 2;
}

.testimonial-showcase .top-shape {
    top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 50% 100%, 0 30%);
}

.testimonial-showcase .bottom-shape {
    bottom: 0;
    clip-path: polygon(50% 0, 100% 70%, 100% 100%, 0 100%, 0 70%);
}

/* Conteneur principal pour le contenu */
.testimonial-showcase-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-showcase .section-header {
    margin-bottom: 40px;
}

.testimonial-showcase .section-header h4 {
    text-transform: uppercase;
    font-weight: normal;
    font-size: 1rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-showcase .section-header h2 {
    font-family: var(--font-header);
    font-size: 2.8rem;
    color: var(--white-color);
    margin-top: 5px;
    line-height: 1.2;
}

/* Wrapper pour la vidéo pour la centrer et limiter sa taille */
.testimonial-showcase .main-video-player {
    max-width: 900px;
    margin: 0 auto 50px auto; /* Centre la vidéo et ajoute un espace en dessous */
}

/* Ajustements pour le conteneur des avis dans ce contexte */
.testimonial-showcase .reviews-container {
    text-align: left; /* Réinitialise l'alignement pour la grille interne */
}

/* Assure que le texte du résumé des avis est blanc */
.testimonial-showcase .review-summary h2,
.testimonial-showcase .review-summary h4,
.testimonial-showcase .google-rating p,
.testimonial-showcase .google-rating span {
    color: var(--white-color);
}

/* Responsive pour les titres */
@media (max-width: 768px) {
    .testimonial-showcase .section-header h2 {
        font-size: 2.2rem;
    }
    .testimonial-showcase {
        padding: 120px 5%;
    }
}

.coach-video-player-module {
    display: flex;
    gap: 30px;
}

.main-coach-video-player {
    flex: 3; /* Prend plus de place */
}

.coach-video-playlist {
    flex: 2; /* Prend moins de place */
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.coach-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

.coach-playlist-header h3 {
    margin: 0;
    font-family: var(--font-header);
    font-size: 1.2rem;
}

.coach-playlist-items {
    overflow-y: auto; /* Ajoute une barre de scroll si besoin */
    max-height: 450px; /* Hauteur max avant scroll */
}

.coach-playlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}

.coach-playlist-item:hover {
    background-color: rgba(0,0,0,0.15);
}

.coach-playlist-item.active {
    background-color: rgba(255,255,255,0.2);
    border-color: var(--white-color);
}

.coach-playlist-thumbnail {
    width: 100px;
    height: 56px; /* Ratio 16:9 */
    object-fit: cover;
    border-radius: 5px;
}

.coach-playlist-item-info p {
    margin: 0;
    font-weight: bold;
    font-size: 0.9rem;
}
.coach-playlist-item-info span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* Responsive pour le module vidéo */
@media (max-width: 992px) {
    .coach-video-player-module {
        flex-direction: column;
    }
    .coach-playlist-items {
        max-height: 200px; /* Réduit la hauteur sur tablette/mobile */
    }
}

.coach-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* =================================== */
/* 18. SECTION ÉTAPES DU COACHING      */
/* =================================== */
.coaching-steps-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 5%;
}

.coaching-steps-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.steps-header {
    margin-bottom: 60px;
}

.steps-header h3 {
    font-family: var(--font-body);
    font-weight: normal;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.steps-header h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-top: 10px;
    line-height: 1.3;
}

.steps-grid {
    display: grid;
    /* 2 colonnes sur grand écran */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.step-card {
    background-color: var(--white-color);
    color: var(--dark-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.step-card img {
    width: 100%;
    height: auto;
    display: block;
}

.step-content {
    padding: 30px;
}

.step-content h4 {
    font-family: var(--font-header);
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Responsive : Les cartes passent sur 1 colonne sur mobile */
@media (max-width: 820px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .steps-header h2 {
        font-size: 2rem;
    }
}

/* =================================== */
/* 19. SECTION INTRODUCTION HOMEGYM    */
/* =================================== */

/* On réutilise la section existante mais avec un nouveau conteneur */
.homegym-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Colonne de texte légèrement plus large */
    gap: 50px;
    align-items: center;
}

.homegym-images-col {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Espace entre les deux images */
}

.homegym-images-col img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.homegym-text-col .pre-title {
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.homegym-text-col h2 {
    font-family: var(--font-header);
    color: var(--dark-color);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.homegym-text-col p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.homegym-text-col .pre-title {
    font-weight: bold;
    color: var(--primary-color); /* Changement de couleur ici */
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.homegym-quote {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 25px 30px;
    margin-top: 30px;
    position: relative;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    z-index: 20;
}

/* Règle spécifique pour le texte à l'intérieur de la citation */
.homegym-quote p {
    color: var(--white-color);
    margin-bottom: 0;
}

/* Crée la petite flèche triangulaire sous la citation */
.homegym-quote::after {
    content: '';
    position: absolute;
    bottom: -19px; /* Positionne la flèche juste en dessous */
    right: 40px;
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--primary-color);
}

/* Responsive : passe en une seule colonne sur mobile */
@media (max-width: 992px) {
    .homegym-intro-container {
        grid-template-columns: 1fr;
    }
    .homegym-text-col {
        /* Met le texte en premier sur mobile pour une lecture plus naturelle */
        order: -1; 
        margin-bottom: 40px;
    }
}

/* =================================== */
/* 20. SECTION CHIFFRES CLÉS           */
/* =================================== */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    /* On remonte visuellement le contenu en jouant sur le padding,
       plutôt qu'avec un transform sur le container */
    padding: 0 5% 60px; /* équivaut à "60px 5%" avec translateY(-60px) retiré */
    overflow: hidden;   /* évite tout scroll interne (x et y) */
    position: relative; /* utile si formes décoratives */
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    /* ⛔️ Supprimé: transform: translateY(-60px); */
}

.stat-item {
    flex: 1;
    padding: 0 15px;
}

.stat-number-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.stat-number {
    font-family: var(--font-header);
    font-size: 4.5rem;
    font-weight: bold;
    line-height: 1.1;
}

.plus-sign {
    font-family: var(--font-header);
    font-size: 3rem;
    margin-left: 5px;
}

.stat-label {
    font-family: var(--font-header);
    text-transform: uppercase;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-top: 10px; /* Un peu plus d'espace */
    min-height: 40px; /* Meilleur alignement vertical */
}

.stat-label sup {
    font-size: 0.8rem; /* Ajustement de la taille du sup */
}

/* --- Animations d'apparition au défilement --- */
/* On conserve les transforms d'animation, mais la section masque le débordement (overflow:hidden) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.slide-in-from-left {
    transform: translateX(-100px);
}

.animate-on-scroll.slide-in-from-right {
    transform: translateX(100px);
}

.animate-on-scroll.slide-in-from-top {
    transform: translateY(-50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Responsive pour les mobiles --- */
@media (max-width: 768px) {
    .stats-section {
        /* On garde une base confortable en haut sur mobile */
        padding: 20px 5% 40px;
    }

    .stats-container {
        flex-direction: column;
        gap: 40px; /* Espacement vertical entre blocs */
        align-items: center;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-label {
        font-size: 1rem;
        min-height: auto; /* Plus besoin de hauteur min sur mobile */
        margin-top: 5px;
    }
}

/* =================================== */
/* 21. SECTION SERVICES (FOND BLANC)   */
/* =================================== */

.white-services-section {
    background-color: var(--white-color);
    padding: 180px 5% 80px 5%; 
    position: relative;
}

.white-services-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 12;
    transform: translateY(-100px);
}

/* --- MISE À JOUR DES CARTES AVEC IMAGES DE FOND --- */

/* Style de base pour les cartes dans cette section */
.white-services-section .service-card {
    /* On garde la bordure et l'ombre pour un effet premium */
    border: 2px solid var(--white-color); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    /* Les styles pour background-size et position sont déjà dans votre CSS de base */
}

/* Application des images de fond spécifiques */
.white-services-section .service-card.card-collectifs {
    background-image: url('images/Alpille-Coach-127-1-scaled.jpg');
}

.white-services-section .service-card.card-coaching {
    background-image: url('images/Alpille-Coach-186-scaled.jpg');
}

/* On réactive le voile sombre semi-transparent */
.white-services-section .card-overlay {
    background-color: rgba(0, 0, 0, 0.75); /* Vous pouvez ajuster le 0.75 pour plus ou moins de transparence */
}

/* On remet le texte en blanc pour la lisibilité */
.white-services-section .card-overlay h4,
.white-services-section .card-overlay p,
.white-services-section .card-overlay li {
    color: var(--white-color);
}

.white-services-section .card-overlay ul {
    color: var(--white-color);
}

.white-services-section .card-overlay .card-note {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* =================================== */
/* 22. SECTION INFOS & CONTACT         */
/* =================================== */

.info-contact-section {
    position: relative;
    padding: 100px 5%;
    /* NOTE : Changez cette image de fond par celle de votre choix */
    background: url('images/Alpille-Coach-185-scaled.jpg') center/cover no-repeat;
    color: var(--white-color);
}

/* Voile noir semi-transparent */
.info-contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.info-container .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.info-container .section-header h4 {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: normal;
}

.info-container .section-header h2 {
    font-family: var(--font-header);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.address-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.address-line i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.hours-title h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.hours-list li {
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hours-list li:last-child {
    border-bottom: none;
}

.cta-info-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* =================================== */
/* 23. SECTION TARIFS                  */
/* =================================== */

.pricing-section {
    background-color: #ffffff;
    color: var(--dark-color);
    padding: 80px 5%;
}

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

.pricing-container .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-container .section-header h4 {
    color: #555;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: normal;
}

.pricing-container .section-header h2 {
    font-family: var(--font-header);
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-top: 5px;
}

.pricing-grid {
    display: grid;
    /* 3 colonnes sur grand écran */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* Les cartes auront la même hauteur */
}

.price-card {
    border: 3px solid var(--dark-color);
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative; /* Pour le bandeau */
    overflow: hidden; /* Cache le bandeau qui dépasse */
}

.price-card .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permet au bouton de rester en bas */
}

.price-card h3 {
    font-family: var(--font-header);
    font-size: 2.2rem;
    line-height: 1.2;
    min-height: 110px; /* Assure un alignement même si les titres ont des tailles différentes */
}

.price-card .card-subtitle {
    font-weight: 500;
    color: #555;
    margin-bottom: 25px;
}

.price-card .price {
    margin-bottom: 30px;
    border-top: 2px dotted #ccc;
    border-bottom: 2px dotted #ccc;
    padding: 20px 0;
}

.price-card .price-amount {
    font-family: var(--font-header);
    font-size: 4.5rem;
}

.price-card .price-per {
    font-size: 1rem;
    color: #555;
}

.price-card .price-details {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1; /* Pousse le bouton vers le bas */
}

.price-card .price-details li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: #333;
}

.price-card .price-details li strong {
    color: var(--dark-color);
}

.price-card .extra-note {
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
}

.price-card .btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Style de la carte mise en avant */
.price-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05); /* La rend légèrement plus grande */
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.featured-banner {
    position: absolute;
    top: 20px;
    right: -45px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Passe en 1 colonne */
        gap: 50px;
    }
    .price-card.featured {
        transform: scale(1); /* Annule le zoom sur mobile */
    }
    .price-card h3 {
        min-height: auto; /* Annule la hauteur minimum */
    }
}

/* =================================== */
/* 24. BOUTON NOIR                  */
/* =================================== */

.btn-black {
    background-color: black;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    margin: 10px auto;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
}

.btn-black:hover {
    background-color: white;
    color: black;
}

.btn-black i {
    font-size: 2em;
    margin-right: 8px;
    vertical-align: middle;
}

/* =================================== */
/* 25. PAGE CONTACT                 */
/* =================================== */
/* --- Styles Généraux --- */
/* --- Section Hero (conteneur principal) --- */
        .hero.hero-contact {
            position: relative;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            font-family: 'Teko', sans-serif;
            overflow: hidden; /* Empêche tout débordement */
            /* Ajout du padding pour décaler le contenu du haut */
            padding-top: 120px;
            padding-bottom: 80px;
        }

        /* --- Gestion du fond en diaporama (Slider) --- */
        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .hero-bg-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1.5s ease-in-out; /* Effet de fondu */
            transform: scale(1.05); /* Léger zoom initial pour l'animation */
        }

        .hero-bg-slide.active {
            opacity: 1;
            transform: scale(1); /* Annule le zoom pour un effet subtil */
            transition-duration: 6s; /* La transition du scale dure plus longtemps */
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.61);
            z-index: 2;
        }

        /* --- Conteneur pour les deux colonnes --- */
        .container {
            position: relative;
            z-index: 3;
            display: flex;
            gap: 50px;
            width: 90%;
            max-width: 1200px;
        }

        /* --- Colonne de gauche (Formulaire) --- */
        .contact-form-wrapper {
            flex: 1;
        }

        .contact-form-wrapper h2 {
            font-size: 3rem;
            font-weight: 700;
            text-transform: uppercase;
            margin: 0;
            line-height: 1.1;
            color: var(--primary-color); /* Utilisation de la variable de couleur */
        }

        .contact-form-wrapper .subtitle {
            font-size: 1.5rem;
            font-weight: 400;
            text-transform: uppercase;
            margin-top: 5px;
            margin-bottom: 30px;
        }

        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .contact-form-wrapper input[type="text"],
        .contact-form-wrapper input[type="tel"],
        .contact-form-wrapper input[type="email"] {
            width: 100%;
            padding: 15px;
            background-color: #e0e0e0;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            font-family: Arial, sans-serif;
            color: #333;
        }
        
        .contact-form-wrapper input::placeholder,
        .contact-form-wrapper textarea::placeholder {
            color: #555;
        }

        .contact-form-wrapper .interest-title {
            margin-top: 30px;
            margin-bottom: 15px;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .checkbox-group {
            margin-bottom: 20px;
            color: #e0e0e0;
            font-size: 1.1rem;
            font-weight: bold;
            text-transform: uppercase;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .checkbox-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 12px;
            accent-color: var(--primary-color);
        }

        .contact-form-wrapper textarea {
            width: 100%;
            height: 120px;
            padding: 15px;
            background-color: #e0e0e0;
            border: none;
            border-radius: 4px;
            resize: vertical;
            font-size: 1rem;
            margin-bottom: 20px;
            font-family: Arial, sans-serif;
            color: #333;
        }

        .submit-btn {
            background-color: var(--primary-color);
            color: #fff;
            border: none;
            padding: 15px 35px;
            font-size: 1.2rem;
            font-weight: bold;
            text-transform: uppercase;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .submit-btn:hover {
            background-color: #b71c1c;
        }

        /* --- Colonne de droite (Infos) --- */
        .contact-info-wrapper {
            flex: 1;
            padding-top: 20px;
        }

        .info-block {
            margin-bottom: 40px;
        }

        .info-block h3 {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 2rem;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 15px;
        }

        .info-block i {
            font-size: 1.8rem;
            color: var(--primary-color); /* Utilisation de la variable de couleur */
        }

        .info-block ul {
            list-style: none;
            padding: 0;
            margin: 0;
            font-size: 1.2rem;
            line-height: 1.6;
        }

        .info-block p {
            font-size: 1.2rem;
            line-height: 1.6;
            margin: 0;
        }

        .info-block iframe {
            width: 100%;
            height: 250px; /* Hauteur ajustée pour la mise en page */
            border-radius: 8px;
            border: 2px solid #555;
        }

        /* --- Responsive pour les écrans plus petits --- */
  
        @media (max-width: 992px) {
            .container {
                flex-direction: column;
                gap: 60px;
            }
            .hero.hero-contact {
                padding-top: 140px; /* Garder un padding suffisant */
            }
            .conatiner {
                padding-top: 140px; /* Garder un padding suffisant */
            }
        }

        @media (max-width: 576px) {
            .hero.hero-contact {
                padding-top: 120px; /* Augmentation pour les mobiles */
            }
            .container {
                padding-top: 140px; /* Garder un padding suffisant */
            }
            .contact-form-wrapper h2 {
                font-size: 2.5rem;
            }
            .contact-form-wrapper .subtitle {
                font-size: 1.2rem;
            }
            .info-block h3 {
                font-size: 1.8rem;
            }
            .form-row {
                flex-direction: column;
                gap: 0;
                margin-bottom: 0;
            }
            .form-row input {
                 margin-bottom: 20px;
            }
        }
        
        .contact-contact-section {
            position: relative;
            padding: 100px 5%;
            background: url(images/Alpille-Coach-185-scaled.jpg) center / cover no-repeat;
            color: var(--white-color);
        }
        
        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

.btn-darkblue {
    background-color: #003366; /* Bleu foncé */
    color: var(--white-color);
}

.btn-darkblue:hover {
    background-color: #004080; /* Légèrement plus clair au survol */
    color: var(--white-color);
}
    
.btn-darkblue {
    background-color: #003366; /* Bleu foncé */
    color: var(--white-color);
}

.btn-darkblue:hover {
    background-color: #004080; /* Bleu légèrement plus clair au survol */
    color: var(--white-color);
}

.price-box {
    background-color: #f8f8f8; /* Gris très clair */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.price-box h4 {
    margin-top: 0;
    font-size: 1rem;
    color: #333;
}

.price-box ul.price-details {
    margin: 0;
    padding-left: 15px;
}

.price-box ul.price-details li {
    margin-bottom: 5px;
}
/* Espacement vertical pour Programmation personnalisée et Cours à domicile */
.price-card-spaced .card-content > *:not(:last-child) {
    margin-bottom: 1.2rem; /* espace entre chaque bloc */
}

/* Optionnel : espace supplémentaire dans les listes */
.price-card-spaced .price-box li {
    margin-bottom: 0.6rem;
}

.tarif-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tarif-option {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tarif-option:hover {
    background-color: #eee;
}

.tarif-option.active {
        background-color: #000;
    color: #fff;
    border-color: #0056b3;
}

.price-per-session {
    margin-top: 0.8rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.price-per-session {
    margin: 0.8rem 0 1.2rem;
    text-align: center;
}

.price-per-session .label {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.price-per-session .amount {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #222;
}

/* ====== Toast (notifications) ====== */
.toast {
    position: fixed;
    top: 90px;            /* sous le header fixe */
    right: 20px;
    z-index: 10000;
    background: #111;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 6px solid var(--primary-color);
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity .25s ease, transform .25s ease;
}
.toast--visible {
    opacity: 1;
    transform: translateY(0);
}
.toast.is-success {
    border-left-color: #2e7d32; /* vert */
}
.toast.is-error {
    border-left-color: var(--primary-color); /* rouge du thème */
}
.toast .toast-msg {
    font-size: .95rem;
    line-height: 1.4;
}
.toast .toast-close {
    margin-left: 6px;
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Champ honeypot invisible pour les bots */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== Offset d'ancrage pour le header fixe (lien #services) ===== */
#services { scroll-margin-top: 90px; }
@media (max-width: 992px){
  #services { scroll-margin-top: 80px; }
}

/* =================================== */
/* 26. COOKIE BANNER (global)          */
/* =================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    color: #1a1a1a;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    z-index: 99999; /* au-dessus de tout */
    padding: 16px;
    transform: translateY(0);
    transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner--hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.cookie-banner-text {
    margin: 0;
    line-height: 1.5;
    font-size: .95rem;
}
.cookie-banner-text a {
    color: var(--primary-color);
    text-decoration: underline;
}
.cookie-accept-btn {
    white-space: nowrap;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
}
/* utilitaire accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 720px){
    .cookie-banner-inner{ flex-direction: column; align-items: stretch; }
    .cookie-accept-btn{ width: 100%; }
}
/* Centrage des textes dans la sélection dynamique */
.tarif-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center; /* centre horizontalement */
}

.tarif-option {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    text-align: center; /* centre le texte dans le bouton */
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 100%; /* occupe toute la largeur dispo du parent */
    max-width: 250px; /* limite la largeur pour rester esthétique */
}

.tarif-option:hover {
    background-color: #eee;
}

.tarif-option.active {
    background-color: #000;
    color: #fff;
    border-color: #0056b3;
}

.price-per-session {
    margin: 0.8rem 0 1.2rem;
    text-align: center;
}

.price-per-session .label {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.price-per-session .amount {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #222;
}

/* =================================== */
/* 27. ANIMATIONS PERSONNALISÉES       */
/* =================================== */

/**
 * Animation de battement de cœur pour les icônes .fa-heartbeat
 */
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  5% {
    transform: scale(1.25);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

.fa-heartbeat {
    animation: heartbeat 2s infinite ease-in-out;
}

/**
 * Animation de bascule amortie pour l’icône .fa-dumbbell
 * Effet : l’haltère “tombe”, oscille droite/gauche en s’amortissant, puis se stabilise (boucle).
 */
@keyframes dumbbell-wobble {
  0%   { transform: rotate(0deg); }
  6%   { transform: rotate(22deg); }
  14%  { transform: rotate(-18deg); }
  22%  { transform: rotate(14deg); }
  30%  { transform: rotate(-10deg); }
  38%  { transform: rotate(7deg); }
  46%  { transform: rotate(-4deg); }
  54%  { transform: rotate(2deg); }
  62%  { transform: rotate(-1deg); }
  70%  { transform: rotate(0.5deg); }
  78%  { transform: rotate(-0.25deg); }
  86%  { transform: rotate(0.1deg); }
  100% { transform: rotate(0deg); }
}

.fa-dumbbell {
    display: inline-block;            /* garantit que transform s’applique proprement */
    transform-origin: 50% 80%;        /* pivot proche de la “base”, impression d’appui au sol */
    animation: dumbbell-wobble 2.8s ease-in-out infinite both;
    will-change: transform;
}