/* ===============================
   VARIABLES & RESET
================================ */
/* ── Ripple effect on buttons ─────────────────────── */
.btn-cta,
.btn-savoir-plus,
.btn-submit,
.btn-auth,
.filiere-card button,
.btn-cta,
.concours-card {
    position: relative;
    overflow: hidden;
}

.btn-cta::after,
.btn-savoir-plus::after,
.btn-submit::after,
.btn-auth::after,
.filiere-card button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.35) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-cta:active::after,
.btn-savoir-plus:active::after,
.btn-submit:active::after,
.btn-auth:active::after,
.filiere-card button:active::after {
    opacity: 1;
    transition: opacity 0s;
}

/* ── Shimmer loading effect ────────────────────────── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--grey-light) 25%, #e8ecf2 50%, var(--grey-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

/* ── Pulsing dot (status indicator) ────────────────── */
@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Animated background particles (hero) ─────────── */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    50% { opacity: 0.15; }
    90% { opacity: 0.4; }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 123, 0, 0.5);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; width: 8px; height: 8px; animation-delay: 0s; animation-duration: 14s; }
.hero-particle:nth-child(2) { left: 85%; top: 15%; width: 5px; height: 5px; animation-delay: 1s; animation-duration: 11s; }
.hero-particle:nth-child(3) { left: 30%; top: 70%; width: 10px; height: 10px; animation-delay: 2.5s; animation-duration: 16s; }
.hero-particle:nth-child(4) { left: 70%; top: 60%; width: 4px; height: 4px; animation-delay: 3s; animation-duration: 10s; }
.hero-particle:nth-child(5) { left: 50%; top: 30%; width: 7px; height: 7px; animation-delay: 4s; animation-duration: 13s; }
.hero-particle:nth-child(6) { left: 20%; top: 80%; width: 6px; height: 6px; animation-delay: 1.5s; animation-duration: 15s; }
.hero-particle:nth-child(7) { left: 90%; top: 75%; width: 5px; height: 5px; animation-delay: 3.5s; animation-duration: 12s; }
.hero-particle:nth-child(8) { left: 45%; top: 10%; width: 9px; height: 9px; animation-delay: 2s; animation-duration: 17s; }

:root {
    --orange: #ff7b00;
    --orange-dark: #cc6200;
    --orange-light: #ff9f3d;
    --blue: #0f4c8a;
    --blue-dark: #0a2a5a;
    --blue-light: #146dc5;
    --blue-glow: #1a7ae0;
    --dark: #0a0f1a;
    --dark-800: #111827;
    --grey-light: #f4f6fa;
    --grey-lighter: #f9fafc;
    --text-dark: #1f2937;
    --text-mid: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 8px 32px rgba(255, 123, 0, 0.25);
    --transition: 0.3s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ── Custom Scrollbar ─────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--orange), var(--orange-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange-light);
}

/* ── Selection ────────────────────────────────────── */
::selection {
    background: var(--orange);
    color: var(--white);
}

/* ── Scroll Reveal Animations ─────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ── Section Dividers ─────────────────────────────── */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    border-radius: 4px;
    margin: 0 auto 20px;
    opacity: 0.8;
}

.section-divider-left {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    border-radius: 4px;
    margin: 0 0 20px;
    opacity: 0.8;
}

/* ===============================
   NAVBAR
================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    height: 90px;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition), height var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    width: clamp(88px, 8vw, 105px);
    height: clamp(88px, 8vw, 105px);
    background-image: url("../images/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.nav-links {
    display: flex;
    gap: clamp(18px, 3vw, 40px);
    align-items: center;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 600;
}

.nav-links > li > a {
    color: var(--white);
    position: relative;
    padding-bottom: 4px;
}

.nav-links > li > a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--orange);
    left: 0;
    bottom: 0;
    transition: width var(--transition);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    background: rgba(15, 20, 35, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-width: 230px;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 123, 0, 0.15);
    overflow: hidden;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li a {
    display: block;
    padding: 13px 20px;
    color: var(--white);
    font-size: 0.9rem;
    transition: background var(--transition), padding-left var(--transition);
    position: relative;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--orange);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255, 123, 0, 0.12);
    padding-left: 28px;
}

.dropdown-menu li a:hover::before {
    transform: scaleY(1);
}

/* Mobile toggle (animé) */
.menu-toggle {
    display: none;
    width: 32px;
    height: 24px;
    cursor: pointer;
    color: var(--white);
    padding: 4px;
    position: relative;
    z-index: 110;
}

.menu-toggle .burger-line {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2.5px;
    background: var(--white);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.menu-toggle .burger-line:nth-child(1) { top: 4px; }
.menu-toggle .burger-line:nth-child(2) { top: 10.5px; opacity: 1; }
.menu-toggle .burger-line:nth-child(3) { top: 17px; }

.menu-toggle.open .burger-line:nth-child(1) {
    top: 10.5px;
    transform: rotate(45deg);
}

.menu-toggle.open .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.open .burger-line:nth-child(3) {
    top: 10.5px;
    transform: rotate(-45deg);
}

/* ===============================
   HERO SECTIONS
================================ */
.hero, .hero2, .hero3, .hero-concours {
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero          { background-image: url("../images/ecole.webp"); }
.hero2         { background-image: url("../images/techphoto.webp"); }
.hero3         { background-image: url("../images/formation.webp"); }
.hero-concours { background-image: url("../images/ecole.webp"); background-position: top; }

/* Fallback PNG pour les navigateurs qui ne supportent pas WebP */
.no-webp .hero          { background-image: url("../images/ecole.png"); }
.no-webp .hero2         { background-image: url("../images/techphoto.png"); }
.no-webp .hero3         { background-image: url("../images/formation.png"); }
.no-webp .hero-concours { background-image: url("../images/ecole.png"); }

/* Dark overlay on hero - animated gradient */
.hero::before, .hero2::before, .hero3::before, .hero-concours::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,15,26,0.75) 0%, rgba(10,15,26,0.5) 50%, rgba(10,15,26,0.7) 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Secondary animated gradient overlay for more depth */
.hero::after, .hero2::after, .hero3::after, .hero-concours::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 123, 0, 0.06) 50%, transparent 100%);
    background-size: 300% 300%;
    animation: gradientShift 18s ease infinite reverse;
    pointer-events: none;
}

.overlay, .overlay2, .overlay3, .overlay-concours {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: clamp(30px, 5vw, 60px);
    border-radius: 18px;
    background: rgba(10, 15, 26, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 1.2s ease;
    color: var(--white);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.overlay h1, .overlay2 h1, .overlay3 h1, .overlay-concours h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--white) 0%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay p, .overlay2 p, .overlay3 p, .overlay-concours p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    opacity: 0.92;
    max-width: 600px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===============================
   SECTION FEATURES (accueil)
================================ */
.features {
    padding: clamp(50px, 8vw, 80px) 5%;
    background: var(--white);
    color: var(--text-dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 123, 0, 0.2), transparent);
}

.features h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.description {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.video {
    flex: 1 1 450px;
    min-width: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

.video:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 123, 0, 0.05);
}

.video video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

.text {
    flex: 1 1 350px;
}

.text h2 {
    text-align: left;
    margin-bottom: 16px;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--text-dark);
}

.text p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.75;
    text-align: left;
}

/* ===============================
   STATS / COUNTERS SECTION (accueil)
================================ */
.stats-section {
    padding: clamp(60px, 10vw, 100px) 5%;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 123, 0, 0.15), transparent);
}

.stats-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--blue-dark) 50%, var(--dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 18s ease infinite;
    z-index: 0;
}

.stats-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 123, 0, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(255, 123, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.stats-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    flex: 1 1 160px;
    max-width: 200px;
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(255, 123, 0, 0.2));
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number .stat-suffix {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Animation pour le compteur */
.stat-number.counting {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ===============================
   SECTION FILIÈRES (accueil)
================================ */
.filieres {
    padding: clamp(50px, 8vw, 80px) 5%;
    background: linear-gradient(180deg, var(--grey-lighter) 0%, var(--grey-light) 100%);
    color: var(--text-dark);
    position: relative;
}

.filieres h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.filieres > p {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-mid);
    max-width: 780px;
    margin: 0 auto 48px;
}

.filieres-container {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.filiere-card {
    flex: 1 1 320px;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.filiere-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.filiere-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 123, 0, 0.1);
}

.filiere-card:hover::before {
    transform: scaleX(1);
}

.filiere-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filiere-card h3::before {
    content: '▸';
    color: var(--orange);
    font-size: 0.9rem;
}

.filiere-card ul {
    list-style: none;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

.filiere-card ul li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.filiere-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-light);
    opacity: 0.5;
}

.filiere-card button {
    margin-top: auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.filiere-card button a {
    color: var(--white);
}

.filiere-card button:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.filiere-card button:active {
    transform: translateY(-1px);
}

/* ===============================
   SECTION FILIÈRES (sous-pages)
================================ */
.filieres .container {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.filiere {
    flex: 1 1 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}

.filiere::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--orange), var(--blue)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.filiere:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.filiere:hover::after {
    opacity: 0.4;
}

.filiere .img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.filiere .img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,15,26,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.filiere:hover .img-wrap::after {
    opacity: 1;
}

.filiere img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.filiere:hover img {
    transform: scale(1.08);
}

.filiere h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 18px 18px 6px;
}

.filiere p {
    font-size: 0.88rem;
    color: var(--text-mid);
    padding: 0 18px 14px;
    line-height: 1.6;
    flex: 1;
}

.btn-savoir-plus {
    margin: 0 18px 20px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.btn-savoir-plus:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-savoir-plus:active {
    transform: translateY(-1px);
}

/* ── Blur overlay (derrière le panneau) ── */
.blur-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 1000;
}

.blur-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Side panel "more info" ──
   IMPORTANT : ce panneau est rendu dans le <body> (via JS)
   et NON à l'intérieur de .filiere, sinon overflow:hidden le masque.
   z-index > blur-overlay pour recevoir les clics.
*/
.more {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 92vw);
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
    padding: 50px 36px 36px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
    z-index: 1002;
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    overflow-y: auto;
    pointer-events: auto;
    will-change: transform, opacity;
}

.more.show {
    transform: translateX(0);
}

.more .close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-mid);
    background: none;
    border: none;
    line-height: 1;
    padding: 4px;
    transition: color var(--transition), transform 0.2s ease;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.more .close-btn:hover {
    color: var(--orange);
    transform: rotate(90deg);
}

.more .swipe-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-light);
    opacity: 0.5;
    white-space: nowrap;
    animation: pulse-hint 2s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateX(0); }
    50%      { opacity: 0.7; transform: translateX(-50%) translateX(-8px); }
}

.more p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-dark);
    white-space: pre-wrap;
}

.more img,
.more video {
    width: 100%;
    border-radius: var(--radius);
    margin: 16px 0;
    object-fit: cover;
    max-height: 240px;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.more h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    padding-right: 40px;
}

/* ===============================
   SECTION CONCOURS
================================ */
.concours-hero-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.concours-intro {
    padding: clamp(50px, 7vw, 80px) 5%;
    background: var(--white);
    text-align: center;
}

.concours-intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.concours-intro p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-mid);
    max-width: 760px;
    margin: 0 auto 40px;
}

/* Info cards */
.concours-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.concours-card {
    flex: 1 1 220px;
    max-width: 240px;
    background: var(--grey-light);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform var(--transition);
}

.concours-card:hover {
    transform: translateY(-5px);
}

.concours-card .icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.concours-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.concours-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    margin: 0;
}

/* Conditions section */
.concours-conditions {
    padding: clamp(50px, 7vw, 80px) 5%;
    background: var(--grey-light);
}

.concours-conditions h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.conditions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.condition-block {
    flex: 1 1 300px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border-left: 4px solid var(--orange);
}

.condition-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.condition-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.condition-block ul li {
    font-size: 0.9rem;
    color: var(--text-mid);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.condition-block ul li::before {
    content: "✓";
    color: var(--orange);
    font-weight: 700;
    flex-shrink: 0;
}

/* Gallery section */
.concours-gallery {
    padding: clamp(50px, 7vw, 80px) 5%;
    background: var(--white);
}

.concours-gallery h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.concours-gallery .subtitle {
    text-align: center;
    color: var(--text-mid);
    font-size: 0.98rem;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--grey-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(10,15,26,0.85));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* Placeholder image */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf2, #d0d8e8);
    color: var(--text-light);
    gap: 10px;
    font-size: 0.85rem;
}

.gallery-placeholder .placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Videos section */
.concours-videos {
    padding: clamp(50px, 7vw, 80px) 5%;
    background: var(--dark);
}

.concours-videos h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    color: var(--white);
}

.concours-videos .subtitle {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.98rem;
    margin-bottom: 40px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.video-card video {
    width: 100%;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

.video-card .video-label {
    padding: 14px 16px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.video-card .video-desc {
    padding: 0 16px 16px;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
}

/* CTA section */
.concours-cta {
    padding: clamp(60px, 8vw, 100px) 5%;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #0a2a5a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    text-align: center;
    color: var(--white);
}

.concours-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.concours-cta p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 36px;
}

.btn-cta {
    display: inline-block;
    padding: 16px 42px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: 0 6px 24px rgba(255,123,0,0.4);
    position: relative;
    overflow: hidden;
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255,123,0,0.5);
}

.btn-cta:active {
    transform: translateY(-1px);
}

/* Lightbox amélioré avec navigation */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
    max-width: 600px;
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2.4rem;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition), transform 0.2s ease;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Boutons de navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    opacity: 0;
    z-index: 10;
    user-select: none;
}

.lightbox:hover .lightbox-nav {
    opacity: 1;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===============================
   CONTACT / LOCALISATION
================================ */
.contact-location {
    background: #f7f9fc;
    padding: clamp(50px, 8vw, 80px) 5%;
}
.contact-location:nth-of-type(even) {
    background: #ffffff;
}
.contact-location .container {
    max-width: 1100px;
    margin: 0 auto;
}
.contact-location h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
    color: var(--dark);
}
.contact-location p,
.contact-location ul {
    max-width: 860px;
    margin: 0 auto 16px;
    color: var(--text-dark);
    line-height: 1.8;
}
.contact-location ul {
    list-style: disc inside;
}
.contact-location ul li {
    margin-bottom: 10px;
}

/* ===============================
   FOOTER
================================ */
footer {
    background: linear-gradient(180deg, var(--dark) 0%, #060a12 100%);
    color: rgba(255,255,255,0.7);
    padding: 50px 5% 40px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 123, 0, 0.4), transparent);
}

footer .footer-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background-image: url("../images/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

footer strong {
    color: var(--orange);
}

footer p {
    max-width: 100%;
    margin: 4px auto;
}

footer .footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0.45;
    font-size: 0.8rem;
}

/* ===============================
   AUTH / CONNEXION PAGE
================================ */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f1a 0%, #0f2d5a 50%, #0a0f1a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
    animation: fadeInUp 0.8s ease;
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background-image: url("../images/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 16px;
    animation: floatLogo 4s ease-in-out infinite;
}

.auth-brand h1 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.auth-tabs {
    display: flex;
    background: var(--grey-light);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,123,0,0.4);
}

.btn-auth:active { transform: translateY(0); }

.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 18px;
    display: none;
}

.auth-alert.error {
    background: #fde8e8;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.auth-alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.auth-divider {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.back-site {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.83rem;
    transition: color 0.2s;
}

.back-site:hover { color: rgba(255,255,255,0.9); }

.password-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 8px;
    background: #e0f2fe;
    color: #0369a1;
}

/* ===============================
   ADMIN PAGE
================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f0f2f7;
    padding-top: 0;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
}

.admin-sidebar .sidebar-logo {
    padding: 0 24px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.admin-sidebar .sidebar-logo h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange);
}

.admin-sidebar .sidebar-logo p {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,123,0,0.12);
    color: var(--orange);
}

.sidebar-nav a .nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 36px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-topbar h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-topbar a {
    padding: 10px 22px;
    background: var(--orange);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--transition);
}

.admin-topbar a:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

/* Admin security warning banner */
.admin-warning {
    background: linear-gradient(135deg, #2d1a1a, #3d2222);
    border: 1px solid rgba(255,100,100,0.2);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.85rem;
    color: #fca5a5;
}

.admin-warning .warn-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.admin-warning .warn-text {
    flex: 1;
}

.admin-warning .warn-text strong {
    color: #f87171;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.admin-warning .warn-text p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
}

.admin-warning .warn-text code {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Admin cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border-left: 4px solid var(--orange);
}

.stat-card .stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Admin sections */
.admin-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 28px;
    display: none;
}

.admin-section.visible {
    display: block;
}

.admin-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--grey-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form styles */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-row label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
}

.form-row input,
.form-row textarea,
.form-row select {
    padding: 11px 16px;
    border: 1.5px solid #dde3ef;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 0.92rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,123,0,0.12);
}

.form-row textarea {
    min-height: 110px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0 24px;
}

.btn-submit {
    padding: 12px 30px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 11px 26px;
    background: transparent;
    color: var(--text-mid);
    border: 1.5px solid #dde3ef;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Media table */
.media-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.media-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--grey-light);
    color: var(--text-mid);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f7;
    color: var(--text-dark);
    vertical-align: middle;
}

.media-table tr:last-child td {
    border-bottom: none;
}

.media-table .thumb {
    width: 60px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-img  { background: #e8f4fd; color: #0066cc; }
.badge-vid  { background: #fef3e8; color: #cc6200; }
.badge-txt  { background: #e8fdf0; color: #006622; }

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: "Poppins", sans-serif;
    transition: opacity var(--transition);
}

.btn-edit   { background: #e8f0fe; color: #2563eb; }
.btn-delete { background: #fde8e8; color: #cc2222; }

.btn-edit:hover,
.btn-delete:hover { opacity: 0.75; }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a2a1a;
    color: #7ddb7d;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    pointer-events: none;
    max-width: 90vw;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast.error {
    background: #2a1a1a;
    color: #db7d7d;
}

.toast.warning {
    background: #2a2a1a;
    color: #dbdb7d;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    color: var(--text-light);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform 0.2s ease;
    font-size: 0.9rem;
}

.upload-zone:hover {
    border-color: var(--orange);
    background: rgba(255,123,0,0.03);
    transform: scale(1.01);
}

.upload-zone:active {
    transform: scale(0.98);
}

.upload-zone .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .nav-links { gap: 20px; font-size: 0.9rem; }
}

@media (max-width: 768px) {.menu-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: rgba(10,15,26,0.97);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px 5%;
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links > li > a { padding: 12px 0; display: block; }

    .dropdown-menu {
        position: static;
        background: rgba(255,255,255,0.06);
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 16px;
    }

    .description {
        flex-direction: column;
    }

    .video video {
        height: 220px;
    }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: relative; }
    .admin-main { margin-left: 0; padding: 20px; }

    .conditions-grid { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
    .navbar { padding: 0 4%; }
    .concours-cards { flex-direction: column; align-items: center; }
}
