/* =========================
   Thème (couleurs du logo)
   ========================= */
:root{
  --cream:#fff7ee;
  --red:#c8102e;
  --green:#006b5b;
  --green-dark:#045146;
  --ink:#16302d;
  --ink-muted:#56706a;
  --card:#ffffff;
  --ring: color-mix(in oklab, var(--red) 35%, transparent);
  --radius:18px;
  --shadow:0 6px 20px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{height:100%;scroll-behavior: smooth;}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--ink); background:var(--cream); line-height:1.5;
}
img{max-width:100%;height:auto;display:block}
.container{max-width:1100px;margin-inline:auto;padding:clamp(14px,2.2vw,28px)}
.section-title{font-size:clamp(1.2rem,2.4vw,1.8rem);margin:.1rem 0 .6rem}
.section-title.center{text-align:center}
.muted{color:var(--ink-muted)}
.btn{display:inline-block;text-decoration:none;border-radius:14px;font-weight:800}
#hero, #idees-clefs, #agenda, #liste, #contact{
  scroll-margin-top: var(--header-h);
}
/* =========================
   Header
   ========================= */
.site-header{position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;color:var(--green-dark);text-decoration:none}
.brand-logo{width:52px}
.brand-text{font-size:clamp(14px,2.2vw,18px)}
.brand-text .accent{color:var(--red)}
.main-nav a{color:var(--green-dark);text-decoration:none;font-weight:600;padding:.6rem .9rem;border-radius:12px}
.main-nav a:hover{background: color-mix(in oklab, var(--green) 8%, white)}
@media (max-width:900px){.main-nav{display:none}}

/* =========================
   HERO "split" moderne
   ========================= */
.hero-split{
  position:relative; overflow:hidden;
  padding-top: clamp(8px, 2.2vw, 20px) !important;   /* moins d'air en haut */
  padding-bottom: clamp(28px, 5vw, 60px) !important; /* on garde un peu en bas */
  background:
    radial-gradient(120% 90% at 5% 10%, color-mix(in oklab, var(--green) 10%, transparent) 0%, transparent 60%),
    radial-gradient(80% 70% at 95% 25%, color-mix(in oklab, var(--red) 12%, transparent) 0%, transparent 60%),
    var(--cream);
}
.hero-split__grid{
  display:grid; gap:clamp(18px,4vw,40px);
  grid-template-columns:1.1fr 1fr; align-items:center;
}
@media (max-width:980px){ .hero-split__grid{ grid-template-columns:1fr; } }

/* Colonne gauche (texte) */
.hero-copy .eyebrow{
  text-transform:uppercase; letter-spacing:.06em; font-weight:800;
  color:var(--green-dark); margin:0 0 .6rem;
}
.hero-copy h1{
  margin:0 0 .6rem; line-height:1.06;
  font-size:clamp(2rem,5.6vw,4rem); color:var(--ink);
}
.hero-copy .sub{ color:var(--ink-muted); font-size:clamp(1rem,1.4vw,1.125rem); max-width:56ch }
.cta-row{ display:flex; gap:12px; margin-top:clamp(14px,2.4vw,24px); flex-wrap:wrap }
.btn-primary{
  background:linear-gradient(90deg,var(--green), color-mix(in oklab, var(--green) 55%, var(--red)));
  color:#fff; padding:.75rem 1.1rem; box-shadow:0 10px 24px rgba(0,0,0,.12)
}
.btn-primary:hover{ filter:brightness(1.05) }
.btn-secondary{
  color:var(--green-dark); border:2px solid color-mix(in oklab, var(--green) 45%, white);
  background:transparent; padding:.62rem .95rem;
}
.btn-secondary:hover{ background: color-mix(in oklab, var(--green) 8%, white) }

/* Colonne droite (photo + arc) */
.hero-visual{ position:relative; justify-self:end; width:min(46vw, 520px); }
.hero-visual img{
  width:100%; height:auto; border-radius:24px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  clip-path: circle(64% at 75% 50%);    /* découpe douce façon cercle */
  filter:saturate(1.05) contrast(1.02);
  position:relative; z-index:1;
}
.hero-visual .hero-arc{
display: none !important; 
}

@media (max-width:980px){
  .hero-visual{ justify-self:center; width:min(88vw, 640px); }
  .hero-visual img{ clip-path: circle(58% at 50% 50%); }
  .hero-visual .hero-arc{
    left:50%; right:auto; top:50%; transform:translate(-50%,-50%);
    width:min(95vw,700px);
    clip-path: inset(52% -10% -12% -10% round 50%); /* arc en bas sur mobile */
  }
}

/* =========================
   Grille des cartes (participants)
   ========================= */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:clamp(10px,3vw,22px);
  margin-top:clamp(8px,2vw,16px);
}
@media (max-width:900px){ .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:520px){ .cards-grid{grid-template-columns:1fr;} }

/* =========================
   Flip cards (recto 100% photo)
   ========================= */
.flip{ position:relative; perspective:1000px; height:280px; }
@media (max-width:520px){ .flip{height:350px;} }

.flip-inner{
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d; transition:transform .6s;
  border-radius:var(--radius); box-shadow:var(--shadow);
  overflow:hidden; border:1px solid #eef1ef; background:#fff;
}

/* Faces superposées */
.flip-face{
  position:absolute; inset:0;
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
  transition:transform .6s;
}

/* Recto = photo plein cadre */
.flip-face.front{ display:block; background:transparent; transform:rotateY(0); }
.flip-face.front .ph{ position:absolute; inset:0; overflow:hidden; }
.flip-face.front .ph img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.flip-face.front::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:42%;
  background:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 90%); pointer-events:none;
}
.flip-face.front .meta{ position:absolute; left:12px; right:12px; bottom:12px; padding:0; }
.flip-face.front .name{ margin:0; color:#fff; font-weight:800; text-shadow:0 2px 6px rgba(0,0,0,.4) }
.flip-face.front .role{ margin:.2rem 0 0; color:rgba(255,255,255,.9); font-weight:700; text-shadow:0 2px 6px rgba(0,0,0,.35) }
.flip .badge{ position:absolute; top:10px; left:10px; background:var(--green); color:#fff; font-size:.8rem; padding:.25rem .5rem; border-radius:999px; z-index:2 }

/* Verso (bio) */
.flip-face.back{
  transform:rotateY(-180deg);
  padding:16px; gap:8px; background:#fff; display:grid; grid-template-rows:auto 1fr;
}
.flip-face.back h3{margin:.2rem 0 .3rem}
.flip-face.back p{margin:0;color:var(--ink-muted)}

/* Hover desktop uniquement */
@media (hover:hover) and (pointer:fine){
  .flip:hover .front{ transform:rotateY(180deg); }
  .flip:hover .back { transform:rotateY(0); }
}
/* État flippé pour mobile (classe ajoutée en JS) */
.flip.is-flipped .front{ transform:rotateY(180deg); }
.flip.is-flipped .back { transform:rotateY(0); }

/* =========================
   Formulaire
   ========================= */
.contact{padding-bottom:64px}
.form{
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
  padding:clamp(14px,2.5vw,24px);border:1px solid #eef1ef;max-width:760px;margin-inline:auto
}
.form-row{display:grid;gap:.35rem;margin-bottom:.9rem}
label{font-weight:600}
input,textarea{width:100%;padding:.7rem .85rem;border-radius:12px;border:1px solid #dfe7e4;background:#fff;color:var(--ink);font:inherit}
input:focus,textarea:focus{outline:3px solid var(--ring);border-color:var(--green)}
.form-actions{display:flex;align-items:center;gap:12px}
.form-note{margin:0}

/* =========================
   Footer
   ========================= */
.site-footer{background:#0e2f2a;color:#cfe1dc;text-decoration: none;}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration: none;}
.to-top{color:#cfe1dc;text-decoration:none;font-weight:800}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce){
  *{animation:none!important;transition:none!important}
}

/* ===== Section Nos grandes idées ===== */
.ideas{
  padding-block: clamp(28px, 6vw, 72px);
}
.ideas .eyebrow{ 
  text-transform: uppercase; letter-spacing:.06em; font-weight:900; 
  color:var(--green-dark); margin:0 0 .2rem; 
}
.ideas .eyebrow.center{ text-align:center }
.ideas-title{
  text-align:center; font-size:clamp(1.6rem, 3.4vw, 2.3rem);
  margin:.1rem 0 .4rem; color:var(--ink);
}
.lead{ 
  margin:0 auto 1.2rem; text-align:center; max-width:72ch; 
  color:var(--ink-muted); 
}

.idea-grid{
  display:grid; gap:clamp(12px,2.4vw,20px);
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: clamp(12px, 2.4vw, 24px);
}

.idea{
  position:relative;
  background:#fff;
  border:1px solid #eef1ef;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  padding:18px 16px 16px 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.idea:hover{
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--green) 22%, #eef1ef);
  box-shadow:0 14px 28px rgba(0,0,0,.09);
}

/* barre d'accent en haut (vert→rouge) */
.idea::before{
  content:""; position:absolute; left:0; right:0; top:0; height:6px; border-radius:16px 16px 0 0;
  background: linear-gradient(90deg, var(--green), color-mix(in oklab, var(--green) 45%, var(--red)));
}

/* icône ronde */
.idea-icon{
  width:42px; height:42px; border-radius:999px;
  display:grid; place-items:center; margin-bottom:.35rem;
}
.idea-icon svg{
  width:22px; height:22px; fill:var(--green-dark);
}

.idea h3{ 
  margin:.2rem 0 .2rem; font-size:1.05rem; color:var(--ink); 
}
.idea p{ margin:0; color:var(--ink-muted) }

.ideas-cta{
  margin-top: clamp(14px, 2.8vw, 28px);
  display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
}

/* Grille */
.idea-grid{
  display:grid;
  gap:18px 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ≥1024px : 3 colonnes + centre le dernier s’il est seul sur la ligne */
@media (min-width:1024px){
  .idea-grid{ grid-template-columns:repeat(3, minmax(300px,1fr)); }
  .idea-grid > .idea:last-child:nth-child(3n+1){
    grid-column:2;                /* colonne du milieu */
  }
}

/* 640–1023px : 2 colonnes + centre (ou plutôt occupe les 2 colonnes) si dernier est seul */
@media (min-width:640px) and (max-width:1023px){
  .idea-grid{ grid-template-columns:repeat(2, minmax(280px,1fr)); }
  .idea-grid > .idea:last-child:nth-child(2n+1){
    grid-column:1 / -1;           /* span sur les 2 colonnes => visuellement centré */
    justify-self:center;          /* au cas où */
    max-width:720px;              /* optionnel pour limiter la largeur */
  }
}

/* ====== Agenda / Calendrier ====== */
.agenda{ padding-block: clamp(28px, 5vw, 60px); }
.agenda-title{ text-align:center; margin:.2rem 0 1rem; color:var(--ink) }
.eyebrow.center{ text-align:center }

.agenda-wrap{
  display:grid; gap:clamp(14px,2.4vw,24px);
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px){ .agenda-wrap{ grid-template-columns: 1fr; } }

.calendar{ padding:0; overflow:hidden }
.cal-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-bottom:1px solid #eef1ef;
  background: linear-gradient(180deg, #fff, #f9fbfa);
}
.cal-label{ margin:0; font-size:1.05rem; color:var(--green-dark) }
.cal-nav{
  border:none; background:#fff; border-radius:10px; padding:.35rem .6rem; font-size:1.2rem;
  box-shadow:0 2px 6px rgba(0,0,0,.06); cursor:pointer;
}
.cal-nav:hover{ background: color-mix(in oklab, var(--green) 8%, white) }

.cal-grid{
  display:grid; grid-template-columns: repeat(7, 1fr);
  gap:6px; padding:12px;
}
.cal-week{
  text-align:center; font-weight:800; color:var(--ink-muted);
  padding:6px 0;
}

.cal-cell{
  display:grid; place-items:center; height:58px;
  background:#fff; border:1px solid #eef1ef; border-radius:12px;
  box-shadow:0 3px 8px rgba(0,0,0,.04);
  position:relative;
}
.cal-cell.is-out{ opacity:.45 } /* jours du mois voisin */
.cal-cell button{
  all:unset; cursor:pointer; display:grid; place-items:center; width:100%; height:100%;
  border-radius:12px;
}
.cal-cell .num{
  font-weight:800; color:var(--ink);
}

/* Dates avec évènement : numéro en pastille rouge */
.cal-cell.has-event .num{
  color:#fff;
  background: var(--red);
  padding:.25rem .45rem; border-radius:999px;
  box-shadow:0 6px 14px rgba(200,16,46,.25);
}

/* État sélectionné */
.cal-cell.selected{ outline:3px solid var(--ring); outline-offset:2px; }

/* Détails */
.cal-details{ padding:16px }
.details-title{ margin:.2rem 0 .6rem }
.details-list{ list-style:none; margin:0; padding:0; display:grid; gap:.5rem }
.details-list li{
  background:#fff; border:1px solid #eef1ef; border-radius:12px; padding:.6rem .75rem;
  box-shadow:0 2px 6px rgba(0,0,0,.04);
}
.details-list li .title{ font-weight:800; color:var(--ink) }
.details-list li .meta{ color:var(--ink-muted); font-size:.95rem }

/* ---- Scroll conditionnel pour la liste d'évènements ---- */
.cal-details{ display:flex; flex-direction:column; }
.details-list{ overflow:visible; max-height:none; }

/* activé par JS quand > 3 items */
.details-list.scrollable{
  max-height: 360px;              /* ajuste si tu veux */
  overflow:auto;
  padding-right: 6px;              /* pour ne pas couper l'ombre des cartes */
  overscroll-behavior: contain;    /* évite de scroller la page */
}

/* Scrollbar propre (WebKit) */
.details-list.scrollable::-webkit-scrollbar{ width:10px; }
.details-list.scrollable::-webkit-scrollbar-track{
  background:#f1f5f3; border-radius:10px;
}
.details-list.scrollable::-webkit-scrollbar-thumb{
  background: color-mix(in oklab, var(--green) 40%, #9fb6af);
  border-radius:10px;
}

@media (max-width: 900px){
  .details-list.scrollable{ max-height: 300px; }
}


/* ===== Galerie ===== */
.gallery{ padding-block: clamp(28px,6vw,72px); background: var(--cream); }
.gallery .lead{ margin-top:.2rem; margin-bottom:1.2rem; }

.gallery-masonry{
  column-count: 4;
  column-gap: clamp(10px,2.2vw,20px);
}
@media (max-width: 980px){ .gallery-masonry{ column-count: 3; } }
@media (max-width: 560px){ .gallery-masonry{ column-count: 2; } }

.g-item{
  display:inline-block; width:100%;
  margin: 0 0 clamp(10px,2.2vw,20px);
  position:relative; border-radius:16px; overflow:hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  transform: translateY(0); transition: transform .25s ease, box-shadow .25s ease;
}
.g-item img{
  width:100%; height:auto; display:block;
  transform: scale(1.0); transition: transform .5s ease;
}
.g-item .g-cap{
  position:absolute; left:0; right:0; bottom:0; padding:.55rem .8rem;
  color:#fff; font-weight:700;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 90%);
  transform: translateY(0); pointer-events:none;
}

/* Hover effet (desktop) */
@media (hover:hover) and (pointer:fine){
  .g-item:hover img{ transform: scale(1.06); }
  .g-item:hover{ transform: translateY(-4px); box-shadow:0 16px 28px rgba(0,0,0,.14); }
}

/* Révélation au scroll réutilise .reveal */
.gallery .reveal{ opacity:0; transform: translateY(14px); }
.gallery .reveal.in{ opacity:1; transform:none; transition: opacity .6s ease, transform .6s ease; }

/* ===== Lightbox ===== */
.lightbox{
  position: fixed; inset:0; display:none; align-items:center; justify-content:center;
  background: rgba(0,0,0,.75); z-index: 9999;
}
.lightbox.is-open{ display:flex; }

.lb-figure{
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.lb-figure img{
  max-width:100%; max-height: 76vh; width:auto; height:auto; border-radius:14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.lb-figure figcaption{
  color:#fff; text-align:center; font-weight:700; text-shadow:0 2px 6px rgba(0,0,0,.4);
}

/* Contrôles */
.lb-close{
  position:absolute; top:14px; right:16px;
  background: rgba(255,255,255,.15); color:#fff; border:none; width:40px; height:40px;
  border-radius:999px; font-size:26px; cursor:pointer; backdrop-filter: blur(4px);
}
.lb-nav{
  position:absolute; top:50%; transform: translateY(-50%);
  width:46px; height:46px; border-radius:999px; border:none; cursor:pointer;
  background: rgba(255,255,255,.18); color:#fff; font-size:28px; backdrop-filter: blur(4px);
}
.lb-nav.prev{ left:16px; }
.lb-nav.next{ right:16px; }
.lb-nav:hover, .lb-close:hover{ background: rgba(255,255,255,.28); }

/* Ancre menu -> galerie ne se cache pas sous le header */
#galerie{ scroll-margin-top: var(--header-h); }

/* Badge lecture sur les vignettes vidéo */
.g-item.video .g-play{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  display:grid; place-items:center;
  width:64px; height:64px; border-radius:999px;
  background: rgba(0,0,0,.45); color:#fff; font-size:26px;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
@media (hover:hover) and (pointer:fine){
  .g-item.video:hover .g-play{ background: rgba(0,0,0,.6); transform:translate(-50%,-50%) scale(1.05); }
}

.lb-figure{ max-width:min(92vw,1200px); max-height:86vh; display:flex; flex-direction:column; align-items:center; gap:10px; }
.lb-figure img, .lb-figure video{ max-width:100%; max-height:76vh; width:auto; height:auto; border-radius:14px; box-shadow:0 10px 26px rgba(0,0,0,.35); }
.lb-figure video{ display:block; object-fit:contain; background:#000; }
.lb-figure .is-hidden{ display:none !important; }



/* garde la place de la scrollbar quand c'est supporté */
:root{ --lock-top: 0px; --sbw: 0px; }
html{ scrollbar-gutter: stable; }   /* évite les petits sauts sur navigateurs récents */

/* Lock scroll sans effet de saut et avec position conservée */
body.lock-scroll{
  position: fixed;
  top: var(--lock-top);   /* ex: -1234px */
  left: 0; right: 0;
  padding-right: var(--sbw);  /* compense la scrollbar */
  overflow: hidden;
}

/* ===== Reveal utilitaires ===== */
.reveal{ opacity:0; transform:translateY(14px); will-change:opacity, transform; }
.reveal.in{ opacity:1; transform:none; transition:opacity .55s ease, transform .55s ease; }

/* Variantes de direction */
.reveal.up    { transform:translateY(18px); }
.reveal.down  { transform:translateY(-18px); }
.reveal.left  { transform:translateX(22px); }
.reveal.right { transform:translateX(-22px); }

/* Variante scale légère */
.reveal.scale    { transform:scale(.96); }
.reveal.scale.in { transform:scale(1); }

/* Délai utilitaire (ou data-reveal-delay) */
.reveal.delay-1 { transition-delay:.1s }
.reveal.delay-2 { transition-delay:.2s }
.reveal.delay-3 { transition-delay:.3s }

/* Respect préférences utilisateur */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* Centrage sous le titre */
.lead-wrapper{
  display:flex;
  justify-content:center;
  margin: 8px 0 18px;
}

/* Carte lead : même mécanique, mais horizontale et plus basse */
.flip.lead{
  width:min(300px, 92vw);
  height: 350px;                 /* hauteur du bloc */
}

/* Layout horizontal pour les deux faces */
.flip.lead .flip-face{
  display:grid;
  grid-template-columns: 140px 1fr;   /* photo à gauche, texte à droite */
  grid-template-rows: 1fr;
  align-items:center;
  padding: 12px 14px;
}

/* Photo à gauche, pleine hauteur */
.flip.lead .ph{
  height:100%;
  border-radius:12px;
  overflow:hidden;
  background:#f3f6f5;
}
.flip.lead .ph img{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* Texte à droite */
.flip.lead .meta{ padding: 0 6px 0 16px; }
.flip.lead .name{ margin:0 0 .25rem; font-size:1.35rem; font-weight:800; }
.flip.lead .role{ margin:0; color:var(--ink-muted); font-weight:700; }

/* Verso : un peu plus d'air */
.flip.lead .flip-face.back{
  padding:18px;
  gap:8px;
}
.flip.lead .flip-face.back h3{ margin:.2rem 0 .3rem; }
.flip.lead .flip-face.back p { margin:0; color:var(--ink-muted); }


/* Plein écran propre, compatible barres mobiles */
.hero{
  position:relative;         /* plein écran */
  min-height:520px;
  display:grid;
  place-items:center;
  background:#fff;         /* fond autour de l’affiche */
  overflow:hidden;
}

.hero-picture,
.hero-picture img{
  width:100%;
  height:100%;
  object-fit:contain;      /* on voit TOUTE l’affiche, sans rognage */
}


/* Lien/bouton footer sans soulignage */
.footer-link{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: white;
  text-decoration: none;
  font: inherit;
}

/* Modal */
.modal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  z-index: 9999;
}

.modal-overlay.open{ display: flex; }

.modal{
  background: #0e2f2a;
  color: #fff;
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 20px;
  border-radius: 14px;
}

.modal-close{
  margin-top: 12px;
  cursor: pointer;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inner small{
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

@media (max-width: 600px){
  .footer-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.legal{
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.5;
}

.modal-close{
  margin-top: 16px;
  padding: 8px 18px;
  background: #ffffff;
  color: #0f3a32;            /* reprend le vert du modal */
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover{
  background: #e6e6e6;
  transform: translateY(-1px);
}

.modal-close:active{
  transform: translateY(0);
}

.modal-close:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}


/* ===== PATCH TÊTE DE LISTE : titre + texte lisibles ===== */

/* On annule la disposition horizontale héritée */
.flip.lead .flip-face{
  display: block;                 /* plus de grid 2 colonnes */
  padding: 0;
}

/* Recto : image en haut, meta en bas (même que les autres cartes) */
.flip.lead .flip-face.front{
  display: grid;
  grid-template-rows: 1fr auto;
}
.flip.lead .ph{
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.flip.lead .ph img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.flip.lead .meta{
  padding: 12px 14px;
  text-align: left;
}
.flip.lead .name{
  margin: 0;
  font-weight: 800;
  color: #f3f6f5;
}

/* Verso : bloc simple, texte qui se met à la ligne normalement */
.flip.lead .flip-face.back{
  display: block;
  padding: 16px;
  background: #fff;
}
.flip.lead .flip-face.back h3{
  margin: .2rem 0 .4rem;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
}
.flip.lead .flip-face.back p{
  margin: 0;
  line-height: 1.5;
  white-space: normal;    /* évite tout effet de “colonne étroite” */
  text-align: left;     /* (si supporté) césure agréable */
  color: var(--ink-muted);
}


.hero {
  width: 100%;
  overflow: hidden;
}

/* Desktop */
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero {
    height: auto;            /* IMPORTANT : on enlève la hauteur fixe */
    overflow: visible;       /* optionnel, mais logique si height auto */
  }

  .hero-image {
    width: 100%;
    height: auto;            /* garde le ratio */
    object-fit: contain;     /* au cas où une hauteur traîne quelque part */
    display: block;
  }
}

