/* ===== Eurojam 2027 – feuille de style (ordinateur + téléphone) ===== */
:root {
  --navy: #1d3461;
  --red: #b71c1c;
  --red-dark: #8e1414;
  --gold: #d4a017;
  --text: #2b2b2b;
  --muted: #5a6475;
  --serif: "Merriweather", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: #fff; line-height: 1.5; }
a { color: inherit; }
svg { display: block; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  padding: .75em 1.6em; border-radius: 999px; border: 2px solid #fff;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .1s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.btn-red:hover { background: var(--red-dark); }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; border-radius: 10px; border: none; }
.link-arrow { color: #fff; font-family: var(--serif); font-weight: 700; text-decoration: none; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.gold-bar { display: block; width: 50px; height: 3px; background: var(--gold); margin: .9rem 0; }
.gold-bar.center { margin: .6rem auto 1rem; }

/* ---------- En-tête ---------- */
.header { background: #fff; position: relative; border-bottom: 4px solid var(--red); }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.2rem 1.5rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--navy);
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand-logo { width: 56px; height: 56px; }
.title-block { text-align: center; color: var(--navy); }
.title-mountain { width: 140px; margin: 0 auto -4px; }
.eurojam { font-family: var(--serif); font-weight: 900; font-size: 2.6rem; letter-spacing: .03em; line-height: 1.1; }
.eurojam span { color: var(--red); }
.verso { display: flex; align-items: center; justify-content: center; gap: .8rem; font-family: var(--serif); font-size: 1.5rem; }
.verso .line { width: 70px; height: 2px; background: var(--gold); }
.where { font-size: 1.05rem; color: var(--navy); }
.compass { width: 56px; justify-self: end; }
.burger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); justify-self: end; cursor: pointer; }

/* ---------- Héro ---------- */
.hero {
  /* Mets ta photo dans static/img/hero.jpg ; sinon le dégradé s'affiche */
  background:
    linear-gradient(90deg, rgba(17,32,64,.85) 0%, rgba(17,32,64,.45) 55%, rgba(17,32,64,.1) 100%),
    url("img/hero.jpg") center / cover no-repeat,
    linear-gradient(180deg, #5b7aa6 0%, #8aa4c2 45%, #6f8a4e 75%, #4d6b35 100%);
  color: #fff;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
}
.hero h2 { font-family: var(--serif); font-size: 2.3rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero p { font-size: 1.1rem; max-width: 34em; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---------- Carte de don ---------- */
.don-card {
  background: #fff; color: var(--navy); border-radius: 16px; padding: 1.6rem;
  box-shadow: 0 10px 35px rgba(0,0,0,.3); text-align: center;
}
.card-mountain { width: 110px; margin: 0 auto; }
.don-card h3 { font-family: var(--serif); font-size: 1.35rem; }
.amounts { display: flex; gap: .6rem; margin-bottom: 1.1rem; }
.amounts label { flex: 1; }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts span {
  display: block; padding: .6rem 0; border: 1.5px solid #c9ced8; border-radius: 8px;
  font-family: var(--serif); font-weight: 700; cursor: pointer; transition: all .15s;
}
.amounts span:hover { border-color: var(--red); }
.amounts input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.amounts input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.don-card p.secure { text-shadow: none; }
.secure { font-size: .9rem; color: var(--muted); margin-top: .8rem; }

/* ---------- Sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.section-title {
  font-family: var(--serif); color: var(--navy); font-size: 1.8rem; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-bottom: 2rem;
}
.section-title::before, .section-title::after { content: ""; width: 60px; height: 2px; background: var(--gold); flex-shrink: 0; }

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); }
.reason { display: flex; gap: 1rem; padding: 0 1.5rem; align-items: flex-start; }
.reason + .reason { border-left: 1px solid #d5d9e0; }
.reason svg { width: 60px; height: 60px; flex-shrink: 0; }
.reason h4 { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; }
.reason p { color: var(--text); font-size: .98rem; }

.camp-card {
  margin-top: 2.8rem; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.12);
  display: grid; grid-template-columns: 1fr 1.6fr; background: #f1f3f7; min-height: 180px;
}
.camp-text { padding: 1.8rem 2rem; }
.camp-text h3 { font-family: var(--serif); color: var(--navy); font-size: 1.6rem; }
.camp-text p { font-size: 1.05rem; }
.camp-img {
  /* static/img/camp.jpg */
  background:
    linear-gradient(90deg, #f1f3f7 0%, rgba(241,243,247,0) 25%),
    url("img/camp.jpg") center / cover no-repeat,
    linear-gradient(180deg, #a9bfd9 0%, #cdd9e6 40%, #7d9a5a 65%, #5c7c3d 100%);
}

.together { text-align: center; padding-bottom: 3rem; }
.together .section-title { margin-bottom: 1rem; }
.lead { max-width: 46em; margin: 0 auto 1.6rem; font-size: 1.05rem; }
.pillars {
  display: inline-grid; grid-template-columns: repeat(3, auto); background: #fff;
  border: 1.5px solid #d5d9e0; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.pillar { display: flex; align-items: center; gap: .7rem; padding: .9rem 2.2rem;
  font-family: var(--serif); font-weight: 700; color: var(--navy); }
.pillar + .pillar { border-left: 1px solid #d5d9e0; }
.pillar svg { width: 38px; height: 30px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: #fff; border-top: 5px solid var(--gold); }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.8rem 1.5rem;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
}
.footer-tent { width: 140px; }
blockquote { font-family: var(--serif); font-style: italic; font-size: 1.1rem; text-align: center; }
.q { color: var(--gold); font-size: 1.8rem; font-style: normal; line-height: 0; vertical-align: -.25em; margin: 0 .2em; }

/* =================== TABLETTE =================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem 3rem; }
  .don-card { max-width: 460px; width: 100%; margin: 0 auto; }
  .reasons { grid-template-columns: 1fr; gap: 1.4rem; max-width: 520px; margin: 0 auto; }
  .reason + .reason { border-left: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.2rem; }
  .footer-tent { order: 3; }
}

/* =================== TÉLÉPHONE =================== */
@media (max-width: 600px) {
  body { font-size: 15px; }

  /* En-tête compacte : logo à gauche, burger à droite, titre en dessous */
  .header-inner { grid-template-columns: 1fr auto; row-gap: .4rem; padding: .8rem 1rem; }
  .brand { font-size: .8rem; gap: .5rem; }
  .brand-logo { width: 34px; height: 34px; }
  .compass { display: none; }
  .burger { display: block; grid-row: 1; grid-column: 2; }
  .title-block { grid-column: 1 / -1; }
  .title-mountain { width: 90px; }
  .eurojam { font-size: 1.8rem; }
  .verso { font-size: 1.1rem; gap: .5rem; }
  .verso .line { width: 40px; }
  .where { font-size: .85rem; }

  /* Héro : texte puis carte de don pleine largeur */
  .hero { background:
    linear-gradient(180deg, rgba(17,32,64,.9) 0%, rgba(17,32,64,.75) 100%),
    url("img/hero.jpg") center / cover no-repeat, var(--navy); }
  .hero-inner { padding: 1.6rem 1rem 1.6rem; gap: 1.2rem; }
  .hero h2 { font-size: 1.45rem; }
  .hero p { font-size: .95rem; }
  .hero-actions { display: none; }          /* le bouton est dans la carte */
  .don-card { padding: 1.1rem; border-radius: 12px; }
  .don-card h3 { font-size: 1.1rem; }
  .amounts { gap: .4rem; }
  .amounts span { padding: .5rem 0; font-size: .9rem; }
  .btn { font-size: .95rem; }

  .desktop-only { display: none; }

  /* Sections */
  .section { padding: 1.8rem 1rem .5rem; }
  .section-title { font-size: 1.2rem; gap: .7rem; margin-bottom: 1.2rem; }
  .section-title::before, .section-title::after { width: 30px; }
  .reason { padding: 0; gap: .8rem; }
  .reason svg { width: 42px; height: 42px; }
  .reason h4 { font-size: 1rem; }
  .reason p { font-size: .88rem; }

  /* Carte "Bien plus qu'un camp" : image au-dessus */
  .camp-card { grid-template-columns: 1fr; margin-top: 1.8rem; }
  .camp-img { order: -1; height: 140px;
    background: url("img/camp.jpg") center / cover no-repeat,
      linear-gradient(180deg, #a9bfd9 0%, #cdd9e6 40%, #7d9a5a 65%, #5c7c3d 100%); }
  .camp-text { padding: 1rem 1.1rem 1.2rem; }
  .camp-text h3 { font-size: 1.15rem; }
  .camp-text p { font-size: .9rem; }

  .together .section-title::before, .together .section-title::after { display: none; }
  .lead { font-size: .9rem; }
  .pillars { display: grid; width: 100%; }
  .pillar { flex-direction: column; gap: .3rem; padding: .7rem .3rem; font-size: .75rem; text-align: center; }
  .pillar svg { width: 30px; height: 24px; }

  .footer-inner { padding: 1.4rem 1rem; }
  blockquote { font-size: .9rem; }
  blockquote br { display: none; }
  .footer-tent { width: 110px; }
}

/* ---------- Carte de don : "à partir de 50 €" ---------- */
.don-card .from { font-size: 1.25rem; margin-bottom: .2rem; color: var(--navy); text-shadow: none; }
.don-card .from strong { color: var(--red); font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }
.don-card .from-sub { font-size: .95rem; color: var(--muted); margin-bottom: 1.1rem; text-shadow: none; }

/* ---------- Photo + 3 groupes ---------- */
.groupes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.2rem; align-items: center;
  text-align: left; margin: 0 auto 2rem; }
.photo-district { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.15); position: relative; }
.photo-district img { display: block; width: 100%; aspect-ratio: 12 / 7; object-fit: cover; }
.photo-district figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .7rem;
  color: #fff; font-family: var(--serif); font-style: italic; font-size: .95rem;
  background: linear-gradient(transparent, rgba(17,32,64,.75)); }
.groupes-num { font-family: var(--serif); color: var(--navy); font-size: 1.5rem; font-weight: 700; margin-bottom: .6rem; }
.groupes-num span { color: var(--red); font-size: 3rem; line-height: 1; vertical-align: -.15em; margin-right: .15em; }
.groupes-text p:last-child { font-size: 1.05rem; }

@media (max-width: 900px) {
  .groupes { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
}
@media (max-width: 600px) {
  .groupes-num { font-size: 1.2rem; }
  .groupes-num span { font-size: 2.3rem; }
  .groupes-text p:last-child { font-size: .9rem; }
  .photo-district figcaption { font-size: .8rem; }
}

/* ===== Effets "whaou" ===== */
/* Lent zoom sur la photo du héro */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("img/hero.jpg") center / cover no-repeat; animation: kenburns 24s ease-in-out infinite alternate; }
.hero { background: linear-gradient(90deg, rgba(17,32,64,.88) 0%, rgba(17,32,64,.55) 55%, rgba(17,32,64,.25) 100%); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translateX(-2%); } }

/* Simulateur */
.simu { background: #f5f7fb; border-radius: 12px; padding: .9rem 1rem; margin: .6rem 0 1.1rem; }
.simu label { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; display: block; margin-bottom: .4rem; }
.simu output#m-don { color: var(--red); font-size: 1.3rem; }
.simu input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--red) var(--p, 0%), #d5d9e0 var(--p, 0%)); outline: none; cursor: pointer; }
.simu input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 4px solid var(--red); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.simu input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.simu-net { margin-top: .6rem; font-size: .98rem; color: var(--navy); text-shadow: none; }
.simu-net strong { color: #2e7d32; font-size: 1.25rem; font-family: var(--serif); }
.simu-note { font-size: .78rem; color: var(--muted); text-shadow: none; }

/* Bandeau chiffres clés */
.chiffres { background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold); }
.chiffres-inner { max-width: 1100px; margin: 0 auto; padding: 1.8rem 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.chiffre + .chiffre { border-left: 1px solid rgba(255,255,255,.2); }
.chiffre .nb { display: block; font-family: var(--serif); font-weight: 900; font-size: 2.6rem; color: var(--gold); line-height: 1.1; }
.chiffre .nb.small { font-size: 1.9rem; padding: .25rem 0; }
.chiffre .lbl { font-size: .95rem; opacity: .9; }

/* Photo des groupes au format portrait */
.groupes { grid-template-columns: .8fr 1.2fr; max-width: 900px; }
.photo-district img { aspect-ratio: 4 / 5; max-height: 460px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reason.reveal:nth-child(2), .chiffre.reveal:nth-child(2) { transition-delay: .15s; }
.reason.reveal:nth-child(3), .chiffre.reveal:nth-child(3) { transition-delay: .3s; }
.chiffre.reveal:nth-child(4) { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero::before { animation: none; } }

@media (max-width: 900px) {
  .groupes { grid-template-columns: 1fr; }
  .photo-district { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero { background: linear-gradient(180deg, rgba(17,32,64,.85), rgba(17,32,64,.7)); }
  .chiffres-inner { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; padding: 1.3rem 1rem; }
  .chiffre:nth-child(3) { border-left: none; }
  .chiffre .nb { font-size: 2rem; }
  .chiffre .nb.small { font-size: 1.4rem; }
  .chiffre .lbl { font-size: .8rem; }
  .photo-district img { max-height: 360px; }
}

/* Correctifs : voile sombre au-dessus de la photo animée, texte net dans la carte */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(17,32,64,.9) 0%, rgba(17,32,64,.6) 50%, rgba(17,32,64,.2) 100%); }
.hero .don-card p, .hero .don-card label { text-shadow: none; }
@media (max-width: 600px) {
  .hero::after { background: linear-gradient(180deg, rgba(17,32,64,.88), rgba(17,32,64,.72)); }
}
