/* ============================================================
   parapente-montgenevre.fr — v2 « Chaberton »
   Direction : haute montagne, air, lumière d'altitude
   Display : Bricolage Grotesque · Body : system
   ============================================================ */

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

:root {
  --nuit:        #0A2A45;   /* bleu nuit alpin */
  --ciel:        #155380;   /* bleu profond */
  --azur:        #2F80B9;   /* bleu clair */
  --glacier:     #DCEBF7;   /* bleu glacé */
  --brume:       #F6F8FB;   /* fond alterné */
  --neige:       #FFFFFF;
  --soleil:      #F4890A;   /* orange aube */
  --soleil-fonce:#CF6E05;
  --texte:       #101828;
  --texte-doux:  #475467;
  --ligne:       #E4E9EF;
  --radius:      12px;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }
::selection { background: rgba(244,137,10,.25); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texte);
  background: var(--neige);
}

a { color: var(--ciel); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(244,137,10,.55);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, .brand-main, .stat-num {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nuit);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header-inner {
  max-width: 1160px; margin: 0 auto;
  padding: .6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: flex; }
.brand-logo svg, .brand-logo img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-main { font-size: .92rem; font-weight: 800; color: var(--neige); letter-spacing: .05em; text-transform: uppercase; }
.brand-sub  { font-size: .7rem; color: rgba(255,255,255,.6); }

.main-nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.main-nav a {
  padding: .38rem .75rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.82);
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.14); color: var(--neige); text-decoration: none; }
.main-nav a.nav-cta {
  background: var(--soleil); color: var(--nuit); font-weight: 700;
  padding: .42rem .95rem; margin-left: .3rem;
}
.main-nav a.nav-cta:hover { background: #FFA733; }

/* ------------------------------------------------------------
   BOUTONS
------------------------------------------------------------ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--soleil); color: var(--nuit);
  font-weight: 700; font-size: .95rem;
  padding: .78rem 1.5rem; border-radius: 10px;
  border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(244,137,10,.3);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary:hover {
  background: #FFA733; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244,137,10,.38);
  text-decoration: none;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 2px solid var(--ciel); color: var(--ciel);
  font-weight: 600; font-size: .95rem;
  padding: .7rem 1.35rem; border-radius: 10px;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--ciel); color: var(--neige); text-decoration: none; }
.hero .btn-ghost, .mobile-cta .btn-ghost {
  border-color: rgba(255,255,255,.55); color: var(--neige);
}
.hero .btn-ghost:hover, .mobile-cta .btn-ghost:hover { background: rgba(255,255,255,.14); color: var(--neige); }

.hero-cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--nuit) 0%, var(--ciel) 52%, var(--azur) 100%);
  color: var(--neige);
  padding: 4rem 1.25rem clamp(120px, 22vw, 240px);
}
.hero::before {   /* halo du soleil */
  content: ""; position: absolute; top: -80px; right: 4%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,137,10,.35) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner, .hero > div {
  position: relative; z-index: 2;
  max-width: 1160px; margin: 0 auto;
}
.hero > div:not(.hero-inner) {   /* pages internes : texte + carte latérale */
  display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start;
}
.hero-eyebrow {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--soleil); font-weight: 700; margin-bottom: .6rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800; line-height: 1.08; margin-bottom: 1rem;
  max-width: 680px;
}
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 620px; }
.hero-subtitle strong { color: var(--neige); }
.hero-badge {
  display: inline-block; margin-top: 1.1rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  padding: .32rem .9rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.92);
}
.hero-meta {
  margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .88rem; color: rgba(255,255,255,.78);
}
.hero-meta strong { color: var(--neige); }

.hero-side {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-side h2 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--neige); }
.hero-side ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.hero-side li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: rgba(255,255,255,.88); }
.hero-side li .icon { flex-shrink: 0; margin-top: .05rem; }
.hero-side li strong { color: var(--neige); }
.hero-side-footer {
  margin-top: 1rem; padding-top: .85rem; font-size: .85rem;
  color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.15);
}
.hero-side img { border-radius: 12px; width: 100%; height: auto; display: block; }

/* Panorama SVG (accueil) */
.hero-art {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1;
  pointer-events: none;
}
.hero-art svg { display: block; width: 100%; height: auto; }
.pg1 { animation: drift1 16s ease-in-out infinite; }
.pg2 { animation: drift2 23s ease-in-out infinite; }
@keyframes drift1 {
  0%, 100% { transform: translate(400px, 122px); }
  50%      { transform: translate(465px, 96px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(880px, 158px) scale(.55); }
  50%      { transform: translate(920px, 142px) scale(.55); }
}

/* ------------------------------------------------------------
   BANDEAU STATS (accueil)
------------------------------------------------------------ */
.stat-strip {
  position: relative; z-index: 5;
  max-width: 1020px; margin: -58px auto 0;
  background: var(--neige);
  border: 1px solid var(--ligne); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(10,42,69,.14);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat-strip > div {
  padding: 1.25rem 1rem; text-align: center;
  border-left: 1px solid var(--ligne);
}
.stat-strip > div:first-child { border-left: none; }
.stat-num {
  display: block; font-size: 1.55rem; font-weight: 800; color: var(--nuit);
  line-height: 1.15;
}
.stat-label {
  display: block; margin-top: .2rem;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--texte-doux); font-weight: 600;
}

/* ------------------------------------------------------------
   SECTIONS
------------------------------------------------------------ */
.section { max-width: 1160px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.section-eyebrow {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--soleil-fonce); font-weight: 700; margin-bottom: .45rem;
}
.section h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 800; margin-bottom: 1rem; color: var(--nuit);
}
.section p { color: var(--texte-doux); max-width: 720px; }
.section h1 { color: var(--nuit); }

/* fond alterné + crête de transition */
.section-alt-wrap { position: relative; background: var(--brume); }
.section-alt-wrap::before {
  content: ""; display: block; height: 36px;
  background: var(--neige) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36 L96 12 L176 28 L288 6 L392 26 L512 4 L608 24 L736 8 L848 28 L960 6 L1072 24 L1184 10 L1296 28 L1392 14 L1440 24 L1440 36 Z' fill='%23F6F8FB'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.section-alt { background: var(--brume); }

/* ------------------------------------------------------------
   CARTES VOLS
------------------------------------------------------------ */
.vol-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 1.75rem;
}
.vol-card {
  border: 1px solid var(--ligne); border-radius: 16px;
  overflow: hidden; background: var(--neige);
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.vol-card:hover { box-shadow: 0 16px 38px rgba(10,42,69,.14); transform: translateY(-4px); }
.vol-card-img { aspect-ratio: 15/8; overflow: hidden; background: var(--glacier); }
.vol-card-img svg, .vol-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vol-card-body { padding: 1.3rem 1.35rem 1.45rem; flex: 1; display: flex; flex-direction: column; gap: .65rem; }
.vol-card-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--nuit); }
.vol-card-body p { font-size: .92rem; color: var(--texte-doux); flex: 1; }
.vol-card-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.vol-card-meta li {
  font-size: .76rem; padding: .22rem .6rem; border-radius: 999px;
  background: var(--glacier); color: var(--ciel); font-weight: 600;
}
.card-link {
  margin-top: .4rem; font-size: .92rem; font-weight: 700;
  color: var(--soleil-fonce);
}
.card-link:hover { color: var(--soleil); }

/* ------------------------------------------------------------
   PROFIL DE VOL (schéma)
------------------------------------------------------------ */
.flight-profile { margin-top: 1.75rem; }
.flight-profile svg { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------
   COLONNES / BLOCS INFO
------------------------------------------------------------ */
.columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.info-block {
  background: var(--neige); border: 1px solid var(--ligne);
  border-radius: 14px; padding: 1.35rem;
}
.info-block h3 { font-size: 1rem; font-weight: 700; color: var(--nuit); margin-bottom: .8rem; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.info-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--texte-doux); }
.info-list li strong { color: var(--texte); }
.info-list .icon { flex-shrink: 0; }

/* ------------------------------------------------------------
   TABLES
------------------------------------------------------------ */
.pricing-table-container {
  overflow-x: auto; margin-top: 1.25rem;
  border: 1px solid var(--ligne); border-radius: 12px;
}
.pricing-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.pricing-table th, .pricing-table td { border-bottom: 1px solid var(--ligne); padding: .65rem 1rem; text-align: left; }
.pricing-table tr:last-child th, .pricing-table tr:last-child td { border-bottom: none; }
.pricing-table th { background: var(--brume); color: var(--nuit); font-weight: 700; width: 210px; }
.pricing-table td { background: var(--neige); color: var(--texte-doux); }
.pricing-table td strong { color: var(--texte); }

/* ------------------------------------------------------------
   FAQ
------------------------------------------------------------ */
.faq h2 { margin-top: 2.2rem; margin-bottom: .4rem; font-size: 1.25rem; }
.faq h2:first-of-type { margin-top: 0; }
details { border-bottom: 1px solid var(--ligne); }
summary {
  padding: .95rem 0; font-size: .98rem; font-weight: 600; color: var(--texte);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color .15s;
}
summary:hover { color: var(--soleil-fonce); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.35rem; color: var(--azur); flex-shrink: 0; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { padding: 0 0 1.1rem .1rem; color: var(--texte-doux); font-size: .93rem; max-width: 760px; }

/* ------------------------------------------------------------
   PILL
------------------------------------------------------------ */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .22rem .75rem; border-radius: 999px;
  background: var(--glacier); color: var(--ciel);
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* ------------------------------------------------------------
   PAGE CONTACT
------------------------------------------------------------ */
.page-intro {
  max-width: 1160px; margin: 0 auto 1.5rem;
  padding: 2.5rem 1.25rem 1.6rem; border-bottom: 1px solid var(--ligne);
}
.page-intro h1 { font-size: 1.9rem; font-weight: 800; color: var(--nuit); }
.page-subtitle { color: var(--texte-doux); max-width: 680px; margin-top: .4rem; }

.page-grid {
  max-width: 1160px; margin: 0 auto 3.5rem;
  padding: 2rem 1.75rem;
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr); gap: 2.5rem;
  background: var(--neige); border: 1px solid var(--ligne); border-radius: 16px;
  box-shadow: 0 14px 40px rgba(10,42,69,.08);
}

.contact-form { display: grid; gap: 1rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.contact-form h2 { font-size: 1.05rem; font-weight: 700; color: var(--nuit); margin-top: 1.2rem; }
.field-group { display: flex; flex-direction: column; gap: .28rem; }
.field-group label { font-size: .9rem; font-weight: 600; }
.field-group small { font-size: .8rem; color: var(--texte-doux); }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: .55rem .8rem; border-radius: 8px; border: 1px solid var(--ligne);
  font: inherit; background: var(--brume);
  transition: border-color .15s, background .15s;
}
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: #C6D2DE; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 3px solid rgba(244,137,10,.4); outline-offset: 0;
  border-color: var(--soleil); background: var(--neige);
}
.contact-form textarea { resize: vertical; }

.participants-table {
  width: 100%; border-collapse: collapse; margin-bottom: 1rem;
  font-size: .9rem; background: var(--brume); border-radius: 10px; overflow: hidden;
}
.participants-table th, .participants-table td { border: 1px solid var(--ligne); padding: .3rem .45rem; text-align: left; }
.participants-table th {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--texte-doux); background: #EEF2F6;
}
.participants-table input { border: none; background: transparent; width: 100%; padding: .22rem; font-size: .88rem; }
.participants-table input:focus { outline: 2px solid rgba(244,137,10,.5); border-radius: 4px; }

.contact-side {
  padding: 1.35rem; border-radius: 14px;
  background: linear-gradient(180deg, var(--glacier) 0%, var(--brume) 70%);
  border: 1px solid var(--ligne); font-size: .9rem;
  align-self: start;
}
.contact-side h2 { font-size: 1.05rem; font-weight: 700; color: var(--nuit); margin-bottom: .8rem; }
.contact-side p { color: var(--texte-doux); margin-bottom: .6rem; }
.contact-side strong { color: var(--texte); }

.visually-hidden { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.site-footer {
  background: var(--nuit); color: rgba(255,255,255,.62);
  padding: 1.8rem 1.25rem 2rem; text-align: center; font-size: .82rem; line-height: 2.1;
}
.site-footer::before {
  content: ""; display: block; height: 36px;
  margin: -1.8rem -1.25rem 1.4rem;
  background: var(--neige) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36 L110 14 L210 30 L330 8 L440 26 L560 6 L670 24 L790 10 L900 28 L1020 6 L1130 26 L1250 12 L1350 28 L1440 16 L1440 36 Z' fill='%230A2A45'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--neige); }

/* ------------------------------------------------------------
   BARRE CTA MOBILE
------------------------------------------------------------ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: .6rem;
  background: var(--nuit);
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.12);
}
.mobile-cta a { flex: 1; justify-content: center; font-size: .9rem; padding: .65rem .5rem; }

/* ------------------------------------------------------------
   ANIMATIONS AU SCROLL
------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pg1, .pg2 { animation: none; }
  .btn-primary:hover, .vol-card:hover { transform: none; }
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 940px) {
  .hero > div:not(.hero-inner) { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .columns-2 { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.25rem; }
  .contact-side, .contact-side a { overflow-wrap: anywhere; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div { border-left: none; border-top: 1px solid var(--ligne); }
  .stat-strip > div:nth-child(-n+2) { border-top: none; }
  .stat-strip > div:nth-child(even) { border-left: 1px solid var(--ligne); }
}
@media (max-width: 700px) {
  .vol-list { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .section { padding: 2.5rem 1rem; }
  .main-nav a { font-size: .8rem; padding: .3rem .5rem; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}
