/* ============================================================
   La Gare, Chemins de Faire — feuille de style unique
   Toutes les pages du site partagent ce fichier.
   Palette tirée de l'identité : bandeau ardoise du logo,
   tuiles de la gare, et le quatuor coloré du logo
   (orange, rose, cyan, or) réservé aux touches signature.
   ============================================================ */

/* ---------- 1. Variables (tout se règle ici) ---------- */
:root {
  /* Couleurs structurantes */
  --ardoise:        #474c56;   /* bandeau du logo */
  --ardoise-fonce:  #33373f;
  --ardoise-clair:  #5d6370;
  --papier:         #f7f4ee;   /* fond de page, crème très doux (murs de la gare) */
  --blanc:          #ffffff;
  --encre:          #2b2e34;   /* texte courant */
  --encre-douce:    #5a5e66;

  /* Accent principal : rouge tuile des toits */
  --tuile:          #b7492e;
  --tuile-fonce:    #99391f;

  /* Le quatuor du logo — un atelier, une couleur */
  --forge:          #e8823c;   /* orange — la forge */
  --bois:           #c99b3f;   /* or — le bois */
  --fablab:         #3fa9c4;   /* cyan — le FabLab */
  --mixte:          #d66a9c;   /* rose — l'espace mixte */

  /* Typographies */
  --font-display: "Literata", Georgia, serif;
  --font-body:    "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;
  --font-script:  "Great Vibes", cursive;

  /* Rythme */
  --largeur-max: 1120px;
  --espace-section: clamp(3.5rem, 8vw, 6rem);
  --rayon: 10px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ardoise-fonce);
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--tuile); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tuile-fonce); }

:focus-visible {
  outline: 3px solid var(--fablab);
  outline-offset: 2px;
  border-radius: 2px;
}

.conteneur {
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* Lien d'évitement (accessibilité) */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ardoise-fonce); color: var(--blanc);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Étiquette "eyebrow" façon signalétique ferroviaire */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin: 0 0 0.75rem;
}

/* Filet signature : le quatuor du logo sous les titres */
.filet-quatuor {
  width: 64px; height: 5px; border: 0; border-radius: 3px;
  margin: 0 0 1.5rem;
  background: linear-gradient(90deg,
    var(--forge) 0 25%, var(--bois) 25% 50%,
    var(--fablab) 50% 75%, var(--mixte) 75% 100%);
}

/* ---------- 3. En-tête ---------- */
.entete {
  background: var(--ardoise);
  color: var(--blanc);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.entete .conteneur { max-width: 1360px; }
.entete-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.5rem;
}

.logo {
  display: block; flex: none; line-height: 0;
  text-decoration: none;
}
.logo-img {
  height: 64px; width: auto;   /* le logo officiel, fond transparent */
  display: block;
}
@media (max-width: 1180px) {
  .logo-img { height: 52px; }
}

/* Navigation */
.nav-toggle-box { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 0.6rem; cursor: pointer;
  border: 1px solid var(--ardoise-clair); border-radius: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--blanc); display: block;
}

.nav ul {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 0.15rem; margin: 0; padding: 0;
}
.nav a {
  display: block;
  padding: 0.5rem 0.6rem;
  color: var(--blanc);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 6px;
}
.nav a:hover { background: var(--ardoise-clair); color: var(--blanc); }
.nav a[aria-current="page"] {
  background: var(--ardoise-fonce);
  box-shadow: inset 0 -3px 0 var(--bois);
}
.nav .nav-cta {
  background: var(--tuile);
  font-weight: 600;
}
.nav .nav-cta:hover { background: var(--tuile-fonce); }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ardoise-fonce);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav ul { flex-direction: column; padding: 0.75rem; gap: 0.15rem; }
  .nav-toggle-box:checked ~ .nav { max-height: 30rem; box-shadow: 0 12px 20px rgba(0,0,0,0.3); }
}

/* ---------- 4. Héro ---------- */
.hero {
  position: relative;
  color: var(--blanc);
  background: var(--ardoise-fonce);
  isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(420px, 62vh, 620px);
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: -2;
}
/* Voile « lumineux » : sombre seulement à gauche, derrière le texte,
   pour que la gare, le train et la montagne gardent leurs couleurs */
.hero-img { filter: saturate(1.25) contrast(1.05); }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(38,41,48,0.72) 0%, rgba(38,41,48,0.50) 38%, rgba(38,41,48,0) 66%),
    linear-gradient(180deg, rgba(38,41,48,0.30) 0%, rgba(38,41,48,0) 45%);
}
.hero-contenu { padding-block: clamp(2rem, 6vw, 3.5rem); width: 100%; }  /* même largeur que le reste du site */

/* Sur grand écran : texte en haut, au-dessus des montagnes, pour dégager la gare */
@media (min-width: 761px) {
  /* Bannière haute : la photo s'affiche presque entière (ciel compris),
     sans dépasser l'écran pour laisser deviner la suite de la page */
  .hero {
    align-items: stretch;
    min-height: clamp(560px, 66vw, calc(100vh - 140px));
  }
  .hero-contenu {
    padding-block: clamp(4rem, 17vh, 10rem) 3.5rem;
    display: flex; flex-direction: column; align-items: flex-start;
  }
  /* le badge « Ouverture » passe sous les boutons */
  .hero-contenu .badge-ouverture { order: 99; margin: 2.2rem 0 0; }
}
/* Sur téléphone le texte couvre toute la photo : voile vertical */
@media (max-width: 760px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(38,41,48,0) 0%, rgba(38,41,48,0.45) 45%, rgba(38,41,48,0.80) 100%);
  }
}

.badge-ouverture {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bois);
  color: var(--ardoise-fonce);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--blanc);
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 0.4em;
}
/* « Motte-d'Aveillans » : souligné par le filet quatre couleurs */
.hero h1 { position: relative; }
.hero h1 .halo { position: relative; white-space: nowrap; }
.hero h1 .halo::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.04em;
  height: 0.09em;
  background: linear-gradient(90deg,
    var(--forge) 0 25%, var(--bois) 25% 50%, var(--fablab) 50% 75%, var(--mixte) 75% 100%);
  border-radius: 2px;
}

/* Reflet doré sur tout le titre au défilement, du blanc au blanc.
   js/hero.js pose sur le titre un calque identique (.titre-reflet)
   et fait varier --reflet de 0 à 1. Le titre blanc et son ombre
   restent dessous ; le filet n'est pas recopié. */
.titre-reflet {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(100deg,
    #fff 0%, #fff 42%, #f6dc96 48%, #e9be62 52%, #e8823c 54%, #e9be62 56%, #f6dc96 60%, #fff 66%, #fff 100%);
  background-size: 300% 100%;
  /* le reflet entre par la gauche dès le premier mouvement et avance vers la droite */
  background-position: calc((1 - var(--reflet, 0)) * 100%) 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
}
.titre-reflet .halo::after { display: none; }

/* Ombre portée nette (sans flou) sur le titre et l'accroche */
.hero h1 { text-shadow: 2px 2px 0 rgba(20,22,27,0.6); }
.hero p:not(.badge-ouverture) {
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(20,22,27,0.9), 2px 2px 0 rgba(20,22,27,0.35);
}
.hero p {
  font-size: 1.15rem;
  max-width: 46rem;
  color: var(--blanc);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

/* Boutons */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--rayon);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-plein { background: var(--tuile); color: var(--blanc); }
.btn-plein:hover { background: var(--tuile-fonce); color: var(--blanc); }
.btn-contour { border-color: var(--blanc); color: var(--blanc); }
.btn-contour:hover { background: rgba(255,255,255,0.12); color: var(--blanc); }
.btn-clair { background: var(--bois); color: var(--ardoise-fonce); }
.btn-clair:hover { background: #b8892f; color: var(--ardoise-fonce); }

/* ---------- 5. Sections ---------- */
.section { padding-block: var(--espace-section); }
.section-alt { background: #efeae0; }

/* Présentation : texte + photo */
.presentation-grille {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}
.presentation-grille figure { margin: 0; }
.presentation-grille img {
  border-radius: var(--rayon);
  box-shadow: 0 10px 30px rgba(43,46,52,0.18);
}
/* Grand écran : la photo prend la hauteur du texte d'à côté
   (recadrée au besoin, la gare reste au centre) */
@media (min-width: 821px) {
  .presentation-grille:has(.presentation-photo) { align-items: stretch; }
  .presentation-photo { display: flex; flex-direction: column; }
  .presentation-photo img {
    flex: 1 1 auto; min-height: 320px;
    width: 100%; height: 0;
    object-fit: cover; object-position: 38% 50%;
  }
}
/* Petit écran : photo en pleine largeur, format paysage */
@media (max-width: 820px) {
  .presentation-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 38% 50%; }
}
.presentation-grille figcaption {
  font-size: 0.85rem; color: var(--encre-douce); margin-top: 0.6rem;
}
@media (max-width: 820px) {
  .presentation-grille { grid-template-columns: 1fr; }
}

/* Ateliers : 4 cartes, une couleur du quatuor chacune */
.ateliers-grille {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.carte-atelier {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.5rem 1.4rem 1.3rem;
  border-top: 6px solid var(--ardoise);
  box-shadow: 0 4px 16px rgba(43,46,52,0.08);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.carte-atelier:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(43,46,52,0.14);
}
.carte-atelier.est-forge  { border-top-color: var(--forge); }
.carte-atelier.est-bois   { border-top-color: var(--bois); }
.carte-atelier.est-fablab { border-top-color: var(--fablab); }
.carte-atelier.est-mixte  { border-top-color: var(--mixte); }

.carte-atelier h3 { margin-bottom: 0.35rem; }
.carte-atelier p { font-size: 0.95rem; color: var(--encre-douce); flex: 1; }
.carte-atelier a { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.carte-atelier a::after { content: " →"; }

/* ---------- 6. Agenda : le tableau des départs ---------- */
.tableau-departs {
  background: var(--ardoise-fonce);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(43,46,52,0.28);
}
.tableau-departs-entete {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: var(--ardoise);
  color: var(--bois);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.depart {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto auto;
  gap: 1rem; align-items: center;
  padding: 1rem 1.4rem;
  color: var(--blanc);
  border-top: 1px solid rgba(255,255,255,0.09);
  text-decoration: none;
}
.depart:hover { background: rgba(255,255,255,0.06); color: var(--blanc); }
.depart-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--bois);
}
.depart-titre { font-weight: 600; }
.depart-lieu { display: block; font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.65); }
.depart-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.depart-type.est-stage  { color: var(--forge); }
.depart-type.est-expo   { color: var(--mixte); }
.depart-type.est-atelier{ color: var(--fablab); }
.depart-action {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bois);
}
@media (max-width: 700px) {
  .depart { grid-template-columns: 1fr auto; }
  .depart-date { grid-column: 1 / -1; }
  .depart-action { display: none; }
}
.agenda-note { font-size: 0.9rem; color: var(--encre-douce); margin-top: 1rem; }

/* ---------- 7. Nous soutenir ---------- */
.soutenir {
  background: var(--ardoise);
  color: var(--blanc);
}
.soutenir h2, .soutenir h3 { color: var(--blanc); }
.soutenir .eyebrow { color: rgba(255,255,255,0.6); }
.soutenir-grille {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}
.soutenir-carte {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--rayon);
  padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column;
}
.soutenir-carte p { color: rgba(255,255,255,0.82); font-size: 0.95rem; flex: 1; }
.soutenir-carte .btn { align-self: flex-start; margin-top: 0.5rem; }
.mention-helloasso {
  margin-top: 1.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

/* ---------- 8. Infos pratiques ---------- */
.infos-grille {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.infos-bloc h3 {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.05rem;
}
.infos-bloc h3::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tuile);
  flex: none;
}
.infos-bloc p { font-size: 0.95rem; color: var(--encre-douce); }

/* ---------- 9. Pied de page ---------- */
.pied {
  background: var(--ardoise-fonce);
  color: rgba(255,255,255,0.8);
  padding-block: 2.8rem 1.6rem;
  font-size: 0.92rem;
}
.pied a { color: var(--blanc); }
.pied-grille {
  display: grid; gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr;
  margin-bottom: 2rem;
}
@media (max-width: 720px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h3 {
  color: var(--bois);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 0.4rem; }
.pied-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- 10. Pages intérieures ---------- */

/* Bandeau de titre de page */
.entete-page {
  background: var(--ardoise);
  color: var(--blanc);
  padding-block: clamp(2rem, 5vw, 3.2rem);
}
.entete-page h1 {
  color: var(--blanc);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.2em;
}
.entete-page .eyebrow { color: var(--bois); }
.entete-page p { color: rgba(255,255,255,0.85); max-width: 44rem; margin-bottom: 0; }

/* Encart « en construction » */
.bandeau-construction {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #fdf6e3;
  border: 2px dashed var(--bois);
  border-radius: var(--rayon);
  padding: 1rem 1.2rem;
  margin: 0 0 2rem;
}
.bandeau-construction::before {
  content: "🚧";
  font-size: 1.4rem;
  line-height: 1.2;
}
.bandeau-construction p { margin: 0; font-size: 0.95rem; color: var(--encre); }
.bandeau-construction strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tuile);
  margin-bottom: 0.15rem;
}

/* Prose des pages de contenu */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* Équipe */
.equipe-grille {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 2rem;
}
.membre {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.3rem 1.2rem;
  box-shadow: 0 4px 14px rgba(43,46,52,0.08);
  text-align: center;
}
.membre-initiales {
  width: 58px; height: 58px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem;
  color: var(--blanc);
  background: var(--ardoise);
}
.membre:nth-child(4n+1) .membre-initiales { background: var(--forge); }
.membre:nth-child(4n+2) .membre-initiales { background: var(--bois); }
.membre:nth-child(4n+3) .membre-initiales { background: var(--fablab); }
.membre:nth-child(4n+4) .membre-initiales { background: var(--mixte); }
.membre h3 { margin-bottom: 0.15rem; font-size: 1.05rem; }
.membre p { font-size: 0.85rem; color: var(--encre-douce); margin: 0; }

/* Sections ateliers (page ateliers) */
.atelier-section {
  border-left: 6px solid var(--ardoise);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  background: var(--blanc);
  padding: 1.8rem 1.8rem 1.4rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 14px rgba(43,46,52,0.07);
  scroll-margin-top: 6rem;
}
.atelier-section.est-forge  { border-left-color: var(--forge); }
.atelier-section.est-bois   { border-left-color: var(--bois); }
.atelier-section.est-fablab { border-left-color: var(--fablab); }
.atelier-section.est-mixte  { border-left-color: var(--mixte); }
.atelier-section h2 { margin-top: 0; font-size: 1.5rem; }
.atelier-section p:last-child { margin-bottom: 0; }

/* Liste de machines (FabLab) */
.machines-liste {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.machines-liste li {
  background: var(--papier);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
}
.machines-liste strong { display: block; font-size: 0.95rem; }
.machines-liste span { color: var(--encre-douce); font-size: 0.85rem; }

/* Annuaire */
.annuaire-grille {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-top: 2rem;
}
.fiche-createur {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 4px 14px rgba(43,46,52,0.08);
  border-top: 6px solid var(--ardoise);
}
.fiche-createur:nth-child(4n+1) { border-top-color: var(--forge); }
.fiche-createur:nth-child(4n+2) { border-top-color: var(--fablab); }
.fiche-createur:nth-child(4n+3) { border-top-color: var(--mixte); }
.fiche-createur:nth-child(4n+4) { border-top-color: var(--bois); }
.fiche-createur h3 { margin-bottom: 0.1rem; }
.fiche-discipline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tuile);
  margin-bottom: 0.7rem;
}
.fiche-createur p { font-size: 0.92rem; color: var(--encre-douce); }

/* Formulaire */
.formulaire { max-width: 40rem; }
.champ { margin-bottom: 1.2rem; }
.champ label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.champ input, .champ textarea, .champ select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #cfc9bc;
  border-radius: 8px;
  background: var(--blanc);
  color: var(--encre);
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: 3px solid var(--fablab);
  outline-offset: 1px;
  border-color: var(--fablab);
}
.champ-piege { position: absolute; left: -9999px; }
.form-note { font-size: 0.85rem; color: var(--encre-douce); }
.message-succes {
  background: #e7f3e7;
  border: 1.5px solid #5a9e5a;
  border-radius: var(--rayon);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

/* Grands boutons HelloAsso (page soutenir) */
.soutien-section {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 14px rgba(43,46,52,0.07);
  scroll-margin-top: 6rem;
}
.soutien-section h2 { margin-top: 0; font-size: 1.4rem; }
.soutien-section .btn { margin-top: 0.5rem; }

/* ---------- 11. Partenaires et soutiens ---------- */
.logos-grille {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin: 1.5rem 0 0;
}
.logo-partenaire {
  background: var(--blanc);
  border: 1.5px solid #e2ddd2;
  border-radius: var(--rayon);
  min-height: 110px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  text-align: center;
}
.logo-partenaire img { max-height: 64px; width: auto; }
.logo-partenaire .logo-attente {
  width: 100%; height: 52px;
  border: 2px dashed #cfc9bc;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.logo-partenaire figcaption { font-size: 0.85rem; color: var(--encre-douce); }

/* Partenaire sans logo : le nom seul, mis en valeur */
.logos-grille .logo-partenaire { margin: 0; }
.logo-partenaire figcaption:only-child { font-weight: 600; font-size: 1rem; color: var(--encre); text-align: center; }
