/* =========================================
   VARIABLES GLOBALES
========================================= */
:root {
    --color-primary: #c40000;     /* Rouge EKDP */
    --color-dark: #111;
    --color-light: #fff;
    --color-grey: #f5f5f5;

    --max-width: 1200px;

    --font-main: "Roboto", Arial, sans-serif;
}

/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
}

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

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

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: auto;
}

h1, h2, h3 {
    font-weight: 700;
}

/* =========================================
   HEADER
========================================= */
.header {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-light);
}
.logo img {
    height: 64px;
    width: auto;
}
.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

/* Menu desktop */
.nav-desktop ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-desktop a {
    color: var(--color-light);
    font-weight: 500;
}

.btn-menu {
    background: var(--color-primary);
    padding: 8px 15px;
    border-radius: 4px;
}

/* Menu mobile icon */
.nav-mobile-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.nav-mobile ul {
    list-style: none;
    padding: 15px;
}

.nav-mobile li {
    padding: 10px 0;
}

.nav-mobile a {
    color: var(--color-light);
    font-size: 1.2rem;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    background: url("../img/hero.jpg") center/cover no-repeat;
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: rgba(0,0,0,0.55);
    width: 100%;
    height: 100%;
    color: var(--color-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
}

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

.hero p {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--color-primary);
    padding: 12px 20px;
    border-radius: 4px;
    color: var(--color-light);
    font-weight: bold;
}

.btn-secondary {
    background: var(--color-light);
    color: var(--color-dark);
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* =========================================
   SECTIONS
========================================= */
section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* WHY GRID */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.why-item {
    background: var(--color-grey);
    padding: 25px;
    border-radius: 6px;
    text-align: center;
}

/* COURS GRID */
.cours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.cours-card {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 40px 20px;
    text-align: center;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
}

.center {
    text-align: center;
    margin-top: 30px;
}

/* PLANNING TABLE */
.planning-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.planning-table th,
.planning-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
}

.planning-table th {
    background: var(--color-primary);
    color: var(--color-light);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 40px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.footer-col h4 {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

/* TABLETTE */
@media (max-width: 1024px) {
    .why-grid,
    .cours-grid,
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

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

    /* Menu */
    .nav-desktop {
        display: none;
    }

    .nav-mobile-icon {
        display: block;
    }

    /* Hero */
    .hero {
        height: 60vh;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 60%;
    }

    /* Grilles */
    .why-grid,
    .cours-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

}

/* Menu mobile ouvert */

/* =========================================
   PAGE COURS — TITRE
========================================= */
.page-header {
    background: var(--color-grey);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* =========================================
   BLOCS DE COURS
========================================= */
.cours-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.cours-section h2 {
    text-align: left;
    margin-bottom: 25px;
}

/* Bloc principal : texte + image */
.cours-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Texte */
.cours-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cours-text ul {
    margin-top: 10px;
    padding-left: 20px;
}

.cours-text li {
    margin-bottom: 8px;
    list-style: disc;
}

/* Image */
.cours-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================================
   RESPONSIVE — PAGE COURS
========================================= */
@media (max-width: 1024px) {
    .cours-block {
        grid-template-columns: 1fr;
    }

    .cours-section h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .cours-text p {
        font-size: 1rem;
    }

    .cours-block {
        gap: 20px;
    }
}

/* =========================================
   PAGE LES PROFS — STYLE SPÉCIFIQUE
========================================= */

/* Titre des sections profs */
.cours-section h2 {
    text-align: left;
    margin-bottom: 25px;
}

/* Bloc prof : image + texte */
.cours-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Portraits profs */
.cours-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* Texte du prof */
.cours-text p {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.cours-text ul {
    margin-top: 10px;
    padding-left: 20px;
}

.cours-text li {
    margin-bottom: 8px;
    list-style: disc;
}

/* Sous-titres (grade, diplômes, etc.) */
.cours-text strong {
    color: var(--color-primary);
}

/* =========================================
   RESPONSIVE — PAGE LES PROFS
========================================= */

@media (max-width: 1024px) {
    .cours-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cours-image img {
        margin: 0 auto;
    }

    .cours-section h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cours-text p {
        font-size: 1rem;
    }

    .cours-block {
        gap: 20px;
    }
}
/* ================================
   MENU MOBILE AMÉLIORÉ
================================ */

.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #111;
    transition: height 0.35s ease;
    z-index: 999;
}

.nav-mobile.open {
    height: 100vh;
}

.nav-mobile ul {
    list-style: none;
    padding: 80px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-mobile a {
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    text-align: center;
}

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

/* Bouton hamburger */
.nav-mobile-icon {
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transition: transform 0.2s ease;
}

.nav-mobile-icon.active {
    transform: rotate(90deg);
}


/* =========================================
   AMÉLIORATION ESPACEMENT PAGE D'ACCUEIL
========================================= */

/* Sections générales */
.cours-section {
    padding: 80px 0; /* au lieu de 40-50px */
}

/* Titre de section */
.cours-section h2 {
    margin-bottom: 40px; /* plus d'air */
}

/* Grille des 4 blocs */
.home-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px; /* plus d'espace entre les cartes */
    margin-top: 40px;
}

/* Cartes */
.home-card {
    background: #fff;
    padding: 35px 25px; /* plus de padding interne */
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Icônes */
.home-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* Texte des cartes */
.home-card p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Boutons secondaires */
.btn-secondary {
    display: inline-block;
    margin-top: 10px;
}

/* Section valeurs */
.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.values-list li {
    background: #f7f7f7;
    padding: 12px 20px;
    border-radius: 8px;
}

/* CTA final */
.cta-section {
    padding: 80px 0;
}

/* ============================
   TABLEAU AGENDA
============================ */

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.agenda-table th {
    background: #111;
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 1.1rem;
}

.agenda-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.agenda-table tr:nth-child(even) {
    background: #f7f7f7;
}

/* ============================
   HERO PAGE D'ACCUEIL
============================ */

.hero {
    position: relative;
    height: 65vh;
    min-height: 380px;
    width: 100%;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.75);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.75)
    );
	.hero-content h1,
.hero-content p {
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

}


.hero-content {
    background: rgba(0,0,0,0.55);
    padding: 25px 35px;
    border-radius: 10px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-bottom-right {
    position: absolute;
    bottom: 6%;
    right: 5%;
    background: rgba(0,0,0,0.70); /* plus opaque */
    padding: 28px 32px;
    border-radius: 12px;
    max-width: 420px;
    text-align: right;
    backdrop-filter: blur(2px); /* optionnel mais très efficace */
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.65)
    );
}

.hero-content h1,
.hero-content p {
    color: white;
    text-shadow: 0 3px 8px rgba(0,0,0,0.8);
}


@media (max-width: 768px) {
    .hero-bottom-right {
        right: 50%;
        transform: translateX(50%);
        text-align: center;
        max-width: 90%;
    }
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
}

/* ============================
   GALERIE DOJO
============================ */

.dojo-galerie {
    padding: 60px 0;
}

.dojo-galerie h2 {
    text-align: center;
    margin-bottom: 10px;
}

.dojo-galerie p {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

.dojo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.dojo-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.25s ease;
}

.dojo-img:hover {
    transform: scale(1.03);
}

.association-photo {
    text-align: center;
    margin: 40px auto;
}

.association-photo img {
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.bureau-list {
    margin-top: 20px;
    padding-left: 20px;
    line-height: 1.7;
}

.bureau-list li {
    margin-bottom: 8px;
}

.profil-photo {
    text-align: center;
    margin: 30px 0;
}

.profil-photo img {
    width: 260px;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #444;
    text-align: center;
}

.profil-list {
    margin: 20px 0;
    padding-left: 20px;
    line-height: 1.7;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

.btn-secondary {
    display: inline-block;
    margin-left: 10px;
    padding: 10px 20px;
    background: #eee;
    border-radius: 6px;
}


h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.cours-section p {
    margin-bottom: 20px;
}

.cours-section ul {
    margin-top: 20px;
    margin-bottom: 20px;
}


/* Responsive */
@media (max-width: 900px) {
    .dojo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .dojo-grid {
        grid-template-columns: 1fr;
    }
    .dojo-img {
        height: 220px;
    }
}

/* HERO version mobile */
@media (max-width: 600px) {

    .hero-bottom-right {
        bottom: 4%;
        right: 50%;
        transform: translateX(50%);
        max-width: 90%;
        padding: 22px 24px;
        background: rgba(0,0,0,0.75);
        border-radius: 14px;
        backdrop-filter: blur(4px);
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.4;
        margin-top: 8px;
    }

    .hero {
        min-height: 70vh;
        background-position: center 20%;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 42px;
    }
}
@media (max-width: 600px) {
    .association-photo img {
        width: 95%;
        max-width: 380px;
    }
}
.cours-section h2 {
    margin-top: 60px !important;
    padding-top: 25px;
    border-top: 1px solid #ddd;
    margin-bottom: 20px;
}

.cours-section a {
    color: #c00000; /* rouge EKDP */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 500;
}

.cours-section a:hover {
    color: #900000; /* rouge foncé au survol */
}