/* voisins-canal — bento : cartes-autocollants à rayon 32 px, cercle d'encre 3 px, bandes de couleur pleine largeur */
h1, h2, h3 { font-weight: 850; font-stretch: 100%; letter-spacing: -.02em; line-height: 1.05; }
h3 { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.05; }
a { text-decoration-color: currentColor; }
.entete { background: var(--fond); color: var(--encre); border-bottom: 3px solid var(--filet); }
.marque { font-weight: 850; letter-spacing: -.04em; display: flex; align-items: center; gap: 12px; }
.marque .logo { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); border: 3px solid var(--filet); display: grid; place-items: center; font-size: .9rem; letter-spacing: 0; flex: none; }
.marque small { color: var(--encre-2); }
.menu a:hover, .menu a[aria-current] { border-color: var(--cobalt); }
.menu .bouton { color: var(--encre); }
.menu-bouton { background: var(--lime); color: var(--encre); border: 3px solid var(--filet); }
.menu-mobile { background: var(--fond); color: var(--encre); border-bottom: 3px solid var(--filet); }
.menu-mobile a { border-bottom-color: var(--filet-fin); }
.bouton { background: var(--lime); border: 3px solid var(--filet); color: var(--encre); font-weight: 800; border-radius: 99px; }
.bouton:hover { background: var(--encre); color: var(--lime); border-color: var(--filet); }
.bouton-second { background: transparent; }
.bouton-second:hover { background: var(--encre); color: var(--fond); }

.carte { border: var(--cadre); border-radius: var(--rayon-grand); padding: var(--e-3); background: var(--papier); position: relative; overflow: hidden; }
.carte > *:last-child { margin-bottom: 0; }
.carte p { max-width: none; }
.c-lime { background: var(--lime); } .c-lavande { background: var(--lavande); } .c-cobalt { background: var(--cobalt); color: #fff; }
.c-bordeaux { background: var(--bordeaux); color: #fff; } .c-foret { background: var(--foret); color: #fff; } .c-moutarde { background: var(--moutarde); }
.c-cobalt h2, .c-cobalt h3, .c-bordeaux h2, .c-bordeaux h3, .c-foret h2, .c-foret h3 { color: #fff; }
.bento { display: grid; gap: var(--e-2); }
.bento > * { min-width: 0; }
.pilule { display: inline-block; border: 3px solid var(--filet); border-radius: 99px; padding: 6px 16px; font-weight: 800; background: var(--papier); color: var(--encre); font-size: var(--t-petit); }

/* ---------- premier écran */
.hero { background: var(--cobalt); color: #fff; padding-block: var(--e-4) var(--e-6); }
.hero .contenu { display: block; }
.hero-grille { display: grid; gap: var(--e-2); margin-top: var(--e-4); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .chapo { color: #fff; margin: var(--e-3) 0 0; font-weight: 500; max-width: 48ch; font-size: 1.15rem; }
.hero-tete { display: grid; gap: var(--e-3); }
.hero-photo { padding: 0; }
.hero-photo img { width: 100%; height: 100%; min-height: 280px; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--cadrage, 50% 30%); display: block; }
.hero-photo .legende { position: absolute; left: 12px; bottom: 12px; }
.adherer h2 { font-size: 2rem; margin-bottom: var(--e-2); }
.montants { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--e-2); padding: 0; list-style: none; }
.montants button { font: inherit; font-weight: 800; min-height: 48px; padding: 8px 20px; border: 3px solid var(--filet); border-radius: 99px; background: var(--papier); color: var(--encre); transition: background-color 120ms linear, color 120ms linear; }
.montants button:hover { background: #fff; }
.montants button[aria-pressed="true"] { background: var(--encre); color: var(--lime); }
.adherer .retour { min-height: 3.2em; font-weight: 600; margin-bottom: var(--e-2); }
.adherer .bouton { background: var(--encre); color: var(--lime); }
.adherer .bouton:hover { background: var(--papier); color: var(--encre); }
.prochain .jour { font-size: 3.4rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.05; display: block; }
.prochain h3 { margin: 8px 0 6px; }
.prochain p { margin: 0 0 6px; font-weight: 600; }
.prochain .dans { font-weight: 800; }
.faits-sticker { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* ---------- sections */
.offre .bento .carte h3 { margin-bottom: 10px; }
.offre .bento .carte p { margin: 0 0 10px; }
.offre .carte .repere { font-weight: 800; }
.agenda-liste { list-style: none; margin: var(--e-3) 0 0; padding: 0; display: grid; gap: var(--e-2); }
.evenement { display: grid; grid-template-columns: 96px 1fr; gap: var(--e-3); align-items: start; padding: var(--e-3); }
.date-sticker { background: var(--lime); border: 3px solid var(--filet); border-radius: 24px; text-align: center; padding: 10px 4px; transform: rotate(-3deg); color: var(--encre); }
.date-sticker b { display: block; font-size: 2.2rem; line-height: 1.1; letter-spacing: -.05em; font-weight: 900; }
.date-sticker span { font-weight: 800; font-size: .85rem; text-transform: lowercase; }
.evenement h3 { margin-bottom: 6px; }
.evenement p { margin: 0 0 6px; }
.evenement .quand { font-weight: 800; }
#preuve { background: var(--lavande); border-block: 3px solid var(--filet); }
.galerie { background: var(--moutarde); border-block: 3px solid var(--filet); }
.galerie .carte { padding: 0; background: var(--papier); }
.galerie img { width: 100%; display: block; object-fit: cover; object-position: var(--cadrage, 50% 40%); }
.galerie figure { margin: 0; }
.galerie figcaption { padding: 12px 18px 16px; font-weight: 700; font-size: var(--t-petit); }
.mosaique { display: grid; gap: var(--e-2); margin: 0; padding: 0; list-style: none; }
.mosaique li { display: block; border: 0; padding: 0; background: none; margin: 0; }
.mosaique li:first-child { grid-column: auto; }
.mosaique img { aspect-ratio: 4 / 3; }
.zone { background: var(--bordeaux); color: #fff; }
.zone h2, .zone h3 { color: #fff; }
.zone .contenu { display: block; }
.zone a { text-decoration-color: var(--lime); }
.zone .carte { color: var(--encre); }
.zone .carte h3 { color: var(--encre); }
.zone .carte.c-lime h3 { color: var(--encre); }
.horaires { border-top: 3px solid var(--filet); max-width: none; margin: 0 0 var(--e-2); }
.horaires li { border-bottom: 1px solid var(--filet); }
.horaires li.ferme span:last-child { color: var(--rouge); font-weight: 800; }
.ouvert { background: var(--lime); border: 3px solid var(--filet); border-radius: 99px; padding: 6px 16px; margin-bottom: var(--e-2); }
.faq-liste { border-top: 3px solid var(--filet); }
.faq-liste details { border-bottom: 3px solid var(--filet); }
.faq-liste summary::after { color: var(--cobalt); }
.contact { background: var(--lime); border-top: 3px solid var(--filet); }
.contact h2 { color: var(--encre); }
.contact .contenu { display: grid; gap: var(--e-4); }
.contact .contenu > * { min-width: 0; }
.formulaire { background: var(--papier); border: var(--cadre); border-radius: var(--rayon-grand); padding: var(--e-3); display: grid; gap: var(--e-2); }
.formulaire label, .formulaire legend { font-weight: 800; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire input[type="number"] { font: inherit; font-weight: 400; padding: 12px 14px; border: 3px solid var(--filet); border-radius: var(--rayon-champ); min-height: 48px; width: 100%; background: #fff; }
.formulaire input:focus { outline: 3px solid var(--cobalt); outline-offset: 0; }
.formulaire fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.formulaire .champ-erreur { color: var(--rouge); font-weight: 800; display: none; }
.formulaire [data-erreur] .champ-erreur { display: block; }
.formulaire [data-erreur] input[type="text"], .formulaire [data-erreur] input[type="email"] { border-color: var(--rouge); }
.interets { display: flex; flex-wrap: wrap; gap: 8px; }
.interets label { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 3px solid var(--filet); border-radius: 99px; background: var(--papier); cursor: pointer; font-weight: 700; transition: background-color 120ms linear; }
.interets input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interets label:has(input:checked) { background: var(--encre); color: var(--lime); }
.interets label:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.formulaire .confirmation { background: var(--lime); border: 3px solid var(--filet); border-radius: 24px; padding: 16px 18px; font-weight: 700; display: none; }
.formulaire[data-envoye] .confirmation { display: block; animation: tamponner 420ms var(--ease-sortie) both; }
.formulaire[data-envoye] > *:not(.confirmation) { display: none; }
.benevoles p { margin: 0 0 var(--e-2); }
.benevoles ul { margin: 0; padding-left: 1.1em; }
.benevoles li { margin-bottom: 8px; }
.pied { background: var(--fond); border-top: 3px solid var(--filet); }
.barre-mobile { display: none; }
@media (max-width: 699px) {
  .barre-mobile { display: block; position: fixed; inset: auto 0 0 0; z-index: 30; padding: 8px var(--gouttiere); background: var(--fond); border-top: 3px solid var(--filet); }
  .barre-mobile .bouton { width: 100%; }
  .pied { padding-bottom: 88px; }
  .evenement { grid-template-columns: 76px 1fr; gap: var(--e-2); }
  .date-sticker b { font-size: 1.8rem; }
}
@media (min-width: 700px) {
  .hero-tete { grid-template-columns: 1.1fr .9fr; align-items: end; gap: var(--e-6); }
  .hero-grille { grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; }
  .hero-photo { grid-row: span 2; }
  .hero-photo img { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .bento.trois { grid-template-columns: 1.3fr 1fr 1fr; }
  .bento.trois .grand { grid-row: span 1; }
  .mosaique { grid-template-columns: repeat(3, 1fr); }
  .mosaique li:first-child { grid-column: span 2; }
  .mosaique li:first-child img { aspect-ratio: 16 / 9; }
  .mosaique li:nth-child(4) { grid-column: span 2; } .mosaique li:nth-child(4) img { aspect-ratio: 16 / 9; }
  .zone .bento { grid-template-columns: 1fr 1fr 1fr; }
  .contact .contenu { grid-template-columns: .9fr 1.1fr; gap: var(--e-6); }
  .agenda-liste { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) { .evenement { grid-template-columns: 110px 1fr; } }
/* mouvement : bande qui se déroule (adoucie), cartes qui se posent l'une après l'autre */
@media (prefers-reduced-motion: no-preference) {
  .hero-grille > .carte { animation: poser-carte 520ms var(--ease-sortie) both; }
  .hero-grille > .carte:nth-child(1) { animation-delay: 560ms; } .hero-grille > .carte:nth-child(2) { animation-delay: 680ms; } .hero-grille > .carte:nth-child(3) { animation-delay: 800ms; }
  @keyframes poser-carte { from { opacity: 0; transform: translateY(24px) scale(.94) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
}
/* premier écran : titre à gauche, bento à droite, tout tient dans 800 px */
:root { --t-1: clamp(2.7rem, 1.2rem + 4.8vw, 4.7rem); }
.hero { padding-block: var(--e-3) var(--e-4); }
@media (min-width: 700px) {
  .hero { padding-block: var(--e-6); }
  .hero .contenu { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--e-6); align-items: center; }
  .hero .contenu > * { min-width: 0; }
  .hero-tete { display: block; }
  .hero-grille { margin-top: 0; grid-template-columns: .85fr 1.15fr; grid-template-rows: auto auto; }
  .hero-photo { grid-row: span 2; }
  .hero-photo img { min-height: 440px; }
}
.hero-actions { margin-top: var(--e-3); }
.hero-actions .bouton-second { color: #fff; border-color: #fff; }
.hero-actions .bouton-second:hover { background: #fff; color: var(--encre); border-color: #fff; }
.hero-actions .bouton:not(.bouton-second) { border-color: var(--lime); }
.carte { color: var(--encre); }
.c-cobalt, .c-bordeaux, .c-foret { color: #fff; }
.menu .bouton { padding: 10px 22px; border: 3px solid var(--filet); min-height: 46px; }
.menu .bouton:hover { border-color: var(--filet); }
.hero h1 { max-width: 17ch; }
.hero-photo .legende { color: var(--encre); }
.pilule { color: var(--encre); }
.zone .carte, .zone .carte p { color: var(--encre); }
.marque small { letter-spacing: 0; font-weight: 500; }
h3 { line-height: 1.1; }

/* nom de l'association : 2 lignes au plus à 390 px */
.marque { font-size: 1.1rem; }
@media (max-width: 419px) { .marque small { display: none; } .marque { gap: 10px; } }
/* confirmation d'adhésion : pas de cadre vide, le formulaire se réduit à son contenu */
.formulaire[data-envoye] { align-self: start; min-height: 0; }
.formulaire .confirmation p { margin: 0 0 6px; max-width: none; }
.formulaire .confirmation .petit { font-weight: 500; font-size: var(--t-petit); margin: 10px 0 0; }
/* marges explicites des sections colorées */
section.hero, section.galerie, section.zone, section.contact { padding-left: 24px; padding-right: 24px; padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 700px) { section.hero, section.galerie, section.zone, section.contact { padding-left: 40px; padding-right: 40px; padding-top: 72px; padding-bottom: 96px; } }

.galerie .carte { padding: 8px; }
.galerie .carte img { border-radius: 22px; }
#preuve { padding: 48px 24px 64px; }
@media (min-width: 700px) { #preuve { padding: 72px 40px 96px; } }
.faq-liste { padding-top: 8px; }
.marque, .marque .logo, .marque small { line-height: 1.3; }
.formulaire[data-envoye] { padding: 0; border: 0; background: transparent; }
/* 390 px : le choix du montant passe au-dessus des boutons du premier écran */
@media (max-width: 699px) {
  .hero .contenu { display: flex; flex-direction: column; gap: 16px; }
  .hero-tete, .hero-grille { display: contents; }
  .hero h1 { order: 1; } .hero .chapo { order: 2; margin-top: 0; }
  .hero-grille .adherer { order: 3; }
  .hero-actions { order: 4; margin-top: 0; }
  .hero-grille .hero-photo { order: 5; } .hero-grille .prochain { order: 6; }
}
