/* ============================================================
   FRESQUE DU CLIMAT – LOGEM  |  style.css
   ============================================================ */

/* ---- Variables ---- */
:root {
  --green:        #52a55e;
  --green-dark:   #2d6a4f;
  --green-deeper: #1a472a;
  --green-light:  #95d5a8;
  --green-pale:   #d8f3dc;
  --blue:         #2e86ab;
  --blue-dark:    #1e5f74;
  --blue-deep:    #0d3b5e;
  --blue-light:   #74c0d8;
  --white:        #ffffff;
  --gray-light:   #f0f4f1;
  --gray-mid:     #dde8de;
  --text:         #1c3438;
  --text-light:   #4a6670;
  --error:        #c0392b;
  --success:      #27ae60;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --r-sm:         8px;
  --r-md:         16px;
  --r-lg:         24px;
  --r-xl:         40px;
  --sh-sm:        0 2px 8px rgba(0,0,0,.08);
  --sh-md:        0 4px 24px rgba(0,0,0,.12);
  --sh-lg:        0 8px 48px rgba(0,0,0,.18);
  --t:            0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.65; background: var(--white); }
img  { max-width: 100%; display: block; }
a    { color: inherit; }

/* ---- Accessibilité ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--green-dark); color: #fff;
  padding: .5rem 1.25rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600; z-index: 9999; transition: top .2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--r-xl);
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--t); text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--green-dark); color: #fff;
  box-shadow: 0 4px 16px rgba(45,106,79,.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--green-deeper); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45,106,79,.45);
}
.btn-secondary {
  background: transparent; color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--green-pale); transform: translateY(-2px);
}
.btn-gate {
  background: #fff; color: var(--green-deeper);
  font-size: 1.05rem; padding: .85rem 2.25rem;
  box-shadow: var(--sh-md); width: 100%;
  justify-content: center; margin-top: .5rem;
}
.btn-gate:hover, .btn-gate:focus-visible {
  background: var(--green-pale); transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}
.btn-gate svg { transition: transform var(--t); }
.btn-gate:hover svg { transform: translateX(4px); }

/* ============================================================
   PAGE GATE (index.php)
   ============================================================ */
.gate-page {
  min-height: 100dvh;
  background: linear-gradient(150deg,
    var(--green-deeper) 0%,
    var(--green-dark)   25%,
    #2d7d62             50%,
    var(--blue-dark)    75%,
    var(--blue-deep)    100%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 2rem 1rem;
  overflow: hidden; position: relative;
}

/* Particules flottantes */
.particles {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 0;
}
.particle {
  position: absolute; bottom: -80px; opacity: 0;
  animation: float-particle linear infinite;
}
.particle:nth-child(1)  { left: 5%;  width: 30px; animation-duration: 14s; animation-delay: 0s; }
.particle:nth-child(2)  { left: 15%; width: 20px; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3)  { left: 28%; width: 40px; animation-duration: 12s; animation-delay: 5s; }
.particle:nth-child(4)  { left: 42%; width: 25px; animation-duration: 16s; animation-delay: 1s; }
.particle:nth-child(5)  { left: 58%; width: 35px; animation-duration: 20s; animation-delay: 3s; }
.particle:nth-child(6)  { left: 72%; width: 22px; animation-duration: 15s; animation-delay: 7s; }
.particle:nth-child(7)  { left: 85%; width: 32px; animation-duration: 13s; animation-delay: 4s; }
.particle:nth-child(8)  { left: 93%; width: 18px; animation-duration: 17s; animation-delay: 9s; }
.particle:nth-child(9)  { left: 50%; width: 28px; animation-duration: 11s; animation-delay: 6s; }
.particle:nth-child(10) { left: 20%; width: 36px; animation-duration: 19s; animation-delay: 8s; }

@keyframes float-particle {
  0%   { transform: translateY(0) rotate(0deg)   translateX(0px);  opacity: 0; }
  5%   { opacity: 0.5; }
  95%  { opacity: 0.4; }
  100% { transform: translateY(-105vh) rotate(540deg) translateX(60px); opacity: 0; }
}

/* Logo gate */
.gate-logo {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .65rem;
  color: rgba(255,255,255,.85); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .05em; margin-bottom: 2.5rem;
}
.gate-logo-icon { width: 32px; height: 32px; }

/* Carte centrale */
.gate-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg);
  padding: 2.75rem 2.25rem 2.25rem;
  width: 100%; max-width: 460px;
  box-shadow: 0 8px 64px rgba(0,0,0,.35);
  animation: gate-enter .7s ease both;
}
@keyframes gate-enter {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.gate-planet {
  font-size: 3.5rem; text-align: center; margin-bottom: 1rem;
  animation: pulse-soft 4s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}
.gate-card h1 {
  font-size: 1.7rem; font-weight: 700; color: #fff;
  text-align: center; line-height: 1.25; margin-bottom: .4rem;
}
.gate-sub {
  text-align: center; color: rgba(255,255,255,.72);
  font-size: .95rem; margin-bottom: 1.75rem;
}
.gate-divider {
  border: none; border-top: 1px solid rgba(255,255,255,.2);
  margin-bottom: 1.75rem;
}
.gate-question-text {
  color: rgba(255,255,255,.9); font-size: 1rem;
  font-weight: 500; margin-bottom: 1.25rem; text-align: center;
  line-height: 1.5;
}
.gate-form { display: flex; flex-direction: column; gap: .75rem; }
.gate-field { display: flex; flex-direction: column; gap: .4rem; }
.gate-field label {
  color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 500;
}
.gate-input {
  width: 100%; padding: .875rem 1.1rem;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--r-md); color: #fff;
  font-size: 1rem; font-family: var(--font);
  transition: var(--t); outline: none;
}
.gate-input::placeholder { color: rgba(255,255,255,.45); }
.gate-input:focus { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.22); }

/* ============================================================
   PAGE WRONG (wrong.php)
   ============================================================ */
.wrong-page {
  min-height: 100dvh;
  background: linear-gradient(150deg, var(--green-deeper), var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.wrong-card {
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg); padding: 3rem 2.25rem;
  width: 100%; max-width: 480px; text-align: center;
  box-shadow: var(--sh-lg);
  animation: gate-enter .6s ease both;
}
.wrong-emoji { font-size: 4rem; margin-bottom: 1rem; }
.wrong-card h1 { color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.wrong-card p  { color: rgba(255,255,255,.78); margin-bottom: 2rem; line-height: 1.7; }
.btn-retry {
  background: #fff; color: var(--green-deeper);
  font-size: 1rem; padding: .85rem 2rem;
  border-radius: var(--r-xl); font-weight: 600;
  border: none; cursor: pointer; transition: var(--t);
  text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
}
.btn-retry:hover { background: var(--green-pale); transform: translateY(-2px); }

/* ============================================================
   NAVIGATION (home.php)
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-mid);
  padding: .85rem 1rem;
  transition: box-shadow var(--t);
}
.site-nav.scrolled { box-shadow: var(--sh-sm); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.05rem; color: var(--green-dark);
  text-decoration: none;
}
.nav-logo-icon { width: 28px; height: 28px; }
.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-light); font-size: .9rem; font-weight: 500;
  text-decoration: none; transition: color var(--t); padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--green-dark); border-bottom-color: var(--green-dark); }
.nav-cta { display: flex; gap: .75rem; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: .5rem; color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
  padding: 5rem 1rem 3rem;
  overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C360,0 1080,60 1440,30 L1440,60 L0,60 Z' fill='%23ffffff'/%3E%3C/svg%3E") center/cover no-repeat;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--green-pale); color: var(--green-dark);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .9rem; border-radius: var(--r-xl);
  margin-bottom: 1.25rem; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: .75rem;
}
.hero h1 span { color: var(--green-dark); }
.hero-date {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.05rem; font-weight: 600; color: var(--blue-dark);
  margin-bottom: 1.25rem;
}
.hero-tagline {
  font-size: 1.1rem; color: var(--text-light);
  margin-bottom: 2rem; max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-partners {
  font-size: .875rem; color: var(--text-light);
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--gray-mid);
}
.hero-partners strong { color: var(--green-dark); }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-illustration { width: 100%; max-width: 420px; }

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section {
  padding: 5rem 1rem;
}
.section-alt { background: var(--gray-light); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--green); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; line-height: 1.25;
  margin-bottom: 1rem; color: var(--text);
}
.section-title span { color: var(--green-dark); }
.section-lead {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 620px; margin-bottom: 3rem;
}

/* ============================================================
   ABOUT / INFOS
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-text p { color: var(--text-light); margin-bottom: 1rem; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 1.25rem; box-shadow: var(--sh-sm);
  text-align: center; border-top: 3px solid var(--green);
  transition: transform var(--t), box-shadow var(--t);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.stat-number {
  font-size: 2rem; font-weight: 800; color: var(--green-dark);
  line-height: 1; margin-bottom: .25rem;
}
.stat-label { font-size: .85rem; color: var(--text-light); }
.about-visual {
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  border-radius: var(--r-lg); padding: 3rem 2rem;
  color: #fff; text-align: center;
  box-shadow: var(--sh-lg);
}
.about-visual-icon { font-size: 4rem; margin-bottom: 1rem; }
.about-visual h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.about-visual p  { opacity: .8; font-size: .95rem; }
.partners-block {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.partners-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  opacity: .6; margin-bottom: .6rem;
}
.partners-list {
  list-style: none; display: flex; flex-direction: column; gap: .35rem;
}
.partners-list li {
  font-size: .9rem; font-weight: 500; opacity: .9;
  padding-left: .75rem; border-left: 2px solid rgba(255,255,255,.35);
}

/* ============================================================
   ATELIERS / PROGRAMME
   ============================================================ */
.programme-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.atelier-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 2rem 1.5rem; box-shadow: var(--sh-sm);
  border-bottom: 4px solid var(--green-light);
  transition: transform var(--t), box-shadow var(--t);
}
.atelier-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.atelier-card:nth-child(2) { border-bottom-color: var(--blue-light); }
.atelier-card:nth-child(3) { border-bottom-color: var(--green); }
.atelier-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.atelier-time {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--green-dark);
  margin-bottom: .5rem;
}
.atelier-card h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.atelier-card p  { font-size: .9rem; color: var(--text-light); }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-section { padding: 5rem 1rem; }
.form-section-inner { max-width: 720px; margin: 0 auto; }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }

.field {
  display: flex; flex-direction: column; gap: .4rem;
}
.field label {
  font-size: .9rem; font-weight: 600; color: var(--text);
}
.field label .req {
  color: var(--error); margin-left: .15rem;
  font-size: .75rem;
}
.field input,
.field select,
.field textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--r-sm);
  font-size: .95rem; font-family: var(--font);
  color: var(--text); background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(82,165,94,.18);
}
.field input.is-error,
.field select.is-error,
.field textarea.is-error {
  border-color: var(--error); box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-error {
  font-size: .8rem; color: var(--error); font-weight: 500;
  display: none;
}
.field-error.visible { display: block; }

/* RGPD & consentement */
.rgpd-notice {
  background: var(--gray-light); border-left: 3px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
  font-size: .82rem; color: var(--text-light);
}
.rgpd-notice a { color: var(--green-dark); text-decoration: underline; }
.checkbox-field {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--gray-mid);
}
.checkbox-field input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: .1rem; accent-color: var(--green-dark);
  cursor: pointer;
}
.checkbox-field label {
  font-size: .875rem; color: var(--text-light); cursor: pointer;
}
.checkbox-field.is-error { border-color: var(--error); }

/* Message de succès/erreur */
.form-message {
  display: none; padding: 1rem 1.25rem;
  border-radius: var(--r-sm); margin-bottom: 1.25rem;
  font-weight: 500; font-size: .95rem;
  align-items: center; gap: .75rem;
}
.form-message.visible { display: flex; }
.form-message.success {
  background: #e8f5e9; border: 1.5px solid var(--success);
  color: #1b5e20;
}
.form-message.error {
  background: #ffeaea; border: 1.5px solid var(--error);
  color: #7f0000;
}
.form-submit-area {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.btn-submit {
  background: var(--green-dark); color: #fff;
  padding: .875rem 2.5rem; border-radius: var(--r-xl);
  font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; transition: var(--t);
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-submit:hover, .btn-submit:focus-visible {
  background: var(--green-deeper); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45,106,79,.35);
}
.btn-submit:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}
.btn-submit .spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; display: none;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { opacity: .7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Tabs volontaires */
.tabs {
  display: flex; gap: .5rem; margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-mid);
  padding-bottom: 0;
}
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  color: var(--text-light); padding: .75rem 1.5rem;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: var(--t); position: relative; bottom: -2px;
  border-bottom: 2px solid transparent;
}
.tab-btn[aria-selected="true"] {
  color: var(--green-dark); border-bottom-color: var(--green-dark);
  background: var(--green-pale);
}
.tab-btn:hover:not([aria-selected="true"]) { background: var(--gray-light); }
.tab-panel[hidden] { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text); color: rgba(255,255,255,.75);
  padding: 3rem 1rem 1.5rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.05rem; color: #fff;
  margin-bottom: .75rem;
}
.footer-brand p { font-size: .875rem; max-width: 280px; }
.footer-col h4 {
  color: #fff; font-size: .9rem; font-weight: 700;
  margin-bottom: 1rem; text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .875rem; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color var(--t);
}
.footer-col a:hover { color: var(--green-light); }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; }
.footer-bottom a { color: var(--green-light); text-decoration: underline; }

/* ============================================================
   PAGE MENTIONS LÉGALES
   ============================================================ */
.mentions-page { padding: 6rem 1rem 5rem; min-height: 100vh; }
.mentions-inner { max-width: 760px; margin: 0 auto; }
.mentions-page h1 { font-size: 2rem; margin-bottom: .5rem; }
.mentions-page .update { color: var(--text-light); font-size: .9rem; margin-bottom: 3rem; }
.mentions-page h2 {
  font-size: 1.2rem; margin: 2.5rem 0 .75rem;
  color: var(--green-dark); border-bottom: 2px solid var(--green-pale);
  padding-bottom: .5rem;
}
.mentions-page p, .mentions-page li {
  font-size: .95rem; color: var(--text-light); margin-bottom: .5rem;
}
.mentions-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.mentions-page a { color: var(--green-dark); text-decoration: underline; }

/* ============================================================
   ANIMATIONS AU SCROLL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual       { display: none; }
  .about-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
  .programme-grid    { grid-template-columns: 1fr; }
  .footer-top        { grid-template-columns: 1fr 1fr; }
  .footer-brand      { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: .5rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 1.5rem;
    border-bottom: 1px solid var(--gray-mid);
    box-shadow: var(--sh-md);
  }
  .nav-links.open + .nav-cta {
    display: flex; padding: 0 1.5rem 1.5rem;
    position: absolute; top: calc(100% + 180px); left: 0; right: 0;
    background: var(--white);
  }
  .form-grid         { grid-template-columns: 1fr; }
  .form-grid .full   { grid-column: 1; }
  .hero-actions      { flex-direction: column; }
  .about-stats       { grid-template-columns: 1fr 1fr; }
  .footer-top        { grid-template-columns: 1fr; }
  .footer-bottom     { flex-direction: column; text-align: center; }
  .section           { padding: 3.5rem 1rem; }
  .gate-card         { padding: 2rem 1.5rem; }
  .tabs              { flex-direction: column; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .particle { display: none; }
}
