/* ============================================================
   STYLE.CSS — ISJIEE NEXT (VISION BLEUE ÉTOILÉE)
   Identité visuelle : bleu profond, bleu royal, or prestige,
   blanc élégance et crème élégance.
   Structure et sélecteurs conservés — effets visuels affinés.
   ============================================================ */

/* ═══════════════════════════════════════════════════════════ */
/* 1. VARIABLES ET COULEURS DE LA CHARTE                      */
/* ═══════════════════════════════════════════════════════════ */
:root {
  --bleu-isjiee: #0A2D7A;
  --bleu-royal: #1E40AF;
  --bleu-ciel: #3B82F6;
  --bleu-nuit: #061638;
  --bleu-profond: #030D27;
  --or-prestige: #D4A037;
  --or-lumineux: #F2CB60;
  --or-clair: #FFE6A0;
  --blanc-elegance: #FFFFFF;
  --creme-elegance: #F8F1E1;

  --border-gold: rgba(212, 160, 55, 0.55);
  --text-muted: #B8C5DF;
  --hh: 80px;
  --transition: all 0.35s cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* SÉCURITÉ ANTI-DÉBORDEMENT GLOBALE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bleu-nuit);
  background-image:
    radial-gradient(ellipse at 50% -12%, rgba(59, 130, 246, 0.30) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 42%, rgba(30, 64, 175, 0.20) 0%, transparent 42%),
    radial-gradient(ellipse at 8% 90%, rgba(212, 160, 55, 0.09) 0%, transparent 38%),
    linear-gradient(135deg, #0A2D7A 0%, #071B49 48%, #030D27 100%);
  background-attachment: fixed;
  color: var(--blanc-elegance);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

/* EFFET ÉTOILÉ GLOBAL */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.85) 0.8px, transparent 1.5px),
    radial-gradient(circle, rgba(59,130,246,0.9) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(242,203,96,0.75) 0.7px, transparent 1.5px);
  background-size: 145px 145px, 205px 205px, 275px 275px;
  background-position: 0 0, 55px 75px, 110px 35px;
  opacity: 0.20;
  animation: twinkle-global 7s ease-in-out infinite alternate;
}

@keyframes twinkle-global {
  0% { opacity: 0.12; }
  100% { opacity: 0.25; }
}

/* COURBES DORÉES — REFLET MARBRÉ DISCRET */
body::after {
  content: "";
  position: fixed;
  top: -20%;
  right: -18%;
  width: 78vw;
  height: 78vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      transparent 43%,
      rgba(212,160,55,0.035) 46%,
      rgba(242,203,96,0.12) 48%,
      rgba(212,160,55,0.045) 50%,
      transparent 54%);
  border-radius: 50%;
  filter: blur(18px);
  transform: rotate(-22deg);
}

/* TYPOGRAPHIE GLOBALE */
h1, h2, h3, h4, p, span, a {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--blanc-elegance);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

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

body.no-scroll { overflow: hidden; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════ */
/* 3. HEADER ET NAVIGATION                                    */
/* ═══════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(100deg, rgba(10,45,122,0.94), rgba(5,20,58,0.92));
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  width: 100%;
  transition: var(--transition);
}

.header.is-scrolled {
  background: rgba(3,13,39,0.96);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hh);
  gap: 16px;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav a {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:hover { color: var(--or-lumineux); }

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media(max-width: 768px) {
  .header-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    min-height: auto;
  }
  .header-actions .btn-ghost { display: none; }
}

/* ═══════════════════════════════════════════════════════════ */
/* 4. BOUTONS                                                 */
/* ═══════════════════════════════════════════════════════════ */
.btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: normal;
  max-width: 100%;
}

.btn-ghost {
  color: var(--blanc-elegance);
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.32);
}

.btn-ghost:hover {
  border-color: var(--or-lumineux);
  color: var(--or-lumineux);
  background: rgba(212,160,55,0.10);
}

.btn-primary {
  background: linear-gradient(135deg, #FFE08A 0%, #D4A037 55%, #B98224 100%);
  color: #08245F;
  border: 1px solid #F2CB60;
  box-shadow: 0 4px 16px rgba(212,160,55,0.24), inset 0 1px 0 rgba(255,255,255,0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F2CB60 0%, #D4A037 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,160,55,0.34);
}

.btn-marble {
  background:
    linear-gradient(135deg, rgba(30,64,175,0.48), rgba(3,13,39,0.94));
  color: var(--or-lumineux);
  border: 1px solid rgba(242,203,96,0.75);
  box-shadow: inset 0 0 18px rgba(59,130,246,0.12), 0 5px 18px rgba(0,0,0,0.18);
}

.btn-marble:hover {
  background: linear-gradient(135deg, rgba(30,64,175,0.78), rgba(10,45,122,0.95));
  color: var(--blanc-elegance);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  color: var(--blanc-elegance);
  font-size: 22px;
  cursor: pointer;
}

@media(max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: grid; place-items: center; }
}

/* ═══════════════════════════════════════════════════════════ */
/* 5. MENU MOBILE                                             */
/* ═══════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(59,130,246,0.20), transparent 45%),
    linear-gradient(145deg, #0A2D7A, #030D27);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: none;
  visibility: visible;
}

.close-btn {
  align-self: flex-end;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  color: var(--blanc-elegance);
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 20px;
}

.mobile-menu ul { list-style: none; }

.mobile-menu ul a {
  display: block;
  padding: 18px 8px;
  font-size: 21px;
  font-weight: 700;
  font-family: 'Fraunces', serif;
  border-bottom: 1px solid rgba(212,160,55,0.20);
}

.mobile-menu ul a:hover { color: var(--or-lumineux); }

/* ═══════════════════════════════════════════════════════════ */
/* 6. HERO                                                    */
/* ═══════════════════════════════════════════════════════════ */
.hero {
  padding: 40px 0 20px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media(min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-copy { text-align: center; }

@media(min-width: 1024px) {
  .hero-copy { text-align: left; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--or-lumineux);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.2;
  margin-bottom: 24px;
}

.typewriter { color: var(--or-lumineux); }

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media(max-width: 768px) {
  .hero-ctas { flex-direction: row; gap: 8px; }
  .hero-ctas .btn {
    flex: 1;
    max-width: 160px;
    padding: 10px 12px;
    font-size: 13px;
    min-height: 44px;
  }
}

@media(min-width: 1024px) {
  .hero-ctas { justify-content: flex-start; }
}

.hero-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(242,203,96,0.85);
  padding: 4px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(10,45,122,0.25));
  margin-top: 10px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.32), 0 0 22px rgba(212,160,55,0.12);
}

.hero-visual img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ═══════════════════════════════════════════════════════════ */
/* 7. LE PANNEAU PUBLICITAIRE BLANC (EFFET MARBRE & BLEU)     */
/* ═══════════════════════════════════════════════════════════ */
.static-banner {
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.promo-billboard-light {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(59,130,246,0.10), transparent 38%),
    linear-gradient(145deg, #FFFFFF 0%, #F8F1E1 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 24px;
  padding: 3.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.34),
    inset 0 0 34px rgba(30,64,175,0.07),
    0 0 18px rgba(212,160,55,0.13);
}

/* BORDURE MARBRE DORÉE */
.promo-billboard-light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 2px solid transparent;
  border-radius: 24px;
  background: linear-gradient(135deg, #D4A037, #FFFFFF 35%, #F2CB60 65%, #8C6519) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.promo-billboard-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 23px 44px rgba(0,0,0,0.40), 0 0 24px rgba(212,160,55,0.24);
}

.promo-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--bleu-royal);
  margin-bottom: 20px;
  font-weight: 800;
  transition: opacity 0.3s ease;
}

.promo-messages {
  position: relative;
  min-height: 100px;
  height: auto;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-text {
  position: absolute;
  width: 100%;
  padding: 8px 10px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--bleu-isjiee);
  font-weight: 500;
  line-height: 1.5;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1), opacity 0.6s ease;
}

.promo-text.active {
  transform: translateY(0);
  opacity: 1;
}

.promo-text strong {
  color: #A87517;
  font-weight: 800;
}

/* SCINTILLEMENT BLEU DANS LE CADRAN */
.starry-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(59,130,246,0.65) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(30,64,175,0.45) 0.8px, transparent 1.5px);
  background-size: 55px 55px, 85px 85px;
  opacity: 0.12;
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.08; transform: scale(1); }
  100% { opacity: 0.17; transform: scale(1.025); }
}

/* REFLET LUMINEUX TRAVERSANT */
.promo-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.10), transparent);
  transform: skewX(-25deg);
  animation: shine 7s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes shine {
  0% { left: -100%; }
  18% { left: 200%; }
  100% { left: 200%; }
}

/* ═══════════════════════════════════════════════════════════ */
/* 8. LE HUB (LES 7 CARTES)                                   */
/* ═══════════════════════════════════════════════════════════ */
.hub-section { padding: 40px 0 60px; }

.hub-header {
  text-align: center;
  margin-bottom: 40px;
}

.hub-header h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 12px;
}

.hub-header p {
  color: var(--creme-elegance);
  font-size: 17px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(212,160,55,0.085) 0%, transparent 48%),
    linear-gradient(135deg, rgba(10,45,122,0.82) 0%, rgba(3,13,39,0.94) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212,160,55,0.28);
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242,203,96,0.82);
  box-shadow: 0 14px 30px rgba(0,0,0,0.32), 0 0 16px rgba(212,160,55,0.10);
}

.hub-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,160,55,0.22), rgba(5,20,58,0.88));
  border: 1px solid rgba(212,160,55,0.48);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.hub-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--blanc-elegance);
}

.hub-card p {
  color: var(--creme-elegance);
  font-size: 15px;
  flex-grow: 1;
  margin-bottom: 20px;
  opacity: 0.92;
  line-height: 1.6;
}

.hub-link {
  color: var(--or-lumineux);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.hub-link::after {
  content: "→";
  transition: transform 0.3s;
}

.hub-card:hover .hub-link::after { transform: translateX(5px); }

/* 7ÈME CARTE : LA BOURSE */
.hub-card-bourse {
  border: 2px solid transparent !important;
  background:
    linear-gradient(145deg, rgba(10,45,122,0.94), rgba(3,13,39,0.97)) padding-box,
    linear-gradient(135deg, #D4A037, #FFF3D0 45%, #D4A037) border-box !important;
  box-shadow: 0 0 18px rgba(212,160,55,0.16) !important;
}

.hub-card-bourse:hover {
  box-shadow: 0 0 26px rgba(212,160,55,0.30) !important;
}

.hub-card-bourse h3,
.hub-card-bourse .hub-link {
  color: var(--or-lumineux) !important;
}

.hub-card-bourse .hub-icon {
  border-color: var(--or-prestige);
  box-shadow: 0 0 10px rgba(212,160,55,0.16);
}

/* ═══════════════════════════════════════════════════════════ */
/* 9. CTA FINAL ET FOOTER                                     */
/* ═══════════════════════════════════════════════════════════ */
.cta-container {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,160,55,0.09) 0%, transparent 65%),
    linear-gradient(135deg, rgba(10,45,122,0.88), rgba(3,13,39,0.96));
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: clamp(30px, 5vw, 50px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

.cta-container h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}

.cta-container p {
  color: var(--creme-elegance);
  margin-bottom: 24px;
  font-size: 17px;
}

.ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  background: linear-gradient(180deg, #061638 0%, #020817 100%);
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-gold);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--or-lumineux);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer ul { list-style: none; }
.footer ul li { padding: 8px 0; }

.footer a {
  color: var(--blanc-elegance);
  font-size: 15px;
  opacity: 0.84;
}

.footer a:hover {
  color: var(--or-lumineux);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════ */
/* 10. WIDGETS FLOTTANTS                                      */
/* ═══════════════════════════════════════════════════════════ */
.mila-widget {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
}

.mila-fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE08A, #D4A037);
  color: #08245F;
  border: 1px solid rgba(255,255,255,0.38);
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(212,160,55,0.30);
}

.mila-bubble {
  position: absolute;
  bottom: 0;
  right: 66px;
  width: min(300px, calc(100vw - 80px));
  padding: 20px;
  background: linear-gradient(145deg, #0A2D7A, #030D27);
  border: 1px solid var(--or-prestige);
  border-radius: 20px;
  display: none;
  z-index: 201;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

.mila-bubble.open { display: block; }

.mila-bubble h4 {
  color: var(--or-lumineux);
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

.mila-bubble p {
  font-size: 14px;
  margin-bottom: 16px;
}

.mila-actions button {
  display: block;
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,160,55,0.32);
  border-radius: 8px;
  color: var(--blanc-elegance);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #F2CB60, #B98224);
  color: #08245F;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 199;
  box-shadow: 0 4px 16px rgba(212,160,55,0.28);
}

/* ═══════════════════════════════════════════════════════════ */
/* 11. ANIMATIONS ET RESPONSIVE                               */
/* ═══════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }

  .promo-billboard-light {
    padding: 2rem 1rem;
    min-height: 260px;
  }

  .promo-messages { min-height: 120px; }
  .promo-title { font-size: 1.2rem; }
  .promo-text { font-size: 0.95rem; }
}

/* ACCESSIBILITÉ : RESPECT DES PRÉFÉRENCES D'ANIMATION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════ */
/* 12. WIDGET GOOGLE TRANSLATE                                 */
/* ═══════════════════════════════════════════════════════════ */
.translate-widget {
  display: inline-block;
  margin-right: 10px;
  transform: scale(0.85);
  transform-origin: center;
}

/* Masque le bandeau supérieur ajouté par Google Translate */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}
/* Empêche le navigateur d'ajouter une bordure moche sur le bandeau cliquable */
.promo-billboard-light:focus,
.promo-billboard-light:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
