
/* ==================================
   1. CONFIGURATION GENERALE
================================== */

:root {
    --black: #111111;
    --dark: #1b1b1b;
    --gold: #c6a45c;
    --gold-light: #e2c98e;
    --white: #ffffff;
    --gray: #777777;
    --light: #f6f5f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 90px 0;
}


/* ==================================
   2. NAVIGATION
================================== */

.header {
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    color: var(--gold);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-name {
    font-size: 11px;
    line-height: 1.4;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}


/* ==================================
   3. BANNIERE PRINCIPALE
================================== */

.hero {
    min-height: 620px;
    background:
        linear-gradient(90deg,
        rgba(0,0,0,0.95),
        rgba(0,0,0,0.45)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72")
        center/cover no-repeat;

    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 70px;
    padding-bottom: 70px;
}

.eyebrow,
.section-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(35px, 5vw, 65px);
    line-height: 1.15;
    max-width: 850px;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero-description {
    max-width: 620px;
    color: #dddddd;
    font-size: 17px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* ==================================
   4. BOUTONS
================================== */

.btn {
    display: inline-block;
    padding: 13px 25px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--black);
}


/* ==================================
   5. PRESENTATION
================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
}

.about h2,
.section-heading h2,
.admission h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    margin-bottom: 25px;
}

.about p {
    color: var(--gray);
    margin-bottom: 18px;
}

.text-link {
    display: inline-block;
    color: #9a7938;
    font-weight: bold;
    margin-top: 15px;
}

.about-panel {
    background: var(--black);
    color: white;
    padding: 50px 35px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-number {
    color: var(--gold);
    font-size: 55px;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-panel h3 {
    font-size: 23px;
    margin-bottom: 15px;
}

.about-panel p {
    color: #cccccc;
}


/* ==================================
   6. FORMATIONS
================================== */

.programs {
    background: var(--light);
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-heading > p:last-child {
    color: var(--gray);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.program-card {
    background: white;
    padding: 30px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.program-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.program-number {
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
}

.program-card h3 {
    font-size: 22px;
    margin: 20px 0 12px;
}

.program-card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.program-card a {
    color: #9a7938;
    font-size: 13px;
    font-weight: bold;
}


/* ==================================
   7. ADMISSIONS
================================== */

.admission {
    background: var(--dark);
    color: white;
    padding: 75px 0;
}

.admission-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.admission-content > div {
    max-width: 650px;
}

.admission-content p:not(.section-label) {
    color: #cccccc;
}


/* ==================================
   8. PIED DE PAGE
================================== */

.footer {
    background: var(--black);
    color: white;
    padding-top: 65px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    color: var(--gold);
    font-size: 35px;
}

.footer-slogan {
    color: var(--gold-light);
    margin-top: 15px;
    font-size: 13px;
}

.footer h3 {
    color: var(--gold);
    margin-bottom: 18px;
}

.footer-grid a,
.footer-grid p {
    display: block;
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-grid a:hover {
    color: var(--gold);
}

.copyright {
    border-top: 1px solid #333333;
    padding: 20px;
    text-align: center;
    color: #999999;
    font-size: 12px;
}


/* ==================================
   9. VERSION MOBILE
================================== */

@media (max-width: 768px) {

    .navbar {
        min-height: 75px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 15px 5% 25px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .hero {
        min-height: 550px;
    }

    .hero-description {
        font-size: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .admission-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 65px 0;
    }
}


/* ==================================
   10. PETITS ECRANS
================================== */

@media (max-width: 400px) {

    .logo-name {
        font-size: 9px;
    }

    .logo-symbol {
        font-size: 23px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 34px;
    }
}
/* LOGO DE L'EN-TÊTE */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.logo-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* ==================================
   11. PROTECTION GENERALE MOBILE
================================== */

/* Empêcher les débordements horizontaux */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-width: 320px;
}

/* Empêcher les images de dépasser leur conteneur */

img {
    max-width: 100%;
    height: auto;
}

/* Autoriser les textes longs à revenir à la ligne */

h1, h2, h3, h4, p, a, span {
    overflow-wrap: break-word;
}

/* Empêcher les éléments des grilles de forcer leur largeur */

.about-grid,
.program-grid,
.footer-grid,
.admission-content,
.navbar {
    min-width: 0;
}

.about-grid > *,
.program-grid > *,
.footer-grid > * {
    min-width: 0;
}
