/* ============================================================
   ACSF — Aéro-Club des Sourds de France
   Design System v2 (2026 — 30e anniversaire)
   Mobile-first · WCAG AA · Aviation theme
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Brand palette */
  --blue-deep:    #1B3A5C;
  --blue-mid:     #2563A8;
  --blue-sky:     #87CEEB;
  --blue-pale:    #EAF4FB;
  --orange:       #E8912D;
  --orange-dark:  #C97520;
  --orange-light: #FEF3E7;
  --white:        #FFFFFF;
  --dark:         #2D2D2D;
  --muted:        #546E8A;
  --border:       #C8DAE8;
  --surface:      #FFFFFF;
  --surface-soft: #F4F8FB;
  --bg:           #EEF4F9;

  /* Aliases for legacy selectors */
  --primary:        var(--blue-mid);
  --primary-strong: var(--blue-deep);
  --primary-soft:   var(--blue-pale);
  --text:           var(--dark);

  /* Typography */
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  /* Sizing */
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  6px;
  --shadow:     0 8px 28px rgba(27, 58, 92, 0.12);
  --shadow-lg:  0 16px 48px rgba(27, 58, 92, 0.18);
  --maxw:       1180px;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.pilot-modern {
  margin: 0;
  width: auto;
  background: var(--bg);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.pilot-modern * { box-sizing: border-box; }
body.pilot-modern img { max-width: 100%; height: auto; display: block; }
body.pilot-modern iframe { max-width: 100%; }

body.pilot-modern a {
  color: var(--blue-deep);
  text-underline-offset: 0.15em;
}
body.pilot-modern a:hover { color: var(--blue-mid); }

/* ── Button link color overrides (higher specificity than body.pilot-modern a) ── */
body.pilot-modern .btn-primary,
body.pilot-modern a.btn-primary { color: var(--white); }
body.pilot-modern .btn-primary:hover,
body.pilot-modern a.btn-primary:hover { color: var(--white); }
body.pilot-modern .btn-blue,
body.pilot-modern a.btn-blue { color: var(--white); }
body.pilot-modern .btn-blue:hover,
body.pilot-modern a.btn-blue:hover { color: var(--white); }
body.pilot-modern .btn-outline,
body.pilot-modern a.btn-outline { color: var(--white); }
body.pilot-modern .btn-outline:hover,
body.pilot-modern a.btn-outline:hover { color: var(--white); }

body.pilot-modern a:focus-visible,
body.pilot-modern button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 9999;
  background: var(--dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.skip-link:focus { top: var(--space-3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Shell ---------- */
#page.site-shell {
  width: auto;
  max-width: var(--maxw);
  margin: 0 auto;
  background: transparent;
  border: 0;
  padding: var(--space-3);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
  margin-bottom: var(--space-4);
  position: sticky;
  top: var(--space-3);
  z-index: 100;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

/* Logo */
#logo {
  flex: 0 0 auto;
  float: none;
  width: 72px;
  height: 72px;
  background: url('../../images/interface/logo2.GIF') center/contain no-repeat;
  background-color: rgba(255,255,255,0.12);
  border-radius: 50%;
  padding: 4px;
}
#header { display: none; }

/* Brand text */
#titre {
  padding: 0; margin: 0;
  font-family: var(--font-heading);
  color: var(--white);
  flex: 1;
}
#titre b {
  display: block;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
#titre center { display: block; }
#titre font {
  font: inherit;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 800;
  color: var(--blue-sky);
  letter-spacing: 0.08em;
}

/* Tagline in brand bar */
.brand-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  font-weight: 400;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

/* Anniversary badge */
.brand-anniversary {
  flex: 0 0 auto;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Menu bar */
.site-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.site-menu-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hamburger button */
.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--blue-deep);
  background: var(--blue-deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.site-menu-toggle:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
}

.site-menu-toggle .menu-icon {
  width: 1.1rem;
  height: 1rem;
  display: inline-block;
  position: relative;
}
.site-menu-toggle .menu-icon::before,
.site-menu-toggle .menu-icon::after,
.site-menu-toggle .menu-icon span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.2s;
}
.site-menu-toggle .menu-icon::before { top: 1px; }
.site-menu-toggle .menu-icon span { top: 7px; }
.site-menu-toggle .menu-icon::after { top: 13px; }

/* Nav */
.site-nav {
  padding: var(--space-3) var(--space-5) var(--space-4);
  background: var(--surface);
}
.js .site-nav[hidden] { display: none; }

ul#menu_haut {
  float: none;
  width: auto; height: auto;
  background: transparent;
  border: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin: 0; padding: 0;
  list-style: none;
  text-align: left;
}
ul#menu_haut li { float: none; display: block; }
ul#menu_haut a {
  width: auto; height: auto;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
ul#menu_haut a:hover {
  background: var(--blue-pale);
  color: var(--blue-deep);
  border-color: var(--border);
}
ul#menu_haut a[aria-current="page"] {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
ul#menu_haut a font { color: inherit; }
ul#menu_haut a b { font-weight: 700; }

/* ============================================================
   MAIN CONTENT WRAPPERS
   ============================================================ */
.site-main, .site-aside { min-width: 0; }

.layout-grid {
  display: grid;
  gap: var(--space-4);
}

.content-panel,
#bloc.content-panel,
#tarak.content-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

#bloc, #bloc2, #menu {
  float: none;
  width: auto;
  padding-left: 0;
  margin: 0;
}

body.pilot-modern .content-panel table { max-width: 100%; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0 0 1rem 0;
}
.table-scroll table { width: max-content; min-width: 100%; }

/* content-visibility removed — caused rendering artifacts in some browsers */

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.page-title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw + 0.8rem, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--orange);
  border-radius: 4px;
  flex-shrink: 0;
}

h2.content-heading {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-deep);
  border: 0;
}

#bloc > h2[aria-hidden="true"] {
  position: absolute !important; width: 1px !important;
  height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important;
  border: 0 !important; background: none !important;
}

#bloc h2, #bloc h3, #bloc h4 { text-indent: 0; }
#bloc p { text-align: left; color: var(--dark); }
#bloc :where(p, li, td, th) { line-height: 1.65; }
#bloc center, #bloc table, #bloc div { max-width: 100%; }

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background:
    linear-gradient(170deg, rgba(27,58,92,0.85) 0%, rgba(37,99,168,0.72) 60%, rgba(135,206,235,0.3) 100%),
    url('https://images.unsplash.com/photo-1436891678271-9c672565d8f6?w=1400&q=80&fm=webp') center/cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-5);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0,40 Q360,0 720,40 Q1080,80 1440,40 L1440,80 L0,80Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-eyebrow {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw + 0.5rem, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero p {
  font-size: clamp(1rem, 2vw + 0.2rem, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin: 0 0 var(--space-6);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}

.btn-outline {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}

.btn-blue {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}
.btn-blue:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white);
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* ============================================================
   ANNIVERSARY BANNER
   ============================================================ */
.anniversary-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #D97706 100%);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.anniversary-banner::before {
  content: '✈';
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.08;
  color: var(--white);
}
.anniversary-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw + 0.5rem, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.anniversary-banner p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 1.05rem;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2rem);
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0 0 0.5rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}
.section-divider {
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 4px;
  margin: var(--space-3) auto 0;
}

/* ============================================================
   HOME SECTIONS
   ============================================================ */
.home-section {
  margin-bottom: var(--space-7);
}

/* Activity cards */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.activity-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--blue-pale);
}
.activity-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-sky) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.activity-card-body {
  padding: var(--space-4) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.activity-card-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-deep);
  margin: 0 0 0.5rem;
}
.activity-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 var(--space-4);
  flex: 1;
}
.activity-card-footer {
  display: flex;
  justify-content: flex-end;
}

/* Who we are section */
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
.who-text { }
.who-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw + 0.5rem, 1.9rem);
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0 0 var(--space-4);
}
.who-text p { margin: 0 0 var(--space-4); color: var(--dark); font-size: 1.05rem; }
.who-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.who-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.who-placeholder {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  gap: var(--space-3);
}
.who-placeholder p { font-size: 1rem; margin: 0; opacity: 0.8; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }

/* Media grid (home: video + poster) */
.home-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
  justify-items: center;
  margin-bottom: var(--space-5);
}
.home-video-embed {
  width: 100%;
  max-width: 680px;
  text-align: center;
}
.home-video-embed iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16/9;
  height: auto !important;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 0;
}
.home-poster {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

/* Testimonial carousel */
.testimonial-section {
  background: var(--blue-deep);
  border-radius: var(--radius);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.testimonial-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(135,206,235,0.08);
  border-radius: 50%;
}
.testimonial-section h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 var(--space-6);
}

.testimonial-carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.4s ease; }
.testimonial-slide {
  min-width: 100%;
  padding: var(--space-2);
}
.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  backdrop-filter: blur(8px);
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
  font-style: italic;
}
.testimonial-card blockquote::before { content: '\201C'; }
.testimonial-card blockquote::after  { content: '\201D'; }
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  background: var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
}
.testimonial-name { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.testimonial-role { color: var(--blue-sky); font-size: 0.85rem; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.carousel-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.25); }
.carousel-dots { display: flex; gap: 0.4rem; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 0;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
  padding: 0;
}
.carousel-dot.active { background: var(--orange); width: 20px; border-radius: 4px; }

/* LSF placeholder */
.lsf-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: var(--space-3);
  font-style: italic;
}

/* ============================================================
   INNER PAGE LAYOUTS
   ============================================================ */

/* Sidebar layout */
.site-aside #menu.side-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
}
#menu h2 { margin-top: 0; font-family: var(--font-heading); }
#menu h2#informations, #menu h2#activites2 {
  background-position: left center;
  background-size: auto 28px;
  min-height: 34px;
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
#menu ul { list-style: none; margin: 0; padding: 0; }
#menu li { margin: 0; height: auto; }
#menu li + li { margin-top: 0.35rem; }
#menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--dark);
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 2.5rem;
  font-weight: 600;
  transition: background 0.18s;
}
#menu a:hover, #menu a:focus-visible {
  background: var(--surface-soft);
  border-color: var(--border);
}
#menu a[aria-current="page"] {
  background: var(--blue-pale);
  border-color: var(--border);
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: underline;
}
#menu a font { font: inherit; }
#menu a img { flex: 0 0 auto; margin-left: auto; }

/* ============================================================
   PRESENTATION PAGE — Team Cards
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  gap: var(--space-3);
}
.team-card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-sky);
  background: var(--blue-pale);
}
.team-card-initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  border: 3px solid var(--blue-sky);
  flex-shrink: 0;
}
.team-card-role {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  background: var(--orange-light);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0;
}
.team-card-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.association-goals {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.association-goals h3 {
  font-family: var(--font-heading);
  color: var(--blue-deep);
  margin: 0 0 var(--space-3);
  font-size: 1.05rem;
}
.association-goals ul { margin: 0; padding-left: 1.25rem; }
.association-goals li { margin-bottom: 0.5rem; color: var(--dark); }

.first-in-europe {
  text-align: center;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-top: var(--space-6);
  color: var(--white);
}
.first-in-europe h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

/* ============================================================
   HISTORIQUE — Timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--space-7);
  margin-top: var(--space-5);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-deep), var(--blue-sky));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
}
/* Animation only when JS is present */
.js .timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .timeline-item.visible {
  opacity: 1;
  transform: none;
}
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-7) + 18px);
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-mid);
  z-index: 1;
}
.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.35rem;
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}
.timeline-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-deep);
  margin: 0 0 0.5rem;
}
.timeline-content p { color: var(--dark); margin: 0 0 var(--space-3); font-size: 0.95rem; }
.timeline-content img {
  border-radius: var(--radius-xs);
  max-height: 220px;
  width: 100%;
  object-fit: cover;
  margin-top: var(--space-3);
}

/* ============================================================
   ACTIVITIES PAGE
   ============================================================ */
.activity-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
}
.activity-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.activity-header-text h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0;
}
.activity-header-text p { color: var(--muted); margin: 0.25rem 0 0; }

.activity-sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-5);
}
.activity-sub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.activity-sub-nav a:hover { background: var(--blue-pale); color: var(--blue-deep); }
.activity-sub-nav a.active { background: var(--blue-deep); color: var(--white); border-color: var(--blue-deep); }

.pdf-links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0; }
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s, box-shadow 0.18s;
}
.pdf-link:hover { background: var(--blue-pale); box-shadow: var(--shadow); color: var(--blue-deep); }
.pdf-link .pdf-icon { color: #E3342F; font-size: 1.2rem; }

/* ============================================================
   ACTIONS-SORTIES — Events
   ============================================================ */
.events-list { margin-top: var(--space-4); }

.event-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.event-item:last-child { border-bottom: 0; }

.event-number {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--blue-deep);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
}
.event-number.special { background: var(--orange); }

.event-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-deep);
  margin: 0 0 0.35rem;
}
.event-content p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.event-content a { color: var(--orange); font-weight: 600; }

.highlight-event {
  background: var(--orange-light);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}

/* ============================================================
   LIENS — Partner links
   ============================================================ */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.link-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, background 0.18s;
}
.link-card:hover { background: var(--blue-pale); box-shadow: var(--shadow); color: inherit; }
.link-card-icon {
  width: 48px; height: 48px;
  background: var(--blue-deep);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.link-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-deep);
  margin: 0 0 0.2rem;
}
.link-card p { color: var(--muted); margin: 0; font-size: 0.85rem; }
.link-card-ext {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ============================================================
   ADHESION PAGE
   ============================================================ */
.adhesion-hero {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-7);
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-6);
}
.adhesion-hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
  font-weight: 800;
  margin: 0 0 var(--space-3);
}
.adhesion-hero p { color: rgba(255,255,255,0.85); margin: 0; font-size: 1.05rem; }

.price-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.price-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.price-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: var(--orange);
  background: var(--orange-light);
}
.price-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
.price-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1;
}
.price-amount span { font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.price-desc { color: var(--muted); font-size: 0.85rem; margin: var(--space-3) 0 0; }

.adhesion-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.adhesion-option {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.adhesion-option-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  flex-shrink: 0;
}
.adhesion-option h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.adhesion-option p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-xs);
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--white);
}
.contact-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.contact-item p, .contact-item a { margin: 0; color: var(--dark); font-size: 0.97rem; font-weight: 600; }
.contact-item a { color: var(--blue-deep); }

.contact-map-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-associations {
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
}
.contact-associations h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 var(--space-3);
  font-size: 1rem;
}
.contact-associations ul { list-style: none; padding: 0; margin: 0; }
.contact-associations li {
  padding: 0.35rem 0;
  color: var(--dark);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-associations li::before {
  content: '✓';
  color: var(--blue-mid);
  font-weight: 700;
}

/* ============================================================
   INFO / EDITO PAGE
   ============================================================ */
.info-intro {
  background: linear-gradient(135deg, var(--blue-pale), var(--white));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.info-intro h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0 0 var(--space-3);
}

.info-sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-5);
}
.info-sub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s;
}
.info-sub-nav a:hover { background: var(--blue-pale); color: var(--blue-deep); }
.info-sub-nav a.active { background: var(--blue-deep); color: var(--white); border-color: var(--blue-deep); }

/* ============================================================
   MODAL / LIGHTBOX
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.modal[aria-hidden="false"] { display: flex; }

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-caption {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 80%;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  padding: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.3); }

/* Legacy modal support */
.modal.legacy { display: none; padding-top: 100px; }
.modal.legacy[aria-hidden="false"] { display: block; }
.modal.legacy .modal-content { margin: auto; display: block; width: 80%; max-width: 700px; }
.modal.legacy .close {
  position: absolute; top: 15px; right: 35px;
  color: #f1f1f1; font-size: 40px; font-weight: bold;
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: var(--space-5);
}

.footer-main {
  background: var(--blue-deep);
  border-radius: var(--radius);
  padding: var(--space-7) var(--space-6);
  color: rgba(255,255,255,0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.footer-brand {}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-logo {
  width: 56px; height: 56px;
  background: url('../../images/interface/logo2.GIF') center/contain no-repeat;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.3;
}
.footer-brand-short {
  color: var(--blue-sky);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.55; margin: 0 0 var(--space-4); color: rgba(255,255,255,0.72); }

.footer-social {
  display: flex;
  gap: var(--space-2);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.18s;
}
/* Override body.pilot-modern a specificity in footer */
body.pilot-modern .footer-social a { color: var(--white); }
body.pilot-modern .footer-social a:hover { color: var(--white); background: rgba(255,255,255,0.2); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-sky);
  margin: 0 0 var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--white); }
/* Override body.pilot-modern a specificity in footer columns */
body.pilot-modern .footer-col a { color: rgba(255,255,255,0.75); }
body.pilot-modern .footer-col a:hover { color: var(--white); }
body.pilot-modern .footer-contact-list a { color: rgba(255,255,255,0.75); }
body.pilot-modern .footer-contact-list a:hover { color: var(--white); }

.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.footer-contact-list .fi { flex-shrink: 0; margin-top: 0.1rem; }

.footer-bottom {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-5);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Legacy footer copyright */
p#copyright {
  display: none; /* replaced by .footer-main */
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
/* fade-up animation — only when JS is available */
.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .fade-up.visible { opacity: 1; transform: none; }
.js .fade-up:nth-child(1) { transition-delay: 0ms; }
.js .fade-up:nth-child(2) { transition-delay: 80ms; }
.js .fade-up:nth-child(3) { transition-delay: 160ms; }
.js .fade-up:nth-child(4) { transition-delay: 240ms; }

/* ============================================================
   COMPACT HEADER ON SCROLL
   ============================================================ */
.site-header {
  transition: box-shadow 0.3s, padding 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(27,58,92,0.18) !important;
}
.site-header.scrolled .site-brand {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.site-header.scrolled #logo {
  width: 52px;
  height: 52px;
  transition: width 0.3s, height 0.3s;
}
.site-header.scrolled .brand-anniversary {
  display: none;
}
#logo { transition: width 0.3s, height 0.3s; }

/* ============================================================
   TEAM CARD HOVER EFFECTS
   ============================================================ */
.team-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   TIMELINE HOVER EFFECTS
   ============================================================ */
.timeline-content {
  transition: transform 0.2s, box-shadow 0.2s;
}
.timeline-item:hover .timeline-content {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   FLOATING ADHESION CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  opacity: 0;
  transform: scale(0.85) translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.floating-cta .btn {
  box-shadow: 0 8px 28px rgba(232,145,45,0.45);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .floating-cta { bottom: 1rem; right: 1rem; }
}

/* ============================================================
   RESPONSIVE — Tablet (700px+)
   ============================================================ */
@media (min-width: 700px) {

  .site-brand { padding: var(--space-5) var(--space-6); }
  #logo { width: 80px; height: 80px; }

  .site-menu-bar { padding: var(--space-3) var(--space-6); }
  .site-nav { padding: var(--space-3) var(--space-6) var(--space-5); }

  ul#menu_haut { grid-template-columns: repeat(3, 1fr); }

  .content-panel,
  #tarak.content-panel,
  #bloc.content-panel { padding: var(--space-6); }

  .hero { min-height: 600px; padding: var(--space-8) var(--space-7); }

  .activity-grid { grid-template-columns: repeat(2, 1fr); }

  .who-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }

  .home-media-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }

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

/* ============================================================
   RESPONSIVE — Desktop (960px+)
   ============================================================ */
@media (min-width: 960px) {

  .site-menu-toggle { display: none; }
  .site-menu-bar { padding: var(--space-2) var(--space-6); }
  .site-menu-label { display: none; }

  .site-nav {
    display: block !important;
    padding: 0 var(--space-6) var(--space-4);
  }
  ul#menu_haut { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.35rem; }
  ul#menu_haut a {
    text-align: center;
    padding: 0.65rem 0.4rem;
    font-size: 0.82rem;
    min-height: 3rem;
    display: grid;
    place-items: center;
  }

  .layout-grid { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .site-aside { position: sticky; top: var(--space-4); }

  .activity-grid { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .fade-up, .js .timeline-item { opacity: 1; transform: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .hero-actions, .carousel-controls { display: none; }
  .content-panel, #bloc.content-panel { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   V3 — HEADER HIDE + NAV BUBBLE + NAV OVERLAY
   ============================================================ */
.site-header {
  transition: opacity 0.3s ease, transform 0.35s ease, visibility 0.3s;
}
.site-header.header-hidden {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
  visibility: hidden;
}

/* Nav bubble */
#nav-bubble {
  position: fixed; top: 15px; right: 15px;
  z-index: 9999;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--blue-deep);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 16px rgba(27,58,92,0.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
  pointer-events: none;
}
#nav-bubble.visible {
  opacity: 1; transform: scale(1); pointer-events: auto;
}
#nav-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(27,58,92,0.55);
}
.nav-bubble-logo {
  width: 36px; height: 36px;
  background: url('../images/interface/logo2.GIF') center/contain no-repeat;
  border-radius: 50%;
}

/* Nav overlay — slide from right */
.nav-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--blue-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--space-7) var(--space-5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
  pointer-events: none;
}
.nav-overlay.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.nav-overlay-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.18); border: none;
  color: #ffffff !important; font-size: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.nav-overlay-close:hover { background: var(--orange); }
.nav-overlay-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-3);
  text-align: center;
}
/* Specificity override: force white over body.pilot-modern a */
body.pilot-modern .nav-overlay-list a,
.nav-overlay-list a {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #ffffff !important; text-decoration: none;
  padding: 0.6rem 1.75rem; border-radius: 999px;
  display: inline-block;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.02em;
}
body.pilot-modern .nav-overlay-list a:hover,
body.pilot-modern .nav-overlay-list a.active,
.nav-overlay-list a:hover,
.nav-overlay-list a.active {
  background: var(--orange); color: #ffffff !important;
}

/* ============================================================
   V3 — ANNOUNCEMENT MODAL (affiche 30 ans)
   ============================================================ */
.announcement-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.announcement-overlay.active { opacity: 1; }
.announcement-dialog {
  position: relative;
  background: white; border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  max-width: 500px; width: 90%;
  overflow: hidden;
  transform: scale(0.9); transition: transform 0.3s ease;
}
.announcement-overlay.active .announcement-dialog { transform: scale(1); }
.announcement-poster { width: 100%; height: auto; display: block; }
.announcement-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.5); color: white; border: none;
  border-radius: 50%; width: 32px; height: 32px;
  font-size: 1rem; cursor: pointer; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.announcement-close:hover { background: rgba(0,0,0,0.75); }
.announcement-actions {
  padding: 1rem 1.5rem;
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   V3 — TIMELINE ALT (alternating left/right)
   ============================================================ */
.timeline-alt {
  position: relative;
  padding: var(--space-5) var(--space-3);
}
.timeline-alt::before {
  content: ''; position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--orange), #D97706, var(--orange));
  z-index: 0;
}
.tl-year {
  text-align: center; position: relative; z-index: 2;
  margin: var(--space-6) 0 var(--space-3); clear: both;
}
.tl-year-badge {
  display: inline-block;
  background: var(--blue-deep); color: white;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 0.88rem; padding: 0.3rem 1.25rem;
  border-radius: 999px; position: relative; z-index: 2;
}
.tl-item {
  position: relative; width: calc(50% - 20px);
  padding-bottom: var(--space-5); z-index: 1;
}
.tl-item.tl-left { padding-right: var(--space-5); text-align: right; }
.tl-item.tl-right { left: calc(50% + 20px); padding-left: var(--space-5); }
.tl-dot {
  position: absolute; width: 14px; height: 14px;
  border-radius: 50%; background: var(--orange);
  border: 3px solid white; z-index: 2; top: 8px;
  box-shadow: 0 0 0 2px var(--orange);
}
.tl-item.tl-left .tl-dot  { right: -27px; }
.tl-item.tl-right .tl-dot { left: -27px; }
.tl-major .tl-dot {
  width: 20px; height: 20px; top: 5px;
  border: 3px solid gold; box-shadow: 0 0 0 3px var(--orange);
}
.tl-major.tl-left .tl-dot  { right: -30px; }
.tl-major.tl-right .tl-dot { left: -30px; }
.tl-major .tl-content {
  border: 2px solid var(--orange);
  background: linear-gradient(135deg, rgba(232,145,45,0.07), white);
}
.tl-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tl-content:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tl-date {
  font-family: var(--font-heading); font-size: 0.73rem; font-weight: 800;
  color: var(--orange); text-transform: uppercase; letter-spacing: 0.05em;
}
.tl-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  color: var(--blue-deep); margin: 0.2rem 0 0.35rem;
}
.tl-desc { color: var(--dark); font-size: 0.88rem; margin: 0; }
.tl-photo {
  margin-top: var(--space-2); border-radius: var(--radius-xs);
  max-height: 180px; width: 100%; object-fit: cover;
  transition: max-height 0.3s;
}
.tl-content:hover .tl-photo { max-height: 220px; }
@media (max-width: 699px) {
  .timeline-alt::before { left: 16px; transform: none; }
  .tl-item { width: 100%; left: 0; padding-left: 44px; padding-right: 0; text-align: left; }
  .tl-item.tl-left { text-align: left; }
  .tl-item.tl-left .tl-dot,
  .tl-item.tl-right .tl-dot { left: 9px; right: auto; }
  .tl-major.tl-left .tl-dot,
  .tl-major.tl-right .tl-dot { left: 6px; }
  .tl-year { text-align: left; padding-left: 44px; }
}

/* ============================================================
   V4 — PROPELLER SVG ANIMÉE
   ============================================================ */
@keyframes propeller-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.propeller-svg {
  animation: propeller-spin 2.5s linear infinite;
  transform-origin: center;
  display: inline-block; vertical-align: middle;
}
.header-propeller {
  display: inline-flex; align-items: center; gap: 0.4rem;
  vertical-align: middle;
}
.header-propeller-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1rem;
  color: #E8912D; letter-spacing: 0.12em;
  vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
  .propeller-svg { animation: none; }
}

/* ============================================================
   V4 — TYPEWRITER CURSOR
   ============================================================ */
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.tw-cursor {
  display: inline-block;
  animation: tw-blink 0.85s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
  opacity: 1;
}
.tw-cursor.tw-done {
  animation-duration: 1.5s;
  opacity: 0.6;
}

/* ============================================================
   V4 — HERO CLOUDS
   ============================================================ */
.hero-clouds {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
  z-index: 0;
}
.hero-cloud {
  position: absolute;
  opacity: 0.12;
}
@keyframes cloud-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.hero-cloud-1 {
  width: 280px; bottom: 15%; left: 3%;
  animation: cloud-float 6s ease-in-out infinite;
}
.hero-cloud-2 {
  width: 200px; top: 12%; right: 5%;
  animation: cloud-float 7.5s ease-in-out infinite;
  animation-delay: 1.2s;
}
.hero-cloud-3 {
  width: 150px; top: 38%; left: 18%;
  animation: cloud-float 5s ease-in-out infinite;
  animation-delay: 2.5s;
}
.hero-cloud-4 {
  width: 240px; bottom: 8%; right: 10%;
  animation: cloud-float 8s ease-in-out infinite;
  animation-delay: 0.7s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-cloud { animation: none; }
}

/* ============================================================
   V4 — GLOBAL IMAGE LIGHTBOX
   ============================================================ */
.g-lightbox {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.g-lightbox.g-open { opacity: 1; }
.g-lightbox-inner {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.9); transition: transform 0.3s ease;
}
.g-lightbox.g-open .g-lightbox-inner { transform: scale(1); }
.g-lightbox-inner img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  display: block;
}
.g-lightbox-close {
  position: fixed; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.15); color: white; border: none;
  border-radius: 50%; width: 44px; height: 44px; font-size: 1.25rem;
  cursor: pointer; z-index: 10002;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.g-lightbox-close:hover { background: var(--orange); }
/* Clickable images in content */
.site-main img.g-zoomable,
.tl-photo.g-zoomable { cursor: zoom-in; }

/* ============================================================
   V4 — ACTIVITY CARDS ROTATION AU HOVER
   ============================================================ */
.activity-grid .activity-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.activity-grid .activity-card:nth-child(odd):hover {
  transform: rotate(-2deg) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.activity-grid .activity-card:nth-child(even):hover {
  transform: rotate(2deg) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.activity-grid .activity-card:hover .activity-card-img-placeholder {
  transform: scale(1.15);
  transition: transform 0.3s ease;
}
.activity-card-img-placeholder {
  transition: transform 0.3s ease;
}
@media (hover: none) {
  .activity-grid .activity-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
}

/* ============================================================
   DARK MODE
   Toggled via [data-theme="dark"] on <html>
   State persisted in localStorage key "acsf-theme"
   ============================================================ */

html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] {
  --bg:           #0f172a;
  --surface:      #1e293b;
  --surface-soft: #263347;
  --blue-pale:    #172135;
  --dark:         #e2e8f0;
  --muted:        #94a3b8;
  --border:       #334155;
  --shadow:       0 8px 28px rgba(0,0,0,0.4);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.5);
  --text:         #e2e8f0;
}

/* Body background */
[data-theme="dark"] body.pilot-modern {
  background: var(--bg);
  color: var(--dark);
}

/* Links */
[data-theme="dark"] body.pilot-modern a {
  color: #93c5fd;
}
[data-theme="dark"] body.pilot-modern a:hover {
  color: #bfdbfe;
}

/* Header */
[data-theme="dark"] .site-header {
  background: #0c1524;
  border-bottom-color: #1e3a5f;
}
[data-theme="dark"] .site-brand {
  background: #0c1524;
}

/* Nav */
[data-theme="dark"] .site-nav {
  background: #0c1524;
}
[data-theme="dark"] .site-nav a,
[data-theme="dark"] body.pilot-modern .site-nav a {
  color: #e2e8f0;
}
[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] body.pilot-modern .site-nav a[aria-current="page"] {
  color: var(--orange);
}

/* Content panels / #bloc */
[data-theme="dark"] #bloc,
[data-theme="dark"] .content-panel {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] #bloc p,
[data-theme="dark"] #bloc li,
[data-theme="dark"] .content-panel p {
  color: var(--dark);
}
[data-theme="dark"] #bloc h2,
[data-theme="dark"] #bloc h3,
[data-theme="dark"] .content-panel h2,
[data-theme="dark"] .content-panel h3 {
  color: #f8fafc;
}

/* Cards */
[data-theme="dark"] .activity-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .link-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .event-item,
[data-theme="dark"] .contact-item {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
  color: var(--dark);
}

/* Timeline cards */
[data-theme="dark"] .tl-content {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .tl-title {
  color: #93c5fd;
}
[data-theme="dark"] .tl-desc {
  color: var(--muted);
}

/* Testimonials */
[data-theme="dark"] .testimonial-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--dark);
}
[data-theme="dark"] .testimonial-card blockquote {
  color: #cbd5e1;
}

/* Sidebar */
[data-theme="dark"] .aside-nav,
[data-theme="dark"] .aside-box {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .aside-nav a {
  color: #93c5fd;
}
[data-theme="dark"] .aside-nav a.active,
[data-theme="dark"] .aside-nav a:hover {
  background: #172135;
  color: var(--orange);
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: #0c1524;
  border-top-color: #1e3a5f;
}
[data-theme="dark"] .footer-bottom {
  background: #080f1c;
  border-top-color: #1e3a5f;
}

/* LSF placeholder */
[data-theme="dark"] .lsf-placeholder {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}

/* Inputs / forms */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--surface);
  border-color: var(--border);
  color: var(--dark);
}

/* Home sections */
[data-theme="dark"] .home-section {
  background: transparent;
}
[data-theme="dark"] .home-section h2 {
  color: #f8fafc;
}
[data-theme="dark"] .who-text h2,
[data-theme="dark"] .who-text p {
  color: var(--dark);
}
[data-theme="dark"] .stat-label {
  color: var(--muted);
}

/* Nav overlay (already dark blue, just ensure text is fine) */
[data-theme="dark"] .nav-overlay {
  background: #0c1524;
}

/* Dark mode toggle button */
.theme-toggle {
  position: fixed;
  bottom: 5.5rem;
  right: 1.1rem;
  z-index: 9997;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: var(--blue-deep);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  opacity: 0.88;
}
.theme-toggle:hover {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
[data-theme="dark"] .theme-toggle {
  background: #1e293b;
  border-color: rgba(255,255,255,0.2);
}
