/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
    --primary-color: #0077be;
    --primary-dark: #005a94;
    --secondary-color: #00a8e8;
    --accent-color: #00c9ff;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #7a7a7a;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

/* Container navbar plus large */
.navbar .container {
    max-width: 1600px;
    padding: 0 2rem;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;  /* Espace entre logo et menu */
}

/* Dans ton CSS ---------------------------------------------*/
.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;  /* Ajuste selon ce que tu veux */
    width: auto;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);  /* Petit zoom au survol */
}

/* Plus petit sur mobile */
@media (max-width: 768px) {
    .logo-image {
        height: 35px;  /* Plus petit sur mobile */
    }
}
/* Dans ton CSS ----------------NAME---------------------*/

.logo-name {
    height: 15px;  /* Ajuste selon ce que tu veux */
    width: auto;
    transition: var(--transition);
}

/* Plus petit sur mobile */
@media (max-width: 768px) {
    .logo-name {
        height: 15px;  /* Plus petit sur mobile */
    }
}
/* Dans ton CSS ----------------NAME-----------------------------*/

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem; /* 2 avant */
    align-items: center;
}

.nav-menu li a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;  /* Légèrement plus petit */
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:not(.btn-primary):hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:not(.btn-primary):hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* ===========================
   HERO SECTION avec VIDÉO
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===========================
        EMPLOI SECTION 
   =========================== */
.emploi-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.emploi-cta h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.emploi-cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}


/* Hero mobile - hauteur auto pour contenir le contenu */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 80px; /* Hauteur de la navbar */
        padding-bottom: 2rem;
    }
}

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

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,119,190,0.7) 0%, rgba(0,168,232,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

/* Pas de padding-top supplémentaire sur mobile - on gère avec le hero */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

/* Titre plus petit sur mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Subtitle plus petit sur mobile */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Boutons empilés sur mobile */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Scroll indicator - DÉSACTIVÉ */
.scroll-indicator {
    display: none;
}
/*
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
} 

*/


/*--------------------------------------------------------------------*/


/* Hero court pour pages internes */
.hero-short {
    height: 50vh;
    min-height: 400px;
}

.hero-short .hero-title {
    font-size: 3rem;
}

.hero-short .hero-subtitle {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-short {
        height: auto;
        min-height: 60vh;
    }
    
    .hero-short .hero-title {
        font-size: 1.8rem;
    }
}




/*--------------------------------------------------------------------*/






@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   SECTIONS GÉNÉRALES
   =========================== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===========================
   INTRO SECTION
   =========================== */
.intro-section {
    background: var(--bg-light);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-weight: 500;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ===========================
   PROGRAMMES SECTION
   =========================== */
.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.programme-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.programme-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.programme-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.programme-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--primary-dark);
}

/* ===========================
   ACTUALITÉS SECTION
   =========================== */
.actualites-section {
    background: var(--bg-light);
}

.actualites-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.actualite-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.actualite-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
.actualite-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
.actualite-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.actualite-content {
    color: var(--text-medium);
    line-height: 1.8;
}

.actualite-content p {
    margin-bottom: 1rem;
}
    font-size: 0.9rem;
}
    margin-bottom: 0.5rem;
}

.actualite-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.actualite-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===========================
   MISSION SECTION
   =========================== */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.mission-content p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.mission-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/*.mission-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}*/

.mission-image img {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: opacity 0.8s ease-in-out;
    width: 100%;
    height: auto;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-cta {
    background: var(--white);
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===========================
   BOUTONS GÉNÉRAUX
   =========================== */
/*.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
*/
.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;  /* Au lieu de plus gros */
    font-size: 0.9rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Bouton inscription dans le menu mobile */
@media (max-width: 768px) {
    .nav-menu .btn-primary {
        display: inline-block;
        margin-top: 1rem;
    }
}


.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

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

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: var(--accent-color);
}

/* ===========================
   RESPONSIVE
   =========================== */
/* @media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }
}*/

    @media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 254, 254, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    /* Espacement pour ne pas cacher le contenu */
    .nav-menu li a {
        padding: 0.75rem 1.5rem;
        display: block;
    }
} 

/* @media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98); /* BLANC au lieu de noir 
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1000;
    }
    
    /* Liens en NOIR sur fond blanc 
    .nav-menu li a {
        color: #333; /* Texte foncé 
        padding: 0.75rem 1.5rem;
        display: block;
    }
    
    .nav-menu li a:hover {
        color: #0066cc; /* Bleu au hover 
        background: rgba(0, 0, 0, 0.05);
    }
}

*/

@media (max-width: 640px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .programmes-grid {
        grid-template-columns: 1fr;
    }

    .actualites-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .actualite-card {
        padding: 1.5rem;
    }
    
    .actualite-card h3 {
        font-size: 1.3rem;
    }
    
    .actualite-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .programmes-grid,
    .actualites-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* ===========================
  
   =========================== */

/* Ajuster l'espace entre les items du menu pour tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 0.8rem; /* Réduit de 1.2rem à 0.8rem */
    }
    
    .nav-menu li a {
        font-size: 0.85rem; /* Plus petit */
    }
    
    .navbar .container {
        padding: 0 1rem; /* Réduit le padding latéral */
    }
}

/* Mode hamburger commence plus tôt (à 1024px au lieu de 768px) */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0.8rem 0;
    }
    
    .nav-menu li a {
        display: block;
        padding: 0.5rem 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
}

/* ===========================
   FIX #2: LOGO MOBILE OPTIMISÉ
   Logo plus court en mobile
   =========================== */

/* Tablette - logo moyen */
@media (max-width: 1024px) {
    .logo-image {
        height: 40px;
    }
    .logo-name {
        height: 13px;
    }
}

/* Mobile - logo encore plus petit */
@media (max-width: 768px) {
    .logo-image {
        height: 32px; /* Réduit de 35px à 32px */
    }
    .logo-name {
        height: 12px; /* Réduit de 15px à 12px */
    }
}

/* Très petit mobile */
@media (max-width: 375px) {
    .logo-image {
        height: 28px;
    }
    .logo-name {
        height: 10px;
    }
}

/* ===========================
   FIX #3: BOUTON "INSCRIPTION" PLUS COURT
   On cache "en ligne" sur les petits écrans
   =========================== */

/* Ajoute une classe pour le texte court */
.btn-text-short {
    display: none;
}

/* En dessous de 1200px, on montre le texte court */
@media (max-width: 1200px) {
    .btn-text-full {
        display: none;
    }
    .btn-text-short {
        display: inline;
    }
}

/* Ajuste le padding du bouton pour qu'il soit plus compact */
@media (max-width: 1200px) {
    .nav-menu li a.btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-menu li a.btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        width: auto;
        display: inline-block;
    }
}




/* ===========================
  
   =========================== */

/* ===========================
   STYLES ADDITIONNELS POUR LES PAGES
   À ajouter à la fin de style.css
   =========================== */

/* PAGE HERO (pages internes) */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 70px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* CONTENT SECTIONS */
.content-section {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-main h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.info-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-size: 1.05rem;
}

/* SERVICES SECTION */
.services-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.services-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.service-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.service-text h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-text p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* INSTALLATIONS SECTION */
.installations-section {
    padding: 4rem 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-medium);
    font-size: 1.1rem;
}

.installations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.installation-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.installation-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.installation-features,
.programmes-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.installation-features li,
.programmes-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    padding-left: 1.5rem;
    position: relative;
}

.installation-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.programmes-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* PROGRAMME DETAIL PAGES */
.programme-detail {
    padding: 4rem 0;
}

.programme-detail.alternate {
    background: var(--bg-light);
}

.programme-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.programme-icon-large {
    font-size: 5rem;
}

.programme-header-text h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.programme-content {
    max-width: 1000px;
}

.programme-info h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    padding-left: 1.8rem;
    position: relative;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.horaires-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.horaire-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.horaire-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.horaire-card ul {
    list-style: none;
    padding: 0;
}

.horaire-card li {
    padding: 0.3rem 0;
    color: var(--text-medium);
}

.detail-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.detail-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.inscription-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.inscription-box p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

/* HORAIRES PAGE */
.horaires-section {
    padding: 4rem 0;
}

.horaires-section.alternate {
    background: var(--bg-light);
}

.horaire-bloc {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.horaire-bloc h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.info-item p,
.info-item ul {
    color: var(--text-medium);
}

.schedule-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: left;
}

.schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-table tr:hover {
    background: var(--bg-light);
}

.note {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 1rem;
}

.info-banner {
    background: var(--accent-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.recap-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.recap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.recap-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.recap-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.recap-list {
    list-style: none;
    padding: 0;
}

.recap-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ACTUALITÉS PAGE */
.actualites-liste {
    padding: 4rem 0;
}

.actualite-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.actualite-meta {
    margin-bottom: 1rem;
}

.actualite-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.actualite-content h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.actualite-content > p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.actualite-body {
    color: var(--text-medium);
    line-height: 1.7;
}

.actualite-body p {
    margin-bottom: 1rem;
}

.actualite-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.cms-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

/* CONTACT PAGE */
.contact-section {
    padding: 4rem 0;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    opacity: 0.9;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-card_1 {
    background: var(--white);
    opacity: 0.9;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative; /* ← IMPORTANT pour le ::before */
}

/* IMAGE DE FOND avec transparence contrôlable */
.contact-card_1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/cours/water.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* ← CONTRÔLE ICI la transparence de l'image SEULEMENT */
    z-index: -1;
    /* filter: blur(2px); */ /* ← Active si tu veux du flou */
}


.contact-card.highlight {
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.9) 0%, 
        rgba(var(--secondary-color-rgb), 0.9) 10%);
    color: var(--text-dark);
}
/*             =               */

.contact-card.highlight h3,
.contact-card.highlight strong {
    color: var(--primary-color);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    text-align: left;
    margin: 2rem 0;
}

.contact-details p {
    margin-bottom: 0.8rem;
}

.contact-details a {
    color: inherit;
    text-decoration: underline;
}

.hours-box {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.installations-contact {
    background: var(--bg-light);
    padding: 4rem 0;
}

.installation-contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.installation-contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.map-placeholder {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.faq-section {
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.faq-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-hours-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.hours-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hours-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.method {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.method strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

/* RESPONSIVE - PAGES INTERNES */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .installations-grid {
        grid-template-columns: 1fr;
    }

    .programme-header {
        flex-direction: column;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding: 6rem 0 3rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .service-item {
        flex-direction: column;
    }

    .programme-icon-large {
        font-size: 3.5rem;
    }

    .programme-header-text h2 {
        font-size: 1.8rem;
    }

    .horaires-cards,
    .info-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .schedule-table {
        font-size: 0.9rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.8rem;
    }
}


/* ===========================
   STYLES SUPPLÉMENTAIRES POUR PAGE COURS
   À ajouter à la fin de style.css
   =========================== */

/* Navigation rapide */
.quick-nav-section {
    padding: 3rem 0 2rem;
    background: var(--bg-light);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.quick-nav-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.quick-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-nav-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.quick-nav-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.quick-nav-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Sections Cours */

.note-container {
    display: flex;
    gap: 15px;
    align-items: flex-start; /* Aligne en haut */
}

.cours-section {
    padding: 4rem 0;
}

.cours-section.alternate {
    background: var(--bg-light);
}

.section-header-cours {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-cours .section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Items de cours */
.cours-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cours-item:hover {
    box-shadow: var(--shadow-md);
}

.cours-item.highlight-nouveau {
    border-left: 4px solid var(--accent-color);
}

.cours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cours-header h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cours-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-light);
    color: var(--text-medium);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-nouveau {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cours-content {
    color: var(--text-dark);
}

.cours-description h4 {
    color: var(--primary-dark);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.cours-description ul {
    list-style: none;
    padding-left: 0;
}

.cours-description ul li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
}

.cours-description ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cours-note {
    /* ===== STYLE DE LA BULLE BLEUE ===== */
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    
    /* ===== GRID POUR TEXTE + IMAGE ===== */
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.coursnote-image {
    width: 150px;
    height: 150px;          /* ✅ Hauteur fixe */
    object-fit: cover;      /* ✅ Crop intelligent */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coursnote-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    }

.cours-note p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}



/* Checklists avec images */
.checklist-preview {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    flex-wrap: wrap;
}

.checklist-image {
    width: 300px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.coursnote-image {
        width: 100%;
        max-width: 250px;
        height: 250px;      /* ✅ Garde le ratio carré sur mobile aussi */
        margin: 0 auto;
    }

/* EFFET HOVER SUR IMAGES - ZOOM LÉGER */
.checklist-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.coursnote-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.checklist-items {
    flex: 1;
    min-width: 300px;
}

.checklist-items p {
    margin-bottom: 0.75rem;
}

.checklist-items ul {
    list-style: none;
    padding-left: 0;
}

.checklist-items ul li {
    padding: 0.35rem 0 0.35rem 1.3rem;
    position: relative;
    font-size: 0.95rem;
}

.checklist-items ul li:before {
    content: "□";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.note-correction {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.info-grid-2 ul {
    list-style: none;
    padding-left: 0;
}

.info-grid-2 ul li {
    padding: 0.3rem 0 0.3rem 1.3rem;
    position: relative;
}

.info-grid-2 ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Section Info générale */
.info-generale-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.info-generale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-generale-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-generale-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.info-generale-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-generale-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Buttons dans section */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-secondary-cta {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary-cta:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .section-header-cours .section-title {
        font-size: 1.8rem;
    }

    .cours-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cours-header h3 {
        font-size: 1.3rem;
    }

    .checklist-preview {
        flex-direction: column;
    }

    .checklist-image {
        width: 100%;
    }

    .cours-note {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .coursnote-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-secondary-cta,
    .btn-cta {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cours-item {
        padding: 1.5rem;
    }

    .badge {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }

    .checklist-items ul li {
        font-size: 0.9rem;
    }
}

/* ===========================
   STYLE BOUTON TERTIAIRE HERO
   À ajouter à la fin de style.css
   =========================== */

.btn-hero-tertiary {
    background: transparent;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: inline-block;
}

.btn-hero-tertiary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-hero-tertiary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   FIX BOUTONS HERO - MOBILE (3 boutons)
   ============================================ */

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn-hero-primary,
    .hero-buttons .btn-hero-secondary,
    .hero-buttons .btn-hero-tertiary {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        min-height: 45px;
    }
    
    .btn-hero-primary {
        font-size: 0.9rem;
    }
    
    .btn-hero-secondary,
    .btn-hero-tertiary {
        font-size: 0.82rem;
    }
}

@media (max-width: 375px) {
    .hero-buttons .btn-hero-primary,
    .hero-buttons .btn-hero-secondary,
    .hero-buttons .btn-hero-tertiary {
        font-size: 0.75rem;
        padding: 0.65rem 0.8rem;
    }
}