/*
Theme Name:  MJM Landing
Theme URI:   https://novasiteweb.fr
Author:      Khalil Laajine · NovaSiteWeb
Author URI:  https://novasiteweb.fr
Description: Thème one-page institutionnel pour l'association Maison Jeunes Migrants. Pure code, zéro plugin requis, mobile-first, Schema.org NGO intégré. Textes, chiffres et liens éditables via le Customizer.
Version:     1.7.1
Requires PHP: 7.4
License:     GNU General Public License v2 or later
Text Domain: mjm-landing
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root{
  --navy:#003354;
  --navy-deep:#00263E;
  --cream:#F8F6EB;
  --cream-warm:#F1EDDD;
  --ink:#26334F;
  --ink-soft:#59647E;
  --gold:#FF6F59;
  --jaune:#FFDD33;
  --menthe:#8EE5C2;
  --corail-2:#FFA99B; --corail-3:#FFC5BD;
  --bleu-2:#668598;   --bleu-3:#99ADBB;
  --menthe-2:#A1E0CB; --menthe-3:#C7EDDD;
  --jaune-2:#FFEB85;  --jaune-3:#FFF1AD;
  --gold-glow:rgba(255,111,89,.35);
  --line:rgba(27,42,74,.14);
  --radius:14px;
  --font-display:'Poppins','Helvetica Neue',Helvetica,Arial,sans-serif;
  --font-body:'Krub','Helvetica Neue',Helvetica,Arial,sans-serif;
  --font-hand:'Poppins','Krub',sans-serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.65;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}
.screen-reader-text{
  position:absolute!important;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;
}
.hand{font-family:var(--font-hand);font-weight:600;font-style:italic;color:var(--gold);font-size:1.05em;letter-spacing:.01em}
.wrap{width:min(1060px,92%);margin:0 auto}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(255,111,89,.08), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color:var(--cream);
  text-align:center;
  padding:3.2rem 0 4.2rem;
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:5px;
  background:linear-gradient(90deg, var(--gold) 0%, rgba(255,111,89,.25) 60%, transparent 100%);
}
.logo-badge{
  margin:0 auto 1.4rem;
  display:flex;align-items:center;justify-content:center;
}
.logo-badge img{
  width:auto;height:150px;max-width:260px;
  object-fit:contain;
}
.hero .eyebrow{
  font-size:.8rem;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(247,243,234,.65);font-weight:600;margin-bottom:1rem;
}
.hero h1{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.9rem,5.4vw,3.1rem);
  line-height:1.18;max-width:21ch;margin:0 auto .4rem;
  letter-spacing:-.01em;color:var(--cream);
}
.hero h1 em{font-style:normal;color:var(--gold)}
.hero .annotation{display:block;margin:.65rem auto 1.1rem;transform:rotate(-1.5deg)}
.hero p.lead{
  max-width:56ch;margin:0 auto 2rem;font-size:1.06rem;
  color:rgba(247,243,234,.82);
}
.cta-row{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.85rem 1.6rem;border-radius:100px;
  font-weight:700;font-size:1rem;text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-gold{background:var(--gold);color:var(--navy-deep);box-shadow:0 6px 22px rgba(255,111,89,.35)}
.btn-ghost{border:1.5px solid rgba(247,243,234,.45);color:var(--cream)}
.btn-ghost:hover{border-color:var(--cream)}
.fiscal{margin-top:1.1rem;font-size:.86rem;color:rgba(247,243,234,.6)}
.fiscal strong{color:var(--gold);font-weight:600}

/* ==========================================================================
   CHIFFRES CLÉS
   ========================================================================== */
.stats{background:var(--cream-warm);border-bottom:1px solid var(--line)}
.stats .wrap{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:1rem;padding:1.8rem 0;text-align:center;
}
.stat b{
  font-family:var(--font-display);font-weight:800;font-size:2rem;
  color:var(--navy);display:block;line-height:1.1;
}
.stat span{font-size:.86rem;color:var(--ink-soft)}

/* ==========================================================================
   SECTIONS GÉNÉRIQUES
   ========================================================================== */
section.block{padding:3.6rem 0}
.eyebrow-dark{
  font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--ink-soft);font-weight:700;margin-bottom:.5rem;
}
h2{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.5rem,3.6vw,2.1rem);color:var(--navy);
  line-height:1.25;margin-bottom:.7rem;letter-spacing:-.01em;
}
.block-intro{max-width:62ch;color:var(--ink-soft);margin-bottom:2.2rem}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.1rem}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.6rem 1.5rem;
}
.card .ico{
  width:46px;height:46px;border-radius:12px;margin-bottom:1rem;
  background:rgba(255,111,89,.12);
  display:flex;align-items:center;justify-content:center;
}
.card .ico svg{width:24px;height:24px;stroke:var(--navy);stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.card h3{font-family:var(--font-display);font-weight:700;font-size:1.18rem;color:var(--navy);margin-bottom:.45rem}
.card p{font-size:.95rem;color:var(--ink-soft)}

/* ==========================================================================
   PRESSE
   ========================================================================== */
.press{background:var(--navy);color:var(--cream)}
.press h2{color:var(--cream)}
.press .eyebrow-dark{color:rgba(247,243,234,.55)}
.quotes{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.1rem;margin-top:1.6rem}
.quote{
  border:1px solid rgba(247,243,234,.16);border-radius:var(--radius);
  padding:1.5rem;background:rgba(247,243,234,.04);
}
.quote p{font-family:var(--font-display);font-size:1.08rem;line-height:1.5;margin-bottom:.9rem}
.quote cite{font-style:normal;font-size:.84rem;color:rgba(247,243,234,.6);letter-spacing:.05em;text-transform:uppercase;font-weight:600}
.quote cite b{color:var(--gold)}

/* ==========================================================================
   HUB AGIR
   ========================================================================== */
.hub{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.1rem}
.hub a{
  text-decoration:none;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:1.5rem;
  transition:transform .15s ease, border-color .15s ease;
}
.hub a:hover{transform:translateY(-3px);border-color:var(--gold)}
.hub .tag{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--gold)}
.hub h3{font-family:var(--font-display);font-weight:700;font-size:1.15rem;color:var(--navy);margin:.4rem 0 .3rem}
.hub p{font-size:.9rem;color:var(--ink-soft)}
.hub .go{margin-top:.8rem;font-weight:700;font-size:.9rem;color:var(--navy);display:inline-block}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{background:var(--navy-deep);color:rgba(247,243,234,.72);padding:2.6rem 0;font-size:.88rem}
.site-footer .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.6rem}
.site-footer h4{color:var(--cream);font-size:.95rem;margin-bottom:.5rem}
.site-footer a{color:var(--gold);text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.site-footer .legal{grid-column:1/-1;border-top:1px solid rgba(247,243,234,.14);padding-top:1.2rem;font-size:.8rem;color:rgba(247,243,234,.48)}

/* ==========================================================================
   ANIMATIONS SCROLL-REVEAL
   ========================================================================== */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none}

  html{scroll-behavior:auto}
}

/* ==========================================================================
   VIDÉOS (v1.1.0) : façade click-to-load, zéro requête tierce avant clic
   ========================================================================== */
.videos-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1.1rem;
}
.video-facade{
  position:relative;aspect-ratio:16/9;border-radius:var(--radius);
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255,111,89,.12), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.7rem;
  cursor:pointer;overflow:hidden;border:1px solid var(--line);
  transition:transform .15s ease;
}
.video-facade:hover,.video-facade:focus-visible{transform:translateY(-2px)}
.video-play{
  width:64px;height:64px;border-radius:50%;
  background:var(--gold);color:var(--navy-deep);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 24px rgba(240,178,62,.4);
  transition:transform .15s ease;
}
.video-facade:hover .video-play{transform:scale(1.08)}
.video-play svg{width:26px;height:26px;margin-left:3px}
.video-titre{
  color:var(--cream);font-weight:600;font-size:.95rem;
  padding:0 1rem;text-align:center;
}
.video-facade iframe{
  position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:var(--radius);
}
.videos-note{font-size:.8rem;color:var(--ink-soft);margin-top:1rem}
@media (prefers-reduced-motion: reduce){
  .video-facade,.video-play{transition:none}
}

/* ==========================================================================
   HÉRO VIDÉO PLEIN ÉCRAN (v1.3.0)
   ========================================================================== */
.hero-has-video{
  min-height:88vh;
  display:flex;align-items:center;justify-content:center;
}
.hero-video{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:0;
}
.hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg, rgba(19,31,56,.55) 0%, rgba(19,31,56,.72) 70%, rgba(19,31,56,.88) 100%);
}
.hero-has-video .wrap{position:relative;z-index:2}
@media (prefers-reduced-motion: reduce){
  .hero-video{display:none}
}

/* ==========================================================================
   LIENS PRESSE (v1.3.0)
   ========================================================================== */
.press-links{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:.9rem;margin-top:1.4rem;
}
.press-link{
  display:flex;flex-direction:column;gap:.3rem;
  text-decoration:none;
  border:1px solid rgba(247,243,234,.18);border-radius:var(--radius);
  padding:1.1rem 1.2rem;background:rgba(247,243,234,.04);
  transition:border-color .15s ease, transform .15s ease;
}
.press-link:hover{border-color:var(--gold);transform:translateY(-2px)}
.press-link-source{font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.press-link-title{font-family:var(--font-display);font-size:1rem;line-height:1.4;color:var(--cream)}
.press-link-go{margin-top:.4rem;font-size:.85rem;font-weight:700;color:rgba(247,243,234,.75)}


/* ==========================================================================
   IDENTITÉ MJM (v1.4.0) : pattern du livret + logo de secours
   ========================================================================== */
body{
  background-image:url('assets/img/pattern-beige.png');
  background-size:700px auto;
}
.stats, .card, .hub a, .compteur{position:relative;z-index:1}

/* ==========================================================================
   PICTOGRAMMES OFFICIELS MJM (v1.6.0) — charte Baüme
   ========================================================================== */
.ico-picto{
  width:auto;height:auto;background:none;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:.6rem;
}
.mjm-picto{
  width:64px;height:64px;object-fit:contain;
}
/* frise de pictos décorative (série = rythme, cf. charte) */
.picto-frise{
  display:flex;gap:1.4rem;justify-content:center;flex-wrap:wrap;
  margin:1.5rem 0 .5rem;opacity:.9;
}
.picto-frise img{width:48px;height:48px}
