/* ═══════════════════════════════════════════════════════════════════════════════
   iime-index.css — Page d'accueil IIME v2.0
   Institut International de la Maturité d'Entreprise
   
   Table des matières :
     1.  Variables CSS & Reset global
     2.  Typographie de base
     3.  NAVBAR (Section 1)
     4.  HERO (Section 2)
     5.  OFFRE — 3 cartes (Section 3)
     6.  À PROPOS (Section 5)
     7.  FORMATIONS — 5 cartes (Section 6)
     8.  CONTACT (Section 7)
     9.  FOOTER (Section 8)
     10. Responsive @media
     11. Lang-helpers — TOUJOURS EN DERNIER ABSOLUMENT
═══════════════════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────────────────
   1. Variables CSS & Reset global
────────────────────────────────────────────────────────────────────────────── */
:root {
    /* Palette de couleurs */
    --iime-dark:        #0a1628;
    --iime-dark-mid:    #0f2040;
    --iime-navy:        #1C2B4A;
    --iime-navy-mid:    #243a5e;
    --iime-navy-light:  #2e4d7a;
    --iime-gold:        #C9A84C;
    --iime-gold-light:  #DDB95E;
    --iime-gold-pale:   #f0dfa0;
    --iime-white:       #FFFFFF;
    --iime-off-white:   #F8F9FC;
    --iime-light:       #F0F3F8;
    --iime-light-mid:   #E2E8F2;
    --iime-text:        #1e2d42;
    --iime-text-mid:    #3d5068;
    --iime-text-muted:  #6b7c93;
    --iime-border:      #D1D9E6;

    /* Ombres */
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md:  0 4px 20px rgba(0, 0, 0, 0.11);
    --shadow-lg:  0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl:  0 16px 60px rgba(0, 0, 0, 0.22);

    /* Forme */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    /* Transitions */
    --ease:       0.30s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Typographie */
    --font-display: 'Cinzel', Georgia, serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Sans 3', 'Segoe UI', Helvetica, sans-serif;

    /* Layout */
    --navbar-h:    120px;
    --max-w:       1300px;
    --side-pad:    clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--iime-text);
    background-color: var(--iime-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--ease);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}


/* ──────────────────────────────────────────────────────────────────────────────
   2. Typographie de base
────────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

p {
    line-height: 1.75;
}

/* Étiquette de section réutilisable */
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--iime-gold);
    margin-bottom: 0.6rem;
}


/* ──────────────────────────────────────────────────────────────────────────────
   3. NAVBAR — Section 1
────────────────────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background-color: rgba(10, 22, 40, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background-color var(--ease), box-shadow var(--ease);
}

.navbar.scrolled {
    background-color: var(--iime-dark);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.navbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--side-pad);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Marque / Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.navbar-logo {
    height: calc(var(--navbar-h) - 16px);
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.brand-acronym {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--iime-white);
    letter-spacing: 0.06em;
    line-height: 1.05;
}

.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.025em;
    max-width: 260px;
    line-height: 1.3;
    margin-top: 2px;
}

/* Navigation */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color var(--ease), background-color var(--ease);
}

.nav-link:hover {
    color: var(--iime-white);
    background-color: rgba(255, 255, 255, 0.09);
}

/* Actions (langue + membre) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

/* Sélecteur de langue */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 0.18rem 0.25rem;
}


/* Sélecteur de langue — toujours visible (desktop + mobile) */
.lang-switcher-always {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 0.18rem 0.25rem;
    flex-shrink: 0;
}

.lang-btn {
    font-family: var(--font-body);
    font-size: 1.0rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 0.28rem 0.55rem;
    letter-spacing: 0.06em;
    transition: color var(--ease), background-color var(--ease);
}

.lang-btn:hover {
    color: var(--iime-white);
    background-color: rgba(255, 255, 255, 0.10);
}

.lang-btn.active {
    color: var(--iime-dark);
    background-color: var(--iime-white);
}

/* Bouton Espace Membre */
.btn-membre {
    font-family: var(--font-body);
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--iime-white);
    background-color: var(--iime-navy-mid);
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-sm);
    padding: 0.52rem 1.05rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn-membre:hover {
    background-color: var(--iime-gold);
    border-color: var(--iime-gold);
    color: var(--iime-dark);
    transform: translateY(-1px);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.5rem;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--iime-white);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ──────────────────────────────────────────────────────────────────────────────
   4. HERO — Section 2
────────────────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 375px;
    height: 62.5svh;
    max-height: 513px;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    margin-top: var(--navbar-h);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(28, 43, 74, 0.72) 55%,
        rgba(10, 22, 40, 0.55) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem var(--side-pad);
    width: 100%;
}

/* Badge / fil d'Ariane hero */
.hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--iime-gold);
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(4px);
    background-color: rgba(201, 168, 76, 0.08);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 700;
    color: var(--iime-white);
    line-height: 1.15;
    margin-bottom: 1.3rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    max-width: 720px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 2vw, 1.18rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.65;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn-hero-primary {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--iime-dark);
    background-color: var(--iime-gold);
    border: 2px solid var(--iime-gold);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.9rem;
    letter-spacing: 0.02em;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn-hero-primary:hover {
    background-color: var(--iime-gold-light);
    border-color: var(--iime-gold-light);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--iime-white);
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.50);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.9rem;
    letter-spacing: 0.02em;
    transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}


/* ──────────────────────────────────────────────────────────────────────────────
   5. OFFRE — Section 3 (3 cartes)
────────────────────────────────────────────────────────────────────────────── */
.offre {
    background-color: var(--iime-white);
    padding: 2rem var(--side-pad);
    border-bottom: 1px solid var(--iime-light-mid);
}

.offre-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.offre-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 2.2rem 2rem;
    background-color: var(--iime-off-white);
    border: 1px solid var(--iime-border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.offre-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--iime-navy-light);
}

/* Carte mise en avant (centrale) */
.offre-card--featured {
    background-color: var(--iime-navy);
    border-color: var(--iime-navy);
}

.offre-card--featured .offre-title {
    color: var(--iime-white);
}

.offre-card--featured .offre-desc {
    color: rgba(255, 255, 255, 0.72);
}

.offre-card--featured:hover {
    border-color: var(--iime-gold);
    box-shadow: 0 8px 32px rgba(28, 43, 74, 0.30);
}

.offre-icon-wrap {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(28, 43, 74, 0.07);
    border-radius: var(--radius-md);
}

.offre-card--featured .offre-icon-wrap {
    background-color: rgba(255, 255, 255, 0.10);
}

.offre-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.offre-card--featured .offre-icon {
    filter: brightness(0) invert(1);
}

.offre-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--iime-navy);
    line-height: 1.3;
}

.offre-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--iime-text-mid);
    line-height: 1.65;
}


/* ──────────────────────────────────────────────────────────────────────────────
   5b. SERVICES PHOTO — Section 4 (3 cartes avec photo)
────────────────────────────────────────────────────────────────────────────── */
.services-photo {
    background-color: var(--iime-light);
    padding: 2rem var(--side-pad);
    border-bottom: 1px solid var(--iime-light-mid);
}

.services-photo-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.sphoto-card {
    background-color: var(--iime-white);
    border: 1px solid var(--iime-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), transform var(--ease);
}

.sphoto-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.sphoto-header {
    background-color: var(--iime-navy);
    padding: 1.1rem 1.4rem;
}

.sphoto-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--iime-white);
    line-height: 1.3;
}

.sphoto-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--iime-text-mid);
    line-height: 1.65;
    padding: 1rem 1.4rem 0.5rem;
}

.sphoto-img-wrap {
    flex: 1;
    overflow: hidden;
    min-height: 180px;
}

.sphoto-img {
    width: 100%;
    height: 250px;
 /*   height: 100%;*/
    object-fit: cover;
    display: block;
    transition: transform var(--ease);
}

.sphoto-card:hover .sphoto-img {
    transform: scale(1.04);
}

.sphoto-footer {
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--iime-light-mid);
    display: flex;
    justify-content: center;
}

.btn-sphoto {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--iime-navy);
    background-color: var(--iime-white);
    border: 1.5px solid var(--iime-navy-light);
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.4rem;
    letter-spacing: 0.02em;
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn-sphoto:hover {
    background-color: var(--iime-navy);
    color: var(--iime-white);
    border-color: var(--iime-navy);
}

/* Responsive */
@media (max-width: 900px) {
    .services-photo-inner {
        grid-template-columns: 1fr;
    }
    .sphoto-img-wrap {
        min-height: 220px;
    }
}


/* ──────────────────────────────────────────────────────────────────────────────

/* ──────────────────────────────────────────────────────────────────────────────
   5c. POURQUOI CHOISIR L'IIME — Section 4
────────────────────────────────────────────────────────────────────────────── */
.pourquoi {
    background-color: var(--iime-white);
    padding: 3rem var(--side-pad);
}

.pourquoi-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.pourquoi-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pourquoi-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--iime-text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.pourquoi-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--iime-text-muted);
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
}

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pourquoi-card {
    background-color: var(--iime-white);
    border: 1px solid var(--iime-border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), transform var(--ease);
}

.pourquoi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pourquoi-card-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--iime-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.pourquoi-card-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--iime-text-mid);
    line-height: 1.7;
}

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


/* ──────────────────────────────────────────────────────────────────────────────
   5d. RESSOURCES & OUTILS — Section 4b
────────────────────────────────────────────────────────────────────────────── */
.ressources {
    background-color: var(--iime-off-white);
    padding: 3rem var(--side-pad);
}

.ressources-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.ressources-header {
    margin-bottom: 2.5rem;
}

.ressources-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--iime-text);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.ressources-sub {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--iime-text-muted);
    line-height: 1.65;
    max-width: 560px;
}

.ressources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ressources-card {
    background-color: var(--iime-white);
    border: 1px solid var(--iime-border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 0 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), transform var(--ease);
}

.ressources-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Zone image — dégradé vert pastel quand l'image est absente */
.ressources-img-wrap {
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: linear-gradient(160deg, #d4e8d8 0%, #eaf4eb 60%, #f4f9f5 100%);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.ressources-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform var(--ease);
}

.ressources-card:hover .ressources-img {
    transform: scale(1.04);
}

.ressources-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.1rem 0.6rem 1.4rem;
    flex: 1;
}

.ressources-card-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--iime-text);
    line-height: 1.3;
}

.ressources-card-desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--iime-text-mid);
    line-height: 1.65;
    flex: 1;
}

/* Bouton vert contour */
.btn-ressource {
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #3a7d4f;
    background-color: transparent;
    border: 1.5px solid #3a7d4f;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.3rem;
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
    transition: background-color var(--ease), color var(--ease);
}

.btn-ressource:hover {
    background-color: #3a7d4f;
    color: var(--iime-white);
}

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

   6. À PROPOS — Section 5
────────────────────────────────────────────────────────────────────────────── */
.apropos {
    background-color: var(--iime-white);
}

/* Cadre intérieur avec padding fixe de 150px haut/bas */
.apropos-frame {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 50px var(--side-pad);
}

.apropos-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.apropos-content {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.apropos-title {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--iime-navy);
    line-height: 1.2;
}

.apropos-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--iime-text-mid);
    line-height: 1.8;
    font-weight: 400;
}

.btn-decouvrir {
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--iime-white);
    background-color: var(--iime-navy);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.75rem;
    letter-spacing: 0.03em;
    transition: background-color var(--ease), transform var(--ease);
}

.btn-decouvrir:hover {
    background-color: var(--iime-navy-light);
    transform: translateY(-2px);
}

/* Image + accent décoratif */
.apropos-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.apropos-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: block;
}

.apropos-media-accent {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 70%;
    height: 70%;
    border: 3px solid var(--iime-gold);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.45;
}


/* ──────────────────────────────────────────────────────────────────────────────
   7. FORMATIONS — Section 6 (5 cartes MAGIC®)
────────────────────────────────────────────────────────────────────────────── */
.formations {
    background-color: var(--iime-dark);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(36, 58, 94, 0.8) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 90% 90%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
    padding: 3.25rem var(--side-pad);
}

.formations-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

/* En-tête avec règles décoratives */
.formations-header {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.formations-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.40), transparent);
    max-width: 200px;
}

.formations-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 600;
    color: var(--iime-white);
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-align: center;
}

/* Grille de 5 cartes */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

.formation-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
    cursor: default;
}

.formation-card:hover {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: var(--iime-gold);
    transform: translateY(-5px);
}

.formation-icon-wrap {
    width: 155px;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formation-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.4);
    transition: filter var(--ease);
}

.formation-card:hover .formation-icon {
    filter: brightness(2);
}

.formation-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.formation-name {
    font-family: var(--font-heading);
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--iime-white);
    line-height: 1.3;
}

.formation-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.55;
}


/* ──────────────────────────────────────────────────────────────────────────────
   8. CONTACT — Section 7
────────────────────────────────────────────────────────────────────────────── */
.contact-section {
    position: relative;
    background-color: var(--iime-navy);
    padding: 3rem var(--side-pad);
    overflow: hidden;
}

.contact-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 15% 50%, rgba(201, 168, 76, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 85% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-section-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
}

/* En-tête contact avec règles */
.contact-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
}

.contact-rule {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.18);
    max-width: 180px;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--iime-white);
    white-space: nowrap;
}

.contact-subhead {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.70);
    max-width: 560px;
    line-height: 1.65;
}

/* Bloc de coordonnées */
.contact-info-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 820px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
}

.contact-info-sep {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.11);
    align-self: stretch;
}

.contact-info-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    mix-blend-mode: screen;
    filter: brightness(1.4);
}

.contact-info-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.contact-info-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--iime-gold);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.contact-info-value {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
    font-weight: 400;
}

a.contact-info-value:hover {
    color: var(--iime-gold-light);
}

/* Bouton CTA */
.contact-cta-wrap {
    margin-top: 0.5rem;
}

.btn-envoyer {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--iime-white);
    background-color: var(--iime-navy-mid);
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    padding: 0.9rem 2.4rem;
    letter-spacing: 0.04em;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn-envoyer:hover {
    background-color: var(--iime-gold);
    border-color: var(--iime-gold);
    color: var(--iime-dark);
    transform: translateY(-2px);
}


/* ──────────────────────────────────────────────────────────────────────────────
   9. FOOTER — Section 8
────────────────────────────────────────────────────────────────────────────── */
.footer {
    background-color: var(--iime-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.1rem var(--side-pad);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 1.2rem;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.48);
    transition: color var(--ease);
}

.footer-link:hover {
    color: var(--iime-gold-light);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.20);
    font-size: 0.9rem;
    user-select: none;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.02em;
}


/* ──────────────────────────────────────────────────────────────────────────────
   10. Responsive @media
────────────────────────────────────────────────────────────────────────────── */

/* ── Tablettes larges ── */
@media (max-width: 1100px) {
    .formations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Tablettes ── */
@media (max-width: 900px) {
    .apropos-inner {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .apropos-media {
        order: -1;
    }

    .apropos-img {
        height: 320px;
    }

    .apropos-media-accent {
        display: none;
    }

    .offre-inner {
        grid-template-columns: 1fr;
    }

    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-row {
        flex-direction: column;
    }

    .contact-info-sep {
        width: 100%;
        height: 1px;
        align-self: auto;
    }

    .contact-rule {
        max-width: 100px;
    }
}

/* ── Mobile (largeur max 768px) ── */
@media (max-width: 768px) {
    :root {
        --navbar-h: 70px;
    }

    .navbar-inner {
        gap: 0;
    }

    /* Masquer le texte tagline sur mobile */
    .brand-tagline {
        display: none;
    }

    /* Menu mobile masqué par défaut */
    .navbar-nav {
        display: none;
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--iime-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 2.5rem;
        overflow-y: auto;
        z-index: 999;
    }

    .navbar-nav.open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        width: 100%;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 0.8rem 1rem;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .navbar-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .btn-membre {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }


    /* Sélecteur de langue toujours visible sur mobile */
    .lang-switcher-always {
        background-color: rgba(255, 255, 255, 0.10);
    }

    .lang-switcher-always .lang-btn {
        font-size: 0.85rem;
        padding: 0.25rem 0.45rem;
    }

    /* Afficher le hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        max-height: 425px;
        min-height: 325px;
    }

    /* Sections */
    .offre {
        padding: 3rem var(--side-pad);
    }

    .apropos-frame {
        padding: 30px var(--side-pad);
    }

    .formations {
        padding: 4rem var(--side-pad);
    }

    .contact-section {
        padding: 4rem var(--side-pad);
    }

    /* Formations : 2 colonnes sur mobile */
    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* En-tête formations */
    .formations-header {
        gap: 1rem;
    }

    .formations-rule {
        max-width: 60px;
    }

    .formations-title {
        white-space: normal;
        text-align: center;
    }
}

/* ── Petit mobile (max 480px) ── */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

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

    .contact-info-item {
        padding: 1.5rem 1.2rem;
    }

    .footer-sep {
        display: none;
    }
}


/* ──────────────────────────────────────────────────────────────────────────────
   11. Lang-helpers — TOUJOURS EN DERNIER ABSOLUMENT
   (après tous les @media, sinon display:none est écrasé)
────────────────────────────────────────────────────────────────────────────── */

/* Règle de base : masquer tous les blocs bilingues */
/* ── Référentiel MAGIC® : pastilles-lettres + sous-titre de section ── */
.magic-letter {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto;
    background-color: var(--iime-gold);
    color: var(--iime-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.formations-sub {
    text-align: center;
    max-width: 620px;
    margin: -2.6rem auto 3rem;
    color: var(--iime-off-white);
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.6;
}


.lang-content {
    display: none;
}

/* Règle d'activation : afficher le bloc actif */
.lang-content.active {
    display: block;
}

/* ── Surcharges de contexte (display spécifique) ── */

/* Éléments inline */
span.lang-content.active {
    display: inline;
}

/* Badge hero */
.hero-badge.lang-content.active {
    display: inline-block;
}

/* Liens et boutons */
a.lang-content.active,
.btn-hero-primary.lang-content.active,
.btn-hero-secondary.lang-content.active,
.btn-decouvrir.lang-content.active,
.btn-membre.lang-content.active,
.btn-envoyer.lang-content.active,
.btn-sphoto.lang-content.active,
.btn-ressource.lang-content.active,
.footer-link.lang-content.active {
    display: inline-block;
}

/* Images ressources — display:block obligatoire */
img.ressources-img.lang-content.active {
    display: block;
}

/* Liens de navigation */
.nav-link.lang-content.active {
    display: block;
}

/* Valeurs de contact (spans block) */
.contact-info-value.lang-content.active,
.contact-info-label.lang-content.active {
    display: block;
}

/* Étiquette de section */
.section-label.lang-content.active {
    display: block;
}
