/* ------------------------------
   IMPORT DES POLICES
--------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Roboto:wght@300;400;500&display=swap');

/* ------------------------------
   RESET & BASE
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #FAFAFA;
    color: #4c270e;
    line-height: 1.6;

    /* Footer collé en bas */
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* ------------------------------
   HEADER + LOGO + PARTENAIRES
--------------------------------*/
header {
    background: #0066af;
    color: white;
    padding: 15px 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link img {
    height: 60px;
    cursor: pointer;
}


/* --- Logos partenaires --- */
.header-partners {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: auto;
}

.header-partners img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* logos blancs */
    opacity: 0.9;
    transition: 0.2s;
}

.header-partners img:hover {
    opacity: 1;
}

/* ------------------------------
   NAVIGATION
--------------------------------*/
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffef26;
    transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ------------------------------
   HERO
--------------------------------*/
.hero {
    position: relative;
    background: url('../images/mjc.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 140px 20px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero h2,
.hero p,
.hero button {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

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

.hero button {
    background: #fff7b2;
    color: #4c270e;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.hero button:hover {
    background: #dc6418;
    color: white;
}

/* ------------------------------
   CARTES (Accueil)
--------------------------------*/
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 25px;
    width: 260px;
    border-radius: 12px;
    border-top: 6px solid #dc6418;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-top-color: #0066af;
}

/* ------------------------------
   INFOS ACCUEIL
--------------------------------*/
.infos-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
}

.info-box {
    flex: 0 0 300px;
    background: #FAFAFA;
    padding: 25px;
    border-radius: 12px;
    border-left: 6px solid #0066af;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.info-box:hover {
    border-left-color: #dc6418;
}

.infos-accueil {
    background: #f6d29d;
    padding: 50px 20px;
    margin: 40px auto;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
    background: #0066af;
    padding: 25px;
    text-align: center;
    color: #fff7b2;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* ============================================================
   BLOCS GÉNÉRIQUES POUR TOUTES LES PAGES
============================================================ */

/* --- Conteneur de section réutilisable --- */
.section-container {
    background: #f6d29d;
    padding: 50px 20px;
    margin: 40px auto;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- Titres uniformisés --- */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #0066af;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #dc6418;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Grille horizontale réutilisable (3 blocs) --- */
.grid-3 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.grid-3 > * {
    flex: 0 0 300px;
}

/* --- Cartes génériques --- */
.card-generic {
    flex: 0 0 300px;
    background: #FAFAFA;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.card-generic.orange { border-left: 6px solid #dc6418; }
.card-generic.bleu   { border-left: 6px solid #0066af; }
.card-generic.vert   { border-left: 6px solid #029439; }

/* --- Boutons uniformisés --- */
.btn {
    display: inline-block;
    background: #fff7b2;
    color: #4c270e;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.btn:hover {
    background: #dc6418;
    color: white;
}

/* --- Mise en page interne --- */
.page-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.7;
    color: #4c270e;
    font-size: 1.05rem;
}

/* --- Listes stylisées --- */
.page-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.page-content ul li {
    margin-bottom: 8px;
}

/* --- Encadrés d'information --- */
.info-block {
    background: #fff7b2;
    padding: 20px;
    border-left: 6px solid #dc6418;
    border-radius: 10px;
    margin: 20px 0;
}

/* --- Images internes --- */
.page-image {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
}