/* ------------------------------ */
/*          GLOBAL STYLE          */
/* ------------------------------ */

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
    color: #222;
    background: #f7f7f7;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ------------------------------ */
/*            HEADER              */
/* ------------------------------ */

.header {
    background: #2E2E2E;
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    overflow-x: clip;
}

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

.header-flex > a {
    display: block;
    min-width: 0;
    max-width: calc(100% - 64px);
}

.logo-horizontal {
    height: 100px;   /* 150% à 200% */
    width: auto;
    max-width: 100%;
    display: block;  /* supprime les marges fantômes inline */
}

/* =========================================================
   NAVIGATION — VERSION PROPRE & STABLE
========================================================= */

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Liens du menu */
.nav a,
.nav-btn {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.6rem 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.85;
    transition: 0.2s;
}

.nav a:hover,
.nav-btn:hover {
    opacity: 1;
    color: #FFB300;
}

/* Groupe dropdown */
.nav-group {
    position: relative;
    display: inline-block;
}

.lang-menu {
    position: relative;
    display: inline-block;
    margin-left: 0.4rem;
}

.lang-menu-btn {
    border: 2px solid #66D9FF;
    background: linear-gradient(135deg, rgba(20, 50, 70, 0.9), rgba(35, 90, 120, 0.9));
    color: #EAFBFF;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.2;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    min-height: 44px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-menu-btn:hover,
.lang-menu:focus-within .lang-menu-btn {
    border-color: #9DEBFF;
    box-shadow: 0 0 0 2px rgba(102, 217, 255, 0.22);
    transform: translateY(-1px);
}

.lang-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    width: 100%;
    min-width: 0;
    background: #1f2b33;
    border: 1px solid rgba(102, 217, 255, 0.45);
    border-radius: 8px;
    padding: 0.35rem 0;
    z-index: 120;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nav .lang-menu > .lang-menu-dropdown,
.nav .nav-group > .nav-dropdown {
    display: none !important;
}

/* Buffer zone to prevent early dropdown close while moving the cursor downward */
.lang-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.9rem;
    background: transparent;
}

.lang-menu:hover .lang-menu-dropdown,
.lang-menu:focus-within .lang-menu-dropdown {
    display: block !important;
}

.lang-menu-dropdown a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
    color: #EAFBFF;
    text-decoration: none;
    opacity: 1;
}

.lang-menu-dropdown a:hover {
    background: rgba(102, 217, 255, 0.16);
    color: #9DEBFF;
}

/* Contenu du dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 0.75rem 0;
    min-width: 200px;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Buffer zone before dropdown to avoid hover loss */
.nav-group::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.8rem;
    background: transparent;
    z-index: 101;
}

/* Liens dans le dropdown */
.nav-dropdown a {
    display: block;
    padding: 0.7rem 1.3rem;
    white-space: nowrap;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
}

.nav-dropdown a:hover {
    background: #444;
}

/* Affichage au survol (parent OR dropdown) */
.nav-group:hover .nav-dropdown,
.nav-dropdown:hover {
    display: block !important;
}

.nav-group:hover::after,
.nav-dropdown:hover::before {
    background: transparent;
}

/* Switch FR/EN */
.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-switch .lang {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.2s;
}

.lang-switch .lang:hover {
    opacity: 1;
}

/* CTA dans le menu */
.nav-cta {
    padding: 10px 22px;
    border-radius: 30px;
    border: 2px solid white;
    background: transparent;
    color: #E65100;
    font-weight: bold;
    margin-left: 25px;
    transition: 0.25s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFB300;
    border-color: #FFB300;
}

/* Bouton Contact mailto */
.nav-contact-btn {
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px;
    border: 2px solid #FFB300 !important;
    background: transparent !important;
    color: #FFB300 !important;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-contact-btn:hover {
    background: rgba(255, 179, 0, 0.1) !important;
    color: #FFB300 !important;
    border-color: #FFB300 !important;
}

/* Titre de groupe dans le menu mobile */
.mobile-menu-group {
    display: block;
    color: #FFB300;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 0 6px;
    border-bottom: 1px solid #FFB300;
    margin-bottom: 2px;
}

/* Switcher de langue en haut à droite */
.mobile-lang-switch {
    align-self: flex-end;
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFB300 !important;
    border: 1px solid #FFB300;
    border-radius: 4px;
    padding: 4px 10px !important;
    margin-bottom: 8px;
    border-bottom: 1px solid #FFB300 !important;
}

/* Bouton EN/FR avec hover comme 'Nous contacter' */
.mobile-lang-switch {
    background: rgba(230, 81, 0, 0.35);
    border: 1px solid rgba(255, 179, 0, 0.65);
    border-radius: 12px;
    color: #FFB300;
    text-align: center;
    padding: 8px 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-lang-switch:hover {
    background: rgba(255, 179, 0, 0.65);
    color: #FFFFFF;
}

.mobile-lang-list {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.mobile-lang-current {
    border-color: #FFB300;
    background: rgba(255, 179, 0, 0.25);
    color: #FFFFFF !important;
}

/* Ajuster hauteur du menu hamburger */
.mobile-menu {
    max-height: 90vh; /* Augmente la hauteur maximale */
    overflow-y: auto; /* Permet le défilement si nécessaire */
}

/* ------------------------------ */
/*             HERO               */
/* ------------------------------ */

.hero {
    position: relative;
    height: 70vh; /* coupe l’image à ~55% de la hauteur d’écran */
    min-height: 480x;
    max-height: 750px;
    margin-top: -140px; /* chevauche le header fixe */
    padding-top: 140px; /* espace interne pour le contenu */
    background-attachment: fixed;
    box-sizing: border-box; /* inclut le padding dans la hauteur */

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: white;
    background-image: url("/hero-hd.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay sombre pour lisibilité */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.45); /* homogénéisé avec les autres overlays */
    backdrop-filter: blur(1px);
    z-index: 1;
}

/* Texte au-dessus de l’overlay */
.hero h1,
.hero-subtitle,
.hero .cta {
    position: relative;
    z-index: 2;
}

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

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 800px;
    margin: auto;
}

.hero-services-parallax {
    position: relative;
    background-image: url("/hero-hd.webp");
    background-size: cover;
    background-position: center -120px;
    background-repeat: no-repeat;
    background-attachment: scroll;
    will-change: background-position;
}

.hero-services-parallax .hero {
    background-image: none;
    background-attachment: scroll;
}

.hero-services-parallax .services-section {
    background: transparent !important;
    position: relative;
}

.hero-services-parallax .services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.45); /* Consistent transparency */
    z-index: 1;
}

.hero-services-parallax .services-section > * {
    position: relative;
    z-index: 2;
}

.hero-services-parallax .service-card {
    background: rgba(230, 81, 0, 0.35);
    border: 1px solid rgba(255, 179, 0, 0.65);
    box-shadow: none;
}

.hero-services-parallax .service-card p {
    color: #FFFFFF;
}

/* CTA premium */
.cta {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 36px;
    background: #E65100; /* Orange profond */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: 0.2s;
}

.cta:hover {
    background: #FFB300; /* Ambre doré */
}

.cta-call {
    margin-left: 12px;
    background: transparent;
    border: 2px solid #FFB300;
    color: #FFB300;
}

.cta-call:hover {
    background: rgba(255, 179, 0, 0.12);
    color: #FFB300;
}

@media (max-width: 768px) {
    .cta-call {
        margin-left: 0;
    }
}

/* HERO responsive */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 0;
        padding: 140px 0 120px;
    }

    .hero-services-parallax .services-section {
        margin-top: 18px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .cta {
        font-size: 1.1rem;
        padding: 14px 28px;
    }
}

/* ------------------------------ */
/*           SECTIONS             */
/* ------------------------------ */

.section {
    padding: 80px 0;
}

/* Alternance fond blanc / gris foncé */
.section:nth-child(odd) {
    background: #464646; /* gris plus clair */
    color: white;
}

.section:nth-child(even) {
    background: #f2f2f2; /* gris clair */
    color: #2E2E2E;
}

/* STYLE GLOBAL POUR TOUS LES TITRES DE SECTION (H2) */

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #FFB300; /* orange du site */
    display: inline-block;
    padding-bottom: 8px;
}

/* Variante pour fonds sombres */
.section-title--light {
    color: #FFFFFF;
}

/* Variante pour fonds clairs */
.section-title--dark {
    color: #000000;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.5;
    color: #FFFFFF;
}

/* Texte blanc sur fond sombre */
.section-intro--light {
    color: #FFFFFF;
}

/* Texte noir sur fond clair */
.section-intro--dark {
    color: #000000;
}

/* ------------------------------ */
/*        SERVICES GRID 2x2       */
/* ------------------------------ */

.services-section {
    width: 100%;
    padding: 80px 0;
    background: #f2f2f2; /* gris clair premium */
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    box-sizing: border-box;
}

/* Header de la section Services — même style que Applications */

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.services-intro {
    font-size: 18px;
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Chaque carte */
.service-card {
    background: rgba(230, 81, 0, 0.35);
    border: 1px solid rgba(255, 179, 0, 0.65);
    border-radius: 12px;
    padding: 30px;
    width: calc(25% - 60px);
    min-width: 260px;
    max-width: 420px;
    text-align: center;
    box-shadow: none;
}

/* Images plus grandes (3/4 de plus) */
.service-img {
    width: 70%;          /* avant 25% → maintenant 70% */
    max-width: 260px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Titres */
.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #FFB300;
}

/* Texte */
.service-card p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #FFFFFF;
}

/* ------------------------------ */
/*        TWO-COLUMN LAYOUT       */
/* ------------------------------ */

.section-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: left;
}

/* IMAGE COLUMN — 3/4 plus grande */
.section-img {
    width: 40%;          /* avant 25% → maintenant 40% */
    max-width: 420px;    /* limite propre */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

/* TEXT COLUMN */
.section-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.section-text h2 {
    margin-top: 0;
    font-size: 2rem;
}

/* ------------------------------ */
/*         APPLICATIONS GRID      */
/* ------------------------------ */

.applications {
    padding: 90px 40px 120px;
    background: #f4f4f4;
    text-align: center;
}

.applications.hero-copy-parallax {
    background-color: transparent !important;
    background-image: url("/hero-hd.webp") !important;
}

.app-icon {
    margin-bottom: 15px;
}

.app-icon-svg {
    width: 42px;
    height: 42px;
    color: #FFB300; /* ta couleur ambre */
    opacity: 0.9;
    stroke-linecap: round;
}

.app-icon-img {
    width: 144px;
    height: 144px;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px auto;
    opacity: 0.9;
}

.applications-container {
    max-width: 1200px;
    margin: auto;
    text-align: left;
}

.applications h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFB300;
    display: inline-block;
    padding-bottom: 8px;
}

.applications-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 0 60px 0;
    line-height: 1.6;
    color: #444;
    text-align: left;
}

.applications.hero-copy-parallax-dark h2,
.applications.hero-copy-parallax-dark .applications-intro {
    color: #FFFFFF;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.app-card {
    background: rgba(230, 81, 0, 0.35);
    border: 1px solid rgba(255, 179, 0, 0.65);
    padding: 30px;
    border-radius: 12px;
    box-shadow: none;
    transition: 0.25s ease;
    text-align: center;
}

.app-icon-svg {
    width: 36px;
    height: 36px;
    color: #FFB300;
    opacity: 0.9;
    stroke-linecap: round;
    display: block;
}

.app-card:hover .app-icon-svg {
    opacity: 1;
    transform: scale(1.08);
    transition: 0.25s ease;
}

.app-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #FFB300;
}

.app-card p {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #FFFFFF;
}

@media (max-width: 1100px) {
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------ */
/*         METHODOLOGY GRID       */
/* ------------------------------ */

/* SECTION METHODOLOGIE — VERSION PREMIUM ORANGE */

.method {
    padding: 80px 0;
    background: #525252; /* gris foncé premium */
}

.method.hero-copy-parallax {
    background-color: transparent !important;
    background-image: url("/hero-hd.webp") !important;
}

.hero-copy-parallax {
    position: relative;
    background-image: url("/hero-hd.webp");
    background-size: cover;
    background-position: center -40px;
    background-repeat: no-repeat;
    background-attachment: scroll;
    will-change: background-position;
}

.hero-copy-parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-copy-parallax > * {
    position: relative;
    z-index: 2;
}

.hero-copy-parallax-light::before {
    background: rgba(255, 255, 255, 0.5);
}

.hero-copy-parallax-dark::before {
    background: rgba(20, 20, 20, 0.45);
}

.method h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #FFB300; /* orange du site */
    display: inline-block;
    padding-bottom: 8px;
}

.method-intro {
    text-align: left;
    color: #FFFFFF;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* Carte orange pleine */
.method-card {
    background: rgba(230, 81, 0, 0.35);
    padding: 30px;
    border-radius: 12px;
    color: #fff; /* texte blanc */
    border: 1px solid rgba(255, 179, 0, 0.65);
    transition: 0.25s ease;
}

/* Hover premium */
.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Numéro marron clair / jaune doux */
.method-number {
    font-size: 36px;
    font-weight: 700;
    color: #F5DFA0; /* jaune doux / marron clair du hero */
    display: block;
    margin-bottom: 12px;
}

/* Titres */
.method-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #FFB300;
}

/* Texte */
.method-card p {
    opacity: 0.95;
    line-height: 1.45;
}

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

@media (max-width: 600px) {
    .method-grid {
        grid-template-columns: 1fr;
    }
}


/* ------------------------------ */
/*            CONTACT             */
/* ------------------------------ */

.contact {
    background-image: url("/hero-hd.webp");
    color: white;
    padding: 80px 0;
    text-align: center;
}

.linkedin {
    color: #FFD54F;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.linkedin:hover {
    color: #FFB300;
}

/* CONTACT HERO */
.contact-hero {
    position: relative;
    width: 100%;
    padding: 160px 0;
    color: white;
    background-image: url("/hero-hd.webp"); /* même image que le hero */
    background-size: cover;
    background-position: center -30px;
    background-repeat: no-repeat;
    background-attachment: scroll;
    will-change: background-position;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(1px);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
    display: flex;
    gap: 60px;
    justify-content: space-between;
    align-items: flex-start;
}

/* Colonne gauche */
.contact-left {
    flex: 1;
}

.contact-left h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.contact-left p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Bouton premium */
.contact-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #FFB300;
    color: #222;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.25s ease;
}

.contact-btn:hover {
    background: #ff9f00;
    transform: translateY(-2px);
}

.contact-btn-call {
    margin-left: 12px;
    background: transparent;
    color: #FFB300;
    border: 2px solid #FFB300;
}

.contact-btn-call:hover {
    background: rgba(255, 179, 0, 0.12);
    color: #FFB300;
}

@media (max-width: 768px) {
    .contact-btn-call {
        margin-left: 0;
    }
}

/* Colonne droite */
.contact-right {
    flex: 0.6;
    background: rgba(230, 81, 0, 0.35);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 179, 0, 0.65);
    backdrop-filter: blur(4px);
}

.contact-right h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.contact-right p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.contact-map {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-right {
        flex: none;
    }

    .contact-left h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .contact-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .contact-btn + .contact-btn {
        margin-top: 12px;
    }
}

/* ------------------------------ */
/*         TRAINING CONTACT       */
/* ------------------------------ */

/* SECTION FORMATION — HERO PREMIUM */

.training-hero {
    position: relative;
    padding: 140px 0;
    background: url('banniere-training.webp') center/cover no-repeat;
    background-position: center -32px;
    background-attachment: scroll;
    will-change: background-position;
    text-align: center;
    color: #fff;
}

.training-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55); /* overlay premium */
}

.training-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.training-hero h2 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 0.5px;
}

.training-hero p {
    font-size: 20px;
    line-height: 1.55;
    opacity: 0.95;
    margin-bottom: 35px;
}

.training-cta {
    background: #FFB300; /* orange peek */
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: 0.25s ease;
}

.training-cta:hover {
    background: #ffca47;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 700px) {
    .training-hero h2 {
        font-size: 34px;
    }
    .training-hero p {
        font-size: 18px;
    }
}

/* ------------------------------ */
/*             FOOTER             */
/* ------------------------------ */

footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
}

/* ------------------------------ */
/*         BANDEAUX LARGE         */
/* ------------------------------ */

.banner {
    position: relative;
    width: 100%;
    padding: 140px 0;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center -40px;
    background-repeat: no-repeat;
    background-attachment: scroll;
    will-change: background-position;
    margin-top: 0;
}

/* Overlay sombre premium */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(1px);
    z-index: 1;
}

/* Contenu */
.banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    padding: 0 20px;
}

.banner h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner p {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Images de fond */
.banner-quality {
    background-image: url("/banner_quality.webp");
    background-position: center -55px;
}

.banner-ia {
    background-image: url("/banner_ia.webp");
    background-position: center -35px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-services-parallax,
    .hero-copy-parallax,
    .training-hero {
        background-attachment: scroll;
    }

    .banner {
        padding: 110px 0;
    }

    .banner h2 {
        font-size: 1.9rem;
    }

    .banner p {
        font-size: 1.1rem;
    }
}

/* ------------------------------ */

/* Animation de fade-in pour les sections */
nav a.active {
    color: #FFB300;
    opacity: 1;
    border-bottom: 2px solid #FFB300;
    padding-bottom: 4px;
}

/* ------------------------------ */
/*  cookie banner */
/* ------------------------------ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2E2E2E;
    color: white;
    padding: 18px 20px;
    display: flex;
    flex-direction: column; /* empile texte + bouton */
    justify-content: center;
    align-items: center; /* centre horizontalement */
    text-align: center; /* centre le texte */
    gap: 12px; /* espace entre texte et bouton */
    z-index: 9999;
    font-size: 0.95rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}

.cookie-banner p {
    margin: 0;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cookie-btn {
    background: #FFB300;
    color: #222;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-btn:hover {
    background: #ffca47;
}

.cookie-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.phone-dialog-open {
    overflow: hidden;
}

.phone-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.phone-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
}

.phone-dialog-panel {
    position: relative;
    width: min(92vw, 520px);
    margin: 10vh auto 0;
    background: #2E2E2E;
    color: #ffffff;
    border: 1px solid rgba(255, 179, 0, 0.65);
    border-radius: 12px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.phone-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.phone-dialog-panel h2 {
    margin: 0;
    color: #FFB300;
    font-size: 1.6rem;
}

.phone-dialog-caption {
    margin: 12px 0 8px;
    opacity: 0.9;
}

.phone-dialog-number {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 4.8vw, 2.3rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.phone-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.phone-dialog-copy,
.phone-dialog-call {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.phone-dialog-copy {
    border: 2px solid #FFB300;
    background: transparent;
    color: #FFB300;
    cursor: pointer;
}

.phone-dialog-call {
    border: 2px solid #FFB300;
    background: #FFB300;
    color: #222;
}

.phone-dialog-copy:hover {
    background: rgba(255, 179, 0, 0.12);
}

.phone-dialog-call:hover {
    background: #ffca47;
}

/* ------------------------------ */
/* button language switcher */
/* ------------------------------ */

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-switch .lang {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.2s;
}

.lang-switch .lang:hover {
    opacity: 1;
}

/* ============================
   BURGER MENU — MOBILE ONLY
============================ */

.burger {
    display: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

/* Menu mobile caché par défaut */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #2E2E2E;
    position: fixed;
    top: 84px; /* sous le header */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100dvh - 84px);
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 20px calc(44px + env(safe-area-inset-bottom, 0px));
    box-shadow: -2px 4px 12px rgba(0,0,0,0.4);
    z-index: 999;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    font-size: 1.2rem;
    line-height: 1.35;
    border-bottom: 1px solid #444;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Bouton Contact dans mobile menu */
.mobile-menu .nav-contact-btn {
    display: block;
    padding: 0.8rem 1rem !important;
    line-height: 1.35;
    border-radius: 6px;
    border: 2px solid #FFB300 !important;
    color: #FFB300 !important;
    font-weight: 600;
    border-bottom: none !important;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 16px;
    transition: 0.25s ease;
}

.mobile-menu .nav-contact-btn:hover {
    background: rgba(255, 179, 0, 0.1);
}

.mobile-menu .nav-call-btn {
    display: block;
    padding: 0.8rem 1rem;
    line-height: 1.35;
    border-radius: 6px;
    border: 2px solid rgba(255, 179, 0, 0.8);
    color: #FFB300;
    font-weight: 600;
    text-align: center;
    background: transparent;
    border-bottom: none;
    margin-bottom: 4px;
}

.mobile-menu .nav-call-btn:hover {
    background: rgba(255, 179, 0, 0.1);
}

/* Quand le menu est ouvert */
.mobile-menu.open {
    display: flex;
}

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

    /* On masque le menu desktop */
    .nav {
        display: none;
    }

    /* On affiche le burger */
    .burger {
        display: block;
    }

    /* On réduit le logo */
    .logo-horizontal {
        height: 56px;
        max-width: 68vw;
    }
}

/* Séparateur entre menu et langue */
.nav-separator {
    color: #ffffff;
    opacity: 0.5;
    margin: 0 10px;
    font-weight: 300;
}

/* On masque le séparateur sur mobile */
@media (max-width: 768px) {
    .nav-separator {
        display: none;
    }
}

/* ============================
   HERO DES PAGES INTERNES
============================ */

.page-hero {
    position: relative;
    width: 100%;
    padding: 120px 0;
    background: url("/hero-hd.webp") center/cover no-repeat;
    text-align: center;
    color: white;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(1px);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0;
}

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

/* ------------------------------ */
/*      PARALLAX ARTICLE MODE     */
/* ------------------------------ */

.article-parallax {
    position: relative;
    min-height: 65vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.article-parallax-media {
    position: absolute;
    inset: -8% 0 0 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translate3d(0, 0, 0) scale(1.08);
    will-change: transform;
}

.article-parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(16, 16, 16, 0.28) 0%, rgba(16, 16, 16, 0.72) 100%);
    z-index: 1;
}

.article-parallax-content {
    position: relative;
    z-index: 2;
    padding-top: 110px;
    padding-bottom: 72px;
}

.article-parallax-content h1 {
    margin: 0 0 16px;
    max-width: 900px;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.15;
}

.article-parallax-content p {
    margin: 0;
    max-width: 900px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.55;
    opacity: 0.95;
}

.article-meta-on-dark {
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    margin-top: 20px;
}

.section.section-parallax-article-body {
    margin-top: 0;
    position: relative;
    z-index: 3;
    --intro-glass-opacity: 0.50;
    --content-glass-opacity: 0.50;
    background-image: var(--article-parallax-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center -50px;
    background-attachment: fixed;
    padding-top: 132px;
    padding-bottom: 92px;
}

.article-inline-intro {
    color: #141414;
    max-width: 900px;
    margin: 0 0 42px;
}

.article-inline-intro h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.15;
}

.article-inline-intro p {
    margin: 0;
    font-size: clamp(1.03rem, 2vw, 1.2rem);
    line-height: 1.55;
    opacity: 0.9;
}

.by-role-page .article-inline-intro p {
    font-size: clamp(1.1rem, 1.4vw, 1.28rem);
    line-height: 1.7;
}

.article-meta-inline {
    text-align: left;
    color: rgba(20, 20, 20, 0.72);
    margin-top: 16px;
}

.section-parallax-article-body > .container {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.section-parallax-article-body > .container > .article-inline-intro {
    background: rgba(255, 255, 255, var(--intro-glass-opacity));
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px) saturate(118%);
    -webkit-backdrop-filter: blur(8px) saturate(118%);
    padding: 32px 36px;
}

.section-parallax-article-body > .container > .section {
    background: rgba(255, 255, 255, var(--content-glass-opacity)) !important;
    color: #1d1d1d !important;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(122%);
    -webkit-backdrop-filter: blur(10px) saturate(122%);
}

.section-parallax-article-body > .container > .section > .container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 36px;
}

.by-role-page .section-parallax-article-body > .container > .section > .container p {
    font-size: clamp(1.12rem, 1.4vw, 1.28rem);
    line-height: 1.75;
}

.by-role-page .section-parallax-article-body > .container > .section > .container p {
    font-size: clamp(1.1rem, 1.4vw, 1.28rem);
    line-height: 1.7;
}

.by-role-page .section-parallax-article-body > .container > .section > .container li {
    font-size: clamp(1.1rem, 1.4vw, 1.28rem);
    line-height: 1.7;
}

.faq-inline-card {
    margin: 34px 0 0;
    background: rgba(255, 255, 255, var(--content-glass-opacity));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(122%);
    -webkit-backdrop-filter: blur(10px) saturate(122%);
    padding: 30px 36px;
}

.faq-inline-card h2,
.faq-inline-card h3,
.faq-inline-card p {
    color: #1d1d1d;
}

.faq-inline-card h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 40px;
}

.faq-inline-card .faq-item + .faq-item {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(29, 29, 29, 0.15);
}

.faq-section-parallax {
    background-image: var(--article-parallax-image) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center -20px !important;
    background-attachment: fixed !important;
    padding-top: 0;
}

.faq-section-parallax > .container {
    background: rgba(255, 255, 255, var(--content-glass-opacity));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(122%);
    -webkit-backdrop-filter: blur(10px) saturate(122%);
    padding: 36px;
}

.faq-section-parallax h2,
.faq-section-parallax h3,
.faq-section-parallax p {
    color: #1d1d1d;
}

.faq-section-parallax .faq-item + .faq-item {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(29, 29, 29, 0.15);
}

@media (max-width: 768px) {
    .article-parallax {
        min-height: 54vh;
    }

    .article-parallax-content {
        padding-top: 88px;
        padding-bottom: 44px;
    }

    .section.section-parallax-article-body {
        margin-top: 0;
        background-attachment: scroll;
        padding-top: 88px;
        padding-bottom: 56px;
    }

    .article-inline-intro {
        margin-bottom: 30px;
    }

    .section-parallax-article-body > .container > .article-inline-intro {
        padding: 22px 22px;
    }

    .section-parallax-article-body > .container {
        padding: 0;
        border-radius: 0;
    }

    .section-parallax-article-body > .container > .section {
        border-radius: 10px;
    }

    .section-parallax-article-body > .container > .section > .container {
        padding: 0 22px;
    }

    .faq-inline-card {
        padding: 22px;
        border-radius: 10px;
    }

    .faq-section-parallax > .container {
        border-radius: 10px;
        padding: 22px;
    }

    .faq-section-parallax {
        background-attachment: scroll !important;
    }
}

/* ------------------------------ */
/*       ARTICLE LEAD MEDIA       */
/* ------------------------------ */

.article-lead-media {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #f7f7f7;
    padding: 60px 0;
}

.article-lead-media .container {
    width: 100%;
    max-width: none;
    padding: 0 20px;
}

.article-cover {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: block;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.article-cover figcaption {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.article-meta {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: #999;
}

.article-meta-item {
    display: inline;
}

.article-meta-separator {
    margin: 0 8px;
    color: #ddd;
}

/* ------------------------------ */
/*            404 PAGE            */
/* ------------------------------ */

.not-found-hero {
    position: relative;
    padding: 150px 0;
    background-image: url('/hero-hd.webp');
    background-size: cover;
    background-position: center -40px;
    background-repeat: no-repeat;
}

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

.not-found-hero .container {
    position: relative;
    z-index: 2;
}

.not-found-card {
    margin: 0 auto;
    max-width: 820px;
    text-align: center;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(122%);
    -webkit-backdrop-filter: blur(10px) saturate(122%);
    padding: 36px;
    color: #1d1d1d;
}

.not-found-card h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.not-found-card p {
    font-size: 1.14rem;
    line-height: 1.7;
}
