/* =========================
   1. VARIABLES ET RESET
========================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: #050505; color: #ffffff; overflow-x: clip; }
.site-wrapper { position: relative; min-height: 100vh; overflow-x: clip; }

/* =========================
   2. MENU FLOTTANT (PREMIUM)
========================== */
.pill-header {
    position: absolute; top: 40px; left: 5%; right: 5%; 
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px; display: flex; justify-content: space-between;
    align-items: center; padding: 15px 40px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.header-left { display: flex; align-items: center; gap: 40px; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 35px; width: auto; display: block; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.1); }

.pill-header nav ul { display: flex; gap: 30px; list-style: none; }
.pill-header nav a {
    color: #000000; text-decoration: none; font-size: 0.9rem; font-weight: 700; 
    position: relative; padding-bottom: 5px; transition: color 0.3s ease;
}
.pill-header nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: #e83e29; transition: width 0.3s ease;
}
.pill-header nav a:hover { color: #e83e29; }
.pill-header nav a:hover::after { width: 100%; }

.header-actions { display: flex; gap: 15px; }
.btn-header-orange {
    background-color: #f68b33; color: #ffffff; padding: 12px 24px; border-radius: 30px;
    text-decoration: none; font-size: 0.85rem; font-weight: 700; transition: all 0.3s ease;
}
.btn-header-orange:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(246, 139, 51, 0.6); }
.btn-header-outline {
    border: 1px solid #f68b33; color: #f68b33; padding: 12px 24px; border-radius: 30px;
    text-decoration: none; font-size: 0.85rem; font-weight: 700; transition: all 0.3s ease;
}
.btn-header-outline:hover { background-color: #f68b33; color: #ffffff; }

/* =========================
   3. ANIMATIONS HERO
========================== */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-title { opacity: 0; animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.hero-desc { opacity: 0; animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.hero-btns { opacity: 0; animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; }
.animate-on-load { opacity: 0; animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards; }

/* =========================
   4. SECTION HERO SOMBRE
========================== */
.dark-hero { display: flex; min-height: 100vh; padding-top: 180px; padding-left: 5%; position: relative; background-color: #050505; }
.hero-content { flex: 1; max-width: 700px; z-index: 2; }
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 30px; font-weight: 800; letter-spacing: -1px; }
.red-highlight { background-color: #f68b33; padding: 0 15px; display: inline-block; color: #ffffff; transform: skewX(-5deg); }
.hero-desc { font-size: 1.15rem; line-height: 1.6; color: #e0e0e0; margin-bottom: 40px; }
.action-buttons { display: flex; gap: 20px; margin-bottom: 70px; }

.btn-red {
    background-color: #f68b33; color: #ffffff; padding: 16px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 600; transition: all 0.3s ease;
}
.btn-red:hover { background-color: #f68b33; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232, 62, 41, 0.5); }
.btn-outline-red {
    border: 1px solid #f68b33; color: #ffffff; background-color: transparent; padding: 16px 28px;
    border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease;
}
.btn-outline-red:hover { background-color: rgba(232, 62, 41, 0.1); }

/* =========================
   5. STATISTIQUES
========================== */
.stats-title { font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; color: #ffffff; }
.stats-grid { display: flex; gap: 40px; }
.stat-item { display: flex; align-items: center; gap: 15px; }
.stat-icon { color: #f68b33; font-size: 1.2rem; border: 1px solid #f68b33; border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; }
.stat-text { font-size: 0.85rem; line-height: 1.4; color: #aaaaaa; }
.stat-number { font-size: 1.3rem; color: #f68b33; font-weight: 800; }

.hero-image-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; 
    background-image: url('https://minemedia.me/imagerachid/IMAGE1.PNG'); 
    background-size: cover; background-position: center right; background-repeat: no-repeat;
}
.hero-image-background::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,1) 30%, rgba(5,5,5,0.6) 60%, rgba(5,5,5,0) 100%); z-index: 1;
}

/* =========================
   6. SECTION : NOS FORMATIONS
========================== */
.formations-section { background-color: #ffffff; color: #000000; padding: 100px 5% 150px 5%; position: relative; z-index: 5; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 60px auto; }
.section-header h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; color: #000000; }
.text-green { color: #0f8b6d; }
.section-header p { font-size: 1.1rem; color: #555; line-height: 1.6; }

.formations-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; max-width: 1300px; margin: 0 auto; }
.card-top { grid-column: span 2; }
.card-bottom { grid-column: span 3; }

.formation-card {
    background-color: #f8f9fa; border-radius: 20px; padding: 30px; position: relative;
    overflow: hidden; min-height: 380px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease;
}
.formation-card:hover { transform: translateY(-5px); }

/* Ajustement de la largeur du texte pour qu'il ne rentre pas dans la photo */
.card-content { position: relative; z-index: 2; width: 50%; }

.icon-wrapper { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 20px; }
.bg-light-green { background-color: #e2f1ed; color: #0f8b6d; }
.bg-light-blue { background-color: #e5f0f9; color: #2d82c4; }
.bg-light-orange { background-color: #fbebe5; color: #e83e29; }
.bg-light-red { background-color: #fae8e8; color: #d12020; }
.bg-white-transparent { background-color: rgba(255,255,255,0.2); }

.formation-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.divider { width: 30px; height: 3px; background-color: #000; margin-bottom: 15px; }
.formation-card p { font-size: 0.9rem; color: #444; margin-bottom: 15px; line-height: 1.5; }
.sub-job { font-size: 0.8rem; font-weight: 700; color: #000; display: block; margin-bottom: 30px; }

.formation-card.highlight { background: linear-gradient(135deg, #118a6e, #0b3a2a); color: #ffffff; transform: scale(1.02); }
.formation-card.highlight:hover { transform: scale(1.02) translateY(-5px); }
.formation-card.highlight p, .formation-card.highlight .sub-job, .formation-card.highlight h3 { color: #ffffff; }
.divider.bg-white { background-color: #ffffff; }

/* --- INTÉGRATION ET POSITIONNEMENT DES IMAGES DE FILIÈRE CORRIGÉ --- */
.card-image {
    position: absolute; 
    top: 0; /* Remonte jusqu'en haut */
    bottom: 0; /* Descend jusqu'en bas */
    right: 0; 
    width: 55%; /* Prend la moitié droite */
    height: 100%; 
    background-size: cover; /* Remplit tout l'espace sans laisser de blanc */
    background-position: center; 
    background-repeat: no-repeat; 
    z-index: 1;
    /* L'EFFET MAGIQUE : Efface le bord gauche de l'image en dégradé */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

/* Application de chaque image reçue */
.formations-grid .formation-card:nth-child(1) .card-image {
    background-image: url('https://minemedia.me/imagerachid/AGENTIMMO.PNG');
}
.formations-grid .formation-card:nth-child(2) .card-image {
    background-image: url('https://minemedia.me/imagerachid/COMMERCE.PNG');
}
.formations-grid .formation-card:nth-child(3) .card-image {
    background-image: url('https://minemedia.me/imagerachid/SANI.PNG');
}
.formations-grid .formation-card:nth-child(4) .card-image {
    background-image: url('https://minemedia.me/imagerachid/COSMETIQUE.PNG');
}
.formations-grid .formation-card:nth-child(5) .card-image {
    background-image: url('https://minemedia.me/imagerachid/RESTO.PNG');
}

.card-btn {
    position: absolute; bottom: 30px; right: 30px; width: 45px; height: 45px; background-color: #0f8b6d; color: #ffffff;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; font-size: 1.2rem; z-index: 3; transition: background-color 0.3s;
}
.card-btn:hover { background-color: #0b3a2a; }

/* =========================
   7. SECTION : PÉDAGOGIE
========================== */
.pedagogie-section {
    background-color: #050505; position: relative; margin-top: -80px; padding-top: 150px; padding-bottom: 100px;
    clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%); z-index: 10;
}
.pedagogie-container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.dark-header { color: #ffffff; }
.dark-header h2 { color: #ffffff; }
.dark-header p { color: #aaaaaa; }
.pre-title { display: block; color: #0f8b6d; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 15px; }
.underline-green { display: block; width: 40px; height: 4px; background-color: #0f8b6d; margin: 10px auto 0 auto; }

.pedagogie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.peda-card {
    background-color: #050505; border: 1px solid #0f8b6d; border-radius: 20px; padding: 50px 30px;
    text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.peda-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(15, 139, 109, 0.15); }
.peda-icon {
    font-size: 2.5rem; color: #0f8b6d; border: 1px solid #0f8b6d; width: 80px; height: 80px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 30px auto;
}
.peda-card h3 { font-size: 1.3rem; font-weight: 700; color: #ffffff; margin-bottom: 20px; line-height: 1.4; }
.peda-card p { font-size: 0.95rem; color: #888888; line-height: 1.6; }

/* =========================
   MOT DE LA DIRECTION
========================== */
.direction-section {
    position: relative;
    overflow: hidden;
    background: #f1f2ee;
    color: #111713;
    padding: 120px 5%;
}

.direction-section::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -300px;
    bottom: -350px;
    border-radius: 50%;
    background: #0f8b6d;
    opacity: 0.09;
}

.direction-container {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 0.92fr);
    gap: 6%;
    align-items: center;
}

.direction-copy { position: relative; z-index: 2; }

.direction-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #5c6961;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.direction-kicker i { width: 28px; height: 2px; background: #f68b33; }

.direction-copy h2 {
    max-width: 720px;
    margin-bottom: 40px;
    font-size: clamp(3.2rem, 6vw, 6.2rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.92;
}

.direction-quote {
    position: relative;
    max-width: 760px;
    border-top: 1px solid #ccd2cd;
    padding: 34px 0 0 55px;
}

.quote-mark {
    position: absolute;
    top: 25px;
    left: 0;
    color: #f68b33;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
}

.direction-quote p {
    margin-bottom: 18px;
    color: #566159;
    font-size: 0.92rem;
    line-height: 1.85;
}

.direction-signature {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 32px;
    padding-left: 55px;
}

.direction-signature > span { width: 42px; height: 3px; background: #0f8b6d; }
.direction-signature div { display: flex; flex-direction: column; gap: 4px; }
.direction-signature strong { font-size: 0.9rem; }
.direction-signature small { color: #7c867f; font-size: 0.66rem; font-weight: 600; }

.direction-portrait {
    min-height: 660px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 28px;
    background: radial-gradient(circle at 50% 43%, rgba(15,139,109,0.62), transparent 34%), linear-gradient(145deg, #07130d, #0a2016);
    box-shadow: 0 35px 80px rgba(23,49,34,0.2);
}

.direction-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.direction-portrait img {
    width: 122%;
    max-width: none;
    max-height: 640px;
    position: relative;
    z-index: 3;
    object-fit: contain;
    object-position: center bottom;
    transform: translateY(12px);
    filter: drop-shadow(0 18px 22px rgba(0,0,0,0.28));
}

.portrait-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
}

.orbit-one { width: 390px; height: 390px; top: 75px; left: 50%; transform: translateX(-50%); }
.orbit-two { width: 285px; height: 285px; top: 128px; left: 50%; transform: translateX(-50%); border-color: rgba(246,139,51,0.22); }

.portrait-label {
    position: absolute;
    z-index: 4;
    top: 25px;
    left: 25px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    padding: 9px 14px;
    color: #83cbb6;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portrait-initials {
    position: absolute;
    z-index: 1;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.04);
    font-size: 13rem;
    font-weight: 800;
    letter-spacing: -0.15em;
}

.portrait-base {
    position: absolute;
    z-index: 5;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(3,11,7,0.82);
    padding: 16px 18px;
    backdrop-filter: blur(12px);
}

.portrait-base span { color: #71c6ac; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.portrait-base strong { color: #fff; font-size: 0.8rem; }

/* =========================
   8. SECTION : FAQ
========================== */
.faq-section { background-color: #ffffff; color: #000000; padding: 80px 5% 100px 5%; }
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-header h2 { font-size: 3rem; font-weight: 800; color: #222; }
.faq-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.faq-tab {
    background-color: transparent; border: none; font-size: 1.1rem; font-weight: 600; color: #666;
    padding: 10px 25px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease;
}
.faq-tab.active { background-color: #0f8b6d; color: #ffffff; }
.faq-panel { display: none; animation: fadeSlideUp 0.4s ease forwards; }
.faq-panel.active { display: block; }
.faq-item { border-bottom: 1px solid #eeeeee; padding: 25px 0; }
.faq-item:first-child { border-top: 1px solid #eeeeee; }
.faq-question { display: flex; align-items: center; cursor: pointer; justify-content: space-between; }
.faq-num { color: #0f8b6d; font-weight: 800; font-size: 1.2rem; margin-right: 20px; }
.faq-text { flex: 1; font-size: 1.1rem; font-weight: 700; color: #222; padding-right: 20px; }
.faq-icon { color: #0f8b6d; font-weight: 800; font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-top: 15px; padding-left: 45px; color: #555; line-height: 1.6; font-size: 1rem; }
.faq-answer a { color: #0f8b6d; font-weight: 700; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* =========================
   9. MENU BURGER & OVERLAY MOBILE
========================== */
.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 101; border: 0; background: transparent; padding: 0; }
.burger span { width: 25px; height: 3px; background-color: #000000; border-radius: 5px; transition: all 0.4s ease; }

.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(5, 5, 5, 0.85); 
    backdrop-filter: blur(20px); z-index: 90; display: flex; flex-direction: column; justify-content: center;
    align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu nav ul { list-style: none; text-align: center; margin-bottom: 40px; }
.mobile-menu nav li { margin-bottom: 25px; opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.mobile-menu.active nav li { opacity: 1; transform: translateY(0); }
.mobile-menu nav a { color: #ffffff; text-decoration: none; font-size: 2rem; font-weight: 800; transition: color 0.3s ease; }
.mobile-menu nav a:hover { color: #e83e29; }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 20px; width: 80%; opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.mobile-menu.active .mobile-menu-actions { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.mobile-menu-actions a { text-align: center; width: 100%; }

/* =========================
   10. SECTIONS EMPILÉES (STICKY STACKING - EFFET DOSSIER 3D)
========================== */
.stacked-cards-container { position: relative; background-color: #ffffff; padding-bottom: 0px; }
.stacked-card {
    position: -webkit-sticky; position: sticky; min-height: 100vh; border-radius: 60px 60px 0 0;
    box-shadow: 0 -25px 60px rgba(0,0,0,0.85), 0 -5px 15px rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 120px 5% 80px 5%;
}

.card-1 { top: 0; background-color: #050505; z-index: 10; }
.card-2 { top: 60px; background-color: #0a0a0a; z-index: 11; border-top: 1px solid rgba(255,255,255,0.1); }
.card-3 { top: 120px; background-color: #0f0f0f; z-index: 12; border-top: 1px solid rgba(255,255,255,0.1); }

.stacked-content { width: 100%; max-width: 1200px; }

/* --- Qualiopi --- */
.qualiopi-layout { display: flex; gap: 60px; align-items: center; }
.qualiopi-left { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.qualiopi-img { max-width: 280px; height: auto; display: block; background-color: #ffffff; padding: 25px; border-radius: 15px; }
.qualiopi-subtext { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.qualiopi-subtext span { color: #0f8b6d; font-size: 0.85rem; font-weight: 600; line-height: 1.4; }
.qualiopi-right { flex: 1; }
.qualiopi-right h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 25px; }
.qualiopi-right p { font-size: 1rem; color: #cccccc; line-height: 1.6; margin-bottom: 20px; }

.btn-green-solid {
    display: inline-flex; align-items: center; background-color: #0f8b6d; color: #ffffff;
    padding: 16px 35px; border-radius: 50px; text-decoration: none; font-weight: 700;
    font-size: 1rem; margin-top: 25px; letter-spacing: 0.3px; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 25px rgba(15, 139, 109, 0.45); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-green-solid:hover { background-color: #12a683; transform: translateY(-3px); box-shadow: 0 8px 35px rgba(15, 139, 109, 0.7); }

/* --- Cartes Internes --- */
.inner-dark-card {
    background-color: #020202; border: 1px solid rgba(255,255,255,0.05); border-radius: 30px;
    padding: 60px; display: flex; gap: 60px; align-items: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.inner-card-left { flex: 1; }
.inner-card-right { flex: 1; display: flex; justify-content: flex-end; }
.circle-icon {
    width: 50px; height: 50px; border-radius: 50%; border: 1px solid #0f8b6d; color: #0f8b6d;
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 20px;
}
.inner-card-left h2 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }
.separator-line { width: 40px; height: 2px; background-color: #333; margin-bottom: 25px; }
.inner-card-left p { font-size: 1.1rem; color: #aaaaaa; line-height: 1.6; margin-bottom: 30px; max-width: 90%; }
.image-wrapper { position: relative; width: 100%; max-width: 400px; height: 400px; }

.placeholder-img-guy { width: 100%; height: 100%; border-radius: 20px; background-image: url('https://minemedia.me/imagerachid/IMAGE1.PNG'); background-size: cover; background-position: center; }
.placeholder-img-woman { width: 100%; height: 100%; border-radius: 20px; background-image: url('https://minemedia.me/imagerachid/CONTACT.PNG'); background-size: cover; background-position: center; }

.floating-badge { position: absolute; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-weight: 800; box-shadow: 0 10px 20px rgba(0,0,0,0.3); z-index: 5; }
.badge-q-large { width: 80px; height: 80px; background-color: #ffffff; color: #0f8b6d; font-size: 3rem; top: -20px; left: -20px; }
.badge-book { width: 50px; height: 50px; background-color: #050505; color: #0f8b6d; border: 1px solid #0f8b6d; font-size: 1.5rem; bottom: -10px; right: -10px; }
.badge-mail { width: 60px; height: 60px; background-color: #050505; color: #0f8b6d; border: 1px solid #0f8b6d; font-size: 1.5rem; top: -15px; left: -20px; }
.badge-group { width: 60px; height: 60px; background-color: #050505; color: #0f8b6d; border: 1px solid #0f8b6d; font-size: 1.5rem; bottom: -15px; right: -15px; }
.dots-pattern { position: absolute; width: 60px; height: 60px; background-image: radial-gradient(rgba(255,255,255,0.1) 2px, transparent 2px); background-size: 10px 10px; z-index: -1; }
.top-left { top: 20px; left: -40px; }
.bottom-right { bottom: 20px; right: -40px; }

/* =========================
   12. FOOTER
========================== */
.site-footer { background-color: #050505; color: #ffffff; padding: 100px 5% 40px 5%; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-col { display: flex; flex-direction: column; }
.footer-logo-container { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.footer-logo-img { height: 35px; }
.footer-brand { font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; }
.footer-desc { color: #aaaaaa; font-size: 0.9rem; line-height: 1.6; margin-bottom: 30px; max-width: 90%; }
.footer-locations { display: flex; flex-direction: column; gap: 20px; }
.location-item { display: flex; align-items: flex-start; gap: 15px; }
.loc-icon { color: #0f8b6d; }
.loc-text strong { display: block; color: #ffffff; font-size: 1rem; margin-bottom: 5px; }
.loc-text span { color: #aaaaaa; font-size: 0.85rem; line-height: 1.5; }
.footer-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 30px; position: relative; text-transform: uppercase; letter-spacing: 1px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 30px; height: 2px; background-color: #0f8b6d; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.footer-links a, .certif-text { color: #aaaaaa; text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: #ffffff; }
.certif-link { color: #0f8b6d !important; font-weight: 600; }
.certif-link:hover { color: #12a683 !important; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-copyright { color: #666666; font-size: 0.85rem; }
.footer-socials-credits { display: flex; align-items: center; gap: 30px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: #aaaaaa; transition: color 0.3s ease; }
.social-icons a:hover { color: #ffffff; }
.credits { color: #666666; font-size: 0.85rem; border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 30px; }
.credits a.text-green { color: #0f8b6d; text-decoration: none; font-weight: 700; }

/* =========================
   13. RESPONSIVE DESIGN (MOBILES/TABLETTES)
========================== */
@media screen and (max-width: 1250px) {
    .pill-header { left: 3%; right: 3%; padding: 14px 24px; }
    .header-left { gap: 22px; }
    .pill-header nav ul { gap: 18px; }
    .pill-header nav a { font-size: 0.78rem; }
    .header-actions { gap: 8px; }
    .btn-header-orange, .btn-header-outline { padding: 11px 14px; font-size: 0.72rem; }
}

@media screen and (max-width: 1050px) {
    .desktop-nav, .desktop-actions { display: none !important; }
    .burger { display: flex; }
    .burger.toggle span { background-color: #ffffff; }
    .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle .line2 { opacity: 0; }
    .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
}

@media screen and (max-width: 992px) {
    .formations-grid { grid-template-columns: repeat(2, 1fr); }
    .card-top, .card-bottom { grid-column: span 1; }
    .pedagogie-grid { grid-template-columns: 1fr; }
    .direction-container { grid-template-columns: 1fr; gap: 60px; }
    .direction-portrait { width: min(640px, 100%); min-height: 650px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
    .pill-header { top: 20px; left: 5%; right: 5%; padding: 15px 25px; }
    .desktop-nav, .desktop-actions { display: none !important; }
    .burger { display: flex; }
    .burger.toggle span { background-color: #ffffff; }
    .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle .line2 { opacity: 0; }
    .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    .logo-img { height: 25px; }

    .dark-hero { padding-top: 120px; padding-right: 5%; }
    .hero-title { font-size: 2.5rem; margin-bottom: 20px; }
    .hero-desc { font-size: 1rem; }
    .action-buttons { flex-direction: column; gap: 15px; margin-bottom: 50px; }
    .btn-red, .btn-outline-red { text-align: center; width: 100%; }
    .stats-grid { flex-direction: column; gap: 25px; }

    .formations-section { padding: 60px 5% 100px 5%; }
    .section-header h2 { font-size: 2.5rem; }
    .formations-grid { grid-template-columns: 1fr; }
    .card-top, .card-bottom { grid-column: span 1; }
    .formation-card.highlight { transform: scale(1); }
    .formation-card.highlight:hover { transform: translateY(-5px); }
    
    /* Responsive des images de formations sur mobile avec ajustement du masque */
    .card-content { width: 100%; margin-bottom: 220px; }
    .card-image { 
        top: auto; 
        bottom: 0; 
        width: 100%; 
        height: 250px; 
        background-size: cover; 
        background-position: center; 
        /* On change le sens du fondu pour mobile (vers le haut au lieu de la gauche) */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
    }

    .pedagogie-section { margin-top: -40px; padding-top: 100px; clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); }
    .pedagogie-grid { grid-template-columns: 1fr; }

    .direction-section { padding: 75px 5%; }
    .direction-container { gap: 45px; }
    .direction-copy h2 { margin-bottom: 28px; font-size: 3.4rem; }
    .direction-quote { padding: 28px 0 0; }
    .quote-mark { position: static; display: block; height: 45px; font-size: 4rem; }
    .direction-quote p { font-size: 0.84rem; line-height: 1.75; }
    .direction-signature { padding-left: 0; }
    .direction-portrait { min-height: 520px; }
    .direction-portrait img { width: 132%; max-width: none; max-height: 505px; transform: translateY(12px); }
    .portrait-initials { top: 100px; font-size: 9rem; }
    .orbit-one { width: 300px; height: 300px; top: 85px; }
    .orbit-two { width: 220px; height: 220px; top: 125px; }

    .faq-tabs { flex-direction: column; align-items: center; gap: 10px; }
    .faq-text { font-size: 1rem; }
    .faq-answer p { padding-left: 0; }

    .stacked-card { padding: 80px 5% 60px 5%; border-radius: 40px 40px 0 0; align-items: flex-start; }
    .card-2 { top: 30px; } 
    .card-3 { top: 60px; }
    .qualiopi-layout { flex-direction: column; gap: 30px; }
    .qualiopi-right h2 { font-size: 2rem; }
    .inner-dark-card { flex-direction: column; padding: 30px 20px; gap: 40px; }
    .inner-card-left h2 { font-size: 2rem; }
    .image-wrapper { height: 300px; max-width: 100%; }
    .qualiopi-img { max-width: 220px; padding: 15px; }
    .btn-green-solid { padding: 14px 28px; font-size: 0.95rem; width: 100%; justify-content: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 15px; }
    .footer-socials-credits { flex-direction: column; align-items: flex-start; gap: 15px; }
    .credits { border-left: none; padding-left: 0; }
}

/* =========================
   ASSISTANT WHATSAPP
========================== */
.wus-chat {
    --chat-green: #0f8b6d;
    --chat-green-dark: #08634e;
    --chat-orange: #f68b33;
    --chat-ink: #121817;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    color: var(--chat-ink);
}
.wus-chat button, .wus-chat input, .wus-chat textarea { font: inherit; }
.wus-chat button { cursor: pointer; }
.wus-chat-launcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 222px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--chat-green), var(--chat-green-dark));
    color: #fff;
    padding: 10px 18px 10px 10px;
    box-shadow: 0 16px 45px rgba(3,42,32,0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.wus-chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 20px 55px rgba(3,42,32,0.42); }
.wus-chat-launcher-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: #fff;
}
.wus-chat svg { width: 23px; height: 23px; fill: currentColor; }
.wus-chat-launcher-icon svg { color: var(--chat-green); }
.wus-chat-launcher-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.wus-chat-launcher-copy strong { font-size: 0.82rem; }
.wus-chat-launcher-copy small { color: rgba(255,255,255,0.76); font-size: 0.63rem; font-weight: 600; }
.wus-chat-online {
    position: absolute;
    top: 8px;
    left: 45px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--chat-green);
    border-radius: 50%;
    background: #68e09e;
}
.wus-chat-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 32px));
    height: min(680px, calc(100vh - 42px));
    overflow: hidden;
    border: 1px solid rgba(15,139,109,0.14);
    border-radius: 28px;
    background: #f7faf9;
    box-shadow: 0 28px 80px rgba(2,24,18,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.wus-chat.is-open .wus-chat-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wus-chat.is-open .wus-chat-launcher { opacity: 0; pointer-events: none; transform: scale(0.9); }
.wus-chat-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 16px;
    background: linear-gradient(135deg, #071812, #0b3b2e);
    color: #fff;
}
.wus-chat-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 13px;
    background: rgba(255,255,255,0.1);
    font-size: 0.8rem;
    font-weight: 800;
}
.wus-chat-avatar span { color: #71c6ac; }
.wus-chat-header > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.wus-chat-header strong { font-size: 0.75rem; }
.wus-chat-header small { color: rgba(255,255,255,0.66); font-size: 0.55rem; font-weight: 600; }
.wus-chat-header small i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #68e09e; }
.wus-chat-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.3rem;
}
.wus-chat-progress { height: 3px; background: #dcebe6; }
.wus-chat-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--chat-green), #62c4a7); transition: width 0.3s ease; }
.wus-chat-body { flex: 1; overflow-y: auto; padding: 22px 18px 18px; scrollbar-width: thin; scrollbar-color: #bad7ce transparent; }
.wus-chat-bubble { position: relative; margin-bottom: 18px; border-radius: 4px 18px 18px; background: #fff; padding: 18px; box-shadow: 0 10px 30px rgba(15,63,49,0.07); }
.wus-chat-kicker { display: block; margin-bottom: 7px; color: var(--chat-green); font-size: 0.52rem; font-weight: 800; letter-spacing: 0.12em; }
.wus-chat-bubble h2 { margin: 0 0 8px; color: var(--chat-ink); font-size: 1.12rem; line-height: 1.25; }
.wus-chat-bubble p { margin: 0; color: #66706d; font-size: 0.7rem; line-height: 1.6; }
.wus-chat-welcome-card, .wus-chat-form, .wus-chat-result {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #e0ece8;
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    padding: 16px;
}
.wus-chat-welcome-card > div { display: flex; flex-direction: column; gap: 3px; }
.wus-chat-welcome-card strong { font-size: 0.75rem; }
.wus-chat-welcome-card span { color: #77817e; font-size: 0.62rem; }
.wus-chat-primary, .wus-chat-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--chat-green);
    color: #fff;
    padding: 13px 16px;
    font-size: 0.72rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}
.wus-chat-primary:hover, .wus-chat-whatsapp:hover { transform: translateY(-2px); background: var(--chat-green-dark); }
.wus-chat-primary span { color: inherit; font-size: 0.9rem; }
.wus-chat-options { display: grid; gap: 9px; }
.wus-chat-options button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 1px solid #dce9e5;
    border-radius: 15px;
    background: #fff;
    color: var(--chat-ink);
    padding: 13px 14px;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.wus-chat-options button:hover { transform: translateX(3px); border-color: #78bca8; box-shadow: 0 8px 20px rgba(15,139,109,0.08); }
.wus-chat-options button span { display: flex; flex-direction: column; gap: 3px; }
.wus-chat-options strong { font-size: 0.7rem; }
.wus-chat-options small { color: #7c8582; font-size: 0.55rem; line-height: 1.35; }
.wus-chat-options i { color: var(--chat-green); font-size: 0.9rem; font-style: normal; }
.wus-chat-form label, .wus-chat-result label { display: flex; flex-direction: column; gap: 7px; }
.wus-chat-form label span, .wus-chat-result label span { color: #4b5652; font-size: 0.6rem; font-weight: 800; }
.wus-chat-form input, .wus-chat-form textarea, .wus-chat-result textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #d9e7e2;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--chat-ink);
    padding: 11px 12px;
    font-size: 0.68rem;
    line-height: 1.55;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wus-chat-form input:focus, .wus-chat-form textarea:focus, .wus-chat-result textarea:focus {
    border-color: var(--chat-green);
    box-shadow: 0 0 0 3px rgba(15,139,109,0.1);
}
.wus-chat-whatsapp { background: #20a85a; }
.wus-chat-whatsapp:hover { background: #168747; }
.wus-chat-whatsapp svg { width: 18px; height: 18px; }
.wus-chat-status { min-height: 14px; color: #b65b16; font-size: 0.58rem; font-weight: 700; line-height: 1.4; text-align: center; }
.wus-chat-restart, .wus-chat-back {
    border: 0;
    background: transparent;
    color: var(--chat-green);
    font-size: 0.6rem;
    font-weight: 800;
}
.wus-chat-footer { display: flex; align-items: center; justify-content: space-between; min-height: 43px; border-top: 1px solid #e3ece9; padding: 9px 16px; background: #fff; }
.wus-chat-footer span { color: #929a97; font-size: 0.48rem; }
.wus-chat button:focus-visible, .wus-chat input:focus-visible, .wus-chat textarea:focus-visible { outline: 3px solid rgba(246,139,51,0.38); outline-offset: 2px; }

@media screen and (min-width: 601px) and (max-width: 1100px) {
    .wus-chat-launcher { min-width: 0; padding-right: 10px; }
    .wus-chat-launcher-copy { display: none; }
}

@media screen and (max-width: 600px) {
    .wus-chat { right: 14px; bottom: 14px; }
    .wus-chat-launcher { min-width: 0; padding: 7px; }
    .wus-chat-launcher-icon { width: 42px; height: 42px; flex-basis: 42px; }
    .wus-chat-online { top: 5px; left: 39px; width: 10px; height: 10px; }
    .wus-chat-launcher-copy { display: none; }
    .wus-chat-panel {
        position: fixed;
        inset: 8px;
        width: auto;
        height: auto;
        border-radius: 22px;
        transform-origin: bottom right;
    }
    .wus-chat-body { padding: 18px 14px 14px; }
    .wus-chat-footer span { display: none; }
    .wus-chat-footer { justify-content: flex-start; }
}
