/* =========================
   THEME EDUCATIF OFFICIEL
   Collège / Établissement
========================= */

:root {
    --primary: #2f6fb2;      /* Bleu institutionnel */
    --primary-soft: #edf4fb; /* Bleu très clair */
    --background: #f6f7f9;   /* Fond clair */
    --text: #2c2c2c;
    --border: #dfe6ee;
}

/* Reset léger */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* =========================
   HEADER / NAVIGATION
========================= */

header {
    background: #ffffff;
    border-bottom: 4px solid var(--primary);
}

.header,
.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 600;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   HERO (ACCUEIL)
========================= */

.hero {
    background: linear-gradient(
        to right,
        var(--primary-soft),
        #ffffff
    );
    padding: 90px 20px;
}

.hero-content {
    max-width: 1000px;
    margin: auto;
}

.hero h2 {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 750px;
}

/* =========================
   SECTIONS
========================= */

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

.section-title {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 35px;
    border-left: 6px solid var(--primary);
    padding-left: 15px;
}

/* =========================
   CARTES (cards)
========================= */

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

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 20px;
}

.card p {
    font-size: 15px;
}

/* =========================
   FORMULAIRES
========================= */

form {
    margin-top: 15px;
}

input,
button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 15px;
    border-radius: 6px;
}

input {
    border: 1px solid var(--border);
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

button:hover {
    background: #245a93;
}

/* =========================
   FOOTER
========================= */

footer {
    background: var(--primary);
    color: #ffffff;
    text-align: center;
    padding: 25px;
    margin-top: 80px;
    font-size: 14px;
}
/* =========================
   LOGO + TITRE HEADER
========================= */

.logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-title img {
    height: 45px;
    width: auto;
}

.logo-title span {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}
/* =========================
   RESPONSIVE – TABLETTE
========================= */
@media (max-width: 900px) {

    .header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content {
        padding: 20px;
    }

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

    .job-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================
   RESPONSIVE – TÉLÉPHONE
========================= */
@media (max-width: 600px) {

    body {
        font-size: 0.95em;
    }

    header img {
        width: 45px;
        height: auto;
    }

    .logo-title span {
        font-size: 1.1em;
        text-align: center;
    }

    nav a {
        padding: 8px 12px;
        font-size: 0.95em;
    }

    .hero h2 {
        font-size: 1.6em;
        text-align: center;
    }

    .section-title {
        font-size: 1.4em;
        text-align: center;
    }

    .card {
        padding: 15px;
    }

    .discord-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    footer {
        font-size: 0.9em;
        text-align: center;
    }
}
/* BOUTON ACCÈS PORTAIL */
.btn-portal {
    margin-left: 15px;
    padding: 10px 18px;
    background: #2c7be5;
    color: #ffffff;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s, transform 0.2s;
}

.btn-portal:hover {
    background: #1f5fc0;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .btn-portal {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}
