/* =========================================================
   SITE FORMATION — STYLES COMMUNS
   Accueil / Formations / À propos
========================================================= */

:root {
    /*--blue: #1760c6;
    --blue-2: #2369d0;
    --blue-dark: #102b83;
    --blue-light: #edf4ff;
    --blue-soft: #f5f8fd;*/

    --blue: #16803c;
    --blue-2: #238f4b;
    --blue-dark: #14532d;
    --blue-light: #edf9f0;
    --blue-soft: #f4faf5;

    --text: #111d49;
    --text-muted: #647089;
    --text-light: #8a95a8;

    --white: #ffffff;
    --border: #e3e9f3;
    --border-dark: #d5deec;

    --radius-sm: 9px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --shadow-sm: 0 8px 30px rgba(20, 45, 90, .05);
    --shadow-md: 0 15px 35px rgba(20, 45, 90, .09);
    --shadow-button: 0 10px 25px rgba(23, 96, 198, .25);

    --max-width: 1200px;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--blue-soft);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    line-height: 1.15;
}

h2 {
    white-space: normal;
}

p {
    color: var(--text-muted);
}

/* =========================================================
   NAVIGATION / MENU LOADER
   Compatible avec les classes de l'ancien menu
========================================================= */

.header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 5%;
    box-shadow: 0 3px 18px rgba(20, 45, 90, .04);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.banner {
    text-align: center;
}

.banner h1 {
    margin: 0;
    color: var(--text);
    font-size: 2rem;
    letter-spacing: -.5px;
}

.line-green {
    width: 55px;
    height: 3px;
    margin: 9px auto;
    border-radius: 999px;
    background: var(--blue);
}

.subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: .85rem;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none;
}

.title {
    color: var(--blue);
}

.nav-menu.desktop {
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
	list-style: none;
}

.nav-menu.desktop a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease;
}

.nav-menu.desktop a:hover,
.nav-menu.desktop a.active {
    color: var(--blue);
    background: var(--blue-light);
}

.hamburger {
    color: var(--text);
}

.nav-menu.mobile {
    background: var(--white);
    border-top: 1px solid var(--border);
	list-style: none;
}

.nav-menu.mobile a {
    color: var(--text);
    text-decoration: none;
}

.nav-menu.mobile a:hover,
.nav-menu.mobile a.active {
    color: var(--blue);
    background: var(--blue-light);
}

/* =========================================================
   BOUTONS COMMUNS
========================================================= */

.button,
.about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 13px 21px;
    border: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--blue), var(--blue-2));
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.button:hover,
.about-button:hover {
    background: linear-gradient(90deg, var(--blue-2), var(--blue));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.button:active,
.about-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(23, 96, 198, .18);
}

.hero-buttons {
    margin-top: 22px;
    margin-bottom: 0;
}

/* =========================================================
   ACCUEIL — HERO
========================================================= */

.hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    padding: 90px 6%;
    background-image: url("./assets/banner.webp");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 24, 61, .84) 0%,
            rgba(8, 24, 61, .64) 48%,
            rgba(8, 24, 61, .34) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(700px, 100%);
    margin-left: max(0px, calc((100vw - var(--max-width)) / 2));
}

.hero h1 {
    margin: 0 0 24px;
    color: var(--white);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.hero h1 em {
    color: var(--blue-2);
    font-style: normal;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    line-height: 1.7;
}

/* =========================================================
   ACCUEIL — DOMAINES
========================================================= */

.programmes-container {
    background: var(--white);
    padding: 0 0 90px;
}

.programmes {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 0 35px;
}

.programmes::before {
    display: none;
}

.programmes h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1px;
}

.programmes p {
    max-width: 780px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.categories {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.categorie {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.categorie:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.categorie img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.categorie h2 {
    margin: 24px 24px 10px;
    color: var(--text);
    font-size: 21px;
}

.categorie p {
    flex: 1;
    margin: 0 24px 18px;
    font-size: 14px;
    line-height: 1.7;
}

.categorie .hero-buttons {
    margin: 0 24px 24px;
}

/* =========================================================
   ACCUEIL — FORMATEUR
========================================================= */

.formateur-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--blue-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.formateur-image {
    min-height: 430px;
}

.formateur-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formateur-texte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px;
}

.formateur-texte h2 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1px;
}

.formateur-texte p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
}

.formateur-texte .button {
    margin-top: 25px;
}

/* =========================================================
   ACCUEIL — TÉMOIGNAGES
========================================================= */

.quotations-container {
    max-width: var(--max-width);
    margin: 90px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    background: transparent;
}

.quotation {
    position: relative;
    margin: 0;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    text-align: center;
}

/* =========================================================
   FORMATIONS — BANDEAU
========================================================= */

.bandeau-texte {
    position: relative;
    padding: 80px 6%;
    background-image: url("./assets/banner_formation.jpg");
    background-size: cover;
    text-align: center;
    overflow: hidden;
    color: #FFFFFF;
}

.bandeau-texte::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    90deg,
                    rgba(8, 24, 61, .84) 0%,
                    rgba(8, 24, 61, .64) 48%,
                    rgba(8, 24, 61, .34) 100%
            );
}

.bandeau-texte::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    top: -160px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255,255,255,.04),
        0 0 0 90px rgba(255,255,255,.025);
}

.bandeau-texte h2 {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -1px;
}

.bandeau-texte p {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
    color: rgba(255,255,255,.86);
    font-size: 17px;
    line-height: 1.7;
}

/* =========================================================
   FORMATIONS — CATALOGUE
========================================================= */

.catalogue-formation-container {
    width: 100%;
    padding: 40px max(18px, 5%);
    background: var(--blue-soft);
}

.catalogue-formation-titre {
    max-width: var(--max-width);
    margin: 0 auto 15px;
}

.catalogue-formation-titre h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1px;
}

.catalogue-formation-titre p {
    max-width: var(--max-width);
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.catalogue-formation-container > div:last-child {
    max-width: var(--max-width);
    margin: 0 auto;
}

.catalogue-formation-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.catalogue-formation-container th {
    padding: 16px 14px;
    background: var(--blue);
    color: var(--white);
    border: 0;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    vertical-align: middle;
}

.catalogue-formation-container td {
    padding: 18px 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    vertical-align: top;
}

.catalogue-formation-container tbody tr:nth-child(even) td {
    background: #f8faff;
}

.catalogue-formation-container tbody tr:hover td {
    background: var(--blue-light);
}

.catalogue-formation-container td:first-child {
    color: var(--blue);
    font-weight: 800;
    white-space: nowrap;
}

.catalogue-formation-container td:nth-child(2) {
    color: var(--text);
    font-weight: 700;
}

.catalogue-formation-container td:nth-child(3) {
    color: var(--text);
    font-weight: 700;
}

/* =========================================================
   À PROPOS
========================================================= */

.about-section {
    width: 100%;
    background: var(--blue-soft);
    color: var(--text);
    padding: 100px 6%;
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.about-intro h1 {
    margin: 0 0 28px;
    color: var(--text);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.about-intro h1 span {
    display: block;
    color: var(--blue);
}

.about-lead {
    max-width: 570px;
    margin: 0 0 35px;
    color: #53617a;
    font-size: 18px;
    line-height: 1.7;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    display: flex;
    gap: 22px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--blue-light);
}

.about-icon svg {
    width: 25px;
    height: 25px;
    stroke: var(--blue);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-card h2 {
    margin: 0 0 9px;
    color: var(--text);
    font-size: 19px;
}

.about-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.about-career {
    max-width: var(--max-width);
    margin: 120px auto 0;
}

.about-career > h2 {
    max-width: 700px;
    margin: 0 0 15px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.career-intro {
    max-width: 700px;
    margin: 0 0 55px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.career-item {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.career-date {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
}

.career-item h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
}

.career-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.about-values {
    max-width: var(--max-width);
    margin: 120px auto 0;
    padding: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
}

.about-values .about-label {
    color: rgba(255,255,255,.7);
}

.about-values h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.about-values h2 span {
    display: block;
    color: #bcd7ff;
}

.values-text p {
    margin: 0 0 20px;
    color: rgba(255,255,255,.85);
    font-size: 16px;
    line-height: 1.75;
}

.values-text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   ÉLÉMENTS COMPATIBILITÉ ANCIEN CSS
========================================================= */

.catalogue-formation-titre + div {
    overflow-x: auto;
}

/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1000px) {
    .programmes,
    .categories,
    .formateur-container,
    .quotations-container {
        margin-left: 25px;
        margin-right: 25px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-lead {
        max-width: 720px;
    }

    .career-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 45px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 18px;
    }

	.nav-menu.desktop {
        display: none;
    }

    .hero {
        min-height: 520px;
        padding: 75px 25px;
    }

    .hero-content {
        margin-left: 0;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 48px);
    }

    .hero p {
        font-size: 16px;
    }

    .programmes-container {
        padding-bottom: 65px;
    }

    .programmes {
        padding-top: 60px;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .formateur-container {
        grid-template-columns: 1fr;
    }

    .formateur-image {
        min-height: 350px;
    }

    .formateur-texte {
        padding: 40px 30px;
    }

    .quotations-container {
        grid-template-columns: 1fr;
        margin-top: 65px;
    }

    .bandeau-texte {
        padding: 65px 25px;
    }

    .catalogue-formation-container {
        padding: 60px 18px;
    }

    .catalogue-formation-container table {
        min-width: 900px;
    }

    .about-section {
        padding: 70px 25px;
    }

    .about-values {
        margin-top: 85px;
    }
}

@media (max-width: 600px) {

    .hero {
        min-height: 500px;
        padding: 65px 18px;
        background-position: 58% center;
    }

    .hero::before {
        background: rgba(8, 24, 61, .72);
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.65;
    }

    .programmes,
    .categories,
    .formateur-container,
    .quotations-container {
        margin-left: 18px;
        margin-right: 18px;
    }

    .programmes {
        padding-top: 50px;
    }

    .programmes h2,
    .catalogue-formation-titre h2 {
        font-size: 30px;
    }

    .categorie h2 {
        font-size: 20px;
    }

    .formateur-image {
        min-height: 280px;
    }

    .formateur-texte {
        padding: 32px 24px;
    }

    .formateur-texte h2 {
        font-size: 30px;
    }

    .about-section {
        padding: 55px 18px;
    }

    .about-intro h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .about-lead {
        font-size: 16px;
    }

    .about-card {
        padding: 22px;
        flex-direction: column;
    }

    .career-grid {
        grid-template-columns: 1fr;
    }

    .about-career {
        margin-top: 75px;
    }

    .about-career > h2 {
        max-width: 100%;
        font-size: 32px;
        line-height: 1.15;
        letter-spacing: -.5px;
    }

    .about-values {
        margin-top: 75px;
        padding: 30px 24px;
    }

    .about-values h2 {
        font-size: 32px;
    }

    .bandeau-texte h2 {
        font-size: 30px;
    }

    .bandeau-texte p {
        font-size: 15px;
    }

    .button,
    .about-button {
        padding: 13px 18px;
    }
}

@media (max-width: 380px) {
    .hero h1,
    .about-intro h1 {
        font-size: 34px;
    }

    .about-card {
        padding: 18px;
    }

    .formateur-texte {
        padding: 28px 20px;
    }
}
