@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --green: #07852d;
  --green-dark: #005d20;
  --blue: #123f9f;
  --blue-deep: #061b4f;
  --gold: #f4c400;
  --white: #ffffff;
  --ink: #07142e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--blue-deep);
  color: var(--white);
  overflow-x: hidden;
}

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

/* =========================
   ÉCRAN D'ENTRÉE — CINÉMATIQUE
   ========================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 43%, rgba(25,84,180,.42), transparent 25%),
    radial-gradient(circle at 12% 85%, rgba(7,133,45,.25), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(244,196,0,.10), transparent 24%),
    linear-gradient(135deg, #020817 0%, #06183f 48%, #021b12 100%);
  transition: opacity 1s ease, visibility 1s ease, transform 1.25s cubic-bezier(.77,0,.18,1);
}

.intro.exit {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.12);
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 5;
  width: min(94vw, 950px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.particles {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(244,196,0,.65) 0 1px, transparent 1.5px);
  background-size: 105px 105px, 173px 173px;
  background-position: 10px 20px, 60px 80px;
  opacity: .20;
  animation: particleDrift 26s linear infinite;
}

.light-sweep {
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 43%, rgba(255,255,255,.055) 49%, rgba(244,196,0,.13) 50%, transparent 57%);
  transform: translateX(-45%) rotate(8deg);
  animation: sweep 7s ease-in-out infinite;
}

.rays {
  position: absolute;
  width: min(92vw, 850px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(244,196,0,.16) 0deg 1.2deg,
    transparent 1.2deg 8deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 0 43%, #000 55% 66%, transparent 73%);
  mask-image: radial-gradient(circle, transparent 0 43%, #000 55% 66%, transparent 73%);
  animation: raysRotate 40s linear infinite;
}

.portal {
  position: absolute;
  width: min(82vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: .9;
}

.portal-core {
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(18,63,159,.03) 60%, transparent 70%);
  box-shadow: 0 0 80px rgba(18,63,159,.25);
  animation: corePulse 3.5s ease-in-out infinite;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  transform: rotateX(65deg);
}
.portal-ring-a { width: 75%; height: 75%; border-color: rgba(244,196,0,.20); animation: portalSpin 12s linear infinite; }
.portal-ring-b { width: 91%; height: 91%; border-color: rgba(7,133,45,.20); animation: portalSpin 18s linear infinite reverse; }
.portal-ring-c { width: 108%; height: 108%; border-color: rgba(18,63,159,.22); animation: portalSpin 25s linear infinite; }

.logo-frame {
  position: relative;
  width: min(72vw, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: logoEntrance 1.6s cubic-bezier(.16,1,.3,1) .1s both;
}

.logo-card {
  position: relative;
  z-index: 5;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.97);
  box-shadow:
    0 0 0 2px rgba(244,196,0,.5),
    0 0 0 10px rgba(244,196,0,.055),
    0 0 65px rgba(18,63,159,.35),
    0 25px 70px rgba(0,0,0,.45);
  animation: cardFloat 5s ease-in-out 1.4s infinite;
}

.logo {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.logo-halo {
  position: absolute;
  z-index: 2;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: #fff;
  filter: blur(18px);
  opacity: .28;
  animation: haloPulse 3s ease-in-out infinite;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(244,196,0,.42);
  z-index: 4;
}
.ring-one { width: 87%; height: 87%; border-top-color: var(--gold); border-right-color: rgba(7,133,45,.65); animation: ringSpin 12s linear infinite; }
.ring-two { width: 99%; height: 99%; border-color: rgba(18,63,159,.48); animation: ringSpin 19s linear infinite reverse; }
.ring-three { width: 111%; height: 111%; border-style: dashed; border-color: rgba(255,255,255,.12); animation: ringSpin 30s linear infinite; }

.orbit {
  position: absolute;
  z-index: 6;
  width: 112%;
  height: 112%;
  border-radius: 50%;
  border: 1px solid transparent;
}
.orbit::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold), 0 0 35px rgba(244,196,0,.45);
  top: 7%;
  left: 50%;
}
.orbit-one { animation: orbit 7s linear infinite; }
.orbit-two { transform: rotate(65deg); animation: orbit 11s linear infinite reverse; }
.orbit-two::before { background: var(--green); box-shadow: 0 0 18px var(--green); top: 50%; left: 2%; }

.organization {
  margin-top: -14px;
  position: relative;
  z-index: 8;
  animation: textEntrance 1.1s ease .85s both;
}

.small-name {
  letter-spacing: .65em;
  padding-left: .65em;
  font-size: clamp(.65rem, 1.3vw, .9rem);
  font-weight: 800;
  color: var(--gold);
}

.organization h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(4.5rem, 13vw, 9rem);
  line-height: .82;
  letter-spacing: .03em;
  background: linear-gradient(180deg, #fff 5%, #d7e1ff 48%, #4c70d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 35px rgba(0,0,0,.35);
}

.line {
  width: min(360px, 65vw);
  height: 3px;
  margin: 18px auto 12px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--blue));
  border-radius: 50px;
  box-shadow: 0 0 18px rgba(244,196,0,.25);
}

.motto {
  font-size: clamp(.68rem, 1.45vw, 1rem);
  font-weight: 800;
  letter-spacing: .18em;
}
.motto span { color: var(--gold); padding: 0 .25em; }

.tagline {
  margin-top: 11px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: #c7e4cf;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.intro-status {
  margin-top: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.48);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .2em;
  animation: textEntrance 1s ease 1.35s both;
}
.status-line { width: 35px; height: 1px; background: linear-gradient(90deg, transparent, rgba(244,196,0,.8)); }
.status-line:last-child { background: linear-gradient(90deg, rgba(244,196,0,.8), transparent); }

.enter-btn {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid rgba(244,196,0,.8);
  background: linear-gradient(135deg, rgba(7,133,45,.94), rgba(18,63,159,.98));
  color: #fff;
  padding: 16px 26px;
  min-width: 245px;
  border-radius: 50px;
  font: 800 .78rem 'Montserrat', sans-serif;
  letter-spacing: .13em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.32), 0 0 30px rgba(18,63,159,.28);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: buttonEntrance 1s ease 1.55s both;
}
.enter-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,.42), 0 0 40px rgba(244,196,0,.22); }
.btn-shine {
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%);
  animation: buttonShine 3.5s ease-in-out 2s infinite;
}
.arrow { font-size: 1.25rem; transition: transform .3s ease; }
.enter-btn:hover .arrow { transform: translateX(5px); }

.loading { margin-top: 15px; display: flex; gap: 6px; opacity: .55; }
.loading span { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; animation: pulse 1.2s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }

.glow {
  position: absolute;
  width: 35vw;
  height: 35vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  filter: blur(75px);
  opacity: .13;
}
.glow-green { background: var(--green); left: -15%; bottom: -20%; }
.glow-blue { background: var(--blue); right: -15%; top: 5%; }
.glow-gold { background: var(--gold); left: 40%; top: -30%; opacity: .07; }

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .55rem;
  letter-spacing: .4em;
  opacity: .32;
}

/* Animations */
@keyframes logoEntrance {
  0% { opacity: 0; transform: scale(.35) rotate(-18deg); filter: blur(8px); }
  65% { opacity: 1; transform: scale(1.04) rotate(2deg); filter: blur(0); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes haloPulse { 0%,100% { transform: scale(.85); opacity:.2; } 50% { transform: scale(1.15); opacity:.4; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes portalSpin { to { transform: rotate(360deg); } }
@keyframes raysRotate { to { transform: rotate(360deg); } }
@keyframes corePulse { 0%,100% { transform: scale(.8); opacity:.5; } 50% { transform: scale(1.15); opacity:1; } }
@keyframes textEntrance { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes buttonEntrance { from { opacity:0; transform:translateY(22px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes pulse { 0%,100% { transform:scale(.6); opacity:.3; } 50% { transform:scale(1.25); opacity:1; } }
@keyframes particleDrift { from { transform:translate(0,0); } to { transform:translate(90px,70px); } }
@keyframes sweep { 0%,20% { transform:translateX(-60%) rotate(8deg); opacity:0; } 35%,65% { opacity:1; } 80%,100% { transform:translateX(60%) rotate(8deg); opacity:0; } }
@keyframes buttonShine { 0%,25% { transform:translateX(-120%); } 55%,100% { transform:translateX(120%); } }

@media (max-width: 800px) {
  .logo-frame { width: min(78vw, 380px); }
  .organization { margin-top: -2px; }
  .intro-status { font-size: .48rem; gap: 7px; }
  .status-line { width: 20px; }
  .enter-btn { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   PAGE D'ACCUEIL - BASE
   ========================= */
.home {
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 82px;
  padding: 8px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 25px rgba(4,25,65,.08);
}

.brand img {
  width: 125px;
  height: 65px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

nav a {
  color: var(--blue-deep);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  padding: 12px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--blue));
  transition: width .3s ease;
}
nav a:hover::after { width: 100%; }

.menu-toggle { display: none; }

.hero {
  min-height: 76vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(244,196,0,.22), transparent 20%),
    linear-gradient(120deg, var(--blue-deep), var(--blue), var(--green-dark));
}

.hero-content {
  width: min(1100px, 90%);
  position: relative;
  z-index: 2;
  padding: 100px 0;
  color: white;
}

.eyebrow {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .22em;
}

.hero h2 {
  max-width: 800px;
  margin: 20px 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .98;
}

.hero h2 strong { color: #d9efdf; }

.hero p { max-width: 600px; font-size: 1.05rem; line-height: 1.8; opacity: .9; }

.hero-btn {
  display: inline-flex;
  margin-top: 35px;
  padding: 15px 23px;
  border-radius: 40px;
  background: var(--gold);
  color: var(--blue-deep);
  font-weight: 800;
  gap: 15px;
}

.placeholder {
  padding: 110px 8vw;
  min-height: 55vh;
  background: #fff;
}
.placeholder.alt { background: #f1f7f3; }
.placeholder span { color: var(--green); font-weight: 800; }
.placeholder h2 { margin: 15px 0; font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 4rem); color: var(--blue-deep); }
.placeholder p { max-width: 800px; line-height: 1.8; color: #506070; }

footer {
  padding: 55px 8vw;
  text-align: center;
  background: var(--blue-deep);
  color: white;
}
footer img { width: 180px; height: 90px; object-fit: contain; margin-bottom: 15px; }
footer p { color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: .75rem; }
footer small { display: block; margin-top: 20px; opacity: .6; }

/* =========================
   ANIMATIONS
   ========================= */
@keyframes logoEntrance {
  from { opacity: 0; transform: scale(.55) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes textEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes buttonEntrance {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(.6); opacity: .3; }
  50% { transform: scale(1.2); opacity: 1; }
}
@keyframes drift {
  from { transform: translate(0,0); }
  to { transform: translate(80px,80px); }
}

@media (max-width: 800px) {
  .navbar { min-height: 72px; }
  .brand img { width: 105px; height: 55px; }
  .menu-toggle {
    display: block;
    border: 0;
    background: none;
    color: var(--blue-deep);
    font-size: 1.7rem;
    cursor: pointer;
  }
  nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 6vw 20px;
    background: white;
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
  }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 13px 0; }
  .organization { margin-top: -10px; }
  .enter-btn { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
