/* ============================================================
   ACDN — Feuille de style personnalisée
   Aéroclub des Navigants · acdn.fr
   ============================================================ */

/* ── Variables ── */
:root {
  --rouge:    #C0272D;
  --bordeaux: #8B0000;
  --blanc:    #ffffff;
  --gris-cl:  #f8f8f8;
  --gris-bd:  #e5e7eb;
  --texte:    #1a1a1a;
  --texte-doux: #4b5563;
}

/* ── Typographie ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--texte);
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Navbar ── */
/* Force position fixe — Spectre.css le réinitialise parfois */
#navbar,
#navbar.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: var(--rouge) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  /* Annule tout padding/margin parasite de Spectre */
  padding: 0 !important;
  margin: 0 !important;
}

/* Conteneur interne de la nav */
#navbar .container {
  display: flex !important;
  align-items: stretch !important;
  min-height: 52px;
  padding: 0 1rem !important;
}

/* Brand (logo + nom) */
#navbar .navbar-brand {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
  min-height: 52px;
}
#navbar .navbar-brand img {
  max-height: 40px !important;
  width: auto;
}

/* Menu principal */
#navbar .navbar-menu {
  display: flex !important;
  flex-grow: 1;
  align-items: stretch;
  /* Annule le display:none de Bulma/Spectre sur desktop */
}
@media (max-width: 1023px) {
  #navbar .navbar-menu {
    display: none !important;
    position: absolute !important;
    top: 52px !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--rouge) !important;
    padding: .5rem 0 1rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    flex-direction: column;
  }
  #navbar .navbar-menu.is-active {
    display: flex !important;
  }
}

/* Liens de navigation */
#navbar .navbar-end {
  display: flex !important;
  align-items: center !important;
  margin-left: auto;
}
#navbar .navbar-item,
#navbar .navbar-link {
  display: flex !important;
  align-items: center !important;
  color: rgba(255,255,255,.9) !important;
  font-weight: 600 !important;
  font-size: .82rem !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  padding: .5rem .9rem !important;
  /* Annule les marges parasites de Spectre */
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.4;
}
#navbar .navbar-item:hover,
#navbar .navbar-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
}

/* Burger mobile */
#navbar .navbar-burger {
  display: none;
  cursor: pointer;
  height: 52px;
  width: 52px;
  margin-left: auto;
  position: relative;
  background: transparent;
  border: none;
}
@media (max-width: 1023px) {
  #navbar .navbar-burger { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
}
#navbar .navbar-burger span {
  display: block !important;
  background: white !important;
  height: 2px !important;
  width: 22px !important;
  border-radius: 2px;
  transition: all .3s;
}

/* Bouton téléphone dans la nav */
.nav-tel {
  background: white !important;
  color: var(--rouge) !important;
  border-radius: .4rem !important;
  font-weight: 700 !important;
  padding: .35rem .85rem !important;
  margin-left: .5rem !important;
  font-size: .82rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}
.nav-tel:hover {
  background: #f0f0f0 !important;
  color: var(--bordeaux) !important;
}

/* ── Hero ── */
.hero.is-fullheight-with-navbar {
  position: relative;
  overflow: hidden;
}
.hero.hero-acdn {
  background-color: var(--rouge);
}
.hero.hero-acdn .hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem;
}
.hero-acdn .title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  line-height: 1.1;
}
@media (max-width: 768px) {
  .hero-acdn .title { font-size: 2.2rem; }
}
.hero-acdn .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  font-style: italic;
  font-weight: 300;
}
/* Vague blanche en bas du hero */
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 80px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* ── Boutons ── */
.button.is-primary,
.button.is-acdn {
  background: var(--rouge) !important;
  border-color: var(--rouge) !important;
  color: white !important;
  font-weight: 700;
  border-radius: .4rem;
  transition: opacity .2s;
}
.button.is-primary:hover,
.button.is-acdn:hover {
  opacity: .88;
}
.button.is-outline-white {
  background: transparent !important;
  border: 2px solid white !important;
  color: white !important;
  font-weight: 700;
  border-radius: .4rem;
  transition: background .2s, color .2s;
}
.button.is-outline-white:hover {
  background: white !important;
  color: var(--rouge) !important;
}

/* ── Titres de section ── */
.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--rouge);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--rouge);
  margin: 8px auto 0;
}
.section-subtitle {
  color: var(--texte-doux);
  font-size: .95rem;
  margin-bottom: 2.5rem;
}

/* ── Sections alternées ── */
.section.is-white { background: white; }
.section.is-light-gray { background: var(--gris-cl); }
.section.is-rouge {
  background: var(--bordeaux);
  color: white;
}
.section.is-rouge h2,
.section.is-rouge h3,
.section.is-rouge p {
  color: white;
}

/* ── Chiffres clés ── */
.chiffre-bloc {
  text-align: center;
  padding: 1.5rem 1rem;
}
.chiffre-valeur {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--rouge);
  line-height: 1;
}
.chiffre-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--texte-doux);
  margin-top: .35rem;
}

/* ── Compensation nav fixe ── */
/* Empêche le contenu de passer sous la navbar */
body { padding-top: 52px !important; }
main  { padding-top: 0 !important; }

/* ── Grille flotte — écrase complètement Spectre ── */
/*
 * Spectre utilise .columns/.column avec float ou flex partiel
 * qui provoque les débordements. On remplace par CSS Grid natif.
 */
.flotte-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Annule les styles Spectre sur .columns dans la section flotte */
.section #flotte .columns,
.section #flotte-section .columns {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  margin: 0 !important;
  width: 100% !important;
}
.section #flotte .column,
.section #flotte-section .column,
.section #flotte .columns .column {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  float: none !important;
  flex: none !important;
}

/* ── Cards flotte ── */
.card.flotte-card {
  border-radius: .75rem !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
  transition: transform .25s, box-shadow .25s;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: white !important;
  /* Annule les resets de Spectre sur .card */
  border: none !important;
}
.card.flotte-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.14) !important;
}
.flotte-card .card-image {
  flex-shrink: 0;
}
.flotte-card .card-image img,
.flotte-card .card-image figure img {
  height: 200px !important;
  object-fit: cover !important;
  width: 100% !important;
  display: block !important;
  /* Annule Spectre qui met max-width sur les img */
  max-width: none !important;
  margin: 0 !important;
}
.flotte-card .card-header {
  background: var(--rouge) !important;
  display: flex !important;
  align-items: center !important;
  /* Annule border-bottom de Spectre */
  border-bottom: none !important;
  box-shadow: none !important;
}
.flotte-card .card-header-title {
  color: white !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1rem !important;
  padding: .75rem 1rem !important;
  font-weight: 700 !important;
}
.flotte-card .card-content {
  padding: 1rem !important;
  flex: 1;
}
.flotte-carac {
  font-size: .8rem;
  margin-top: .75rem;
}
.flotte-carac dt {
  color: var(--texte-doux);
  font-weight: 600;
  display: inline;
}
.flotte-carac dd {
  display: inline;
  margin-left: .3rem;
  color: var(--texte);
}
.flotte-carac div {
  border-bottom: 1px solid var(--gris-bd);
  padding: .3rem 0;
  display: flex !important;
  justify-content: space-between;
}

/* ── Tarifs ── */
.tarif-card {
  border-radius: .6rem;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.tarif-card .tarif-header {
  background: var(--rouge);
  color: white;
  padding: .6rem 1rem;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tarif-card table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.tarif-card td {
  padding: .6rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--gris-bd);
}
.tarif-card td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--rouge);
  white-space: nowrap;
}
.tarif-note {
  font-size: .8rem;
  color: var(--texte-doux);
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
}

/* ── Galerie ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: .6rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(139,0,0,.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: white;
  font-size: .85rem;
  font-weight: 600;
}
/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: .5rem;
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}
#lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}
#lightbox-close:hover { opacity: 1; }
#lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
}

/* ── Événements ── */
.event-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: white;
  border-radius: .6rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--rouge);
  box-shadow: 0 1px 5px rgba(0,0,0,.07);
  margin-bottom: .9rem;
  transition: transform .2s;
}
.event-card:hover { transform: translateX(4px); }
.event-card.past { opacity: .5; }
.event-date-bloc {
  flex-shrink: 0;
  background: var(--rouge);
  color: white;
  border-radius: .5rem;
  text-align: center;
  padding: .5rem .75rem;
  min-width: 62px;
}
.event-date-day {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.event-date-month {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
  margin-top: .1rem;
}
.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rouge);
  margin-bottom: .25rem;
}
.event-desc { font-size: .875rem; color: var(--texte-doux); }

/* ── Infos pratiques ── */
.info-card {
  background: rgba(255,255,255,.12);
  border-radius: .75rem;
  padding: 1.5rem;
  color: white;
  transition: background .2s;
}
.info-card:hover { background: rgba(255,255,255,.18); }
.info-card h3 {
  color: rgba(255,255,255,.9);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.info-card p,
.info-card li {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  line-height: 1.65;
}
.horaire-ligne {
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}
.horaire-ligne:last-child { border: none; }
.horaire-jour { color: rgba(255,255,255,.65); }
.horaire-heure { font-weight: 700; }

/* ── Téléphone pulsant ── */
.tel-pulse-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.55); opacity: 0; }
}
.tel-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  animation: pulse-ring 2s infinite;
}
.tel-btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: white;
  color: var(--rouge) !important;
  font-weight: 900;
  font-size: 1.4rem;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  line-height: 72px;
  text-align: center;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.tel-number {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  display: block;
  margin-top: .75rem;
}
.tel-number:hover { text-decoration: underline; color: white; }

/* ── Footer ── */
.footer.footer-acdn {
  background: #111;
  color: rgba(255,255,255,.55);
  padding: 1.5rem;
  text-align: center;
  font-size: .8rem;
}
.footer-acdn a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
}
.footer-acdn a:hover { color: white; }

/* ── Fade-in animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive nav ── */
.navbar-menu.is-active {
  display: flex !important;
  flex-direction: column;
  background: var(--rouge) !important;
}
.navbar-menu.is-active .navbar-item {
  color: white !important;
  padding: .6rem 1.2rem !important;
}

/* ── Annulations globales des conflits Spectre ── */
/* Spectre reset les marges des listes dans .content */
.content ul, .content ol { padding-left: 1.5rem; }
/* Spectre met une border sur les figures */
figure { margin: 0; }
/* Spectre reset parfois la couleur des liens */
a { color: var(--rouge); }
a:hover { color: var(--bordeaux); }
