/* ================================================
   ATELIER CODE — Professional Stylesheet
   Design: Premium, Modern, Section-Unique
   Colors: Navy #001F3F | Amber #FFB800 | White
   ================================================ */

:root {
    --navy: #001F3F;
    --navy-mid: #003A70;
    --navy-light: #0A4B8C;
    --amber: #FFB800;
    --amber-dark: #E6A500;
    --amber-light: #FFC933;
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --gray-800: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.18);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================
   SCROLL PROGRESS BAR
   ================================================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--amber-light));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ================================================
   TYPOGRAPHY — Reusable
   ================================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amber);
    background: rgba(255,184,0,0.12);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.section-label.light { background: rgba(255,255,255,0.15); color: var(--amber); }
.section-label.gold { background: rgba(255,184,0,0.2); color: var(--amber); }

.section-title {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.section-title.light { color: var(--white); }
.section-title em { font-style: italic; color: var(--amber); }

.section-sub {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 0;
}
.section-sub.light { color: rgba(255,255,255,0.75); }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .section-sub {
    margin: 0 auto;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-gold {
    background: var(--amber);
    color: var(--navy);
    border-color: var(--amber);
}
.btn-gold:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,184,0,0.4);
}
.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    transform: translateY(-2px);
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; }
.mt-4 { margin-top: 1.5rem; }

/* ================================================
   REVEAL ANIMATIONS
   ================================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-section { overflow: visible; }
.reveal-img {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-img.visible {
    opacity: 1;
    transform: scale(1);
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    position: fixed;
    top: 3px; /* below scroll progress */
    left: 0; right: 0;
    z-index: 1000;
    padding: 0.55rem 0;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    /* Always dark — required so mix-blend-mode: screen
       on the logo makes its black bg transparent */
    background: rgba(0, 12, 30, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar.scrolled {
    box-shadow: 0 4px 28px rgba(0,0,0,0.4);
    background: rgba(0, 8, 22, 0.99);
    border-bottom-color: rgba(255,184,0,0.15);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ================================================
   LOGO SYSTEM
   The PNG (820×820px) has the amber "A+hammer" icon
   at ~x:265–350, y:365–455 inside a white canvas.
   Strategy: background-image window on a small div
   crops to just that icon; invert+hue-rotate+screen
   removes the white and preserves the amber on any
   dark surface. The brand name and tagline are real
   HTML text — always crisp, always readable.
   ================================================ */

/* --- Navbar logo wrapper --- */
.nav-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    transition: opacity 0.25s ease;
}
.nav-logo:hover { opacity: 0.82; }

/* --- Icon: cropped amber mark from the PNG ---
   bg-size 470px → scale = 470/820 = 0.573
   Icon centre in original: (307px, 410px)
   Icon centre at scale:    (176px, 235px)
   Container 48×52px, centre (24px, 26px)
   bg-pos X% = (176-24)/(470-48)*100 = 36%
   bg-pos Y% = (235-26)/(470-52)*100 = 50%        */
.logo-icon {
    flex-shrink: 0;
    width: 48px;
    height: 52px;
    background-image: url('../logo officiel atelier code (version 01 ).png');
    background-repeat: no-repeat;
    background-size: 470px 470px;
    background-position: 36% 50%;
    /* Remove white canvas, keep amber */
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: screen;
}

/* Footer version — larger icon (60×65px)
   bg-size 590px → scale = 590/820 = 0.720
   Icon centre at scale: (221px, 295px)
   Container 60×65px, centre (30px, 32px)
   bg-pos X% = (221-30)/(590-60)*100 = 36%
   bg-pos Y% = (295-32)/(590-65)*100 = 50%        */
.logo-icon-lg {
    width: 60px;
    height: 65px;
    background-size: 590px 590px;
    background-position: 36% 50%;
}

/* --- Wordmark: real HTML text --- */
.logo-wordmark {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}
.logo-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    color: var(--white);
    white-space: nowrap;
}
.logo-tagline {
    font-size: 0.6rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--amber);
    white-space: nowrap;
}

/* Footer wordmark — larger */
.footer-logo-combo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.logo-wordmark-lg .logo-name {
    font-size: 1.35rem;
    letter-spacing: 0.14em;
}
.logo-wordmark-lg .logo-tagline {
    font-size: 0.72rem;
    margin-top: 2px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}
/* Hide icons on desktop — they only appear inside mobile panel */
.nav-link i { display: none; }

.nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover { color: var(--amber); }
.nav-link.nav-cta {
    background: var(--amber);
    color: var(--navy);
    font-weight: 700;
    padding: 0.5rem 1.2rem;
}
.nav-link.nav-cta:hover {
    background: var(--amber-light);
    color: var(--navy);
    transform: translateY(-1px);
}
/* Desktop: hide the mobile-only items */
.mobile-cta-li { display: none; }
/* Mobile: hide the desktop CTA (shown inside hamburger panel) */
/* .desktop-cta-li always visible on desktop */

/* Horloge in Nav */
.nav-horloge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}
.nav-horloge i {
    color: var(--amber);
    font-size: 0.95rem;
}
.horloge-display {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.horloge-time {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.05em;
}
.horloge-date {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.03em;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 10, 30, 0.85) 0%,
        rgba(0, 31, 63, 0.75) 50%,
        rgba(0, 10, 30, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 8rem 2rem 4rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,184,0,0.15);
    border: 1px solid rgba(255,184,0,0.4);
    color: var(--amber);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.75rem;
    animation: fadeInUp 1s ease 0.2s both;
}
.hero-title-accent {
    color: var(--amber);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    animation: fadeInUp 1s ease 0.8s both;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    gap: 0.2rem;
}
.hero-stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--amber);
    line-height: 1;
}
.hero-stat span { color: var(--amber); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: bounce 2s infinite;
}
.hero-scroll-hint i { font-size: 1rem; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
    background: var(--white);
}

.about-image-col {
    background: var(--gray-100);
    padding: 5rem 3rem 5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.about-img-grid {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}
.about-img {
    position: absolute;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}
.img-main {
    width: 65%; height: 65%;
    top: 0; left: 0;
    z-index: 2;
    animation-delay: 0s;
}
.img-sm1 {
    width: 42%; height: 42%;
    top: 5%; right: 0;
    z-index: 1;
    animation-delay: 0.2s;
}
.img-sm2 {
    width: 42%; height: 38%;
    bottom: 10%; left: 8%;
    z-index: 3;
    animation-delay: 0.4s;
}
.img-sm3 {
    width: 38%; height: 38%;
    bottom: 0; right: 5%;
    z-index: 2;
    animation-delay: 0.6s;
}

.about-text-col {
    padding: 5rem 3rem 5rem 4rem;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-body {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.about-value {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.about-value-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255,184,0,0.3);
}
.about-value strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.15rem;
}
.about-value span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ================================================
   FORMATIONS SECTION
   ================================================ */
.formations {
    padding: 7rem 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.formations::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,184,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.formations::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,58,112,0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Course Cards */
.course-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.card-web::before { background: linear-gradient(90deg, #3B82F6, #06B6D4); }
.card-db::before  { background: linear-gradient(90deg, #10B981, #34D399); }
.card-prod::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }

.course-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.07);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255,255,255,0.2);
}

.course-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.course-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.card-web .course-icon { background: rgba(59,130,246,0.15); color: #60A5FA; }
.card-db .course-icon  { background: rgba(16,185,129,0.15); color: #34D399; }
.card-prod .course-icon { background: rgba(139,92,246,0.15); color: #A78BFA; }

.course-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
}
.tag-level { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.tag-hot   { background: rgba(255,59,59,0.2); color: #FC8181; }
.tag-new   { background: rgba(255,184,0,0.15); color: var(--amber); }

.course-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.course-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.course-modules {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.course-modules li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}
.card-web .course-modules i  { color: #60A5FA; }
.card-db .course-modules i   { color: #34D399; }
.card-prod .course-modules i { color: #A78BFA; }

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 1.75rem;
}
.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}
.course-meta-item i { color: var(--amber); font-size: 0.8rem; }

.btn-course {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.85rem;
}
.btn-web  { background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.3); }
.btn-web:hover  { background: rgba(59,130,246,0.25); transform: none; }
.btn-db   { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }
.btn-db:hover   { background: rgba(16,185,129,0.25); transform: none; }
.btn-prod { background: rgba(139,92,246,0.15); color: #A78BFA; border: 1px solid rgba(139,92,246,0.3); }
.btn-prod:hover { background: rgba(139,92,246,0.25); transform: none; }

.formations-more {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
}
.formations-more a {
    color: var(--amber);
    font-weight: 600;
    transition: var(--transition);
}
.formations-more a:hover { color: var(--amber-light); text-decoration: underline; }

/* ================================================
   SERVICES SECTION
   ================================================ */
.services {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.services-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.services-bg-video video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.services-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,10,30,0.94) 0%, rgba(0,31,63,0.88) 100%);
}

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

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

.service-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.service-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,184,0,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.service-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(255,184,0,0.2), rgba(255,184,0,0.05));
    border: 1px solid rgba(255,184,0,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--amber);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: rgba(255,184,0,0.25);
    transform: scale(1.05);
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.service-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.service-list li {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    padding-left: 1rem;
    position: relative;
}
.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-size: 0.75rem;
}

.services-cta { text-align: center; }

/* ================================================
   VIDEO SHOWCASE
   ================================================ */
.video-showcase {
    padding: 7rem 0;
    background: var(--off-white);
}
.video-showcase-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: start;
}
.video-feature { position: relative; }
.showcase-video {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--navy);
}
.video-caption {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}
.video-caption i { color: var(--amber); font-size: 1.25rem; }

.video-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.video-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.video-info-card.accent {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--white);
}
.video-info-card i.fa-quote-left {
    font-size: 1.5rem;
    color: var(--amber);
    margin-bottom: 1rem;
    display: block;
}
.video-info-card blockquote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: 0.75rem;
}
.video-info-card footer {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--amber);
}
.video-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.video-highlight i {
    font-size: 1.75rem;
    color: var(--amber);
}
.video-highlight h4 {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 700;
}
.video-highlight p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   GALLERY SECTION
   ================================================ */
.gallery {
    background: var(--gray-800);
    padding: 7rem 0 0;
}
.gallery-header {
    text-align: center;
    padding: 0 2rem;
    margin-bottom: 4rem;
}
.gallery-header .section-sub { margin: 0 auto; }

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 4px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item-lg {
    grid-row: 1 / 3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,15,30,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem;
    gap: 0.5rem;
    color: var(--white);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i {
    font-size: 1.5rem;
    color: var(--amber);
    position: absolute;
    top: 1rem; right: 1rem;
}
.gallery-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ================================================
   WHY US SECTION
   ================================================ */
.why-us {
    padding: 7rem 0;
    background: var(--off-white);
}
.why-us-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}
.why-us-text {
    position: relative;
}
.why-us-text .section-title { margin-bottom: 1rem; }
.why-us-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

.why-us-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--amber);
}
.why-number {
    position: absolute;
    top: 1.25rem; right: 1.5rem;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-100);
    line-height: 1;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.why-card:hover .why-number { color: rgba(255,184,0,0.1); }
.why-card-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255,184,0,0.3);
}
.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.why-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   REGISTER SECTION
   ================================================ */
.register {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}
.register-bg {
    position: absolute;
    inset: 0;
}
.register-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.register-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,10,30,0.95) 0%, rgba(0,40,80,0.9) 100%);
}

.register-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.register-left .section-sub { max-width: 100%; }

.countdown-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}
.countdown-box {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}
.cbox-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.cbox-header i { color: var(--amber); font-size: 1.1rem; }
.cbox-header span { font-size: 0.85rem; color: rgba(255,255,255,0.65); font-weight: 500; }
.cbox-header strong { font-size: 0.85rem; color: var(--amber); font-weight: 700; margin-left: auto; }
.cbox-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cbox-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    min-width: 56px;
}
.cbox-unit span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--amber);
    font-family: 'Courier New', monospace;
    line-height: 1;
}
.cbox-unit em {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}
.cbox-sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    margin: 0 0.1rem;
    padding-bottom: 1rem;
}

/* Register Card */
.register-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.register-card-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: 2.5rem;
    text-align: center;
    border-bottom: 3px solid var(--amber);
}
.register-card-header i {
    font-size: 2.5rem;
    color: var(--amber);
    margin-bottom: 0.75rem;
    display: block;
}
.register-card-header h3 {
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.register-card-header p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.register-card-body { padding: 2rem 2.5rem 2.5rem; }

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.reg-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}
.reg-benefit i { color: var(--amber); font-size: 0.9rem; flex-shrink: 0; }

.register-note {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0;
}
.register-note i { color: var(--amber); margin-top: 0.1rem; flex-shrink: 0; }

.register-platform {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}
.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}
.platform-link:hover { color: var(--amber); }
.platform-link i { font-size: 0.8rem; }

/* ================================================
   MOODLE COURSE BUTTONS (register card)
   ================================================ */
.moodle-course-btns {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
.btn-moodle {
    background: rgba(255,184,0,0.12);
    color: var(--amber);
    border: 1.5px solid rgba(255,184,0,0.45);
}
.btn-moodle:hover {
    background: rgba(255,184,0,0.22);
    border-color: var(--amber);
    transform: translateY(-2px);
}

/* ================================================
   INSTRUCTOR INVITE — Full-bleed split panel
   ================================================ */
.instructor-invite {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    overflow: hidden;
}

/* Left: photo */
.instructor-photo-panel {
    position: relative;
    overflow: hidden;
}
.instructor-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.instructor-photo-panel:hover .instructor-photo {
    transform: scale(1.04);
}
.instructor-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,15,40,0.82) 0%,
        rgba(0,15,40,0.3)  50%,
        transparent        100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}
.instructor-stat-badges {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}
.inst-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 3px solid var(--amber);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.inst-badge i {
    color: var(--amber);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.inst-badge strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}
.inst-badge span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
}

/* Right: content */
.instructor-content-panel {
    background: linear-gradient(145deg, var(--navy) 0%, #02306b 70%, #001428 100%);
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.instructor-content-panel::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,184,0,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.instructor-content-panel .section-title {
    margin-bottom: 1rem;
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

.instructor-invite-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.85;
    margin-bottom: 2rem;
}

.instructor-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}
.perk {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    transition: var(--transition);
}
.perk:hover {
    background: rgba(255,184,0,0.08);
    border-color: rgba(255,184,0,0.3);
    transform: translateY(-2px);
}
.perk i {
    color: var(--amber);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.perk span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
}

.instructor-invite-note {
    margin-top: 1rem;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0;
}
.instructor-invite-note i { color: rgba(255,184,0,0.5); }

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact {
    padding: 7rem 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.contact-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}
.contact-card:hover {
    border-color: var(--amber);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.contact-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy);
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 16px rgba(255,184,0,0.3);
}
.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.contact-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.contact-link {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    word-break: break-word;
}
.contact-link:hover { color: var(--amber); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--gray-800);
}
.footer-main {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
/* footer-logo replaced by .footer-logo-combo + .logo-icon-lg */
.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.social-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-btn:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--navy);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber);
    margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
    padding: 1.5rem 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
}
.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 50%;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
    .formations-grid,
    .services-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .why-us-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
    /* Instructor — stack vertically on tablet */
    .instructor-invite { grid-template-columns: 1fr; }
    .instructor-photo-panel { min-height: 50vw; max-height: 420px; }
    .instructor-content-panel { padding: 3.5rem 2rem; }
    .instructor-perks { grid-template-columns: 1fr; }

    .about { grid-template-columns: 1fr; }
    .about-image-col {
        min-height: 50vw;
        padding: 3rem 2rem;
    }
    .about-img-grid { max-width: 380px; margin: 0 auto; }
    .about-text-col { padding: 3rem 2rem; }

    .register-content { grid-template-columns: 1fr; gap: 3rem; }

    .video-showcase-grid { grid-template-columns: 1fr; }
    .video-sidebar { flex-direction: row; }

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px 220px;
    }
    .gallery-item-lg { grid-row: auto; }
}

/* ── Nav overlay (mobile backdrop) ──────────────────────────────── */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 28, 0.72);
    backdrop-filter: blur(4px);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* Body scroll-lock when mobile menu is open */
body.menu-open { overflow: hidden; }

/* Mobile-only panel header — hidden on desktop */
.mobile-panel-top { display: none !important; }
.mobile-cta-li    { display: none; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablets (≤ 900px): enable hamburger
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Hide desktop horloge — it'll live inside the panel */
    .nav-horloge { display: none; }
    .hamburger   { display: flex; }

    /* Slide-in panel */
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(340px, 88vw);
        height: 100vh;
        height: 100dvh;                          /* dynamic viewport height */
        background: linear-gradient(170deg, #001428 0%, #002555 60%, #001428 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 60px rgba(0,0,0,0.55);
        border-left: 1px solid rgba(255,255,255,0.07);
    }
    .nav-links.open { right: 0; }

    /* ── Show the mobile-only panel header ── */
    .mobile-panel-top {
        display: flex !important;
        flex-direction: column;
        padding: 1.4rem 1.5rem 1.25rem;
        background: rgba(0,0,0,0.25);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        gap: 1.1rem;
        flex-shrink: 0;
    }
    .mobile-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-brand-name {
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        font-weight: 900;
        letter-spacing: 0.18em;
        color: var(--white);
    }
    .mobile-close-btn {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 50%;
        width: 40px; height: 40px;
        display: flex; align-items: center; justify-content: center;
        color: rgba(255,255,255,0.85);
        font-size: 1rem;
        cursor: pointer;
        transition: var(--transition);
        flex-shrink: 0;
    }
    .mobile-close-btn:hover {
        background: var(--amber);
        border-color: var(--amber);
        color: var(--navy);
        transform: rotate(90deg);
    }

    /* Horloge widget inside mobile panel */
    .mobile-horloge-widget {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: rgba(255,184,0,0.1);
        border: 1px solid rgba(255,184,0,0.3);
        border-radius: var(--radius-sm);
        padding: 0.85rem 1rem;
    }
    .mobile-horloge-widget i {
        color: var(--amber);
        font-size: 1.15rem;
        flex-shrink: 0;
    }
    .mobile-horloge-widget .horloge-display {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }
    .mobile-horloge-widget .horloge-time {
        font-family: 'Courier New', monospace;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--amber);
        letter-spacing: 0.08em;
    }
    .mobile-horloge-widget .horloge-date {
        font-size: 0.72rem;
        color: rgba(255,255,255,0.6);
        letter-spacing: 0.04em;
    }

    /* Show icons inside mobile panel */
    .nav-link i { display: inline; }

    /* Swap CTAs: hide desktop version, show mobile version */
    .desktop-cta-li { display: none; }
    .mobile-cta-li  { display: block; }

    /* Nav links inside the panel */
    .nav-links li        { width: 100%; }
    .nav-links li + li   { border-top: 1px solid rgba(255,255,255,0.05); }
    .mobile-panel-top    { border-top: none; }
    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        font-size: 1rem;
        font-weight: 500;
        color: rgba(255,255,255,0.82);
        padding: 1rem 1.5rem;
        width: 100%;
        border-radius: 0;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.25s ease;
    }
    .nav-link i {
        width: 20px;
        text-align: center;
        color: var(--amber);
        font-size: 0.9rem;
        opacity: 0.8;
    }
    .nav-link:hover {
        background: rgba(255,184,0,0.09);
        color: var(--amber);
        padding-left: 2rem;
    }
    .nav-link:hover i { opacity: 1; }

    /* CTA "S'inscrire" button inside panel */
    .mobile-cta-li {
        display: block;
        padding: 1.25rem 1.5rem 2rem;
        margin-top: auto;
    }
    .mobile-cta-li .nav-link {
        background: var(--amber);
        color: var(--navy);
        border-radius: var(--radius-sm);
        font-weight: 800;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        box-shadow: 0 6px 24px rgba(255,184,0,0.35);
    }
    .mobile-cta-li .nav-link:hover {
        background: var(--amber-light);
        transform: translateY(-2px);
        padding-left: 1.5rem;
        color: var(--navy);
    }
    .mobile-cta-li .nav-link i { color: var(--navy); }

    /* Logo — slightly smaller on tablets */
    .logo-icon    { width: 38px; height: 41px; background-size: 370px 370px; }
    .logo-name    { font-size: 0.88rem; letter-spacing: 0.11em; }
    .logo-tagline { font-size: 0.54rem; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — Phones (≤ 768px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Hero */
    .hero-stats { gap: 1rem; padding: 1.25rem; }
    .hero-stat { padding: 0 1rem; }
    .hero-stat-divider { height: 30px; }

    /* Formations */
    .formations-grid { grid-template-columns: 1fr; }
    .services-grid   { grid-template-columns: 1fr; }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item { height: 200px; }

    /* Why Us */
    .why-us-cards { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom .container { flex-direction: column; text-align: center; }

    /* Video sidebar */
    .video-sidebar { flex-direction: column; }

    /* Register */
    .cbox-timer { flex-wrap: wrap; justify-content: center; }

    /* Logo — smallest size */
    .logo-icon    { width: 34px; height: 37px; background-size: 330px 330px; }
    .logo-name    { font-size: 0.82rem; letter-spacing: 0.09em; }
    .logo-tagline { font-size: 0.5rem; }
}

@media (max-width: 560px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-stat-divider { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .about-img-grid { max-width: 280px; }

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 220px; }

    .register-card-body { padding: 1.5rem; }

    .countdown-box { padding: 1.25rem; }
    .cbox-unit { min-width: 44px; padding: 0.6rem; }
    .cbox-unit span { font-size: 1.25rem; }
}
