/* =========================================================
   RESET & BASE
   ========================================================= */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

.program-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.program-table th,
.program-table td {
    padding: 10px;
    text-align: left;
}

.program-table th {
    background: rgba(255,255,255,0.05);
    font-weight: bold;
}

.program-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.program-table tr:hover {
    background: rgba(255,255,255,0.03);
}

.program-summary {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 10px;
}

.program-summary ul {
    list-style: none;
    padding-left: 0;
}

.program-summary li {
    margin-bottom: 8px;
}

.program-summary a {
    color: #6b8f71;
    text-decoration: none;
}

.program-summary a:hover {
    text-decoration: underline;
}

/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
    --primary-color: #4f6f52;
    --secondary-color: #B0B0B0;
    --bg-dark: #0e0e0e;
    --bg-card: #151515;
    --white: #ffffff;
}

/* =========================================================
   STYLES GLOBAUX
   ========================================================= */
body {
    background-color: var(--bg-dark);
    color: #ffffff;
    min-height: 100dvh;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

main {
    text-align: center;
    padding: 10px 10px;
}

main h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

main p {
    font-size: 1.2rem;
    margin-left: 10px;
}

main h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    border-left: 4px solid #6b8f71;
    padding-left: 20px;
    margin-bottom: 20px;
    
}

main li {
    margin-left: 30px;
}

.exercise-content p {
    text-align: left;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 10px 10px;
    text-align: center;
    
    /* ====== à changer aussi sur header top et mobile-drawer-menu======= */
    
    background-image: url("/images/general/fondvert.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.50);
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

/* ======================
   LIGNE TOP
   ====================== */
.header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 44px;
    
    
}

/* ======================
   TITRE
   ====================== */
.site-title-link {
    text-decoration: none;
    color: inherit;
}

.site-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 5px;
}

/* ======================
   SLOGAN
   ====================== */
.slogan {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

/* =========================================================
   NAVIGATION PAR CARTES
   ========================================================= */
.nav-cards {
    display: flex;
    justify-content: center;
    gap: 0px;
    padding: 0px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-card {
    flex: 0 0 150px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 5px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-6px);
}

.nav-card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: none;
    color: var(--white);
}

/* =========================================================
   MOBILE - HEADER
   ========================================================= */
@media (max-width: 768px) {

    header {
        padding: 15px 5px;
    }
    
    .header-top {
    }

    :root {
        --mobile-header-height: 80px;
    }

    .site-title {
        font-size: 26px;
    }
    
    .slogan {
    display: none;
}
    
    .nav-cards {
        display: none; /* sinon, grid */
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    /* Empêche le scroll quand le menu est ouvert */
    body.drawer-open {
        overflow: hidden;
    }
}


/* =========================================================
   MENU MOBILE - TIROIR
   ========================================================= */

.burger {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 22px;

    display: none; /* caché desktop */
    flex-direction: column;
    justify-content: space-between;

    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    z-index: 1200;
}

.burger span {
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    display: block;
    border-radius: 2px;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== TRANSFORMATION EN CROIX ===== */

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Par défaut (desktop) : tiroir totalement caché */
.mobile-drawer {
    display: none;
}

.mobile-drawer-logo {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    opacity: 0.85;
}

.mobile-drawer-logo img {
    max-width: 140px;
    height: auto;
}

/* =========================================================
   MOBILE UNIQUEMENT – MENU TIROIR
   ========================================================= */
@media (max-width: 768px) {

    /* Affichage du burger */
    .burger {
        display: flex;
    }

    /* Overlay plein écran */
    .mobile-drawer {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        background: rgba(8, 8, 8, 0.95);
        z-index: 1000;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-drawer.open {
        opacity: 1;
        pointer-events: auto;
    }

    /* MENU */
    .mobile-drawer-menu {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5px 5px 40px 40px;

    width: 100%;
    min-height: auto; /* 🔹 occupe toute la hauteur du tiroir */
    padding: 24px 28px;

    background: linear-gradient(
        180deg,
        #121f18 0%,
        #2a3f34 100%
    );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 12px 30px rgba(0,0,0,0.6);

    display: flex;
    flex-direction: column;
    gap: 26px;

    transform: translateY(-100%);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

    .mobile-drawer.open .mobile-drawer-menu {
        transform: translateY(0);
    }

    /* Liens */
    .mobile-drawer-menu a {
        font-family: 'Oswald', sans-serif;
        font-size: 1rem;
        letter-spacing: 0.75px;
        text-transform: uppercase;

        color: #ffffff;
        text-decoration: none;

        padding-bottom: 8px;
        border-bottom: 2px solid rgba(255,255,255,0.08);

        transition: color 0.4s ease;
    }

    .mobile-drawer-menu a:hover {
        color: var(--primary-color);
    }

    /* LOGO (SOUS LE MENU) */
    .mobile-drawer-logo {
        margin-top: 0px; /* 🔹 si AUTO, pousse le logo en bas DU TIROIR */
        padding-top: 0px;

        display: flex;
        justify-content: center;

        opacity: 1;
    }

    .mobile-drawer-logo img {
        max-width: 180px;
        height: auto;
        border-radius: 20px;
    }

    /* Blocage du scroll */
    body.menu-open {
        overflow: hidden;
    }
}

/* =========================================================
   PAGE INDEX – POURQUOI XTREM ATHLETIC
   ========================================================= */

/* ====== WRAPPER JOURNALIER ====== */

.daily-wrapper {
    margin: 20px auto
}

.daily-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Chaque carte */
.daily-card {
    flex: 1 1 420px;
    max-width: 520px;
}



/* ====== ENTRAINEMENT DU JOUR ======== */

/* LISTE DES ENTRAINEMENTS */

.training-day {
    margin: 10px auto 10px;
    padding: 10px 10px;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );

    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 0 0 1px rgba(255,255,255,0.06);

    text-align: center;
}

/* TITRE */
.training-day h2 {
    font-size: 20px;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.training-day h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* TYPE */
.training-type {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #22c55e;
    margin-bottom: 18px;
}

/* DESCRIPTION */
.training-description {
    max-width: 420px;
    margin: 0 auto 22px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
}

/* EXERCICES */
.training-exercices {
    display: inline-block;
    padding: 14px 40px;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* TEXTE DES EXERCICES — ULTRA COMPACT */
.training-exercices p {
    margin: 0;                 /* 🔥 SUPPRESSION TOTALE */
    padding: 0;
    font-size: 16px;
    font-weight: 200px;
    line-height: 0.75;
    white-space: pre-line;
    color: #e5e7eb;
}

/* ================= MOBILE PREMIUM ================= */
@media (max-width: 768px) {

    .training-day {
        position: relative;
        margin: 12px 10px;
        padding: 16px;
        max-width: 520px;
        min-height: 320px;

        display: flex;
        flex-direction: column;
        justify-content: space-between;

        border-radius: 22px;

        background: linear-gradient(
            145deg,
            rgba(255,255,255,0.06),
            rgba(255,255,255,0.015)
        );

        backdrop-filter: blur(12px);

        border: 1px solid rgba(255,255,255,0.08);

        box-shadow:
            0 10px 30px rgba(0,0,0,0.6),
            inset 0 0 0 1px rgba(255,255,255,0.04);

        overflow: hidden;

        transition: all 0.25s ease;
    }

    /* Glow subtil */
    .training-day::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
            circle at top left,
            rgba(34,197,94,0.15),
            transparent 60%
        );
        opacity: 0.6;
        pointer-events: none;
    }

    /* Interaction tactile */
    .training-day:active {
        transform: scale(0.98);
    }

    /* TITRE */
    .training-day h2 {
        font-size: 18px;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-wrap: balance;
    }

    /* TYPE (FOR TIME / AMRAP) */
    .training-type {
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #22c55e;

        margin-bottom: 10px;

        text-shadow: 0 0 8px rgba(34,197,94,0.6);
    }

    /* DESCRIPTION */
    .training-description {
        max-width: 100%;
        margin: 0 auto 16px;
        font-size: 14px;
        line-height: 1.6;
        color: #94a3b8;
    }

    /* BLOC EXERCICES */
    ..training-exercices {
    padding: 18px 20px;

    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.75)
    );

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);

    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.6),
        0 5px 20px rgba(0,0,0,0.5);

    min-height: 80px; /* ✅ garde une base */
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* centre vertical SI peu de contenu */

    text-align: center;
}

    /* TEXTE EXERCICES */
    .training-exercices p {
       margin: 0;
       font-size: 15px;
       font-weight: 500;
       line-height: 0.6; /* 🔥 corrige ton 0.6 (trop serré) */
       letter-spacing: 0.8px;
       color: #e2e8f0;
    }

    /* GRID */
    .daily-grid {
        gap: 10px;
    }
}

/* ====== PHRASE DU JOUR ======== */

.phrase-day {
    margin: 10px auto 10px;
    padding: 10px 10px;
    max-width: 700px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.04),
        rgba(255,255,255,0.015)
    );

    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 0 0 1px rgba(255,255,255,0.06);

    text-align: center;
}

/* TITRE */
.phrase-day h2 {
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* TEXTE DE LA PHRASE */
.phrase-text {
    max-width: auto;
    margin: 0 auto 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
    color: #e5e7eb;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
}

/* AUTEUR */
.phrase-author {
    margin-top: 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #22c55e;
    opacity: 0.9;
}

/* MOBILE */
@media (max-width: 768px) {
    .phrase-day {
        margin: 10px 10px 10px;
        padding: 10px 10px;
    }

    .phrase-day h2 {
        font-size: 16px;
    }

    .phrase-text {
        font-size: 14px;
    }
}

/* ====== POURQUOI XTRM ======== */

.why-xtrem {
    padding: 20px 10px;
    background-color: #0f0f0f;
}

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

.why-xtrem h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.why-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    position: relative;               /* indispensable */
    background-color: #181818;
    padding: 30px;
    border-radius: 8px;
    overflow: hidden;                 /* coupe l’image */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
}

/* Image de fond via HTML */
.why-card .why-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay pour lisibilité */
.why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Contenu au-dessus de l’image */
.why-card h3,
.why-card p {
    position: relative;
    z-index: 2;
}

.why-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.why-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #bbbbbb;
}

/* =========================================================
   PAGE NUTRITION - PRINCIPALE
   ========================================================= */
   
.nutrition-page {
    max-width: 90%;
    margin: auto;
    padding: 10px 10px;
}

.nutrition-page h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nutrition-theme {
    margin-bottom: 20px;
}

.nutrition-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 10px 0 10px;
    color: var(--color-primary);
    border-left: 5px solid var(--color-primary);
    padding-left: 14px;
}

.theme-title {
    display: flex;
    align-items: center;

    font-size: 1.5rem;
    margin-bottom: 10px;

    padding-left: 12px;
    border-left: 4px solid #6b8f71;

    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.nutrition-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;

    min-height: 180px; /* ← POINT CRUCIAL */

    text-decoration: none;
    color: #1a1a1a;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nutrition-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.nutrition-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.nutrition-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 20px;
    line-height: 1.4;
    color: var(--primary-color);
    flex-grow: 1;
}


@media (max-width: 768px) {
    .nutrition-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .nutrition-card img {
        height: 220px;
    }

    .nutrition-card h3 {
        font-size: 1.1rem;
    }
}

/* =========================================================
   PAGE NUTRITION - DETAIL ARTICLE
   ========================================================= */

.nutrition-detail {
    max-width: 70%;
    margin: 40px auto;
    padding: 0 20px;
}

/* Titre de l’article */
.nutrition-detail h1 {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

/* Image principale */
.nutrition-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Description courte */
.nutrition-description {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #f2f2f2;
    text-align: justify;
}

/* Contenu principal (article collé en HTML) */
.nutrition-content {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: justify;
}

/* Paragraphes */
.nutrition-content p {
    margin-bottom: 10px;
    color: #f2f2f2;
}

/* Titres internes */
.nutrition-content h2 {
    text-align: left;
    font-size: 1.4rem;
    margin: 40px 0 15px;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 14px;
}

/* RÈGLE GÉNÉRALE H3 (blanc, cohérent, lisible) */
.nutrition-content h3 {
    text-align: left;
    font-size: 1.6rem;
    margin: 30px 0 15px;
    line-height: 1.3;
    color: #ffffff;
}

/* Listes */
.nutrition-content ul {
    margin: 15px 0 25px 25px;
}

.nutrition-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #f2f2f2;
}

/* Responsive */
@media (max-width: 768px) {
    .nutrition-detail {
        margin: 20px auto;
        max-width: 98%;
    }

    .nutrition-detail h1 {
        font-size: 2.2rem;
    }

    .nutrition-content,
    .nutrition-description {
        text-align: left;
    }
}

/* =========================================================
   PAGE EXERCICES - AFFICHAGE MUSCLES
   ========================================================= */

.muscles-page {
    max-width: 90%;
    margin: auto;
    padding: 10px 10px;
}

.muscles-page h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary-color); /* vert militaire */
    letter-spacing: 1px;
}

/* GROUPE MUSCULAIRE */
.muscles-groupe {
    margin-bottom: 100px;
}

.muscle-title {
    display: flex;
    align-items: center;

    font-size: 1.5rem;
    margin-bottom: 25px;

    padding-left: 12px;          /* espace entre la barre et le texte */
    border-left: 4px solid #6b8f71;

    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GRID */
.muscles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

/* CARTE */
.muscle-card {
    background: var(--secondary-color);
    border-radius: 14px;
    padding: 40px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: none;
}

.muscle-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(107, 143, 113, 0.15),
        transparent
    );
    opacity: 0;
    transition: opacity .25s ease;
}

.muscle-card:hover::before {
    opacity: 0;
}

.muscle-card:hover {
    transform: none;
    box-shadow: none;
}

/* IMAGE */
.muscle-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    margin-bottom: 8px;
}

/* TITRE */
.muscle-card h3 {
    color: #000;
    font-size: 1.6rem;
    text-align: center;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1.6px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .muscles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .muscle-card {
        padding: 20px;
        border-radius: 12px;
    }

    .muscle-card h3 {
        font-size: 1.2rem;
        letter-spacing: 1.2px;
    }

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

/* =========================================================
   PAGE EXERCICES - LISTE EXERCICES PAR MUSCLE
   ========================================================= */

.exercices-page {
    max-width: 70%;
    margin: auto;
    padding: 10px 10px;
}

.exercices-page h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary-color); /* vert militaire */
    letter-spacing: 0.3px;
}

/* GROUPE MUSCULAIRE */
.muscles-groupe {
    margin-bottom: 100px;
}

.muscle-title {
    display: flex;
    align-items: center;

    font-size: 1.5rem;
    margin-bottom: 25px;

    padding-left: 12px;          /* espace entre la barre et le texte */
    border-left: 4px solid #6b8f71;

    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GRID */
.exercices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 50px;
}

/* CARTE */
.exercice-card {
    background: var(--secondary-color);
    border-radius: 14px;
    padding: 0px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: none;
}

.exercice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(107, 143, 113, 0.15),
        transparent
    );
    opacity: 0;
    transition: opacity .25s ease;
}

.exercice-card:hover::before {
    opacity: 0;
}

.exercice-card:hover {
    transform: none;
    box-shadow: none;
}

/* IMAGE */
.exercice-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    margin-bottom: 8px;
    filter: brightness(0.69);
}

/* TITRE */
.exercice-card h3 {
    font-family: 'Oswald', sans-serif;
    color: #3f3f3f;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1.4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .exercices-page {
        max-width: 96%;
    }

    .exercices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .exercice-card {
        padding: 0px;
        border-radius: 12px;
    }

    .exercice-card h3 {
        font-size: 1.2rem;
        letter-spacing: 1.2px;
    }

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

/* =========================================================
   PAGE EXERCICES - DETAIL
   ========================================================= */

.exercice-detail {
    max-width: 900px;
    margin: auto;
    padding: 60px 20px;
}

.exercice-detail h1 {
    font-size: 2.5rem;
    color: #6b8f71;
    margin-bottom: 10px;
}

.exercice-detail .muscle {
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 30px;
}

.exercice-detail section {
    margin-bottom: 40px;
}

.exercice-image {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

.exercice-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    filter: brightness(0.69);
}

/* =========================================================
   PAGE PROGRAMMES – PAR THÈME
   ========================================================= */

.programmes-page {
    padding: 40px 20px;
}

/* ======================
   TITRE DE THÈME
   ====================== */

.programme-theme-title {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: #ffffff;

    margin: 40px 0 20px;
}

/* Petit trait vert */
.programme-theme-title::before {
    content: "";
    width: 6px;
    height: 28px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ======================
   GRILLE DES CARTES
   ====================== */

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ======================
   CARTE PROGRAMME
   ====================== */

.programme-card {
    position: relative;
    height: 200px;

    /* IMAGE EN FOND (optionnelle) */
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 20px;
    overflow: hidden;

    text-decoration: none;
    color: inherit;

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Overlay sombre (utile uniquement si image) */
.programme-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.25)
    );
    z-index: 1;
}

/* Hover / tap */
.programme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.programme-card:active {
    transform: scale(0.98);
}

/* ======================
   CONTENU TEXTE
   ====================== */

.programme-card-content {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px;
    text-align: center;
}

.programme-card-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

/* ======================
   MOBILE (PRIORITÉ)
   ====================== */

@media (max-width: 768px) {

    .programmes-page {
        padding: 24px 16px;
    }

    .programme-theme-title {
        font-size: 1.3rem;
        margin: 32px 0 16px;
    }

    .programme-theme-title::before {
        height: 22px;
    }

    .programmes-grid {
        gap: 20px;
    }

    .programme-card {
        height: 160px;
    }

    .programme-card-content h3 {
        font-size: 1.1rem;
    }
}

/* =========================================================
   PAGE PROGRAMME – DÉTAIL
   ========================================================= */
.programme-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 10px;
    text-align: left;
}

.programme-detail h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.programme-detail section {
    margin-top: 20px;
}

/* =========================================================
   PAGE CONTACT
   ========================================================= */
.contact-page {
    min-height: calc(60dvh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    background-color: var(--bg-dark);
}

.contact-container {
    width: 100%;
    max-width: 520px;
    background-color: #ffffff;
    padding: 2px 40px 40px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.contact-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 5px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.btn-submit {
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================================
   RESPONSIVE – MOBILE GLOBAL
   ========================================================= */
@media (max-width: 768px) {

    main h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 24px 18px;
    }
}