/* couturetmoi – feuille de style */
:root {
  --soleil: #ffd100;
  --orange: #ff9f2e;
  --encre: #0b1b22;
  --cramoisi: #b5113f;
  --violet: #8e2a9c;
  --vert: #3ec43a;
  --rouge: #e0201b;
  --or: #f3b21a;
  --bois: #8a4b1f;
  --creme: #fff6d6;
  --fils: conic-gradient(from 200deg, #3ec43a, #ffd100, #e0201b, #8e2a9c, #3ec43a);
  --rayon: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", system-ui, sans-serif; font-size: 1.02rem; line-height: 1.6; color: var(--encre); background: var(--creme); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2, h3 { font-weight: 800; letter-spacing: -.01em; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--cramoisi); outline-offset: 3px; }
.wrap { width: min(1100px, 92%); margin-inline: auto; }
.script { font-family: "Kaushan Script", cursive; font-weight: 400; }

/* ---------- Hero : carrousel + logo flottant ---------- */
.hero { position: relative; color: var(--encre); background: var(--soleil); }
.carousel { position: relative; height: clamp(420px, 78vh, 700px); overflow: hidden; background: var(--soleil); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.car-btn { position: absolute; top: 50%; z-index: 5; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--encre); background: var(--creme); color: var(--encre); font-size: 1.5rem; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--encre); }
.car-btn:hover { background: var(--soleil); }
.car-btn.prev { left: 1rem; }
.car-btn.next { right: 1rem; }
.car-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 5.2rem; display: flex; justify-content: center; gap: .6rem; }
.car-dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--encre); background: var(--creme); cursor: pointer; }
.car-dots button[aria-current="true"] { background: var(--cramoisi); transform: scale(1.25); }

.hero-logo { position: absolute; z-index: 6; top: clamp(.8rem, 2.5vw, 2rem); right: clamp(.8rem, 3vw, 3rem); width: clamp(170px, 24vw, 330px); border: 5px solid var(--encre); border-radius: 22px; overflow: hidden; background: var(--soleil); box-shadow: 9px 9px 0 var(--encre); transform: rotate(3deg); display: block; }
.hero-logo img { display: block; width: 100%; height: auto; }

/* Bandeau bas : slogan + 2 boutons */
.hero-content { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; background: rgba(11,27,34,.82); border-top: 4px solid var(--soleil); padding: .7rem 0; }
.hero-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.hero .slogan { margin: 0; font-size: clamp(1.3rem, 3vw, 2.1rem); line-height: 1.1; color: var(--soleil); flex: 1 1 auto; }
.hero .btns { margin: 0; flex: 0 0 auto; gap: .7rem; }
.hero .btns .btn { padding: .6rem 1.2rem; font-size: .95rem; box-shadow: 3px 3px 0 var(--encre); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; font-weight: 800;
  padding: .9rem 1.6rem; border-radius: 999px; border: 3px solid var(--encre); cursor: pointer; font-size: 1.02rem; font-family: inherit;
  background: var(--creme); color: var(--encre); box-shadow: 4px 4px 0 var(--encre); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.btn.main { background: var(--cramoisi); color: #fff; }
.btn.noir { background: var(--encre); color: var(--soleil); box-shadow: 4px 4px 0 var(--cramoisi); }
.btns { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.titre { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .5rem; }
.sous-titre { max-width: 56ch; margin: 0 0 2rem; }

/* ---------- Section Actualités & Carrousels ---------- */
#rdv { background: var(--creme); padding-top: 1rem; padding-bottom: .6rem; }
#rdv .titre { position: relative; padding-bottom: .4rem; margin-bottom: .35rem; text-align: center; }
#rdv .titre::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 90px; height: 6px; background: var(--cramoisi); }
#rdv .sous-titre { margin-bottom: 1.5rem; line-height: 1.35; text-align: center; margin-inline: auto; }

.post-rows { display: grid; gap: 1.5rem; margin-top: .3rem; }
.post-row { min-width: 0; padding: 2.5rem 0 1.9rem; }

/* Marges et style pour les titres des blocs (Nos Festivités, La Vie associative) */
.post-row__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--encre);
  margin-bottom: 0.8rem;
}

/* Style et marge sous les descriptions/sous-titres de catégories */
.post-row__subtitle {
  margin: 0 0 1.8rem 0;
  font-size: 1rem;
  color: var(--encre);
  opacity: 0.85;
}

.post-row__track-wrap { position: relative; min-width: 0; }
.post-row__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1.2rem) / 3); gap: .6rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: .1rem .1rem .3rem;
}
.post-row__track::-webkit-scrollbar { display: none; }
.post-row__track > .post { min-width: 0; width: 100%; scroll-snap-align: start; }

.post-row__arrow {
  position: absolute; z-index: 3; top: 38%; transform: translateY(-50%); width: 40px; height: 52px;
  border: 0; border-radius: 8px; background: rgba(11,27,34,.88); color: #fff; font-size: 1.8rem; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.post-row__prev { left: .25rem; }
.post-row__next { right: .25rem; }
.post-row__arrow:hover { background: #0b1b22; }

.post { background: #fff; border: 4px solid var(--encre); border-radius: 18px; overflow: hidden; box-shadow: 5px 5px 0 var(--encre); display: flex; flex-direction: column; }
.photo { position: relative; aspect-ratio: 16 / 10; border-bottom: 4px solid var(--encre); overflow: hidden; background: var(--soleil); }
.photo > svg, .photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,27,34,.82) 100%); z-index: 3; pointer-events: none; }
.photo h3 { position: absolute; z-index: 4; left: .8rem; right: .8rem; bottom: .6rem; color: #fff; font-size: clamp(1.3rem, 2.8vw, 1.65rem); line-height: 1.05; }

.post .caption { padding: .45rem .8rem .7rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.post .caption p { margin: 0; font-size: .9rem; line-height: 1.25; }
.post .caption .infos { color: var(--cramoisi); font-weight: 800; font-size: .85rem; line-height: 1.2; }
.post .caption .tags { color: var(--cramoisi); font-weight: 600; font-size: .8rem; line-height: 1.2; }
.post .caption .btn { margin-top: auto; padding: .45rem .8rem; font-size: .88rem; line-height: 1.2; width: 100%; box-shadow: none; border-radius: 8px; }
.post .caption .btn:hover { background: var(--encre); color: var(--soleil); transform: none; }

.post--test .photo { aspect-ratio: 16 / 10; min-height: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .3rem; padding: .5rem; background: linear-gradient(135deg,#0b1b22,#8e2a9c); color: #fff; text-align: center; }
.post--test .photo .test-icon { font-size: 2rem; }
.post--test .photo h3 { position: static; font-size: 1.1rem; }
.post--test .test-label { display: inline-block; padding: .15rem .4rem; border-radius: 4px; background: #ffd100; color: #0b1b22; font-size: .7rem; font-weight: 800; }

/* ---------- Galerie ---------- */
#galerie { background: var(--encre); color: #fff; padding-top: 2rem; padding-bottom: 2rem; }
#galerie .titre { color: var(--soleil); margin-bottom: .3rem; }
#galerie .sous-titre { margin-bottom: 1rem; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.galerie .g { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--soleil); display: block; width: 100%; padding: 0; border: 0; font: inherit; }
button.g { cursor: zoom-in; }
button.g::after { content: "⤢"; position: absolute; right: .5rem; bottom: .5rem; z-index: 2; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(11,27,34,.7); color: #fff; font-size: 1rem; opacity: 0; transition: opacity .2s; }
button.g:hover::after, button.g:focus-visible::after { opacity: 1; }
button.g:hover img.visible { transform: scale(1.04); }
.galerie .g img { transition: opacity .9s ease, transform .4s ease; }
.g--vide { background: linear-gradient(135deg, var(--soleil), var(--orange)); }
.galerie-tout { text-align: center; margin: 1rem 0 0; }
.galerie .g svg, .galerie .g img { position: absolute; inset: 0; width: 100%; height: 100%; }
.galerie .g img { object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.galerie .g img.visible { opacity: 1; }

/* ---------- Fin de page : carte de l'association + tuiles de liens ---------- */
#liens {
  position: relative; color: var(--encre); padding: 3rem 0;
  background:
    repeating-conic-gradient(from 0deg at 72% 52%, rgba(255,255,255,.2) 0 5deg, transparent 5deg 12deg),
    radial-gradient(circle at 72% 52%, #ffe55c 0%, var(--soleil) 38%, var(--orange) 100%);
}
#liens .wrap { max-width: 1000px; }
#liens .liens-v2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; text-align: left; align-items: stretch; }
#liens .lv2-carte { background: #fbf7ee; border: 3px solid var(--encre, #0b1b22); border-radius: 24px; box-shadow: 6px 6px 0 var(--encre, #0b1b22); }
#liens .lv2-hero { padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; align-items: center; align-content: center; background: var(--soleil, #ffd100); }
#liens .lv2-hero img { width: 112px; height: 112px; border-radius: 50%; border: 3px solid var(--encre, #0b1b22); object-fit: cover; background: #fff; }
#liens .lv2-hero h2 { margin: 0 0 6px; font-size: 2.4rem; line-height: 1; text-align: left; }
#liens .lv2-hero p { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.3; }
#liens .lv2-hero p strong { font-weight: 800; }
#liens .lv2-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
#liens .lv2-btn { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 999px; border: 3px solid var(--encre, #0b1b22);
  font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--encre, #0b1b22); background: #fbf7ee; box-shadow: 4px 4px 0 var(--encre, #0b1b22); transition: transform .12s, box-shadow .12s; }
#liens .lv2-btn > span { flex: 1; }
#liens .lv2-btn svg { flex: none; width: 24px; height: 24px; }
#liens .lv2-btn:hover, #liens .lv2-btn:focus-visible { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--encre, #0b1b22); }
#liens .lv2-btn--main { background: var(--rouge, #e0201b); color: #fff; }
#liens .lv2-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
#liens .lv2-tuile { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px 20px;
  text-decoration: none; color: var(--encre, #0b1b22); transition: transform .12s, box-shadow .12s; }
#liens .lv2-tuile:first-child { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; gap: 18px; padding-right: 72px; }   /* Intranet (adhérent connecté) ou connexion : toute la largeur, statuts et mairie en dessous */
#liens .lv2-tuile:hover, #liens .lv2-tuile:focus-visible { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--encre, #0b1b22); }
#liens .lv2-tuile .ico { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; border: 3px solid var(--encre, #0b1b22); }
#liens .lv2-tuile b { display: block; font-size: 1.15rem; line-height: 1.2; }
#liens .lv2-tuile small { display: block; font-weight: 500; color: #3b4a51; font-size: .9rem; margin-top: 4px; line-height: 1.3; }
#liens .lv2-tuile .fleche { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: #ffe066; display: grid; place-items: center; }
#liens .lv2-tuile:first-child .fleche { top: 50%; transform: translateY(-50%); }
#liens .fleche svg { width: 18px; height: 18px; }
#liens .t-vert .ico { background: #d8f5d6; }
#liens .t-jaune .ico { background: #fff3b0; } #liens .t-rouge .ico { background: #ffe0de; }
@media (max-width: 860px) { #liens .liens-v2 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
@media (max-width: 480px) {
  #liens { padding: 32px 0; }
  #liens .lv2-hero { padding: 18px; gap: 6px 14px; }
  #liens .lv2-hero img { width: 72px; height: 72px; }
  #liens .lv2-hero h2 { font-size: 1.9rem; }
  #liens .lv2-hero p { font-size: .92rem; }
  #liens .lv2-btn { font-size: .98rem; padding: 10px 16px; }
  #liens .lv2-tuiles { gap: 14px; }
  #liens .lv2-tuile { padding: 14px; }
  #liens .lv2-tuile:first-child { padding-right: 60px; }
  #liens .lv2-tuile .ico { width: 50px; height: 50px; font-size: 1.6rem; }
  #liens .lv2-tuile b { font-size: 1.02rem; }
  #liens .lv2-tuile small { font-size: .82rem; }
  #liens .lv2-tuile .fleche { width: 34px; height: 34px; top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { #liens .lv2-btn, #liens .lv2-tuile { transition: none; } }
footer { background: var(--encre); color: #c6d1d6; text-align: center; padding: 1.6rem 0 5.5rem; font-size: .95rem; }
footer a { color: var(--soleil); }

/* ---------- Pied de page sobre ---------- */
footer.pied { padding: 2.6rem 0 2.4rem; }
.pf-social { display: flex; justify-content: center; gap: 14px; }
.pf-social a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(198,209,214,.45); color: #fff; display: grid; place-items: center; transition: border-color .15s, color .15s, transform .15s; }
.pf-social a:hover, .pf-social a:focus-visible { border-color: var(--soleil); color: var(--soleil); transform: translateY(-2px); }
.pf-social svg { width: 21px; height: 21px; }
.pf-ligne { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.4rem; }
.pf-copy { color: #fff; font-weight: 600; letter-spacing: .02em; }
.pf-sep { width: 1.5px; height: 1.3em; background: rgba(198,209,214,.35); }
.pf-contact { display: inline-flex; align-items: center; gap: .55rem; color: var(--soleil); font-weight: 600; text-decoration: none; }
.pf-rond { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--soleil); display: grid; place-items: center; }
.pf-rond svg { width: 18px; height: 18px; }
.pf-contact:hover { text-decoration: underline; text-underline-offset: 4px; }
.pf-cgv { padding: .25rem 1.1rem; border: 2px solid var(--soleil); border-radius: 999px; color: var(--soleil); font-weight: 800; text-decoration: none; transition: background .15s, color .15s; }
.pf-cgv:hover, .pf-cgv:focus-visible { background: var(--soleil); color: var(--encre); }
.pf-credit { margin: 1rem 0 0; display: flex; justify-content: center; align-items: center; gap: .45rem; color: #8fa0a8; font-size: .9rem; }
.pied-admin { display: inline-grid; place-items: center; width: 24px; height: 24px; color: #8fa0a8 !important; transition: color .15s, transform .3s; }
.pied-admin:hover, .pied-admin:focus-visible { color: var(--soleil) !important; transform: rotate(60deg); }
.pied-admin svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  footer.pied { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }   /* place pour le bouton « S'inscrire » collé en bas */
  .pf-ligne { flex-direction: column; gap: .7rem; }
  .pf-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pf-social a, .pf-cgv, .pied-admin { transition: none; } }

/* ===== Pages de réservation & formulaires (anti-chevauchement) ===== */
.page-form { background: var(--creme); }
.page-head { background: var(--soleil); border-bottom: 5px solid var(--encre); }
.page-head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; padding: .8rem 0; }
.page-logo { width: 110px; border: 4px solid var(--encre); border-radius: 14px; overflow: hidden; box-shadow: 5px 5px 0 var(--encre); transform: rotate(-2deg); display: block; background: var(--soleil); flex: 0 0 auto; }
.page-logo img { display: block; width: 100%; height: auto; }
.page-retour { font-weight: 800; text-decoration: none; }
.page-retour:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--cramoisi); }

.form-wrap { max-width: 720px; padding: 2rem 0 3rem; }
.form-wrap .titre { margin-bottom: .6rem; }
.form-wrap section { padding: 0; }
.form-card { background: #fff; border: 4px solid var(--encre); border-radius: var(--rayon); box-shadow: 7px 7px 0 var(--encre); padding: 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; }
.form-card > * { min-width: 0; margin: 0; }

/* Champ = bloc vertical : libellé au-dessus, contrôle en dessous, jamais côte à côte */
.champ, .form-card label { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; font-weight: 800; font-size: .95rem; line-height: 1.3; color: var(--encre); width: 100%; min-width: 0; position: static; }
.form-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.form-card select,
.form-card textarea,
.champ input:not([type="checkbox"]):not([type="radio"]),
.champ select, .champ textarea {
  display: block; position: static; float: none; width: 100%; max-width: 100%; min-width: 0; height: auto; min-height: 3rem; margin: 0;
  font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1.4; padding: .75rem .9rem;
  border: 3px solid var(--encre); border-radius: 12px; background: var(--creme); color: var(--encre);
  box-sizing: border-box; -webkit-appearance: none; appearance: none;
}
.form-card select { cursor: pointer; padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form-card textarea, .champ textarea { resize: vertical; min-height: 110px; }
.form-card input[type="date"], .form-card input[type="number"], .form-card input[type="time"] { min-width: 0; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 4px solid var(--cramoisi); outline-offset: 2px; }

/* Cases à cocher / boutons radio : taille normale, libellé à côté, sans étirement */
.form-card input[type="checkbox"], .form-card input[type="radio"] { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; min-height: 0; margin: .15rem 0 0; padding: 0; accent-color: var(--cramoisi); display: inline-block; position: static; }
.case, .form-card label.case, .champ--case { flex-direction: row; align-items: flex-start; gap: .7rem; font-weight: 600; cursor: pointer; }

.ligne2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; width: 100%; align-items: start; }
.ligne2 > * { min-width: 0; }
.coord { border: 3px dashed var(--cramoisi); border-radius: 16px; padding: 1.2rem; display: flex; flex-direction: column; gap: 1.2rem; margin: 0; min-width: 0; }
.coord legend { font-weight: 800; color: var(--cramoisi); padding: 0 .5rem; }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card small, .champ small, .aide { display: block; font-weight: 500; font-size: .85rem; line-height: 1.35; color: #4a5a61; }
.form-card button[type="submit"], .form-card .btn { align-self: flex-start; position: static; }

.alerte { background: #fff; border: 3px solid var(--encre); border-radius: 18px; padding: 1rem 1.3rem; margin: 0 0 1.4rem; }
.alerte p, .alerte ul { margin: .3rem 0; }
.alerte ul { padding-left: 1.2rem; }
.alerte-ok { background: #e6f7e4; border-color: var(--vert); }
.alerte-err { background: #ffe5e3; border-color: var(--rouge); }

/* Modal Nouvel An */
#nouvelAnModal[hidden] { display: none !important; }
#nouvelAnModal:not([hidden]) {
  position: fixed !important; inset: 0 !important; z-index: 99999 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  padding: 20px !important; background: rgba(5, 15, 20, 0.78) !important; overflow-y: auto !important;
}
#nouvelAnModal .news-modal__panel {
  position: relative !important; display: grid !important; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
  width: 100% !important; max-width: 900px !important; max-height: 90vh !important; margin: auto !important;
  overflow-y: auto !important; background: #fffaf0 !important; color: #0b1b22 !important; border-radius: 20px !important; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
}
#nouvelAnModal .news-modal__visual img { display: block !important; width: 100% !important; height: 100% !important; min-height: 300px !important; object-fit: cover !important; }
#nouvelAnModal .news-modal__content { padding: 32px !important; align-self: center !important; }
#nouvelAnModal .news-modal__close {
  position: absolute !important; top: 10px !important; right: 10px !important; z-index: 2 !important;
  width: 42px !important; height: 42px !important; border: 0 !important; border-radius: 50% !important;
  background: white !important; color: #0b1b22 !important; font-size: 28px !important; cursor: pointer !important;
}
body.news-modal-open { overflow: hidden !important; }

/* Responsive */
.sticky { display: none; }
@media (max-width: 900px) {
  .post-row__track { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (max-width: 640px) {
  .carousel { height: clamp(380px, 62vh, 520px); }
  .car-btn { width: 42px; height: 42px; }
  .car-dots { bottom: 8.6rem; }
  .hero .slogan { flex: 1 1 100%; text-align: center; }
  .hero .btns { width: 100%; flex-wrap: nowrap; }
  .hero .btns .btn { flex: 1 1 0; padding: .6rem .5rem; font-size: .88rem; }
  .ligne2 { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .form-card { padding: 1.1rem; gap: 1.1rem; }
  .form-card .btn, .form-card button[type="submit"] { width: 100%; align-self: stretch; }
  .page-logo { width: 90px; }
  .post-row__track { grid-auto-columns: 85%; gap: .75rem; }
  .post-row__arrow { width: 34px; height: 42px; }
  
  #nouvelAnModal .news-modal__panel { display: block !important; }
  #nouvelAnModal .news-modal__visual img { height: 220px !important; min-height: 0 !important; }
  #nouvelAnModal .news-modal__content { padding: 24px !important; }
  
  .sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--encre);
  }
  .sticky .btn { width: 100%; box-shadow: none; background: var(--soleil); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .slide, .post-row__track { transition: none; scroll-behavior: auto; }
}
/* ---------- Popup des photos d'ambiance ---------- */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 70px 16px; background: rgba(11, 27, 34, .94); }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; max-width: 100%; }
.lightbox__fig img { display: block; max-width: 100%; max-height: calc(100vh - 210px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.lightbox__fig img.pret { opacity: 1; }
.lightbox__count { color: #fff; font: 600 14px 'Montserrat', sans-serif; text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 3px solid var(--encre); border-radius: 50%; background: var(--creme); color: var(--encre); font-size: 28px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--encre); }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--soleil); outline: none; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 45%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 45%; transform: translateY(-50%); }
.lightbox__thumbs { flex: 0 0 auto; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.lightbox__thumbs button { flex: 0 0 auto; width: 72px; height: 52px; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; background: #14303a; cursor: pointer; opacity: .55; transition: opacity .15s; }
.lightbox__thumbs button:hover { opacity: .9; }
.lightbox__thumbs button[aria-current="true"] { border-color: var(--soleil); opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next, .lightbox--single .lightbox__thumbs { display: none; }
@media (max-width: 640px) {
  .lightbox { padding: 60px 8px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 84px; transform: none; width: 42px; height: 42px; }
  .lightbox__fig img { max-height: calc(100vh - 230px); }
  .lightbox__thumbs button { width: 56px; height: 42px; }
}

/* ---------- Cartes d'actualité alimentées par la base (visuel de repli si pas d'image) ---------- */
.photo--festivites { background: linear-gradient(160deg, #0b1b22, var(--cramoisi)); }
.photo--vie_associative { background: radial-gradient(circle at 50% 40%, #ffe55c, var(--soleil) 50%, var(--orange)); }
.btn--ferme { cursor: not-allowed; opacity: .6; box-shadow: none; }
.post .caption .btn--ferme:hover { background: var(--creme); color: var(--encre); }
.photo--cours_couture { background: linear-gradient(160deg, var(--violet), var(--cramoisi)); }
.post .caption .prix { font-weight: 800; font-size: .88rem; }
.tarifs-carte { background: var(--creme); border: 2px solid var(--encre); border-radius: 10px; padding: .35rem .6rem; margin: .15rem 0; }
.tarifs-carte__titre { font-weight: 800; font-size: .78rem !important; text-transform: uppercase; letter-spacing: .04em; color: var(--cramoisi); }
.tarifs-carte ul { list-style: none; margin: .15rem 0 0; padding: 0; font-size: .84rem; line-height: 1.3; }
.tarifs-carte li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; }
.tarifs-carte li.epuise { opacity: .55; text-decoration: line-through; }
.tarifs-carte li em { font-style: normal; font-weight: 800; color: var(--rouge); text-decoration: none; }
.pastille-carte { position: absolute; z-index: 5; top: .6rem; left: .6rem; padding: .15rem .6rem; border-radius: 999px; border: 2px solid var(--encre); background: var(--soleil); font-size: .78rem; font-weight: 800; }
.pastille-carte--complet { background: var(--rouge); color: #fff; }
.post-row__arrow[hidden] { display: none; }

/* ---------- Vignettes alignées : chaque élément sur la même ligne d'une vignette à l'autre ----------
   La rangée définit 7 lignes (photo, texte, date/lieu, tarifs, fiche, bouton, hashtags) ;
   chaque vignette les reprend (subgrid), donc la ligne prend la hauteur du plus grand contenu de la rangée. */
.post .c-resume { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }   /* résumé limité à 6 lignes */
.post .c-tarifs { display: flex; flex-direction: column; gap: .3rem; }
.post .c-lien { display: flex; align-items: center; justify-content: center; }
.post .c-tags:empty { visibility: hidden; }
@supports (grid-template-rows: subgrid) {
  .post-row__track { grid-template-rows: repeat(7, auto); row-gap: 0; }
  .post-row__track > .post { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  .post .caption { display: contents; }
  .post .caption > * { padding: .4rem .8rem 0; margin: 0; }
  .post .c-resume { padding-top: .6rem; }
  .post .c-tarifs { align-self: start; }
  .post .c-lien { padding-top: .6rem; }
  .post .c-action { display: flex; align-items: flex-start; padding-top: .5rem; }
  .post .c-action .btn { margin-top: 0; }
  .post .c-tags { padding-top: .5rem; padding-bottom: .75rem; align-self: start; }
}

/* ---------- Bouton « remonter en haut » ---------- */
.remonter { position: fixed; z-index: 50; right: 1.2rem; bottom: 1.2rem; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--soleil); border: 3px solid var(--encre); box-shadow: 4px 4px 0 var(--encre); color: var(--encre); text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85); transition: opacity .25s, transform .25s, visibility .25s, box-shadow .12s, background .15s; }
.remonter.visible { opacity: 1; visibility: visible; transform: none; }
.remonter:hover { background: var(--creme); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.remonter:focus-visible { outline: 4px solid var(--cramoisi); outline-offset: 3px; }
.remonter svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.remonter__fond { fill: none; stroke: rgba(11,27,34,.15); stroke-width: 4; }
.remonter__progres { fill: none; stroke: var(--cramoisi); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .1s linear; }
.remonter__fleche { position: relative; font-size: 1.5rem; font-weight: 800; line-height: 1; transition: transform .2s; }
.remonter:hover .remonter__fleche { transform: translateY(-3px); }
body.lightbox-open .remonter, body.news-modal-open .remonter { display: none; }
@media (max-width: 640px) {
  .remonter { right: .8rem; bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }   /* au-dessus du bouton « S'inscrire » collé en bas */
}
@media (prefers-reduced-motion: reduce) {
  .remonter, .remonter__progres, .remonter__fleche { transition: none; }
}

/* Fenêtre « À la une » sans image : une seule colonne */
#nouvelAnModal .news-modal__panel--sans-image { grid-template-columns: 1fr !important; max-width: 560px !important; }
#nouvelAnModal .news-modal__eyebrow { margin: 0 0 .3rem; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cramoisi); }

/* ---------- Espace adhérents / clients : barre « Mon compte » (accueil) ---------- */
.compte-barre { position: absolute; z-index: 7; top: clamp(.8rem, 2.5vw, 1.6rem); left: clamp(.8rem, 3vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; max-width: calc(100% - clamp(190px, 27vw, 370px)); }
.compte-barre form { margin: 0; display: contents; }
.compte-lien, .compte-nom { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .95rem; border-radius: 999px; border: 3px solid var(--encre); background: var(--creme); color: var(--encre); font: inherit; font-weight: 800; font-size: .92rem; line-height: 1.2; text-decoration: none; box-shadow: 3px 3px 0 var(--encre); cursor: pointer; }
.compte-lien:hover { background: var(--soleil); }
.compte-nom { background: #fff; box-shadow: none; }
.compte-lien--intranet { background: var(--cramoisi); color: #fff; }
.compte-lien--intranet:hover { background: var(--encre); color: var(--soleil); }
@media (max-width: 640px) {
  .compte-barre { max-width: calc(100% - 200px); gap: .35rem; }
  .compte-lien, .compte-nom { padding: .35rem .7rem; font-size: .8rem; }
}