/* =========================================================
   TERANGASKILLS — CSS CLEAN & STABLE
   Remplace entièrement src/styles.css par ce fichier.
========================================================= */

@font-face {
  font-family: "Mayor";
  src: url("/fonts/Mayor.woff2") format("woff2"),
       url("/fonts/Mayor.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ts-blue: #0789a6;
  --ts-blue-dark: #06466d;
  --ts-yellow: #f2b83b;
  --ts-orange: #e97b3f;
  --ts-red: #df352e;
  --ts-green: #0f7f45;
  --ts-purple: #4b2d73;
  --ts-dark: #0f172a;
  --ts-text: #1f2937;
  --ts-muted: #64748b;
  --ts-light: #f8fafc;
  --ts-white: #ffffff;
  --primary-blue: #0789a6;
  --primary-blue-hover: #06466d;
  --ts-gradient-main: linear-gradient(135deg, #0789a6, #06466d);
  --ts-gradient-warm: linear-gradient(135deg, #e97b3f, #f2b83b);
  --ts-gradient-brand: linear-gradient(135deg, #4b2d73, #0789a6, #0f7f45);
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --fs-hero: clamp(28px, 4vw, 48px);
  --fs-h1: clamp(30px, 4vw, 52px);
  --fs-h2: clamp(26px, 3vw, 42px);
  --fs-h3: clamp(20px, 2vw, 24px);
  --fs-body: 16px;
  --fs-small: 13px;
  --lh-title: 1.08;
  --lh-body: 1.75;
}

html, body, #root {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ts-text);
  background:
    radial-gradient(circle at top right, rgba(75,45,115,0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(7,137,166,0.10), transparent 32%),
    linear-gradient(to bottom, #ffffff 0%, #f8fafc 60%, rgba(7,137,166,0.12) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
img, video { max-width: 100%; display: block; }
a { color: var(--ts-blue); text-decoration: none; transition: 0.25s ease; }
a:hover { color: var(--ts-purple); }
main, section, .site-wrapper { width: 100%; max-width: 100%; }
.container, .home-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3, h4, h5, h6,
.section-title, .page-title, .home-section-title,
.hero-text-slide h1, .premium-hero-content h1,
.brand-signature-title, .home-countdown-title, .stat-value {
  font-family: var(--font-heading);
  line-height: var(--lh-title);
  letter-spacing: -0.02em;
}

p, li, span, a, button, input, select, textarea { font-family: var(--font-body); }

.hero-text-slide h1, .premium-hero-content h1, .hero-title {
  font-size: var(--fs-hero) !important;
  line-height: 1.08 !important;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-title, .section-title { font-size: var(--fs-h1) !important; line-height: 1.08; }
.home-section-title, .home-countdown-title, .brand-signature-title { font-size: var(--fs-h2) !important; }
h3, .home-value-card h3, .home-access-card h3, .card h3 { font-size: var(--fs-h3); }
p, .section-text, .home-section-text, .home-access-card p, .home-value-card p, .home-countdown-text { font-size: var(--fs-body); line-height: var(--lh-body); }
.nav-link, .badge, .home-section-tag, .section-tag, .top-contact-info, .top-languages span { font-size: var(--fs-small); }

/* =========================================================
   HEADER
========================================================= */

.ts-header-lines { width: 100%; position: relative; z-index: 2000; }
.ts-line-colors {
  width: 100%; height: 5px;
  background: linear-gradient(90deg,
    #0789a6 0%, #0789a6 13%, #4b2d73 13%, #4b2d73 25%,
    #0f7f45 25%, #0f7f45 38%, #df352e 38%, #df352e 51%,
    #e97b3f 51%, #e97b3f 64%, #f2b83b 64%, #f2b83b 77%,
    #0789a6 77%, #0789a6 100%);
}
.ts-line-blue { width: 100%; height: 8px; background: var(--ts-blue); }

.top-contact-bar {
  width: 100%; min-height: 38px;
  background: linear-gradient(90deg, var(--ts-red), var(--ts-orange));
  color: #fff; display: flex; justify-content: space-between; align-items: center;
  padding: 0 70px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
}
.top-contact-info { display: flex; align-items: center; gap: 24px; color: rgba(255,255,255,0.96); }
.top-contact-info span, .top-languages span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.top-languages { display: flex; align-items: center; height: 38px; }
.top-languages span { height: 38px; padding: 0 18px; font-weight: 800; color: rgba(255,255,255,0.96); }

.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 12px 36px rgba(15,23,42,0.06);
}
.header-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 56px minmax(300px, 1fr) auto;
  align-items: center;
  gap: 22px;
}
.header-brand-zone { display: flex; align-items: center; gap: 24px; transform: translateX(-20px); min-width: 0; }
.header-flag { width: 78px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(15,23,42,0.12); flex: 0 0 auto; }
.brand-logo-only { display: inline-flex; align-items: center; text-decoration: none; padding: 0; border-radius: 18px; flex: 0 0 auto; transition: transform 0.25s ease; }
.brand-logo-only:hover { transform: translateY(-1px); }
.brand-full-logo { height: 58px; width: auto; object-fit: contain; display: block; }

.header-slogan {
  font-family: "Mayor", sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  color: #0386a9 !important;
  text-transform: none !important;
}

.nav { justify-self: end; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(248,250,252,0.96); border: 1px solid rgba(15,23,42,0.06); box-shadow: 0 14px 36px rgba(15,23,42,0.06); }
.nav-link { text-decoration: none !important; color: #334155; font-size: 14px; font-weight: 800; padding: 11px 16px; border-radius: 999px; transition: all 0.25s ease; white-space: nowrap; }
.nav-link:hover { color: var(--ts-blue); background: rgba(7,137,166,0.08); }
.nav-link.active { color: #fff !important; background: var(--ts-gradient-main) !important; box-shadow: 0 12px 28px rgba(7,137,166,0.24); }

.menu-btn, .premium-menu-btn {
  width: 50px !important; height: 50px !important; border-radius: 16px !important;
  border: 1px solid rgba(15,23,42,0.08) !important; background: rgba(255,255,255,0.96) !important;
  display: inline-flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  gap: 5px !important; cursor: pointer !important; box-shadow: 0 14px 34px rgba(15,23,42,0.12) !important;
  transition: all 0.3s ease !important; color: var(--ts-dark) !important;
}
.menu-btn span, .premium-menu-btn span { width: 22px !important; height: 3px !important; border-radius: 999px !important; background: #0f172a !important; display: block !important; opacity: 1 !important; visibility: visible !important; }
.menu-btn svg, .premium-menu-btn svg { display: inline-block !important; width: 20px !important; height: 20px !important; color: #0f172a !important; fill: currentColor !important; }
.menu-btn:hover, .premium-menu-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 20px 46px rgba(15,23,42,0.18) !important; }
.menu-btn:hover span, .premium-menu-btn:hover span { background: var(--ts-blue) !important; }

/* =========================================================
   BOUTONS
========================================================= */

.btn, a.btn, button:not(.menu-btn):not(.premium-menu-btn), .home-gradient-btn, .home-primary-cta, .home-secondary-cta, .form-submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 14px;
  text-decoration: none !important; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  visibility: visible; opacity: 1;
}
.btn:hover, a.btn:hover, button:not(.menu-btn):not(.premium-menu-btn):hover, .home-gradient-btn:hover, .home-primary-cta:hover, .home-secondary-cta:hover, .form-submit-btn:hover { transform: translateY(-2px); }
.btn-primary, .home-gradient-btn, .home-primary-cta, .form-submit-btn { background: var(--ts-gradient-main) !important; color: #fff !important; box-shadow: 0 12px 28px rgba(7,137,166,0.28); }
.btn-light, .home-secondary-cta { background: rgba(255,255,255,0.94) !important; color: var(--ts-purple) !important; border: 1px solid rgba(255,255,255,0.65); }
button svg, .btn svg, a.btn svg, .nav-link svg, .home-gradient-btn svg, .home-primary-cta svg, .home-secondary-cta svg { display: inline-block !important; visibility: visible !important; opacity: 1 !important; width: 1em !important; height: 1em !important; min-width: 1em !important; color: currentColor !important; fill: currentColor !important; stroke: currentColor !important; }

/* =========================================================
   HERO
========================================================= */

.hero, .premium-hero { position: relative; min-height: 620px; display: flex; align-items: center; background-size: cover; background-position: center; overflow: hidden; }
.hero::before, .premium-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,15,30,0.76) 0%, rgba(8,15,30,0.48) 42%, rgba(8,15,30,0.22) 100%); z-index: 1; }
.hero-gradient-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,20,0.16), rgba(10,10,20,0.74)); z-index: 2; pointer-events: none; }
.hero-cinematic-light { position: absolute; top: -40%; left: -20%; width: 70%; height: 200%; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.04) 35%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.04) 65%, transparent 100%); transform: rotate(12deg); animation: heroCinematicSweep 8s ease-in-out infinite; z-index: 3; pointer-events: none; }
.hero-content, .premium-hero-content { position: relative; z-index: 4; max-width: 680px; color: #fff; padding: 70px 0; }
.hero-content h1, .premium-hero-content h1, .hero-text-slide h1, .hero-title { margin: 0; font-size: clamp(28px, 4vw, 48px) !important; line-height: 1.08 !important; font-weight: 900; max-width: 760px; text-shadow: 0 12px 32px rgba(0,0,0,0.45); }
.hero-content p, .premium-hero-content p, .hero-text-slide p { margin-top: 18px; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.7; color: rgba(255,255,255,0.92); max-width: 560px; }
.hero-text-slide { animation: heroTextFadeStable 0.85s ease both; }
.badge { display: inline-block; padding: 9px 16px; margin-bottom: 18px; border-radius: 999px; background: rgba(255,255,255,0.16); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-actions { display: flex !important; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dots { display: flex; gap: 10px; margin-top: 24px; }
.dot { width: 12px; height: 12px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.36); cursor: pointer; }
.dot.active { background: #fff; }

/* =========================================================
   SECTIONS / CARTES
========================================================= */

.section, .alt-section, .stats-section { position: relative; z-index: 1; padding: 78px 0; }
.section-tag, .home-section-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 900; color: var(--ts-blue); margin-bottom: 10px; }
.home-section-tag { color: #f97316; }
.section-title, .page-title, .home-section-title { margin: 0; font-weight: 900; color: var(--ts-dark); }
.section-text, .home-section-text { margin-top: 16px; max-width: 820px; color: var(--ts-muted); }
.card, .stat-card, .infoCard, .programmeCard, .form-premium, .info-card, .metier-premium, .home-value-card, .home-step-card, .home-access-card { background: rgba(255,255,255,0.92); border: 1px solid rgba(15,23,42,0.06); border-radius: 22px; box-shadow: 0 14px 38px rgba(15,23,42,0.07); }
.card { padding: 24px; }
.card:hover, .stat-card:hover, .home-value-card:hover, .home-step-card:hover, .home-access-card:hover { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(15,23,42,0.12); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { text-align: center; padding: 28px 20px; }
.stat-value { font-size: 34px; font-weight: 900; color: var(--ts-purple); }
.stat-label { margin-top: 8px; color: var(--ts-muted); font-weight: 700; }

/* =========================================================
   HOME
========================================================= */
.home-countdown-section { position: relative; overflow: hidden; padding: 60px 20px; margin-top: 32px; color: #fff; isolation: isolate; }
.home-countdown-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(4px) brightness(0.72); transform: scale(1.05); z-index: -4; }
.home-countdown-overlay { position: absolute; inset: 0; background: rgba(10,0,30,0.55); z-index: -3; }
.home-cinematic-light { position: absolute; top: -35%; left: -20%; width: 60%; height: 170%; background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.03) 35%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.03) 65%, transparent 100%); transform: rotate(10deg); animation: cinematicLight 7s ease-in-out infinite; z-index: -1; pointer-events: none; }
.home-countdown-content { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; text-align: center; }
.home-badge-light, .home-badge-dark { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.home-badge-light { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(10px); }
.home-countdown-title { margin: 0; font-size: clamp(26px, 4vw, 48px); font-weight: 900; text-transform: uppercase; color: #fff; text-shadow: 0 6px 20px rgba(0,0,0,0.45); }
.home-countdown-date { margin: 10px 0 28px; font-size: clamp(13px, 1.8vw, 18px); color: rgba(255,255,255,0.88); }
.home-countdown-grid { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.home-countdown-card { min-width: 90px; padding: 16px 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06)); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.home-countdown-number { font-size: clamp(24px, 4vw, 40px); font-weight: 900; margin-bottom: 6px; }
.home-countdown-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.8); font-weight: 600; }

.home-story-section { position: relative; padding: 110px 0; overflow: hidden; background: radial-gradient(circle at 8% 12%, rgba(75,45,115,0.13), transparent 30%), radial-gradient(circle at 88% 18%, rgba(233,123,63,0.12), transparent 28%), linear-gradient(135deg, #fff 0%, #f8fafc 42%, rgba(7,137,166,0.12) 100%); }
.home-story-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.home-story-grid > div:first-child, .home-section-text { padding: 34px; border-radius: 34px; background: rgba(255,255,255,0.72); border: 1px solid rgba(15,23,42,0.07); box-shadow: 0 22px 60px rgba(15,23,42,0.07); backdrop-filter: blur(12px); }
.home-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.home-value-card, .home-step-card { position: relative; padding: 32px; border-radius: 28px; overflow: hidden; backdrop-filter: blur(10px); }
.home-value-card h3, .home-step-card h3 { margin: 0 0 12px; color: #1d4f91; font-weight: 900; }
.home-value-card p, .home-step-card p, .home-center p { margin: 0; color: #4b5563; }
.home-final-cta, .home-steps-section { padding: 90px 0; }
.home-cta-box { padding: 46px; border-radius: 32px; background: linear-gradient(135deg, #0b1020, #1d4f91); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; box-shadow: 0 24px 60px rgba(15,23,42,0.18); }
.home-cta-box h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; color: #fff; }
.home-cta-box p { margin: 16px 0 0; color: rgba(255,255,255,0.82); max-width: 760px; }
.home-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ACCÈS RAPIDE */
.home-access-section { padding: 90px 0; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.home-access-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 34px; }
.home-access-card { display: flex; flex-direction: column; min-height: 260px; padding: 28px; border-radius: 28px; text-decoration: none !important; color: var(--ts-dark) !important; overflow: hidden; }
.home-access-icon { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 24px; box-shadow: 0 16px 34px rgba(15,23,42,0.16); }
.home-access-card h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.15; font-weight: 900; color: var(--ts-dark); text-decoration: none !important; }
.home-access-card p { margin: 0; font-size: 15px; line-height: 1.75; color: #475569; }
.home-access-link { margin-top: auto; padding-top: 24px; display: inline-flex; color: var(--ts-blue); font-size: 15px; font-weight: 900; text-decoration: none !important; }

/* SIGNATURE */
.brand-signature-section { position: relative; padding: 110px 20px; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.22), transparent 26%), linear-gradient(135deg, #06466d 0%, #0789a6 55%, #2587ac 100%); text-align: center; color: #fff; overflow: hidden; }
.brand-signature-section::before { content: ""; position: absolute; top: -45%; left: -30%; width: 65%; height: 190%; background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.05) 38%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.05) 62%, transparent 100%); transform: rotate(12deg); animation: signatureLightSweep 7s ease-in-out infinite; pointer-events: none; }
.brand-signature-inner { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; }
.brand-signature-kicker { display: inline-flex; padding: 10px 22px; border-radius: 999px; background: var(--ts-yellow) !important; border: 1px solid rgba(255,255,255,0.24); color: var(--ts-blue-dark) !important; font-size: 12px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 22px; box-shadow: 0 14px 34px rgba(242,184,59,0.28); }
.brand-signature-title { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1; font-weight: 900; color: #fff; text-shadow: 0 18px 45px rgba(0,0,0,0.28); }
.brand-signature-slogan { margin: 22px 0 0; font-family: "Mayor", Arial, Helvetica, sans-serif; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.15; font-weight: 900; color: #fff; letter-spacing: 0.08em; text-transform: lowercase; text-shadow: 0 0 14px rgba(255,255,255,0.38), 0 0 34px rgba(242,184,59,0.32); animation: sloganGlow 3.2s ease-in-out infinite; }
.brand-signature-line { width: min(520px, 78%); height: 4px; margin: 36px auto 0; border-radius: 999px; background: linear-gradient(90deg, transparent, #fff, #f2b83b, #fff, transparent); background-size: 220% auto; animation: brandLineMove 4.5s linear infinite; }
.signature-gallery-premium { position: relative; margin: 58px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1100px; }
.signature-photo-card { position: relative; height: 260px; overflow: hidden; border-radius: 26px; transform: skewY(-5deg); box-shadow: 0 28px 70px rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.22); isolation: isolate; animation: signatureFloat 6s ease-in-out infinite; }
.signature-photo-card img { width: 100%; height: 115%; object-fit: cover; transform: skewY(5deg) scale(1.15); transition: transform 0.55s ease, filter 0.55s ease; }
.signature-photo-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 35%), linear-gradient(0deg, rgba(0,0,0,0.48), rgba(0,0,0,0.06)); z-index: 2; pointer-events: none; }
.signature-photo-card:hover { transform: skewY(-5deg) translateY(-12px) scale(1.035); }
.signature-photo-card:hover img { transform: skewY(5deg) scale(1.25); filter: saturate(1.08) contrast(1.04); }
.card-two { margin-top: 28px; animation-delay: 0.6s; }
.card-three { margin-top: -10px; animation-delay: 1.1s; }
.card-four { margin-top: 22px; animation-delay: 1.6s; }

/* FORMULAIRES / PARTENAIRES / FOOTER */
.form-premium-wrapper { margin-top: 28px; }
.form-premium { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1px solid #d7dee7; border-radius: 14px; padding: 14px 16px; font-size: 14px; font-family: inherit; color: var(--ts-text); background: #fff; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--ts-blue); box-shadow: 0 0 0 4px rgba(7,137,166,0.12); }
.full-width { grid-column: 1 / -1; }
.form-success, .form-error { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.form-success { background: rgba(15,127,69,0.1); color: var(--ts-green); }
.form-error { background: rgba(220,38,38,0.1); color: #b91c1c; }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }

.partners-section-premium { position: relative; padding: 78px 0; background: transparent; overflow: hidden; }
.partners-slider { position: relative; width: 100%; overflow: hidden; margin-top: 28px; padding: 10px 0; }
.partners-track { display: flex; align-items: center; gap: 18px; width: max-content; animation: partners-scroll 35s linear infinite; }
.partners-slider:hover .partners-track { animation-play-state: paused; }
.footer { background: #06466d; color: #fff; padding: 42px 20px 22px; }
.footer-content { display: flex; flex-direction: column; align-items: center; }
.footer-copy { margin: 18px 0 0; font-size: 15px; font-weight: 700; }
.footer-dev { margin: 10px 0 0; font-size: 14px; color: rgba(255,255,255,0.72); }
.social-links { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.12); }

/* LOADER */
.page-loader { position: fixed; inset: 0; z-index: 99999; background: radial-gradient(circle at top, rgba(75,45,115,0.55), transparent 35%), linear-gradient(135deg, #050510, #0b1020 45%, #1d4f91); display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; opacity: 1; transition: opacity 0.6s ease, visibility 0.6s ease; }
.page-loader-leaving { opacity: 0; visibility: hidden; }
.page-loader-content { position: relative; z-index: 2; text-align: center; padding: 24px; animation: loaderContentUp 0.9s ease both; }
.page-loader-mark { width: 86px; height: 86px; margin: 0 auto 20px; border-radius: 24px; background: var(--ts-gradient-warm); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: #fff; box-shadow: 0 18px 50px rgba(249,115,22,0.35); }
.page-loader-content h1 { margin: 0; font-size: clamp(34px, 6vw, 68px); line-height: 1; color: #fff; font-weight: 900; }
.page-loader-content p { margin: 14px 0 0; color: rgba(255,255,255,0.78); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ANIMATIONS */
@keyframes sloganSoftGlow { 0%,100% { opacity: 0.9; text-shadow: 0 0 0 rgba(7,137,166,0); transform: translateY(0); } 50% { opacity: 1; text-shadow: 0 6px 18px rgba(7,137,166,0.22); transform: translateY(-1px); } }
@keyframes heroTextFadeStable { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes partners-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes cinematicLight { 0% { transform: translateX(-35%) rotate(10deg); opacity: 0; } 20% { opacity: 0.55; } 50% { opacity: 0.35; } 80% { opacity: 0.55; } 100% { transform: translateX(220%) rotate(10deg); opacity: 0; } }
@keyframes heroCinematicSweep { 0% { transform: translateX(-50%) rotate(12deg); opacity: 0; } 25% { opacity: 0.6; } 60% { opacity: 0.35; } 100% { transform: translateX(220%) rotate(12deg); opacity: 0; } }
@keyframes signatureLightSweep { 0% { transform: translateX(-40%) rotate(12deg); opacity: 0; } 25% { opacity: 0.7; } 100% { transform: translateX(230%) rotate(12deg); opacity: 0; } }
@keyframes sloganGlow { 0%,100% { opacity: 0.94; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); } 50% { opacity: 1; filter: drop-shadow(0 0 16px rgba(255,255,255,0.32)); } }
@keyframes brandLineMove { 0% { background-position: 220% center; } 100% { background-position: -220% center; } }
@keyframes signatureFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes loaderContentUp { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav { display: none !important; }
  .header-row { grid-template-columns: 56px 1fr; }
  .header-brand-zone { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-access-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .home-story-grid, .home-value-grid, .home-cta-box, .form-grid, .signature-gallery-premium { grid-template-columns: 1fr; }
  .signature-gallery-premium { max-width: 620px; }
  .signature-photo-card, .card-two, .card-three, .card-four { height: 220px; margin-top: 0; transform: skewY(-3deg); }
  .signature-photo-card img { transform: skewY(3deg) scale(1.12); }
  .home-cta-actions { justify-content: flex-start; }
}
@media (max-width: 768px) {
  :root { --fs-hero: clamp(26px, 8vw, 40px); --fs-h1: clamp(28px, 7vw, 38px); --fs-h2: clamp(24px, 6vw, 32px); --fs-h3: 20px; --fs-body: 15px; --fs-small: 12px; }
  .container, .home-container { width: calc(100% - 24px) !important; max-width: calc(100% - 24px) !important; }
  .top-contact-bar { display: none !important; }
  .header-row { min-height: 68px; gap: 12px; grid-template-columns: 50px 1fr; }
  .header-flag { width: 46px; height: 32px; }
  .brand-full-logo { height: 42px; }
  .header-slogan { display: none; }
  .hero, .premium-hero { min-height: 72vh; padding: 80px 0 45px; }
  .hero-content, .premium-hero-content { max-width: 100%; padding: 40px 0; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn, .btn, .home-primary-cta, .home-secondary-cta, .home-gradient-btn { width: 100%; }
  .grid-2, .grid-3, .grid-4, .stats-grid, .home-value-grid, .home-access-grid, .home-steps-grid { grid-template-columns: 1fr !important; }
  .section, .alt-section, .stats-section, .home-access-section, .home-story-section, .home-steps-section, .home-final-cta { padding: 58px 0; }
  .home-countdown-section { padding: 48px 16px; }
  .home-countdown-card { min-width: 74px; padding: 13px 10px; }
  .brand-signature-section { padding: 76px 18px; }
  .brand-signature-slogan { font-size: 24px; letter-spacing: 0.04em; }
  .premium-menu-btn, .menu-btn { width: 46px !important; height: 46px !important; }
}
@media (max-width: 560px) {
  .header-flag { display: none; }
  .brand-full-logo { height: 38px; }
  .home-access-card { min-height: auto; padding: 24px; }
  .stat-value { font-size: 28px; }
  .signature-gallery-premium { grid-template-columns: 1fr; gap: 16px; }
}

/* TOP BAR — STYLE WORLDSKILLS TERANGASKILLS */

.top-contact-bar {
  width: 100%;
  min-height: 42px;
  background: #4b2d73 !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 70px;
  font-size: 14px;
  font-weight: 700;
}

.top-languages {
  display: flex;
  align-items: center;
  height: 42px;
}

.top-languages span {
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-weight: 800;
}

.top-languages .active-lang {
  background: #f2b83b;
  color: #4b2d73;
}

.top-contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
}

.top-contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .top-contact-bar {
    padding: 0 18px;
    font-size: 12px;
  }

  .top-contact-info {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .top-contact-bar {
    display: none;
  }
}

/* =========================================================
   PARTENAIRES — LOGOS GRAND FORMAT PREMIUM
   Corrige le conteneur + le slide + l'image
========================================================= */

.partners-section-premium,
.partners-slider,
.partners,
.partner-slider {
  width: 100% !important;
  overflow: hidden !important;
}

.partners-section-premium {
  padding: 86px 0 !important;
}

.partners-slider {
  margin-top: 34px !important;
  padding: 22px 0 !important;
}

.partners-track {
  display: flex !important;
  align-items: center !important;
  gap: 34px !important;
  width: max-content !important;
  animation: partners-scroll 35s linear infinite;
}

.partner-logo,
.partner-logo-premium,
.partners-track > *,
.swiper-slide {
  min-width: 190px !important;
  width: 190px !important;
  height: 118px !important;
  min-height: 118px !important;
  max-height: none !important;
  padding: 14px 22px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 190px !important;
  overflow: visible !important;
}

.partner-logo img,
.partner-logo-premium img,
.partners img,
.partners-track img,
.partner-slider img,
.swiper-slide img {
  width: 100% !important;
  height: 86px !important;
  max-width: 160px !important;
  max-height: 86px !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
  filter: grayscale(0%) !important;
  transform: none !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
}

.partner-logo:hover,
.partner-logo-premium:hover,
.partners-track > *:hover {
  transform: translateY(-5px) scale(1.03) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14) !important;
}

.partner-logo:hover img,
.partner-logo-premium:hover img,
.partners-track img:hover,
.partner-slider img:hover,
.swiper-slide img:hover {
  transform: scale(1.08) !important;
  filter: grayscale(0%) !important;
}

@media (min-width: 1200px) {
  .partner-logo,
  .partner-logo-premium,
  .partners-track > *,
  .swiper-slide {
    min-width: 210px !important;
    width: 210px !important;
    height: 128px !important;
    flex-basis: 210px !important;
  }

  .partner-logo img,
  .partner-logo-premium img,
  .partners img,
  .partners-track img,
  .partner-slider img,
  .swiper-slide img {
    height: 94px !important;
    max-height: 94px !important;
    max-width: 178px !important;
  }
}

@media (max-width: 768px) {
  .partners-track {
    gap: 18px !important;
  }

  .partner-logo,
  .partner-logo-premium,
  .partners-track > *,
  .swiper-slide {
    min-width: 150px !important;
    width: 150px !important;
    height: 94px !important;
    flex-basis: 150px !important;
    padding: 10px 14px !important;
  }

  .partner-logo img,
  .partner-logo-premium img,
  .partners img,
  .partners-track img,
  .partner-slider img,
  .swiper-slide img {
    height: 66px !important;
    max-height: 66px !important;
    max-width: 126px !important;
  }
}

/* LAURÉATS RÉGIONAUX */

.laureats-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.laureats-tabs {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.laureats-tabs button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.laureats-tabs button.active {
  background: #0789a6;
  color: #ffffff;
}

.laureats-card {
  margin-top: 30px;
  padding: 32px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.laureats-card h3 {
  margin: 0 0 22px;
  font-size: 30px;
  color: #4b2d73;
}

.laureats-empty {
  color: #64748b;
  font-weight: 700;
}

.laureats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.laureat-item {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.laureat-photo {
  height: 170px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #64748b;
  font-weight: 900;
  margin-bottom: 14px;
}

.laureat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.laureat-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2b83b;
  color: #06466d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 12px;
}

.laureat-info p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.laureat-info strong {
  color: #0f172a;
}

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

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

  .laureats-card {
    padding: 22px;
  }
}

/* =========================================================
   FIX FINAL PRODUCTION — ESPACEMENTS + LAURÉATS + PICTOGRAMMES
   À placer en fin de fichier. Ne pas dupliquer.
========================================================= */

/* ---------- ESPACEMENTS : supprimer les grands vides ---------- */

.profils-section,
.home-access-section,
.laureats-section,
.home-story-section,
.home-steps-section,
.home-final-cta,
.partners-section-premium {
  margin-top: 0 !important;
}

.profils-section,
.home-access-section {
  padding-top: 64px !important;
  padding-bottom: 50px !important;
}

.profils-section + .laureats-section,
.home-access-section + .laureats-section {
  padding-top: 48px !important;
}

.home-access-grid {
  margin-top: 24px !important;
}

.home-section-text {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* ---------- LAURÉATS RÉGIONAUX : forcer l’affichage ---------- */

.laureats-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 5 !important;
  padding: 72px 0 !important;
  background:
    radial-gradient(circle at top right, rgba(75, 45, 115, 0.07), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.laureats-section .home-container,
.laureats-section .container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.laureats-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 28px !important;
  margin-bottom: 0 !important;
}

.laureats-tabs button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 42px !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

.laureats-tabs button.active {
  background: #0789a6 !important;
  color: #ffffff !important;
}

.laureats-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 30px !important;
  padding: 32px !important;
  border-radius: 30px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09) !important;
}

.laureats-card h3 {
  margin: 0 0 22px !important;
  font-size: 30px !important;
  color: #4b2d73 !important;
  font-weight: 900 !important;
}

.laureats-empty {
  color: #64748b !important;
  font-weight: 800 !important;
}

.laureats-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.laureat-item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  padding: 16px !important;
  border-radius: 24px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease !important;
}

.laureat-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12) !important;
}

.laureat-photo {
  height: 170px !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  color: #64748b !important;
  font-weight: 900 !important;
  margin-bottom: 14px !important;
}

.laureat-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.laureat-rank,
.laureat-item > span {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  background: #f2b83b !important;
  color: #06466d !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  margin-bottom: 12px !important;
}

.laureat-info p,
.laureat-item p {
  margin: 0 0 10px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #475569 !important;
}

.laureat-info strong {
  color: #0f172a !important;
}

/* ---------- SIGNATURE : pictogrammes en haut, couleurs originales ---------- */

.brand-signature-section {
  position: relative !important;
  overflow: hidden !important;
  padding-top: 176px !important;
}

/* On force le bloc, même s’il porte encore la classe "vertical" */
.signature-pictos-bg,
.signature-pictos-bg.vertical {
  position: absolute !important;
  top: 36px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;

  width: min(980px, 94%) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 34px !important;

  z-index: 10 !important;
  pointer-events: none !important;
}

/* Couleurs originales : PAS de filter, PAS d’inversion */
.signature-pictos-bg img,
.signature-pictos-bg.vertical img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;

  filter: none !important;
  mix-blend-mode: normal !important;

  transform-origin: center !important;
  animation: signaturePictoTopFloat 6.8s ease-in-out infinite !important;
}

/* Animation lente premium */
.signature-pictos-bg img:nth-child(2),
.signature-pictos-bg.vertical img:nth-child(2) { animation-delay: .35s !important; }

.signature-pictos-bg img:nth-child(3),
.signature-pictos-bg.vertical img:nth-child(3) { animation-delay: .7s !important; }

.signature-pictos-bg img:nth-child(4),
.signature-pictos-bg.vertical img:nth-child(4) { animation-delay: 1.05s !important; }

.signature-pictos-bg img:nth-child(5),
.signature-pictos-bg.vertical img:nth-child(5) { animation-delay: 1.4s !important; }

.signature-pictos-bg img:nth-child(6),
.signature-pictos-bg.vertical img:nth-child(6) { animation-delay: 1.75s !important; }

.signature-pictos-bg img:nth-child(7),
.signature-pictos-bg.vertical img:nth-child(7) { animation-delay: 2.1s !important; }

.signature-pictos-bg img:nth-child(8),
.signature-pictos-bg.vertical img:nth-child(8) { animation-delay: 2.45s !important; }

.signature-pictos-bg img:nth-child(9),
.signature-pictos-bg.vertical img:nth-child(9) { animation-delay: 2.8s !important; }

@keyframes signaturePictoTopFloat {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) scale(1.06) rotate(1.6deg);
  }
}

/* Contenu principal toujours visible */
.brand-signature-inner,
.signature-gallery-premium {
  position: relative !important;
  z-index: 3 !important;
}

@media (max-width: 1100px) {
  .laureats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .signature-pictos-bg,
  .signature-pictos-bg.vertical {
    gap: 22px !important;
  }

  .signature-pictos-bg img,
  .signature-pictos-bg.vertical img {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }
}

@media (max-width: 768px) {
  .laureats-section {
    padding: 56px 0 !important;
  }

  .laureats-grid {
    grid-template-columns: 1fr !important;
  }

  .laureats-card {
    padding: 22px !important;
  }

  .brand-signature-section {
    padding-top: 132px !important;
  }

  .signature-pictos-bg,
  .signature-pictos-bg.vertical {
    top: 24px !important;
    width: min(520px, 92%) !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  .signature-pictos-bg img,
  .signature-pictos-bg.vertical img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }
}

@media (max-width: 520px) {
  .signature-pictos-bg img:nth-child(n+7),
  .signature-pictos-bg.vertical img:nth-child(n+7) {
    display: none !important;
  }
}

/* =========================================================
   CHARTE OFFICIELLE TERANGASKILLS — COULEURS UNIQUES
   Objectif : supprimer les dégradés et utiliser uniquement
   les couleurs officielles de la charte.
========================================================= */

:root {
  --ts-green: #067545;
  --ts-purple: #402966;
  --ts-blue: #0386a9;
  --ts-red: #d93a34;
  --ts-orange: #e37b43;
  --ts-yellow: #f0b443;

  --ts-blue-dark: #06466d;
  --ts-dark: #0f172a;
  --ts-text: #1f2937;
  --ts-muted: #64748b;
  --ts-light: #f8fafc;
  --ts-white: #ffffff;

  --primary-blue: #0386a9;
  --primary-blue-hover: #067545;

  /* Les gradients deviennent des couleurs pleines */
  --ts-gradient-main: #0386a9;
  --ts-gradient-warm: #f0b443;
  --ts-gradient-brand: #402966;
}

/* ---------- Fond global : sans dégradé ---------- */
body {
  background: #ffffff !important;
}

/* ---------- Header / top bar : couleur unique ---------- */
.top-contact-bar {
  background: #402966 !important;
}

.ts-line-colors {
  background: #0386a9 !important;
}

.ts-line-blue {
  background: #0386a9 !important;
}

/* ---------- Boutons : couleur unique ---------- */
.btn-primary,
.home-gradient-btn,
.home-primary-cta,
.form-submit-btn,
.nav-link.active,
.laureats-tabs button.active {
  background: #0386a9 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(3, 134, 169, 0.22) !important;
}

.btn-primary:hover,
.home-gradient-btn:hover,
.home-primary-cta:hover,
.form-submit-btn:hover {
  background: #067545 !important;
}

/* Boutons secondaires */
.btn-light,
.home-secondary-cta {
  background: #ffffff !important;
  color: #402966 !important;
}

/* ---------- Sections : suppression des dégradés ---------- */
.home-access-section,
.laureats-section,
.partners-section-premium,
.pictos-section {
  background: #ffffff !important;
}

.home-story-section {
  background: #f8fafc !important;
}

.home-cta-box {
  background: #402966 !important;
}

.home-countdown-overlay {
  background: rgba(64, 41, 102, 0.72) !important;
}

/* ---------- Signature : couleur unique ---------- */
.brand-signature-section {
  background: #0386a9 !important;
}

.brand-signature-kicker {
  background: #f0b443 !important;
  color: #402966 !important;
}

.brand-signature-line {
  background: #f0b443 !important;
}

/* ---------- Cards / blocs ---------- */
.card,
.stat-card,
.infoCard,
.programmeCard,
.form-premium,
.info-card,
.metier-premium,
.home-value-card,
.home-step-card,
.home-access-card,
.laureats-card,
.laureat-item {
  background: #ffffff !important;
}

.home-access-icon {
  background: #0386a9 !important;
}

/* ---------- Laureats ---------- */
.laureat-photo {
  background: #f8fafc !important;
}

.laureat-rank,
.laureat-item > span {
  background: #f0b443 !important;
  color: #402966 !important;
}

.laureats-card h3 {
  color: #402966 !important;
}

/* ---------- Partenaires ---------- */
.partner-logo,
.partner-logo-premium,
.partners-track > *,
.swiper-slide {
  background: #ffffff !important;
}

/* ---------- Loader ---------- */
.page-loader {
  background: #402966 !important;
}

.page-loader-mark {
  background: #f0b443 !important;
  color: #402966 !important;
}

/* ---------- Hover / texte accent ---------- */
a:hover,
.nav-link:hover,
.home-access-link {
  color: #0386a9 !important;
}

.section-tag,
.home-section-tag {
  color: #0386a9 !important;
}

/* ---------- Suppression des effets lumière dégradés ---------- */
.hero-cinematic-light,
.home-cinematic-light,
.brand-signature-section::before {
  display: none !important;
}

/* ---------- Hero : garder l'image, mais overlay couleur unique ---------- */
.hero::before,
.premium-hero::before {
  background: rgba(15, 23, 42, 0.62) !important;
}

.hero-gradient-overlay {
  background: rgba(64, 41, 102, 0.22) !important;
}

/* ---------- Pictogrammes : conserver couleurs originales ---------- */
.signature-pictos-bg img,
.signature-pictos-bg.vertical img {
  filter: none !important;
  opacity: 1 !important;
}

/* =========================================================
   HEADER — VERSION FINALE PROPRE ET STABLE
   Objectif :
   - diminuer légèrement MEFPT + logo TerangaSkills + slogan
   - déplacer le bloc institutionnel vers le menu Accueil
   - conserver le bouton menu à gauche et la navigation à droite
========================================================= */

.header-row {
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 14px !important;
}

/* Le bloc MEFPT + TerangaSkills + slogan avance vers la navigation */
.header-brand-zone {
  display: flex !important;
  align-items: center !important;
  justify-self: end !important;
  gap: 14px !important;

  transform: none !important;
  margin-left: 0 !important;
  margin-right: 20px !important;
  padding-right: 0 !important;

  min-width: 0 !important;
}

/* Logo MEFPT */
.header-flag,
.mefpt-logo {
  width: 58px !important;
  height: 38px !important;
  max-width: 58px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
}

/* Logo TerangaSkills */
.brand-full-logo,
.teranga-logo {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Slogan */
.header-slogan {
  font-size: 17px !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  color: #0386a9 !important;
}

/* Navigation stable à droite */
.nav {
  justify-self: end !important;
  margin-left: 0 !important;
}

/* Bouton menu compact mais visible */
.menu-btn,
.premium-menu-btn {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
}

/* Responsive tablette */
@media (max-width: 1100px) {
  .header-row {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    min-height: 64px !important;
    column-gap: 12px !important;
  }

  .header-brand-zone {
    justify-self: start !important;
    margin-right: 0 !important;
    gap: 12px !important;
  }

  .header-flag,
  .mefpt-logo {
    width: 52px !important;
    height: 34px !important;
    max-width: 52px !important;
    max-height: 34px !important;
  }

  .brand-full-logo,
  .teranga-logo {
    height: 40px !important;
    max-height: 40px !important;
  }

  .header-slogan {
    font-size: 15px !important;
  }
}

/* Responsive mobile */
@media (max-width: 768px) {
  .header-row {
    min-height: 62px !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
  }

  .header-brand-zone {
    gap: 10px !important;
  }

  .header-flag,
  .mefpt-logo {
    width: 46px !important;
    height: 30px !important;
    max-width: 46px !important;
    max-height: 30px !important;
  }

  .brand-full-logo,
  .teranga-logo {
    height: 36px !important;
    max-height: 36px !important;
  }

  .header-slogan {
    display: none !important;
  }

  .menu-btn,
  .premium-menu-btn {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }
}

/* =========================================================
   MOBILE MASTER FIX — TERANGASKILLS
   Version stable, propre, sans casser desktop
========================================================= */

/* ===== GLOBAL ===== */
html, body, #root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box;
}

/* Empêche les débordements */
img, video {
  max-width: 100%;
  height: auto;
}

/* ===== CONTAINER ===== */
.container,
.home-container {
  width: 100% !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* ===== HEADER ===== */
@media (max-width: 768px) {

  .header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
  }

  .header-brand-zone {
    gap: 8px !important;
  }

  .header-flag,
  .mefpt-logo {
    width: 40px !important;
    height: 26px !important;
  }

  .brand-full-logo,
  .teranga-logo {
    height: 32px !important;
  }

  .header-slogan {
    display: none !important;
  }

  .nav {
    display: none !important;
  }

  .menu-btn {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ===== HERO ===== */
@media (max-width: 768px) {

  .hero {
    min-height: 75vh !important;
    padding: 80px 0 40px !important;
  }

  .hero-title {
    font-size: 28px !important;
    line-height: 1.1 !important;
  }

  .hero-text-slide p {
    font-size: 15px !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
  }

  .dots {
    margin-top: 20px !important;
  }
}

/* ===== GRID GLOBAL ===== */
@media (max-width: 768px) {

  .grid,
  .stats-grid,
  .home-access-grid,
  .home-value-grid,
  .home-story-grid,
  .laureats-grid,
  .signature-gallery-premium {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

}

/* ===== SECTIONS ===== */
@media (max-width: 768px) {

  .stats-section,
  .home-access-section,
  .home-story-section,
  .laureats-section,
  .partners-section-premium {
    padding: 50px 0 !important;
  }

  .home-section-title {
    font-size: 26px !important;
  }

  .home-section-text {
    font-size: 15px !important;
  }
}

/* ===== SIGNATURE ===== */
@media (max-width: 768px) {

  .brand-signature-section {
    padding: 100px 14px 50px !important;
  }

  .signature-pictos-bg {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .signature-pictos-bg img {
    width: 30px !important;
    height: 30px !important;
  }

  .brand-signature-title {
    font-size: 32px !important;
  }

  .brand-signature-slogan {
    font-size: 20px !important;
  }

  .signature-photo-card {
    height: 200px !important;
  }
}

/* ===== LAUREATS ===== */
@media (max-width: 768px) {

  .laureats-card {
    padding: 16px !important;
  }

  .laureat-photo {
    height: 200px !important;
  }

  .laureats-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .laureats-tabs button {
    font-size: 12px !important;
  }
}

/* ===== PARTENAIRES ===== */
@media (max-width: 768px) {

  .partners-track {
    overflow-x: auto !important;
  }

  .partner-logo {
    min-width: 120px !important;
  }
}

/* ===== FOOTER ===== */
@media (max-width: 768px) {

  footer > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  footer {
    padding: 30px 14px !important;
  }
}

/* LAURÉATS PREMIUM — HALL OF FAME */

.laureats-premium-section {
  padding: 80px 0;
  background: #ffffff;
}

.laureats-tabs.premium {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.laureats-tabs.premium button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.laureats-tabs.premium button.active {
  background: #0386a9;
  color: #ffffff;
}

.laureats-premium-board {
  margin-top: 32px;
  padding: 28px;
  border-radius: 32px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.laureats-region-head {
  margin-bottom: 24px;
}

.laureats-region-head span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: #0386a9;
  letter-spacing: 0.14em;
}

.laureats-region-head h3 {
  margin: 6px 0 0;
  font-size: 34px;
  color: #402966;
  font-weight: 900;
}

.laureats-premium-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.laureat-premium-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.laureat-premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.laureat-premium-photo {
  position: relative;
  height: 240px;
  background: #e2e8f0;
  overflow: hidden;
}

.laureat-premium-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.laureat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f0b443;
  color: #402966;
  font-size: 12px;
  font-weight: 900;
}

.laureat-premium-content {
  padding: 18px;
}

.laureat-region-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3, 134, 169, 0.1);
  color: #0386a9;
  font-size: 11px;
  font-weight: 900;
}

.laureat-label {
  margin: 0 0 4px;
  font-size: 11px;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
}

.laureat-premium-content h4 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
}

.laureat-premium-content strong {
  display: block;
  color: #402966;
  font-size: 14px;
  line-height: 1.4;
}

.laureat-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 900;
}

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

@media (max-width: 768px) {
  .laureats-premium-section {
    padding: 56px 0;
  }

  .laureats-premium-board {
    padding: 18px;
    border-radius: 24px;
  }

  .laureats-tabs.premium {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .laureats-tabs.premium button {
    flex: 0 0 auto;
  }

  .laureats-premium-grid {
    grid-template-columns: 1fr;
  }

  .laureat-premium-photo {
    height: 280px;
  }

  .laureats-region-head h3 {
    font-size: 28px;
  }
}

/* VIDÉOS TERANGASKILLS */

.video-section {
  padding: 80px 0;
  background: #ffffff;
}

.video-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.video-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.video-card-content {
  padding: 18px;
}

.video-card-content span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3, 134, 169, 0.1);
  color: #0386a9;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-card-content h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
  font-weight: 900;
}

@media (max-width: 768px) {
  .video-section {
    padding: 56px 0;
  }

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

  .video-card iframe {
    height: 210px;
  }
}

/* MODE SOMBRE / CLAIR */

.theme-toggle-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #0386a9;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

body.dark-mode {
  background: #0f172a !important;
  color: #e5e7eb !important;
}

body.dark-mode .header,
body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .home-access-card,
body.dark-mode .laureats-card,
body.dark-mode .laureat-item,
body.dark-mode .video-card {
  background: #111827 !important;
  color: #e5e7eb !important;
}

body.dark-mode .home-section-title,
body.dark-mode .section-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: #ffffff !important;
}

body.dark-mode p,
body.dark-mode .home-section-text,
body.dark-mode .section-text {
  color: #cbd5e1 !important;
}

body.dark-mode .home-access-section,
body.dark-mode .laureats-section,
body.dark-mode .video-section,
body.dark-mode .partners-section-premium {
  background: #0f172a !important;
}

body.dark-mode .theme-toggle-btn {
  background: #f0b443;
  color: #402966;
}

/* ===== TOPBAR MINISTÈRE ===== */

.topbar-ministere {
  width: 100%;
  background: #402966; /* violet TerangaSkills */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px 10px;
}

/* ===== BARRE SÉNÉGAL ===== */

.topbar-flag {
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    #067545 0%,
    #067545 33%,
    #f0b443 33%,
    #f0b443 66%,
    #d93a34 66%,
    #d93a34 100%
  );
  margin-bottom: 6px;
}

/* ===== TEXTE ===== */

.topbar-ministere-text {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.04em;
}

/* =========================================================
   TOPBAR GOUVERNEMENTALE — VERSION CORRIGÉE FORCÉE
========================================================= */

.gov-topbar {
  position: relative !important;
  width: 100% !important;
  min-height: 92px !important; /* hauteur augmentée */
  background: #402966 !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 16px 12px 14px !important;
  overflow: visible !important;
  z-index: 3000 !important;
}

/* Bande Sénégal descendue */
.senegal-ribbon,
.senegal-ribbon-animated {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;

  width: min(540px, 82%) !important;
  height: 8px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;

  margin: 0 auto 14px !important;
  overflow: visible !important;
}

/* Couleurs */
.ribbon,
.senegal-ribbon span,
.senegal-ribbon-animated span {
  height: 8px !important;
  display: block !important;
}

.ribbon.green,
.ribbon-green {
  background: #067545 !important;
}

.ribbon.yellow,
.ribbon-yellow {
  background: #f0b443 !important;
  position: relative !important;
}

.ribbon.red,
.ribbon-red {
  background: #d93a34 !important;
}

/* Étoile visible */
.star,
.senegal-star {
  position: absolute !important;
  top: -1px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: #067545 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  display: block !important;
  z-index: 10 !important;
}

/* Bloc texte */
.gov-text,
.gov-text-block {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 3px !important;
  width: 100% !important;
  margin-top: 0 !important;
}

/* République */
.gov-republique {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

/* Devise */
.gov-devise {
  font-size: 10px !important;
  font-style: italic !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.9) !important;
  line-height: 1.2 !important;
}

/* Ministère */
.gov-ministere {
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
}

/* Masquer l’ancien texte simple si encore présent */
.gov-text:not(.gov-text-block) {
  font-size: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .gov-topbar {
    min-height: 104px !important;
    padding: 16px 10px 12px !important;
  }

  .senegal-ribbon,
  .senegal-ribbon-animated {
    width: 90% !important;
    height: 6px !important;
    margin-bottom: 13px !important;
  }

  .ribbon,
  .senegal-ribbon span,
  .senegal-ribbon-animated span {
    height: 6px !important;
  }

  .star,
  .senegal-star {
    top: -15px !important;
    font-size: 22px !important;
  }

  .gov-republique {
    font-size: 10px !important;
  }

  .gov-devise {
    font-size: 10px !important;
  }

  .gov-ministere {
    font-size: 10.5px !important;
    max-width: 95% !important;
  }
}

/* ===== HEADER ALIGNEMENT PREMIUM ===== */

.header {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 14px 0 !important;
}

/* Conteneur principal */
.header-row {
  width: 100%;
  max-width: 1300px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
}

/* Bloc logo + slogan */
.header-brand-zone {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

/* Logo */
.brand-full-logo {
  height: 52px !important;
  width: auto !important;
  display: block !important;
}

/* Slogan */
.header-slogan {
  font-size: 20px !important;
  color: #0386a9 !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* NAVIGATION */
.nav {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
}

/* Menu arrondi */
.nav {
  background: #f1f5f9 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
}

/* Boutons */
.nav-link {
  padding: 10px 18px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bouton actif */
.nav-link.active {
  background: #0386a9 !important;
  color: white !important;
}

/* ===== ALIGNEMENT VERTICAL GLOBAL ===== */

.header-row > * {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {

  .header-row {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-brand-zone {
    justify-content: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-slogan {
    display: none; /* éviter surcharge mobile */
  }
}

/* =========================================================
   GOV TOPBAR — VERSION PREMIUM FINALE
========================================================= */

.gov-topbar {
  position: relative !important;
  width: 100% !important;
  min-height: 170px !important;
  padding: 34px 14px 26px !important;
  overflow: hidden !important;
  isolation: isolate !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  color: #ffffff !important;
  text-align: center !important;
  background: #402966 !important;
}

/* Image + voile mauve */
.gov-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image:
    linear-gradient(
      180deg,
      rgba(64, 41, 102, 0.78),
      rgba(64, 41, 102, 0.92)
    ),
    url("/images/diamniadio.png");

  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;

  transform: scale(1.03);
  animation: govSlowZoom 24s ease-in-out infinite alternate;
}

/* Voile sombre pour lisibilité */
.gov-topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 34%),
    linear-gradient(90deg, rgba(64,41,102,0.88), rgba(64,41,102,0.58), rgba(64,41,102,0.88));
  pointer-events: none;
}

/* Contenu au-dessus */
.gov-topbar > * {
  position: relative !important;
  z-index: 2 !important;
}

/* Bande Sénégal */
.senegal-ribbon,
.senegal-ribbon-animated {
  width: min(320px, 65%) !important;
  height: 7px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  margin: 0 auto 22px !important;
  overflow: visible !important;
  border-radius: 999px !important;
}

.ribbon,
.senegal-ribbon span,
.senegal-ribbon-animated span {
  height: 7px !important;
  display: block !important;
}

.ribbon.green,
.ribbon-green {
  background: #067545 !important;
  border-radius: 999px 0 0 999px !important;
}

.ribbon.yellow,
.ribbon-yellow {
  background: #f0b443 !important;
  position: relative !important;
}

.ribbon.red,
.ribbon-red {
  background: #d93a34 !important;
  border-radius: 0 999px 999px 0 !important;
}

/* Étoile */
.star,
.senegal-star {
  position: absolute !important;
  top: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  color: #067545 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  z-index: 5 !important;

  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  animation: govStarPulse 3s ease-in-out infinite !important;
}

/* Bloc texte */
.gov-text-block,
.gov-text {
  width: min(980px, 95%) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  text-align: center !important;
}

/* République */
.gov-republique {
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* Devise */
.gov-devise {
  font-size: 7px !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.92) !important;
  line-height: 1.25 !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* Ministère */
.gov-ministere {
  margin-top: 4px !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: 0.045em !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,0.42);
}

/* Animations */
@keyframes govSlowZoom {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.11);
  }
}

@keyframes govStarPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.16);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .gov-topbar {
    min-height: 170px !important;
    padding: 32px 10px 22px !important;
  }

  .senegal-ribbon,
  .senegal-ribbon-animated {
    width: 88% !important;
    height: 6px !important;
    margin-bottom: 18px !important;
  }

  .ribbon,
  .senegal-ribbon span,
  .senegal-ribbon-animated span {
    height: 6px !important;
  }

  .star,
  .senegal-star {
    top: -15px !important;
    font-size: 22px !important;
  }

  .gov-republique {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
  }

  .gov-devise {
    font-size: 11px !important;
  }

  .gov-ministere {
    font-size: 12px !important;
    max-width: 94% !important;
  }
}

/* =========================================================
   FIX MOBILE FINAL — HEADER / MENU / TOPBAR
========================================================= */

@media (max-width: 768px) {
  html,
  body,
  #root {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Topbar gouvernementale */
  .gov-topbar {
    min-height: 150px !important;
    padding: 28px 12px 22px !important;
  }

  .gov-ministere {
    font-size: 11px !important;
    line-height: 1.35 !important;
    max-width: 92% !important;
  }

  /* Header mobile propre */
  .header {
    padding: 18px 0 !important;
    background: #ffffff !important;
  }

  .header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: 100% !important;
  }

  /* Bouton menu */
  .menu-btn,
  .premium-menu-btn {
    display: inline-flex !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 18px !important;
    order: 1 !important;
  }

  /* Logo TerangaSkills */
  .header-brand-zone,
  .header-brand-zone.no-mefpt {
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    transform: none !important;
    width: 100% !important;
  }

  .brand-full-logo,
  .teranga-logo {
    height: 54px !important;
    max-height: 54px !important;
  }

  .header-slogan {
    display: none !important;
  }

  /* Masquer complètement le menu desktop sur mobile */
  .nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Supprimer le gros rectangle/ovale du menu */
  .nav,
  .nav * {
    max-height: 0 !important;
  }

  /* Sections */
  .container,
  .home-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  h1,
  .page-title,
  .home-section-title {
    font-size: 32px !important;
    line-height: 1.12 !important;
    word-break: normal !important;
  }

  /* Bouton mode sombre : éviter qu’il cache les titres */
  .theme-toggle-btn {
    width: 54px !important;
    height: 54px !important;
    right: 18px !important;
    bottom: 18px !important;
  }
}

/* =========================================================
   FIX MOBILE MENU — MASQUER MENU DESKTOP
========================================================= */

@media (max-width: 768px) {
  .nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  .premium-menu-btn,
  .menu-btn {
    display: inline-flex !important;
    order: 1 !important;
    width: 54px !important;
    height: 54px !important;
  }

  .header-brand-zone,
  .header-brand-zone.no-mefpt {
    order: 2 !important;
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
    transform: none !important;
  }

  .brand-full-logo {
    height: 54px !important;
  }

  .header-slogan {
    display: none !important;
  }
}

/* MENU BURGER — VERSION COMPACTE */

.side-menu {
  max-height: 92vh !important;
  overflow-y: auto !important;
}

.side-menu-links {
  gap: 12px !important;
}

.side-menu-links a {
  font-size: 21px !important;
  line-height: 1.2 !important;
  margin-bottom: 6px !important;
}

.side-menu-secondary {
  margin-top: 18px !important;
  padding-top: 16px !important;
}

.side-menu-socials {
  margin-top: 28px !important;
}

/* =========================================================
   HEADER PREMIUM GOUVERNEMENTAL — TERANGASKILLS
   À coller tout en bas de styles.css
========================================================= */

.gov-topbar-premium {
  position: relative !important;
  min-height: 150px !important;
  padding: 32px 14px 24px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #402966 !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.gov-topbar-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-image:
    linear-gradient(180deg, rgba(64, 41, 102, 0.80), rgba(64, 41, 102, 0.94)),
    url("/images/diamniadio.png") !important;
  background-size: cover !important;
  background-position: center 44% !important;
  background-repeat: no-repeat !important;
  transform: scale(1.04) !important;
  animation: govHeaderZoom 24s ease-in-out infinite alternate !important;
}

.gov-topbar-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 35%),
    linear-gradient(90deg, rgba(64,41,102,0.90), rgba(64,41,102,0.55), rgba(64,41,102,0.90));
  pointer-events: none;
}

.gov-topbar-premium > *:not(.gov-topbar-bg) {
  position: relative !important;
  z-index: 2 !important;
}

.senegal-ribbon-premium,
.senegal-ribbon,
.senegal-ribbon-animated {
  width: min(560px, 78%) !important;
  height: 7px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  margin: 0 auto 22px !important;
  overflow: visible !important;
  border-radius: 999px !important;
}

.ribbon,
.senegal-ribbon span,
.senegal-ribbon-animated span,
.senegal-ribbon-premium span {
  height: 7px !important;
  display: block !important;
}

.ribbon.green {
  background: #067545 !important;
  border-radius: 999px 0 0 999px !important;
}

.ribbon.yellow {
  background: #f0b443 !important;
  position: relative !important;
}

.ribbon.red {
  background: #d93a34 !important;
  border-radius: 0 999px 999px 0 !important;
}

.star {
  position: absolute !important;
  top: -11
px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: #067545 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  z-index: 5 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  animation: govStarPulse 3s ease-in-out infinite !important;
}

.gov-text-block {
  width: min(980px, 94%) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}

.gov-republique {
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35) !important;
}

.gov-devise {
  font-size: 13px !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.94) !important;
  line-height: 1.25 !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35) !important;
}

.gov-ministere {
  margin-top: 4px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.045em !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,0.42) !important;
}

.header-premium {
  position: sticky !important;
  top: 0 !important;
  z-index: 2000 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  border-bottom: 1px solid rgba(15,23,42,0.06) !important;
  box-shadow: 0 12px 36px rgba(15,23,42,0.06) !important;
  transition: all 0.28s ease !important;
}

.header-premium.is-scrolled {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 18px 45px rgba(15,23,42,0.12) !important;
}

.header-row-premium {
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns: 56px minmax(340px, 1fr) auto !important;
  align-items: center !important;
  gap: 22px !important;
}

.header-brand-zone.no-mefpt {
  display: flex !important;
  align-items: center !important;
  justify-self: start !important;
  gap: 22px !important;
  margin: 0 !important;
  transform: none !important;
}

.header-brand-zone.no-mefpt .brand-full-logo {
  height: 54px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.header-brand-zone.no-mefpt .header-slogan {
  font-family: "Mayor", Arial, Helvetica, sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #0386a9 !important;
  letter-spacing: 0.035em !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.nav-premium {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(15,23,42,0.07) !important;
  box-shadow: 0 16px 38px rgba(15,23,42,0.07) !important;
}

.nav-premium .nav-link {
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  padding: 11px 17px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.nav-premium .nav-link:hover {
  color: #0386a9 !important;
  background: rgba(3,134,169,0.08) !important;
}

.nav-premium .nav-link.active {
  color: #ffffff !important;
  background: #0386a9 !important;
  box-shadow: 0 12px 26px rgba(3,134,169,0.22) !important;
}

.premium-menu-btn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.12) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@keyframes govHeaderZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

@keyframes govStarPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.16); }
}

@media (max-width: 1100px) {
  .header-row-premium {
    grid-template-columns: 50px 1fr !important;
    min-height: 72px !important;
  }

  .nav-premium {
    display: none !important;
  }

  .header-brand-zone.no-mefpt {
    justify-self: center !important;
  }
}

@media (max-width: 768px) {
  .gov-topbar-premium {
    min-height: 156px !important;
    padding: 30px 10px 22px !important;
  }

  .senegal-ribbon-premium,
  .senegal-ribbon,
  .senegal-ribbon-animated {
    width: 88% !important;
    height: 6px !important;
    margin-bottom: 18px !important;
  }

  .ribbon,
  .senegal-ribbon span,
  .senegal-ribbon-animated span,
  .senegal-ribbon-premium span {
    height: 6px !important;
  }

  .star {
    top: -8px !important;
    font-size: 22px !important;
  }

  .gov-republique {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
  }

  .gov-devise {
    font-size: 11px !important;
  }

  .gov-ministere {
    font-size: 12px !important;
    max-width: 94% !important;
  }

  .header-row-premium {
    min-height: 78px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 16px 0 !important;
  }

  .premium-menu-btn {
    order: 1 !important;
    width: 54px !important;
    height: 54px !important;
  }

  .header-brand-zone.no-mefpt {
    order: 2 !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .header-brand-zone.no-mefpt .brand-full-logo {
    height: 54px !important;
  }

  .header-brand-zone.no-mefpt .header-slogan {
    display: none !important;
  }

  .nav-premium,
  .nav {
    display: none !important;
  }
}


/* =========================================================
   TERANGASKILLS — FINAL OVERRIDES STABLES
   À conserver tout en bas du fichier.
========================================================= */

html, body, #root {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

img, video, iframe {
  max-width: 100% !important;
}

/* HEADER FINAL — compatible Header_FINAL_force.jsx */

.ts-gov-topbar {
  position: relative !important;
  width: 100% !important;
  min-height: 152px !important;
  padding: 32px 14px 24px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: #ffffff !important;
  background: #402966 !important;
}

.ts-gov-topbar::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-image:
    linear-gradient(180deg, rgba(64, 41, 102, 0.78), rgba(64, 41, 102, 0.94)),
    url("/images/diamniadio.png") !important;
  background-size: cover !important;
  background-position: center 44% !important;
  background-repeat: no-repeat !important;
  transform: scale(1.04) !important;
  animation: tsGovZoomFinal 24s ease-in-out infinite alternate !important;
}

.ts-gov-topbar::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 34%),
    linear-gradient(90deg, rgba(64,41,102,0.90), rgba(64,41,102,0.56), rgba(64,41,102,0.90)) !important;
  pointer-events: none !important;
}

.ts-gov-inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1000px, 94%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.ts-senegal-ribbon {
  width: min(560px, 82%) !important;
  height: 7px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  margin: 0 auto 22px !important;
  overflow: visible !important;
  border-radius: 999px !important;
}

.ts-ribbon-part {
  height: 7px !important;
  display: block !important;
}

.ts-ribbon-green {
  background: #067545 !important;
  border-radius: 999px 0 0 999px !important;
}

.ts-ribbon-yellow {
  position: relative !important;
  background: #f0b443 !important;
}

.ts-ribbon-red {
  background: #d93a34 !important;
  border-radius: 0 999px 999px 0 !important;
}

.ts-senegal-star {
  position: absolute !important;
  top: -11px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: #067545 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.28) !important;
  animation: tsStarPulseFinal 3s ease-in-out infinite !important;
}

.ts-gov-republic {
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35) !important;
}

.ts-gov-motto {
  margin-top: 4px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.94) !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35) !important;
}

.ts-gov-ministry {
  margin-top: 7px !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  letter-spacing: 0.045em !important;
  color: #ffffff !important;
  text-shadow: 0 3px 12px rgba(0,0,0,0.42) !important;
}

.ts-header-shell {
  position: sticky !important;
  top: 0 !important;
  z-index: 2000 !important;
  width: 100% !important;
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  border-bottom: 1px solid rgba(15,23,42,0.07) !important;
  box-shadow: 0 12px 34px rgba(15,23,42,0.07) !important;
}

.ts-header-shell.is-scrolled {
  background: rgba(255,255,255,0.99) !important;
  box-shadow: 0 18px 45px rgba(15,23,42,0.13) !important;
}

.ts-header-inner {
  width: min(1280px, calc(100% - 40px)) !important;
  min-height: 84px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 56px minmax(320px, 1fr) auto !important;
  align-items: center !important;
  gap: 22px !important;
}

.ts-menu-btn {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 20px !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.12) !important;
}

.ts-brand-zone {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  min-width: 0 !important;
}

.ts-brand-logo {
  height: 56px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.ts-slogan {
  font-family: "Mayor", Arial, Helvetica, sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .035em !important;
  color: #0386a9 !important;
  white-space: nowrap !important;
}

.ts-nav {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(15,23,42,0.07) !important;
  box-shadow: 0 16px 38px rgba(15,23,42,0.07) !important;
}

.ts-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 17px !important;
  border-radius: 999px !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.ts-nav a:hover {
  color: #0386a9 !important;
  background: rgba(3,134,169,0.08) !important;
}

.ts-nav a.active {
  color: #ffffff !important;
  background: #0386a9 !important;
  box-shadow: 0 12px 26px rgba(3,134,169,0.22) !important;
}

/* SIDE MENU — corrige la zone blanche et l'alignement même avec styles inline */
body > div + aside[style],
aside[style*="translateX"] {
  top: 150px !important;
  height: calc(100dvh - 150px) !important;
  max-height: calc(100dvh - 150px) !important;
}

aside[style*="translateX"] > div:first-child {
  padding-top: 92px !important;
  gap: 18px !important;
}

aside[style*="translateX"] > div:nth-child(2) {
  padding-top: 88px !important;
  justify-content: flex-start !important;
  overflow-y: auto !important;
}

aside[style*="translateX"] > div:nth-child(2) > div:last-child {
  margin-top: 26px !important;
}

/* RESPONSIVE FINAL */
@media (max-width: 1100px) {
  .ts-header-inner {
    grid-template-columns: 50px 1fr !important;
    min-height: 76px !important;
  }

  .ts-nav,
  .nav {
    display: none !important;
  }

  .ts-brand-zone {
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .container,
  .home-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ts-gov-topbar {
    min-height: 156px !important;
    padding: 30px 10px 22px !important;
  }

  .ts-senegal-ribbon {
    width: 88% !important;
    height: 6px !important;
    margin-bottom: 18px !important;
  }

  .ts-ribbon-part {
    height: 6px !important;
  }

  .ts-senegal-star {
    top: -16px !important;
    font-size: 23px !important;
  }

  .ts-gov-republic {
    font-size: 11px !important;
    letter-spacing: .08em !important;
  }

  .ts-gov-motto {
    font-size: 11px !important;
  }

  .ts-gov-ministry {
    font-size: 12px !important;
    max-width: 94% !important;
  }

  .ts-header-inner {
    width: calc(100% - 24px) !important;
    min-height: 112px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 16px 0 !important;
  }

  .ts-menu-btn {
    order: 1 !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 18px !important;
  }

  .ts-brand-zone {
    order: 2 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .ts-brand-logo {
    height: 54px !important;
  }

  .ts-slogan,
  .header-slogan {
    display: none !important;
  }

  body > div + aside[style],
  aside[style*="translateX"] {
    top: 132px !important;
    width: min(390px, 92vw) !important;
    height: calc(100dvh - 132px) !important;
    max-height: calc(100dvh - 132px) !important;
    grid-template-columns: 58px 1fr !important;
  }

  aside[style*="translateX"] > div:first-child {
    padding-top: 70px !important;
  }

  aside[style*="translateX"] > div:nth-child(2) {
    padding-top: 66px !important;
    padding-left: 20px !important;
    padding-right: 14px !important;
  }

  .hero,
  .premium-hero {
    min-height: 74vh !important;
    padding: 70px 0 42px !important;
  }

  .hero-content,
  .premium-hero-content {
    max-width: 100% !important;
    padding: 40px 0 !important;
  }

  .hero-title,
  .hero-text-slide h1,
  .premium-hero-content h1 {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.08 !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-actions .btn,
  .btn,
  .home-primary-cta,
  .home-secondary-cta,
  .home-gradient-btn {
    width: 100% !important;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid,
  .home-access-grid,
  .home-value-grid,
  .home-story-grid,
  .laureats-grid,
  .laureats-premium-grid,
  .signature-gallery-premium,
  .video-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  body > div + aside[style],
  aside[style*="translateX"] {
    top: 124px !important;
    height: calc(100dvh - 124px) !important;
    max-height: calc(100dvh - 124px) !important;
  }

  aside[style*="translateX"] > div:first-child {
    padding-top: 60px !important;
  }

  aside[style*="translateX"] > div:nth-child(2) {
    padding-top: 58px !important;
  }
}

@keyframes tsGovZoomFinal {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

@keyframes tsStarPulseFinal {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.16); }
}

/* SUPPRIMER LA BARRE DE SCROLL (mais garder le scroll) */
aside[style*="translateX"] {
  overflow-y: hidden !important;

  /* Chrome, Edge, Safari */
  scrollbar-width: none !important;
}

aside[style*="translateX"]::-webkit-scrollbar {
  display: none !important;
}

/* =========================================================
   MOBILE FULL FIX — TERANGASKILLS
   Corrige textes coupés, blocs trop larges, images, pages
========================================================= */

@media (max-width: 768px) {
  html,
  body,
  #root {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .container,
  .home-container,
  .page-container,
  .section-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  section,
  main,
  .section,
  .page-section,
  .home-section,
  .alt-section {
    width: 100% !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  h1,
  .page-title,
  .hero-title,
  .section-title,
  .home-section-title {
    font-size: clamp(26px, 8vw, 36px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  h2 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  h3 {
    font-size: clamp(20px, 6vw, 26px) !important;
    line-height: 1.2 !important;
  }

  p,
  li,
  span,
  .section-text,
  .home-section-text,
  .page-text,
  .card p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid,
  .home-access-grid,
  .home-value-grid,
  .home-story-grid,
  .laureats-grid,
  .laureats-premium-grid,
  .video-grid,
  .metiers-grid,
  .actualites-grid,
  .galerie-grid,
  .contact-grid,
  .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .card,
  .stat-card,
  .home-access-card,
  .home-value-card,
  .laureat-item,
  .laureat-premium-card,
  .video-card,
  .metier-card,
  .actualite-card,
  .form-premium {
    width: 100% !important;
    min-width: 0 !important;
    padding: 20px !important;
  }

  img,
  video,
  iframe {
    max-width: 100% !important;
  }

  iframe {
    width: 100% !important;
    min-height: 210px !important;
  }

  .hero,
  .premium-hero {
    min-height: auto !important;
    padding: 70px 0 48px !important;
  }

  .hero-content,
  .premium-hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 36px 0 !important;
  }

  .hero-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hero-actions .btn,
  .btn,
  .home-gradient-btn,
  .home-primary-cta,
  .home-secondary-cta,
  .form-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .laureats-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
  }

  .laureats-tabs button {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .brand-signature-section {
    padding: 110px 14px 56px !important;
  }

  .signature-gallery-premium {
    grid-template-columns: 1fr !important;
  }

  .signature-photo-card {
    height: 220px !important;
    transform: none !important;
  }

  .signature-photo-card img {
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
  }

  .partners-slider,
  .partners-track {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  footer,
  .footer {
    width: 100% !important;
    overflow: hidden !important;
  }

  footer > div,
  .footer-grid,
  .footer-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: 100% !important;
  }

  .theme-toggle-btn {
    right: 16px !important;
    bottom: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

/* =========================================================
   FIX RESPONSIVE — TEXTES COUPÉS MOBILE
   Accès rapide / Profils / Actualités / Articles
========================================================= */

@media (max-width: 768px) {
  html,
  body,
  #root {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  main,
  section,
  .section,
  .page-section,
  .home-access-section,
  .profils-section,
  .actualites-section,
  .actualite-detail,
  .article-detail {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
  }

  .container,
  .home-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ACCÈS RAPIDE / PROFILS */
  .home-access-grid,
  .profils-grid,
  .profile-grid,
  .home-value-grid,
  .home-story-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    overflow: visible !important;
  }

  .home-access-card,
  .profil-card,
  .profile-card,
  .home-value-card,
  .card {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 22px !important;
  }

  .home-access-card p,
  .profil-card p,
  .profile-card p,
  .card p {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  /* ACTUALITÉS */
  .actualites-grid,
  .news-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .actualite-card,
  .news-card {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .actualite-card p,
  .news-card p,
  .actualite-card-content,
  .news-card-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* PAGE ARTICLE — lire l'article */
  .actualite-detail,
  .actualite-detail-content,
  .article-content,
  .article-body,
  .news-detail,
  .news-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .actualite-detail p,
  .article-content p,
  .article-body p,
  .news-detail p {
    font-size: 15px !important;
    line-height: 1.75 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  h1,
  h2,
  h3,
  .page-title,
  .home-section-title,
  .section-title {
    white-space: normal !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    line-height: 1.15 !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ADMIN TERANGASKILLS */

.admin-login-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  background: #f8fafc;
  padding: 40px 16px;
}

.admin-login-card {
  width: min(420px, 100%);
  background: #ffffff;
  padding: 34px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 16px;
}

.admin-login-card h1 {
  margin: 0 0 10px;
  color: #402966;
  font-size: 28px;
}

.admin-login-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  font-size: 15px;
}

.admin-login-card button,
.admin-dashboard-header button {
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  background: #0386a9;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.admin-dashboard {
  min-height: 80vh;
  padding: 60px 24px;
  background: #f8fafc;
}

.admin-dashboard-header {
  max-width: 1100px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-dashboard-header h1 {
  margin: 0;
  color: #402966;
  font-size: 38px;
}

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

.admin-card {
  min-height: 130px;
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  display: flex;
  align-items: center;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .admin-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

/* ADMIN PAGES */

.admin-page {
  min-height: 100vh;
  background: #f8fafc;
  padding: 50px 24px;
}

.admin-page-header {
  max-width: 1200px;
  margin: 0 auto 28px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.admin-kicker {
  display: inline-block;
  margin-bottom: 10px;

  color: #0386a9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.admin-page-header h1 {
  margin: 0;
  color: #402966;
  font-size: 42px;
}

.admin-page-header p {
  margin-top: 10px;
  color: #64748b;
}

.admin-create-btn {
  border: none;
  border-radius: 999px;

  padding: 14px 22px;

  background: #0386a9;
  color: #ffffff;

  font-size: 14px;
  font-weight: 900;

  cursor: pointer;
}

.admin-table-card {
  max-width: 1200px;
  margin: 0 auto;

  background: #ffffff;

  border-radius: 24px;

  overflow: hidden;

  box-shadow: 0 18px 48px rgba(15,23,42,.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: #f1f5f9;
}

.admin-table th {
  padding: 18px;
  text-align: left;

  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.admin-table td {
  padding: 18px;
  border-top: 1px solid #eef2f7;

  color: #334155;
}

.admin-status {
  display: inline-flex;
  align-items: center;

  padding: 8px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
}

.admin-status.published {
  background: rgba(5,150,105,.12);
  color: #059669;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-actions button {
  border: none;

  padding: 10px 14px;

  border-radius: 12px;

  background: #f1f5f9;

  cursor: pointer;

  font-weight: 700;
}

@media (max-width: 768px) {
  .admin-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
.admin-form-card {
  max-width: 1200px;
  margin: 0 auto 28px;
  background: #ffffff;
  padding: 26px;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dbe3ef;
  font-size: 15px;
  font-family: inherit;
}

.admin-form button {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: #0386a9;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.admin-status.draft {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.footer-admin-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 13px;
  transition: .3s;
}

.footer-admin-link:hover {
  color: #ffffff;
}

/* =========================================================
   TOP BAR INSTITUTIONNEL DYNAMIQUE SANITY
========================================================= */

.ts-gov-topbar {
  position: relative;
  width: 100%;
  overflow: hidden;

  background-image:
    linear-gradient(
      180deg,
      rgba(64, 41, 102, 0.78),
      rgba(64, 41, 102, 0.92)
    ),
    var(--topbar-bg);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 34px 20px 30px;
}

.ts-gov-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.03),
      transparent
    );
  pointer-events: none;
}

.ts-gov-inner {
  position: relative;
  z-index: 2;

  max-width: 1200px;
  margin: 0 auto;

  text-align: center;
  color: #ffffff;
}

.ts-gov-flag-line {
  width: min(840px, 92%);
  height: 12px;

  margin: 0 auto 24px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #067545 0%,
      #067545 33%,
      #f0b443 33%,
      #f0b443 66%,
      #d93a34 66%,
      #d93a34 100%
    );

  position: relative;
}

.ts-gov-flag-line::after {
  content: "★";

  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  color: #067545;
  font-size: 26px;
  font-weight: 900;
}

.ts-gov-republic {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ts-gov-motto {
  margin-top: 6px;

  font-size: clamp(16px, 1.5vw, 24px);
  font-style: italic;
  font-weight: 700;

  color: rgba(255,255,255,0.92);
}

.ts-gov-ministry {
  margin-top: 18px;

  font-size: clamp(20px, 2vw, 34px);
  font-weight: 900;
  line-height: 1.35;

  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {

  .ts-gov-topbar {
    padding: 22px 14px 20px;
  }

  .ts-gov-flag-line {
    height: 10px;
    margin-bottom: 18px;
  }

  .ts-gov-flag-line::after {
    font-size: 20px;
  }

  .ts-gov-ministry {
    margin-top: 12px;
    line-height: 1.45;
  }
}

/* =========================================================
   HEADER FINAL — BANDEAU IMAGE SANITY + MENU PROPRE
========================================================= */

.ts-gov-topbar,
.ts-gov-inner,
.ts-senegal-ribbon,
.ts-gov-republic,
.ts-gov-motto,
.ts-gov-ministry {
  display: none !important;
}

.ts-gov-banner {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

.ts-gov-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ts-header-shell {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.ts-header-shell.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
}

.ts-header-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 56px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.ts-menu-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.ts-brand-zone {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.ts-brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.ts-slogan {
  font-family: "Mayor", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #0386a9;
  white-space: nowrap;
}

.ts-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.ts-nav a {
  padding: 11px 17px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.ts-nav a.active {
  color: #ffffff;
  background: #0386a9;
}

@media (max-width: 1100px) {
  .ts-header-inner {
    grid-template-columns: 50px 1fr;
  }

  .ts-nav {
    display: none;
  }

  .ts-brand-zone {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ts-header-inner {
    width: calc(100% - 24px);
    min-height: 86px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .ts-brand-logo {
    height: 46px;
  }

  .ts-slogan {
    display: none;
  }
}

/* =========================================================
   FIX MOBILE — GALERIE TERANGASKILLS
========================================================= */

@media (max-width: 768px) {
  .section:has(.section-title),
  .home-container,
  .container {
    overflow: visible !important;
  }

  .section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .section .section-title,
  .section .section-text,
  .section .section-tag {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .section div[style*="grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .section div[style*="cursor: pointer"] {
    display: block !important;
    width: 100% !important;
    min-height: 220px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .section div[style*="cursor: pointer"] img {
    display: block !important;
    width: 100% !important;
    height: 230px !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

/* =========================================================
   FIX MOBILE — GALERIE TERANGASKILLS
========================================================= */

@media (max-width: 768px) {
  .section:has(.section-title),
  .home-container,
  .container {
    overflow: visible !important;
  }

  .section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .section .section-title,
  .section .section-text,
  .section .section-tag {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .section div[style*="grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .section div[style*="cursor: pointer"] {
    display: block !important;
    width: 100% !important;
    min-height: 220px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .section div[style*="cursor: pointer"] img {
    display: block !important;
    width: 100% !important;
    height: 230px !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
}

/* =========================================================
   GALERIE — VERSION STABLE DESKTOP + MOBILE
========================================================= */

.galerie-section-mobile-fix {
  display: block !important;
  width: 100% !important;
  padding: 80px 0 !important;
  background: #ffffff !important;
  overflow: visible !important;
}

.galerie-grid-mobile-fix {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 32px !important;
  width: 100% !important;
}

.galerie-card-mobile-fix {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 230px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10) !important;
}

.galerie-img-mobile-fix {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.galerie-caption-mobile-fix {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 14px 16px !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent) !important;
  text-align: left !important;
}

.galerie-lightbox-mobile-fix {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.92) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.galerie-lightbox-img-mobile-fix {
  max-width: 92vw !important;
  max-height: 82vh !important;
  object-fit: contain !important;
  border-radius: 16px !important;
}

.galerie-close-mobile-fix {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 32px !important;
  line-height: 1 !important;
  z-index: 100000 !important;
}

.galerie-arrow-mobile-fix {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255,255,255,0.92) !important;
  color: #111827 !important;
  font-size: 34px !important;
  z-index: 100000 !important;
}

.galerie-arrow-mobile-fix.left {
  left: 14px !important;
}

.galerie-arrow-mobile-fix.right {
  right: 14px !important;
}

@media (max-width: 768px) {
  .galerie-section-mobile-fix {
    padding: 56px 0 !important;
  }

  .galerie-grid-mobile-fix {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .galerie-card-mobile-fix {
    height: 245px !important;
    min-height: 245px !important;
  }

  .galerie-img-mobile-fix {
    height: 245px !important;
  }

  .galerie-caption-mobile-fix {
    font-size: 15px !important;
  }
}

/* FIX CRITIQUE MOBILE — GALERIE TOUJOURS VISIBLE */
@media (max-width: 768px) {
  .galerie-section-mobile-fix,
  .galerie-grid-mobile-fix,
  .galerie-card-mobile-fix,
  .galerie-img-mobile-fix {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .galerie-grid-mobile-fix {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .galerie-card-mobile-fix {
    height: 260px !important;
    min-height: 260px !important;
    width: 100% !important;
  }

  .galerie-img-mobile-fix {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
  }
}

/* =========================================================
   FIX MOBILE — PROFILS SECTION
========================================================= */

@media (max-width: 768px) {
  .profils-section,
  section:has(.home-access-card),
  section:has(a[href="/actualites"]) {
    overflow: visible !important;
  }

  .profils-section .container,
  .profils-section .home-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    overflow: visible !important;
  }
}

/* Force la grille inline de ProfilsSection à passer en 1 colonne */
@media (max-width: 768px) {
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .profils-section {
    overflow: visible !important;
  }

  .profils-section * {
    max-width: 100% !important;
  }
}

/* =========================================================
   HERO PREMIUM — TERANGASKILLS
   Amélioration visuelle sans casser le React
========================================================= */

.premium-hero {
  min-height: 82vh !important;
  position: relative !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
  isolation: isolate !important;
}

.premium-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(
      90deg,
      rgba(5, 8, 20, 0.88) 0%,
      rgba(15, 23, 42, 0.68) 42%,
      rgba(64, 41, 102, 0.32) 100%
    ) !important;
}

.hero-gradient-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background:
    radial-gradient(circle at 18% 35%, rgba(3, 134, 169, 0.26), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(240, 180, 67, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.62)) !important;
  pointer-events: none !important;
}

.hero-cinematic-light {
  display: block !important;
  position: absolute !important;
  top: -35% !important;
  left: -28% !important;
  width: 70% !important;
  height: 180% !important;
  z-index: 3 !important;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.04) 38%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.04) 62%,
    transparent 100%
  ) !important;
  transform: rotate(12deg) !important;
  animation: heroPremiumSweep 9s ease-in-out infinite !important;
  pointer-events: none !important;
}

.premium-hero-content {
  position: relative !important;
  z-index: 5 !important;
  max-width: 820px !important;
  padding: 90px 0 !important;
}

.premium-hero-content .badge {
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(14px) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18) !important;
}

.hero-title {
  font-size: clamp(42px, 6vw, 82px) !important;
  line-height: 0.98 !important;
  font-weight: 950 !important;
  letter-spacing: -0.055em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  text-shadow: 0 20px 60px rgba(0,0,0,0.42) !important;
}

.hero-text-slide p {
  max-width: 680px !important;
  margin-top: 22px !important;
  font-size: clamp(16px, 1.5vw, 20px) !important;
  line-height: 1.75 !important;
  color: rgba(255,255,255,0.9) !important;
}

.hero-actions {
  margin-top: 32px !important;
  gap: 14px !important;
}

.hero-actions .btn {
  min-height: 48px !important;
  padding: 14px 24px !important;
  font-weight: 900 !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.20) !important;
}

.hero-actions .btn-primary {
  background: #0386a9 !important;
  color: #ffffff !important;
}

.hero-actions .btn-light {
  background: rgba(255,255,255,0.94) !important;
  color: #402966 !important;
}

.dots {
  margin-top: 32px !important;
}

.dot {
  width: 32px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.34) !important;
}

.dot.active {
  background: #f0b443 !important;
}

@keyframes heroPremiumSweep {
  0% {
    transform: translateX(-55%) rotate(12deg);
    opacity: 0;
  }

  25% {
    opacity: 0.65;
  }

  55% {
    opacity: 0.35;
  }

  100% {
    transform: translateX(230%) rotate(12deg);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .premium-hero {
    min-height: 78vh !important;
    padding: 80px 0 46px !important;
    align-items: flex-end !important;
  }

  .premium-hero-content {
    padding: 48px 0 !important;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: 1.02 !important;
  }

  .hero-text-slide p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
  }
}

/* =========================================================
   HERO PREMIUM NIVEAU 2 — PROFONDEUR + PRESTIGE
========================================================= */

.premium-hero {
  background-attachment: fixed !important;
}

.premium-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  z-index: 4;
  background: linear-gradient(
    to top,
    rgba(255,255,255,1),
    rgba(255,255,255,0)
  );
  pointer-events: none;
}

.premium-hero-content::before {
  content: "14 régions • métiers • jeunesse • excellence";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(240, 180, 67, 0.95);
  color: #402966;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(240, 180, 67, 0.24);
}

.hero-title {
  max-width: 980px !important;
}

.hero-text-slide p {
  position: relative;
  padding-left: 18px;
  border-left: 4px solid #f0b443;
}

.hero-actions .btn-primary {
  position: relative;
  overflow: hidden;
}

.hero-actions .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255,255,255,0.32),
    transparent
  );
  animation: heroBtnShine 4.5s ease-in-out infinite;
}

.hero-actions .btn-light {
  border: 1px solid rgba(255,255,255,0.72) !important;
  backdrop-filter: blur(12px);
}

.premium-hero-content .dots {
  position: relative;
  z-index: 6;
}

/* Mini panneau premium visuel */
.premium-hero-content::after {
  content: "Finale nationale au CICES · Dakar 2026";
  display: block;
  width: fit-content;
  margin-top: 30px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}

@keyframes heroBtnShine {
  0% {
    left: -120%;
    opacity: 0;
  }

  35% {
    opacity: 0.8;
  }

  70% {
    left: 140%;
    opacity: 0;
  }

  100% {
    left: 140%;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .premium-hero {
    background-attachment: scroll !important;
  }

  .premium-hero-content::before {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 8px 12px;
  }

  .hero-text-slide p {
    padding-left: 12px;
    border-left-width: 3px;
  }

  .premium-hero-content::after {
    width: 100%;
    font-size: 12px;
    text-align: center;
  }
}

/* HERO PREMIUM NIVEAU 3 — STATS FLOTTANTES */
.hero-floating-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  max-width: 820px;
}

.hero-floating-stat-card {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}

.hero-floating-stat-card strong {
  display: block;
  color: #f0b443;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.hero-floating-stat-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .hero-floating-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
  }

  .hero-floating-stat-card {
    padding: 14px 12px;
    border-radius: 16px;
  }

  .hero-floating-stat-card strong {
    font-size: 24px;
  }

  .hero-floating-stat-card span {
    font-size: 10px;
  }
}

/* =========================================================
   SUPPRESSION TOTALE DES STATS HERO + BADGE FINALE
========================================================= */

.hero-floating-stats,
.hero-floating-stat-card {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.premium-hero-content::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 768px) {
  .hero-floating-stats,
  .hero-floating-stat-card,
  .premium-hero-content::after {
    display: none !important;
    content: none !important;
  }
}

/* =========================================================
   SIDE MENU PREMIUM — MOBILE / DESKTOP STABLE
========================================================= */

.side-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-start;
}

.side-menu-panel {
  position: relative;
  width: min(420px, 92vw);
  height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  padding: 28px 26px;
  box-shadow: 24px 0 70px rgba(15, 23, 42, 0.28);
  animation: sideMenuIn 0.28s ease both;
}

.side-menu-close {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #0f172a;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.side-menu-brand {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.side-menu-brand img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.side-menu-brand p {
  margin: 0;
  font-family: "Mayor", Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #0386a9;
  font-weight: 900;
  line-height: 1.2;
}

.side-menu-nav {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-menu-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  color: #111827;
  font-size: 25px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.side-menu-nav a.active {
  color: #0386a9;
}

.side-menu-contact {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #0386a9;
  color: #ffffff !important;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(3, 134, 169, 0.24);
}

.side-menu-socials {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 20px;
}

.side-menu-socials a {
  color: #06466d;
  font-size: 22px;
}

@keyframes sideMenuIn {
  from {
    transform: translateX(-100%);
    opacity: 0.4;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .side-menu-panel {
    width: 100vw;
    max-width: 100vw;
    padding: 24px 22px;
  }

  .side-menu-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .side-menu-brand img {
    width: 112px;
  }

  .side-menu-brand p {
    font-size: 18px;
  }

  .side-menu-nav a {
    font-size: 23px;
  }
}

/* =========================================================
   SIDE MENU WORLDSTYLE PREMIUM — TERANGASKILLS
========================================================= */

.ws-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(circle at top right, rgba(3, 134, 169, 0.18), transparent 30%),
    rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: flex-start;
}

.ws-menu-panel {
  position: relative;
  width: min(720px, 100vw);
  height: 100vh;
  background: #ffffff;
  overflow-y: auto;
  box-shadow: 30px 0 90px rgba(15, 23, 42, 0.32);
  animation: wsMenuIn 0.34s cubic-bezier(.2,.8,.2,1) both;
}

.ws-menu-panel::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 90px;
  width: 320px;
  height: 320px;
  background: rgba(3, 134, 169, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.ws-menu-colorbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 8px;
}

.ws-menu-colorbar span {
  display: block;
}

.ws-menu-colorbar .green { background: #067545; }
.ws-menu-colorbar .yellow { background: #f0b443; }
.ws-menu-colorbar .red { background: #d93a34; }
.ws-menu-colorbar .blue { background: #0386a9; }
.ws-menu-colorbar .purple { background: #402966; }

.ws-menu-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 42px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.ws-menu-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ws-menu-brand img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

.ws-menu-brand strong {
  display: block;
  color: #111827;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
}

.ws-menu-brand span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.ws-menu-close {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(15,23,42,0.10);
}

.ws-menu-body {
  position: relative;
  z-index: 2;
  padding: 48px 42px 24px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
}

.ws-menu-intro span {
  display: inline-block;
  color: #0386a9;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ws-menu-intro h2 {
  margin: 16px 0 0;
  color: #111827;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.ws-menu-intro p {
  margin-top: 18px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.75;
}

.ws-menu-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(15,23,42,0.08);
}

.ws-menu-nav a {
  display: grid;
  grid-template-columns: 54px 1fr 36px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  text-decoration: none;
  color: #111827;
  transition: all 0.25s ease;
}

.ws-menu-number {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 950;
}

.ws-menu-label {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.ws-menu-arrow {
  color: #0386a9;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
}

.ws-menu-nav a:hover,
.ws-menu-nav a.active {
  color: #0386a9;
  padding-left: 10px;
}

.ws-menu-nav a:hover .ws-menu-arrow,
.ws-menu-nav a.active .ws-menu-arrow {
  opacity: 1;
  transform: translateX(0);
}

.ws-menu-footer {
  position: relative;
  z-index: 2;
  padding: 28px 42px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.ws-menu-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  background: #0386a9;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(3,134,169,0.24);
}

.ws-menu-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ws-menu-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8fafc;
  color: #402966;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(15,23,42,0.08);
}

@keyframes wsMenuIn {
  from {
    transform: translateX(-100%);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .ws-menu-panel {
    width: 100vw;
  }

  .ws-menu-header {
    padding: 20px 20px;
  }

  .ws-menu-brand img {
    width: 96px;
  }

  .ws-menu-brand strong {
    font-size: 17px;
  }

  .ws-menu-brand span {
    display: none;
  }

  .ws-menu-close {
    width: 48px;
    height: 48px;
  }

  .ws-menu-body {
    padding: 34px 22px 18px;
    display: block;
  }

  .ws-menu-intro h2 {
    font-size: 38px;
  }

  .ws-menu-intro p {
    font-size: 15px;
  }

  .ws-menu-nav {
    margin-top: 28px;
  }

  .ws-menu-nav a {
    grid-template-columns: 42px 1fr 28px;
    min-height: 64px;
  }

  .ws-menu-label {
    font-size: 28px;
  }

  .ws-menu-footer {
    padding: 24px 22px 34px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ws-menu-contact {
    width: 100%;
  }

  .ws-menu-socials {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================
   SIDE MENU — VERSION COMPACTE PROFESSIONNELLE
========================================================= */

.ws-menu-panel {
  width: min(520px, 92vw) !important;
}

.ws-menu-header {
  padding: 18px 28px !important;
}

.ws-menu-brand img {
  width: 86px !important;
}

.ws-menu-brand strong {
  font-size: 17px !important;
}

.ws-menu-brand span {
  font-size: 12px !important;
}

.ws-menu-close {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
}

.ws-menu-body {
  padding: 30px 28px 18px !important;
  display: block !important;
}

.ws-menu-intro h2 {
  font-size: 32px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
}

.ws-menu-intro p {
  margin-top: 12px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.ws-menu-nav {
  margin-top: 24px !important;
}

.ws-menu-nav a {
  grid-template-columns: 38px 1fr 24px !important;
  min-height: 54px !important;
  gap: 10px !important;
}

.ws-menu-number {
  font-size: 11px !important;
}

.ws-menu-label {
  font-size: 22px !important;
  letter-spacing: -0.025em !important;
}

.ws-menu-arrow {
  font-size: 13px !important;
}

.ws-menu-footer {
  padding: 20px 28px 30px !important;
}

.ws-menu-contact {
  padding: 12px 22px !important;
  font-size: 14px !important;
}

.ws-menu-socials a {
  width: 36px !important;
  height: 36px !important;
  font-size: 15px !important;
}

@media (max-width: 768px) {
  .ws-menu-panel {
    width: 92vw !important;
    max-width: 420px !important;
    height: 100vh !important;
  }

  .ws-menu-header {
    padding: 16px 20px !important;
  }

  .ws-menu-brand img {
    width: 78px !important;
  }

  .ws-menu-brand strong {
    font-size: 16px !important;
  }

  .ws-menu-body {
    padding: 26px 20px 16px !important;
  }

  .ws-menu-intro h2 {
    font-size: 30px !important;
  }

  .ws-menu-intro p {
    font-size: 13px !important;
  }

  .ws-menu-nav a {
    min-height: 52px !important;
  }

  .ws-menu-label {
    font-size: 21px !important;
  }

  .ws-menu-footer {
    padding: 18px 20px 28px !important;
  }
}

/* =========================================================
   DARK MODE PREMIUM — TERANGASKILLS
========================================================= */

.theme-toggle-premium {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #0386a9;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 18px 45px rgba(3, 134, 169, 0.35);
  cursor: pointer;
}

html.dark-theme body {
  background: #070b14 !important;
  color: #e5e7eb !important;
}

html.dark-theme .site-wrapper,
html.dark-theme main,
html.dark-theme section {
  background-color: transparent !important;
}

html.dark-theme .ts-header-shell {
  background: rgba(7, 11, 20, 0.94) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

html.dark-theme .ts-nav {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

html.dark-theme .ts-nav a {
  color: #e5e7eb !important;
}

html.dark-theme .ts-nav a.active {
  background: #0386a9 !important;
  color: #ffffff !important;
}

html.dark-theme .ts-menu-btn,
html.dark-theme .ws-menu-close {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.12) !important;
}

html.dark-theme .ts-slogan {
  color: #22d3ee !important;
}

html.dark-theme .home-access-section,
html.dark-theme .home-story-section,
html.dark-theme .laureats-section,
html.dark-theme .partners-section-premium,
html.dark-theme .galerie-section-mobile-fix,
html.dark-theme .video-section,
html.dark-theme .page-section,
html.dark-theme .section,
html.dark-theme .alt-section {
  background: #070b14 !important;
}

html.dark-theme .card,
html.dark-theme .stat-card,
html.dark-theme .home-access-card,
html.dark-theme .laureats-card,
html.dark-theme .laureat-item,
html.dark-theme .form-premium,
html.dark-theme .metier-premium,
html.dark-theme .info-card,
html.dark-theme .programmeCard,
html.dark-theme .video-card,
html.dark-theme .galerie-card-mobile-fix {
  background: #111827 !important;
  border-color: rgba(255,255,255,0.09) !important;
  box-shadow: 0 20px 55px rgba(0,0,0,0.35) !important;
}

html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme .page-title,
html.dark-theme .section-title,
html.dark-theme .home-section-title,
html.dark-theme .cardTitle,
html.dark-theme .laureats-card h3 {
  color: #ffffff !important;
}

html.dark-theme p,
html.dark-theme .section-text,
html.dark-theme .home-section-text,
html.dark-theme .page-text,
html.dark-theme .stat-label,
html.dark-theme .laureat-info p,
html.dark-theme .home-access-card p {
  color: #cbd5e1 !important;
}

html.dark-theme .section-tag,
html.dark-theme .home-section-tag {
  color: #22d3ee !important;
}

html.dark-theme .home-access-link,
html.dark-theme a {
  color: #38bdf8 !important;
}

html.dark-theme .btn-light,
html.dark-theme .home-secondary-cta {
  background: #111827 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

html.dark-theme input,
html.dark-theme textarea,
html.dark-theme select {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.12) !important;
}

html.dark-theme .footer {
  background: #020617 !important;
}

html.dark-theme .ws-menu-panel {
  background: #0f172a !important;
}

html.dark-theme .ws-menu-header {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}

html.dark-theme .ws-menu-brand strong,
html.dark-theme .ws-menu-intro h2,
html.dark-theme .ws-menu-label {
  color: #ffffff !important;
}

html.dark-theme .ws-menu-brand span,
html.dark-theme .ws-menu-intro p,
html.dark-theme .ws-menu-number {
  color: #cbd5e1 !important;
}

html.dark-theme .ws-menu-nav {
  border-top-color: rgba(255,255,255,0.08) !important;
}

html.dark-theme .ws-menu-nav a {
  border-bottom-color: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
}

html.dark-theme .ws-menu-socials a {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.10) !important;
}

@media (max-width: 768px) {
  .theme-toggle-premium {
    width: 52px;
    height: 52px;
    right: 18px;
    bottom: 18px;
  }
}

/* =========================================================
   FIX HEADER MOBILE — COMPACT PRO
========================================================= */

@media (max-width: 768px) {
  .ts-gov-banner {
    height: 82px !important;
    overflow: hidden !important;
  }

  .ts-gov-banner-img {
    width: 100% !important;
    height: 82px !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .ts-header-shell {
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
  }

  .ts-header-inner {
    min-height: 96px !important;
    padding: 10px 0 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .ts-menu-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
    order: 1 !important;
  }

  .ts-brand-zone {
    order: 2 !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .ts-brand-logo {
    height: 58px !important;
    max-height: 58px !important;
  }

  .ts-slogan {
    display: none !important;
  }

  main {
    padding-top: 0 !important;
  }
}

/* HEADER MOBILE — MENU + LOGO + SLOGAN SUR UNE LIGNE */
@media (max-width: 768px) {
  .ts-header-inner {
    min-height: 86px !important;
    width: calc(100% - 20px) !important;
    padding: 10px 0 !important;

    display: grid !important;
    grid-template-columns: 54px auto 1fr !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .ts-menu-btn {
    width: 52px !important;
    height: 52px !important;
    order: unset !important;
  }

  .ts-brand-zone {
    order: unset !important;
    width: auto !important;
    display: contents !important;
  }

  .ts-brand-logo {
    height: 54px !important;
    max-height: 54px !important;
    width: auto !important;
  }

  .ts-slogan {
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    color: #0386a9 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 420px) {
  .ts-header-inner {
    grid-template-columns: 50px auto 1fr !important;
    gap: 9px !important;
  }

  .ts-menu-btn {
    width: 48px !important;
    height: 48px !important;
  }

  .ts-brand-logo {
    height: 48px !important;
  }

  .ts-slogan {
    font-size: 16px !important;
  }
}

/* =========================================================
   FIX DÉFINITIF MOBILE — BLOCS QUI DÉBORDENT
========================================================= */

@media (max-width: 768px) {
  html,
  body,
  #root,
  .site-wrapper,
  main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  section,
  .container,
  .home-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Toutes les grilles passent en 1 colonne */
  .grid-2,
  .grid-3,
  .grid-4,
  .home-story-grid,
  .home-value-grid,
  .home-access-grid,
  .home-steps-grid,
  .stats-grid,
  .competition-grid,
  .finale-grid,
  .programme-grid,
  .info-grid,
  .metiers-grid,
  .actualites-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Empêche les cartes verticales de sortir de l’écran */
  .home-story-grid > *,
  .competition-grid > *,
  .finale-grid > *,
  .programme-grid > *,
  .info-grid > *,
  .card,
  .info-card,
  .programmeCard,
  .home-value-card,
  .home-step-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  /* Corrige les grands blocs bleu foncé qui se compressent */
  .home-cta-box,
  .competition-card,
  .finale-card,
  .programmeCard,
  .infoCard {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px !important;
    padding: 24px !important;
  }

  /* Texte mobile plus fluide */
  h1,
  h2,
  .page-title,
  .section-title,
  .home-section-title {
    font-size: clamp(28px, 8vw, 42px) !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
  }

  p,
  .section-text,
  .home-section-text,
  .page-text {
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  /* Boutons en largeur propre */
  .btn,
  .home-gradient-btn,
  .home-primary-cta,
  .home-secondary-cta {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* =========================================================
   PAGE COMPÉTITION — FIX DÉFINITIF MOBILE + DESIGN PRO
========================================================= */

.competition-page {
  position: relative;
  width: 100%;
  padding: 90px 0;
  overflow-x: hidden;
  background: #ffffff;
}

.competition-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.competition-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: stretch;
}

.competition-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  color: #0386a9;
  margin-bottom: 12px;
}

.competition-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 950;
  color: #0b1020;
  letter-spacing: -1.5px;
}

.competition-hero-text p {
  margin-top: 18px;
  max-width: 850px;
  font-size: 17px;
  line-height: 1.85;
  color: #475569;
}

.competition-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.competition-primary-btn,
.competition-secondary-btn,
.competition-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.competition-primary-btn {
  background: #e37b43;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(224, 123, 66, 0.24);
}

.competition-secondary-btn {
  background: #ffffff;
  color: #06466d !important;
  border: 1px solid rgba(29, 79, 145, 0.16);
}

.competition-hero-card {
  min-width: 0;
  min-height: 280px;
  border-radius: 34px;
  overflow: hidden;
  color: #ffffff;
  background: #06466d;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.competition-hero-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 22px;
}

.competition-hero-card span {
  font-size: 56px;
  line-height: 1;
  font-weight: 950;
}

.competition-hero-card h2 {
  margin: 14px 0 0;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 950;
  color: #ffffff;
}

.competition-hero-card p {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.competition-timeline {
  display: grid;
  gap: 20px;
  margin-top: 46px;
}

.competition-step-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  align-items: start;
  padding: 30px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.competition-number {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: #0386a9;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 950;
}

.competition-step-label {
  display: inline-block;
  color: #0386a9;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.competition-step-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  color: #111827;
  font-weight: 950;
}

.competition-step-card p {
  margin: 14px 0 0;
  color: #475569;
  line-height: 1.75;
}

.competition-cta {
  margin-top: 46px;
  padding: 42px;
  border-radius: 34px;
  background: #06466d;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.competition-cta span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.competition-cta h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 950;
  color: #ffffff;
}

.competition-cta p {
  margin: 16px 0 0;
  max-width: 820px;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
}

.competition-cta a {
  background: #ffffff;
  color: #06466d !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
  white-space: nowrap;
}

/* MOBILE */
@media (max-width: 768px) {
  .competition-page {
    padding: 56px 0;
  }

  .competition-container {
    width: calc(100% - 28px);
  }

  .competition-hero {
    display: block;
  }

  .competition-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
  }

  .competition-hero-text p {
    font-size: 16px;
    line-height: 1.75;
  }

  .competition-actions {
    flex-direction: column;
  }

  .competition-primary-btn,
  .competition-secondary-btn {
    width: 100%;
  }

  .competition-hero-card {
    margin-top: 30px;
    min-height: auto;
    padding: 26px;
    border-radius: 26px;
  }

  .competition-hero-card img {
    min-height: 230px;
  }

  .competition-hero-card span {
    font-size: 42px;
  }

  .competition-hero-card h2 {
    font-size: 24px;
  }

  .competition-step-card {
    display: block;
    padding: 24px;
    border-radius: 24px;
  }

  .competition-number {
    margin-bottom: 18px;
  }

  .competition-cta {
    display: block;
    padding: 26px;
    border-radius: 26px;
  }

  .competition-cta a {
    width: 100%;
    margin-top: 24px;
  }
}

/* =========================================================
   HEADER WORDPRESS — AJUSTEMENT LOGO
========================================================= */

.ts-brand-logo {
  height: 58px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block;
}

.ts-brand-zone {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ts-slogan {
  font-size: 20px;
  color: #0386a9;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ts-brand-logo {
    height: 46px !important;
  }

  .ts-slogan {
    font-size: 16px;
  }
}

/* =========================================================
   WORDPRESS HEADER FIX — TERANGASKILLS
========================================================= */

.ts-header-shell {
  width: 100%;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}

.ts-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
}

.ts-menu-btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 24px !important;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.ts-brand-zone {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  min-width: 0 !important;
}

.ts-brand-logo {
  width: auto !important;
  height: 52px !important;
  max-height: 52px !important;
  max-width: 150px !important;
  object-fit: contain !important;
  display: block !important;
}

.ts-slogan {
  display: block !important;
  font-family: "Mayor", Arial, Helvetica, sans-serif;
  font-size: 18px !important;
  line-height: 1 !important;
  color: #0386a9 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.ts-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ts-nav a {
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  padding: 10px 14px;
  border-radius: 999px;
}

.ts-nav a:hover {
  color: #0386a9 !important;
  background: rgba(3, 134, 169, 0.08);
}

@media (max-width: 768px) {
  .ts-header-inner {
    width: calc(100% - 20px);
    min-height: 76px;
    grid-template-columns: 46px auto 1fr;
    gap: 10px;
  }

  .ts-menu-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 22px !important;
  }

  .ts-brand-logo {
    height: 44px !important;
    max-height: 44px !important;
    max-width: 120px !important;
  }

  .ts-slogan {
    font-size: 15px !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ts-nav {
    display: none !important;
  }
}

/* =========================================================
   FOOTER WORDPRESS — TERANGASKILLS
========================================================= */

.ts-footer {
  width: 100%;
  background: #06466d;
  color: #ffffff;
  padding: 52px 20px 24px;
}

.ts-footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 34px;
}

.ts-footer-logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 16px;
}

.ts-footer-logo-box {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.ts-footer-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.ts-footer-brand {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 800;
  color: #ffffff;
}

.ts-footer-address {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.74);
}

.ts-footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ts-footer-column h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
}

.ts-footer-column a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}

.ts-footer-column a:hover {
  color: #ffffff;
}

.ts-footer-socials{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
  margin-top:20px;
}

.ts-footer-bottom {
  width: min(1180px, 100%);
  margin: 38px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ts-footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

.ts-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ts-footer-bottom-links a {
  color: rgba(255,255,255,0.84);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 980px) {

  .ts-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .ts-footer {
    padding: 44px 18px 22px;
  }

  .ts-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ts-footer-logo-box {
    width: 82px;
    height: 82px;
  }

  .ts-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   FRONT PAGE WORDPRESS
========================================================= */

.premium-hero {
  position: relative;
  min-height: 92vh;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 8, 20, 0.88) 0%,
      rgba(3, 8, 20, 0.66) 42%,
      rgba(3, 8, 20, 0.20) 100%
    );
}

.hero-cinematic-light {
  position: absolute;
  width: 600px;
  height: 600px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: rgba(0, 173, 239, 0.14);
  filter: blur(90px);
}

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

.premium-hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.hero-title {
  margin: 24px 0 0;
  max-width: 880px;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.95;
  color: #ffffff;
  font-weight: 950;
  letter-spacing: -3px;
}

.hero-text-slide p {
  margin-top: 26px;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255,255,255,0.84);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.btn-primary {
  background: #e37b43;
  color: #ffffff;
}

.btn-light {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.stats-section {
  padding: 80px 20px;
  background: #ffffff;
}

.stats-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}

.premium-stat-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 38px 24px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 50px rgba(15,23,42,0.08);
}

.stat-value {
  font-size: 52px;
  line-height: 1;
  font-weight: 950;
  color: #06466d;
}

.stat-label {
  margin-top: 12px;
  color: #64748b;
  font-weight: 700;
}

.home-story-section {
  padding: 90px 20px;
}

.home-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.home-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.home-section-tag {
  font-size: 13px;
  font-weight: 900;
  color: #0386a9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-section-title {
  margin-top: 14px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1;
  color: #0f172a;
  font-weight: 950;
}

.home-section-text {
  font-size: 18px;
  line-height: 1.9;
  color: #475569;
}

.competition-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 90px;
  padding: 44px;
  border-radius: 34px;
  background: #06466d;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.competition-cta span {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.competition-cta h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  font-weight: 950;
}

.competition-cta p {
  margin-top: 18px;
  max-width: 760px;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
}

.competition-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #06466d;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 768px) {

  .premium-hero {
    min-height: 86vh;
  }

  .hero-title {
    font-size: clamp(42px, 12vw, 60px);
    line-height: 1.02;
    letter-spacing: -2px;
  }

  .hero-text-slide p {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .home-story-grid {
    grid-template-columns: 1fr;
  }

  .competition-cta {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .competition-cta a {
    width: 100%;
  }
}

.ts-hero-slider{
  position:relative;
  height:100vh;
  overflow:hidden;
}

.ts-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1s ease;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
}

.ts-slide.active{
  opacity:1;
  z-index:2;
}

.ts-slide-content{
  max-width:760px;
  padding:0 8%;
  color:#fff;
}

.ts-slide-badge{
  display:inline-flex;
  padding:14px 28px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.2);
  font-size:14px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:24px;
}

.ts-slide-title{
  font-size:clamp(3rem,7vw,6rem);
  line-height:.95;
  font-weight:900;
  margin:0;
  text-transform:uppercase;
}

.ts-slide-description{
  margin-top:28px;
  max-width:620px;
  font-size:22px;
  line-height:1.7;
  color:rgba(255,255,255,.88);
}

.ts-slider-dots{
  position:absolute;
  bottom:40px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:12px;
  z-index:10;
}

.ts-slider-dots span{
  width:12px;
  height:12px;
  border-radius:50%;
  background:rgba(255,255,255,.4);
  transition:.3s;
}

.ts-slider-dots span.active{
  background:#fff;
  transform:scale(1.3);
}

@media(max-width:768px){

  .ts-hero-slider{
    height:85vh;
  }

  .ts-slide-content{
    padding:0 24px;
  }

  .ts-slide-title{
    font-size:52px;
    line-height:1;
  }

  .ts-slide-description{
    font-size:17px;
    line-height:1.6;
  }

}

.ts-hero-slider {
  position: relative !important;
  height: 92vh !important;
  min-height: 620px !important;
  overflow: hidden !important;
  background: #020617 !important;
}

.ts-slide {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 1s ease, visibility 1s ease !important;
  background-size: cover !important;
  background-position: center !important;
  display: flex !important;
  align-items: center !important;
}

.ts-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
}

.ts-slide-content {
  position: relative !important;
  z-index: 3 !important;
  width: min(1180px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  color: #ffffff !important;
}

.ts-slide-badge {
  display: inline-flex !important;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.14) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.ts-slide-title {
  margin: 24px 0 0 !important;
  max-width: 960px !important;
  font-size: clamp(48px, 7vw, 86px) !important;
  line-height: 0.98 !important;
  font-weight: 950 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
}

.ts-slide-description {
  margin-top: 26px !important;
  max-width: 760px !important;
  font-size: 20px !important;
  line-height: 1.75 !important;
  color: rgba(255,255,255,0.88) !important;
}

.ts-slider-dots {
  position: absolute !important;
  bottom: 36px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 12px !important;
  z-index: 10 !important;
}

.ts-slider-dots span {
  width: 34px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.35) !important;
}

.ts-slider-dots span.active {
  background: #f0b443 !important;
}

@media (max-width: 768px) {
  .ts-hero-slider {
    height: 84vh !important;
    min-height: 560px !important;
  }

  .ts-slide-title {
    font-size: 42px !important;
    line-height: 1.04 !important;
  }

  .ts-slide-description {
    font-size: 16px !important;
  }
}

/* =========================================================
   WORDPRESS HERO SLIDER PREMIUM
========================================================= */

.ts-hero-slider{
  position:relative;
  height:92vh;
  min-height:680px;
  overflow:hidden;
  background:#020617;
}

.ts-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity 1s ease, visibility 1s ease;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
}

.ts-slide.active{
  opacity:1;
  visibility:visible;
  z-index:2;
}

.ts-slide::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  linear-gradient(
    90deg,
    rgba(2,6,23,.90) 0%,
    rgba(2,6,23,.58) 42%,
    rgba(2,6,23,.18) 100%
  );
}

.ts-slide-content{
  position:relative;
  z-index:3;
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
  color:#fff;
}

.ts-slide-badge{
  display:inline-flex;
  align-items:center;
  padding:12px 22px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.18);
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.ts-slide-title{
  margin:24px 0 0;
  max-width:920px;
  font-size:clamp(54px,7vw,92px);
  line-height:.96;
  font-weight:950;
  color:#fff;
  text-transform:uppercase;
}

.ts-slide-description{
  margin-top:26px;
  max-width:760px;
  font-size:20px;
  line-height:1.75;
  color:rgba(255,255,255,.88);
}

.ts-slider-dots{
  position:absolute;
  left:50%;
  bottom:34px;
  transform:translateX(-50%);
  display:flex;
  gap:12px;
  z-index:10;
}

.ts-slider-dots span{
  width:36px;
  height:5px;
  border-radius:999px;
  background:rgba(255,255,255,.35);
}

.ts-slider-dots span.active{
  background:#f0b443;
}

@media(max-width:768px){

  .ts-hero-slider{
    height:82vh;
    min-height:560px;
  }

  .ts-slide-content{
    width:calc(100% - 28px);
  }

  .ts-slide-title{
    font-size:42px;
    line-height:1.04;
  }

  .ts-slide-description{
    font-size:16px;
    line-height:1.6;
  }

}

/* FIX FOND ROUGE + CTA HOMEPAGE WORDPRESS */

html,
body {
  background: #ffffff !important;
}

.competition-cta {
  width: min(1180px, calc(100% - 40px)) !important;
  margin: 70px auto 90px !important;
  padding: 42px !important;
  border-radius: 34px !important;
  background: #06466d !important;
  color: #ffffff !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 28px !important;
  align-items: center !important;
  box-shadow: 0 30px 80px rgba(15,23,42,0.18) !important;
}

.competition-cta span {
  display: inline-flex !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.86) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 14px !important;
}

.competition-cta h2 {
  margin: 0 !important;
  max-width: 820px !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  color: #ffffff !important;
}

.competition-cta p {
  margin: 16px 0 0 !important;
  max-width: 820px !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.competition-cta a {
  padding: 14px 26px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #06466d !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18) !important;
}

@media (max-width: 768px) {
  .competition-cta {
    display: block !important;
    width: calc(100% - 28px) !important;
    margin: 50px auto 70px !important;
    padding: 26px !important;
    border-radius: 26px !important;
  }

  .competition-cta a {
    width: 100% !important;
    margin-top: 24px !important;
  }
}

/* =========================================================
   PAGE CONCOURS
========================================================= */

.competition-page{
  padding:90px 0;
  background:#f8fafc;
}

.competition-container{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
}

.competition-hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:center;
}

.competition-tag{
  display:inline-flex;
  align-items:center;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(12,74,110,.08);
  color:#0c4a6e;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.competition-hero-text h1{
  margin:24px 0 0;
  font-size:clamp(42px,5vw,72px);
  line-height:.95;
  letter-spacing:-.05em;
  font-weight:950;
  color:#020617;
  max-width:720px;
}

.competition-hero-text p{
  margin-top:28px;
  max-width:620px;
  font-size:18px;
  line-height:1.85;
  color:#475569;
}

.competition-actions{
  display:flex;
  gap:18px;
  margin-top:36px;
  flex-wrap:wrap;
}

.competition-primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:58px;
  padding:0 32px;
  border-radius:999px;
  background:linear-gradient(135deg,#f0b443,#d89b26);
  color:#fff;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 20px 40px rgba(240,180,67,.26);
}

.competition-secondary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:58px;
  padding:0 32px;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.08);
  font-weight:800;
  text-decoration:none;
}

.competition-hero-card{
  position:relative;
  overflow:hidden;
  min-height:560px;
  border-radius:34px;
  background:
  linear-gradient(
    180deg,
    rgba(15,23,42,.12),
    rgba(15,23,42,.78)
  ),
  url('../images/hero.jpg');
  background-size:cover;
  background-position:center;
  padding:44px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  box-shadow:0 35px 80px rgba(15,23,42,.18);
}

.competition-hero-card span{
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.82);
  font-weight:900;
}

.competition-hero-card h2{
  margin:14px 0 0;
  font-size:42px;
  line-height:1;
  color:#fff;
  font-weight:900;
}

.competition-hero-card p{
  margin-top:18px;
  color:rgba(255,255,255,.86);
  line-height:1.7;
}

.competition-timeline{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:90px;
}

.competition-step-card{
  background:#fff;
  border-radius:28px;
  padding:34px;
  box-shadow:0 20px 60px rgba(15,23,42,.06);
}

.competition-number{
  font-size:52px;
  line-height:1;
  font-weight:950;
  color:#f0b443;
}

.competition-step-label{
  display:inline-block;
  margin-top:18px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:900;
  color:#0c4a6e;
}

.competition-step-card h3{
  margin-top:12px;
  font-size:26px;
  line-height:1.1;
  color:#020617;
}

.competition-step-card p{
  margin-top:16px;
  color:#475569;
  line-height:1.8;
}

@media(max-width:980px){

  .competition-hero{
    grid-template-columns:1fr;
  }

  .competition-hero-card{
    min-height:420px;
  }

  .competition-timeline{
    grid-template-columns:1fr;
  }

}

@media(max-width:768px){

  .competition-page{
    padding:60px 0;
  }

  .competition-container{
    width:calc(100% - 28px);
  }

  .competition-hero-text h1{
    font-size:42px;
    line-height:1.02;
  }

  .competition-hero-text p{
    font-size:16px;
    line-height:1.75;
  }

  .competition-actions{
    flex-direction:column;
  }

  .competition-primary-btn,
  .competition-secondary-btn{
    width:100%;
  }

  .competition-hero-card{
    min-height:340px;
    padding:28px;
    border-radius:24px;
  }

  .competition-hero-card h2{
    font-size:32px;
  }

}

/* =========================================================
   ARCHIVE MÉTIERS WORDPRESS
========================================================= */

.metiers-page {
  position: relative;
  padding: 90px 0;
  background: #ffffff;
  overflow: hidden;
}

.metiers-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.metiers-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  margin-bottom: 42px;
}

.metiers-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 950;
  color: #402966;
  margin-bottom: 14px;
}

.metiers-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -1.4px;
}

.metiers-hero p {
  margin-top: 18px;
  max-width: 850px;
  font-size: 17px;
  line-height: 1.85;
  color: #475569;
}

.metiers-stat {
  min-width: 180px;
  border-radius: 28px;
  padding: 26px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15,23,42,0.18);
}

.metiers-stat span {
  display: block;
  font-size: 52px;
  line-height: 1;
  font-weight: 950;
}

.metiers-stat small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  font-weight: 850;
}

.metiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.metier-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15,23,42,0.08);
  transition: all 0.35s ease;
  color: inherit;
  text-decoration: none;
  display: block;
}

.metier-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 30px 70px rgba(15,23,42,0.14);
}

.metier-card-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #0f172a;
}

.metier-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.metier-card:hover img {
  transform: scale(1.08);
}

.metier-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0386a9;
  color: #ffffff;
  font-weight: 900;
  font-size: 24px;
}

.metier-category {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #402966;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metier-card-body {
  padding: 32px 24px 26px;
}

.metier-card-body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 950;
  color: #0f172a;
}

.metier-info {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.metier-info h3 {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #0386a9;
}

.metier-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: #475569;
}

.metier-read-more {
  margin-top: 20px;
  color: #0386a9;
  font-size: 15px;
  font-weight: 950;
}

.metiers-empty {
  padding: 40px;
  border-radius: 24px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
}

@media (max-width: 768px) {
  .metiers-page {
    padding: 60px 0;
  }

  .metiers-container {
    width: calc(100% - 28px);
  }

  .metiers-hero {
    display: block;
  }

  .metiers-stat {
    margin-top: 26px;
  }

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

.ws-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, .62);
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
}

.ws-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ws-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(460px, 92vw);
  height: 100%;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform .45s ease;
  overflow-y: auto;
}

.ws-menu-overlay.is-open .ws-menu-panel {
  transform: translateX(0);
}

body.ts-menu-open {
  overflow: hidden;
}

/* =========================================================
   FOOTER RÉSEAUX SOCIAUX — FIX PREMIUM FINAL
   Objectif : icônes professionnelles, compactes et alignées
========================================================= */

.ts-footer .ts-footer-socials,
footer.ts-footer .ts-footer-socials{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  max-width:250px !important;
  margin-top:18px !important;
}

.ts-footer .ts-footer-socials a,
footer.ts-footer .ts-footer-socials a{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  max-width:44px !important;
  max-height:44px !important;
  padding:0 !important;
  border-radius:50% !important;
  background:#ffffff !important;
  color:#0386A9 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  box-shadow:0 8px 20px rgba(0,0,0,.10) !important;
  transition:transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease !important;
}

.ts-footer .ts-footer-socials a svg,
footer.ts-footer .ts-footer-socials a svg{
  width:18px !important;
  height:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  display:block !important;
  fill:currentColor !important;
}

.ts-footer .ts-footer-socials a:hover,
footer.ts-footer .ts-footer-socials a:hover{
  transform:translateY(-3px) !important;
  background:#F0B443 !important;
  color:#402966 !important;
  box-shadow:0 14px 28px rgba(0,0,0,.16) !important;
}

@media(max-width:700px){
  .ts-footer .ts-footer-socials,
  footer.ts-footer .ts-footer-socials{
    justify-content:flex-start !important;
    max-width:100% !important;
  }
}

/* =========================================================
   FOOTER — RÉSEAUX SOCIAUX VERSION FINALE COMPACTE
   À garder tout en bas du fichier main.css
========================================================= */

html body footer.ts-footer .ts-footer-socials,
html body .ts-footer .ts-footer-socials,
html body footer .ts-footer-socials{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  max-width:220px !important;
  margin-top:18px !important;
}

html body footer.ts-footer .ts-footer-socials a,
html body .ts-footer .ts-footer-socials a,
html body footer .ts-footer-socials a,
html body footer.ts-footer a.ts-footer-social,
html body .ts-footer a.ts-footer-social{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  max-width:34px !important;
  max-height:34px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:#0386A9 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  line-height:1 !important;
  font-size:14px !important;
  box-shadow:0 7px 16px rgba(0,0,0,.10) !important;
  transition:transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease !important;
  flex:0 0 34px !important;
}

html body footer.ts-footer .ts-footer-socials a svg,
html body .ts-footer .ts-footer-socials a svg,
html body footer .ts-footer-socials a svg,
html body footer.ts-footer a.ts-footer-social svg,
html body .ts-footer a.ts-footer-social svg{
  width:14px !important;
  height:14px !important;
  min-width:14px !important;
  min-height:14px !important;
  max-width:14px !important;
  max-height:14px !important;
  display:block !important;
  fill:currentColor !important;
}

html body footer.ts-footer .ts-footer-socials a:hover,
html body .ts-footer .ts-footer-socials a:hover,
html body footer .ts-footer-socials a:hover,
html body footer.ts-footer a.ts-footer-social:hover,
html body .ts-footer a.ts-footer-social:hover{
  transform:translateY(-2px) !important;
  background:#F0B443 !important;
  color:#402966 !important;
  box-shadow:0 10px 22px rgba(0,0,0,.14) !important;
}

@media(max-width:900px){
  html body footer.ts-footer .ts-footer-socials,
  html body .ts-footer .ts-footer-socials,
  html body footer .ts-footer-socials{
    max-width:100% !important;
    justify-content:flex-start !important;
  }
}

@font-face{
  font-family:"Mayor";
  src:url("../fonts/Mayor.otf") format("opentype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

.ts-slogan,
.header-slogan{
  font-family:"Mayor", Arial, sans-serif !important;
  font-size:26px !important;
  font-weight:700 !important;
  color:#0386A9 !important;
  letter-spacing:0 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  text-transform:none !important;
}

/* COUNTDOWN PREMIUM FINAL */
.home-countdown-section{
  min-height:520px !important;
  display:flex !important;
  align-items:center !important;
  padding:90px 0 !important;
  position:relative !important;
  overflow:hidden !important;
}

.home-countdown-overlay{
  background:
    linear-gradient(90deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.78) 45%, rgba(3,134,169,.58) 100%) !important;
}

.home-countdown-content{
  width:min(1180px, calc(100% - 40px)) !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:1fr 1.05fr !important;
  gap:70px !important;
  align-items:center !important;
  text-align:left !important;
}

.home-countdown-title{
  font-size:clamp(46px,6vw,86px) !important;
  line-height:.95 !important;
  max-width:620px !important;
  letter-spacing:-3px !important;
  margin:0 !important;
}

.home-countdown-date{
  max-width:720px !important;
  margin-top:28px !important;
  font-size:22px !important;
  line-height:1.75 !important;
}

.home-countdown-grid{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:18px !important;
}

.home-countdown-card{
  min-height:180px !important;
  border-radius:34px !important;
  padding:34px 22px !important;
  background:rgba(255,255,255,.12) !important;
  border:1px solid rgba(255,255,255,.20) !important;
  box-shadow:0 30px 80px rgba(0,0,0,.28) !important;
  backdrop-filter:blur(18px) !important;
}

.home-countdown-number{
  font-size:clamp(42px,5vw,70px) !important;
  font-weight:950 !important;
  line-height:1 !important;
}

.home-countdown-label{
  margin-top:18px !important;
  font-size:15px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
}

@media(max-width:900px){
  .home-countdown-content{
    grid-template-columns:1fr !important;
    gap:38px !important;
    text-align:center !important;
  }

  .home-countdown-title,
  .home-countdown-date{
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .home-countdown-grid{
    grid-template-columns:repeat(2,1fr) !important;
  }
}

/* ===== COUNTDOWN PREMIUM ===== */

.ts-countdown-section{
  position:relative;
  padding:110px 0;
  background-size:cover;
  background-position:center;
  overflow:hidden;
}

.ts-countdown-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  linear-gradient(
    90deg,
    rgba(3,15,40,.92) 0%,
    rgba(3,15,40,.82) 45%,
    rgba(3,134,169,.45) 100%
  );
}

.ts-countdown-section .ts-container{
  position:relative;
  z-index:2;
}

.ts-countdown-box{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:70px;
  align-items:center;
}

.ts-countdown-box h2{
  font-size:82px;
  line-height:.95;
  font-weight:900;
  color:#fff;
  letter-spacing:-3px;
  margin-bottom:28px;
  max-width:620px;
}

.ts-countdown-box p{
  font-size:24px;
  line-height:1.8;
  color:rgba(255,255,255,.92);
  max-width:760px;
}

.ts-countdown-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.ts-countdown-item{
  min-height:210px;
  border-radius:34px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 20px 60px rgba(0,0,0,.30);

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  transition:.35s ease;
}

.ts-countdown-item:hover{
  transform:translateY(-8px);
  background:rgba(255,255,255,.16);
}

.ts-countdown-item strong{
  font-size:72px;
  line-height:1;
  font-weight:900;
  color:#fff;
  margin-bottom:16px;
  letter-spacing:-2px;
}

.ts-countdown-item span{
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  color:#fff;
}

@media(max-width:980px){

  .ts-countdown-box{
    grid-template-columns:1fr;
    gap:40px;
  }

  .ts-countdown-box h2{
    font-size:58px;
  }

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

}

@media(max-width:640px){

  .ts-countdown-box h2{
    font-size:44px;
  }

  .ts-countdown-box p{
    font-size:18px;
  }

  .ts-countdown-grid{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }

  .ts-countdown-item{
    min-height:160px;
    border-radius:24px;
  }

  .ts-countdown-item strong{
    font-size:48px;
  }

}

.ts-ministere-banner{
  width:100%;
  overflow:hidden;
  position:relative;
  background:#2D1464;
}

.ts-ministere-banner img{
  width:100%;
  display:block;
  object-fit:cover;
  max-height:430px;
}

@media(max-width:768px){

  .ts-ministere-banner img{
    max-height:220px;
  }

}