/* Amicale des locataires – le Clos La Paume
   Couleurs reprises du logo */
:root {
  --navy: #0b3a8a;
  --navy-deep: #082a66;
  --blue: #0a6ed1;
  --sky: #5aa9e9;
  --sky-pale: #e8f3fd;
  --green: #5aa33a;
  --green-deep: #468a2a;
  --sun: #fdd835;
  --ink: #16233b;
  --muted: #5b6b82;
  --bg: #f6f9fd;
  --card: #ffffff;
  --line: #dbe6f3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 58, 138, .06), 0 8px 24px rgba(11, 58, 138, .08);
  --shadow-hover: 0 2px 4px rgba(11, 58, 138, .08), 0 16px 40px rgba(11, 58, 138, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Ubuntu", "Nunito", sans-serif; line-height: 1.2; margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.site-header {
  position: relative;
  padding: 40px 0 36px;
  background: linear-gradient(180deg, #d9ecfc 0%, #eef6fe 60%, var(--bg) 100%);
  overflow: hidden;
}
.header-sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; right: -80px; top: -110px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 216, 53, .55) 0%, rgba(253, 216, 53, .18) 45%, transparent 70%);
}
.logo-card {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  background: #fff;
  border-radius: 22px;
  padding: clamp(10px, 2vw, 18px);
  box-shadow: var(--shadow);
}
.logo-card img { width: 100%; height: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; color: var(--navy); text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.is-current { background: var(--sky-pale); color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 0;
  font: 800 .95rem/1 "Nunito", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-contact { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(90, 163, 58, .35); white-space: nowrap; }
.btn-contact:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); box-shadow: none; }
.btn-light:hover { background: var(--sun); color: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- Bandeau ---------- */
.bandeau {
  background: var(--sun); color: var(--navy-deep);
  text-align: center; font-weight: 800; padding: 10px 16px;
}

/* ---------- Accueil ---------- */
.intro { margin-top: 36px; }
.intro-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
  border-left: 6px solid var(--green);
}
.intro-card h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); }
.intro-sub { margin: 6px 0 0; color: var(--blue); font-weight: 700; font-size: 1.1rem; }
.intro-sub:empty { display: none; }
.intro-texte { margin-top: 14px; color: var(--ink); max-width: 75ch; }
.intro-texte p { margin: 0 0 .8em; }
.intro-texte p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.wrap { padding-inline: 0; }
.section-tint { background: linear-gradient(180deg, var(--sky-pale), #f3f8fe); }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 28px; }
.pill {
  display: inline-block; color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem);
  padding: 8px 22px 10px; border-radius: 14px;
}
.pill-green { background: var(--green); }
.pill-blue { background: var(--blue); }
.pill-navy { background: var(--navy); }
.pill-important { background: var(--sun); color: var(--navy-deep); }
.section-note { margin: 0; color: var(--muted); font-weight: 600; }

.vide {
  background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 32px; text-align: center; color: var(--muted); font-weight: 600;
}

/* ---------- Affiches : ouvertes, les unes sous les autres ---------- */
.liste-affiches { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.affiche {
  width: 100%; max-width: 900px;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden;
}
.affiche-tete { padding: 20px 24px 16px; border-top: 6px solid var(--green); }
.affiche-tete h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--navy); margin-top: 2px; }
.affiche-tete p { margin: 6px 0 0; color: var(--muted); }
.affiche-visuel { background: #eef4fb; display: flex; flex-direction: column; gap: 6px; }
.affiche-page { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.affiche-page img { width: 100%; height: auto; display: block; }
.affiche-objet { display: block; width: 100%; height: min(1200px, 130vw); border: 0; }
.affiche-pdf {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 260px; text-decoration: none; font-weight: 800; color: var(--navy);
}
.affiche-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 24px 18px; }
.btn-ecran svg { width: 18px; height: 18px; }
.date { font-size: .85rem; font-weight: 700; color: var(--green-deep); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Flèches (visualiseur) ---------- */
.car-fleche {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: var(--navy); font: 400 2rem/1 "Nunito", sans-serif;
  padding: 0 0 4px; box-shadow: 0 4px 14px rgba(11, 58, 138, .28);
  transition: background .2s, opacity .2s, transform .15s;
}
.car-fleche:hover:not(:disabled) { background: var(--sun); }
.car-fleche:active:not(:disabled) { transform: translateY(-50%) scale(.94); }
.car-fleche:disabled { opacity: .3; cursor: default; }
.car-prec { left: 12px; }
.car-suiv { right: 12px; }

/* ---------- Visualiseur plein écran ---------- */
html.viewer-ouvert { overflow: hidden; }
.viewer {
  border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  background: #071a3d; color: #fff; overflow: hidden;
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: #071a3d; }
.viewer-barre { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--navy-deep); }
.viewer-titre { flex: 1; min-width: 0; margin: 0; font: 700 1.05rem "Ubuntu", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-compteur { font-weight: 800; color: var(--sun); white-space: nowrap; }
.viewer-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer; text-decoration: none;
  font: 800 .88rem/1 "Nunito", sans-serif; color: #fff; background: rgba(255, 255, 255, .14);
  border: 0; border-radius: 999px; padding: 10px 14px; transition: background .2s;
}
.viewer-nav { flex: none; display: flex; gap: 6px; }
.viewer-btn:hover { background: rgba(255, 255, 255, .26); }
.viewer-btn[aria-pressed="true"] { background: var(--sun); color: var(--navy-deep); }
.viewer-btn[hidden] { display: none; }
.viewer-fermer { width: 40px; height: 40px; padding: 0 0 3px; justify-content: center; font-size: 1.7rem; }
.viewer-scene { position: relative; flex: 1; min-height: 0; display: flex; }
.viewer-defile {
  flex: 1; min-width: 0; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center;
  padding: 12px 68px; -webkit-overflow-scrolling: touch;
}
.viewer-defile img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); cursor: zoom-in;
}
.viewer.zoom .viewer-defile { display: block; }
.viewer.zoom .viewer-defile img { max-width: none; max-height: none; width: calc(var(--zoom, 200) * 1%); cursor: zoom-out; margin: 0 auto; }
.viewer-niveau { appearance: auto; padding: 9px 10px; }
.viewer-niveau option { color: #000; }
.viewer-fleche { width: 52px; height: 52px; font-size: 2.2rem; }
.viewer-fleche[hidden] { display: none; }
.viewer .car-prec { left: 10px; }
.viewer .car-suiv { right: 10px; }
.viewer-vignettes { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px; background: var(--navy-deep); }
.viewer-vignettes[hidden] { display: none; }
.viewer-vignettes button {
  flex: none; width: 44px; height: 60px; padding: 0; overflow: hidden; cursor: pointer;
  border: 3px solid transparent; border-radius: 6px; background: #fff; opacity: .65; transition: opacity .2s, border-color .2s;
}
.viewer-vignettes button:hover { opacity: 1; }
.viewer-vignettes button.is-active { border-color: var(--sun); opacity: 1; }
.viewer-vignettes img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* ---------- Gazette ---------- */
.gazette-une {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px); margin-bottom: 24px;
}
.gazette-badge {
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--navy-deep); background: var(--sun); padding: 4px 10px; border-radius: 999px;
  display: inline-block; margin-bottom: 8px;
}
.gazette-une h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--navy); }
.gazette-couv, .gazette-mini {
  display: block; padding: 0; border: 0; background: #fff; cursor: pointer; overflow: hidden; flex: none;
  box-shadow: 0 10px 24px rgba(11, 58, 138, .22); border-top: 8px solid var(--blue);
  transition: transform .2s, box-shadow .2s;
}
.gazette-couv { width: 150px; border-radius: 10px; }
.gazette-mini { width: 64px; border-radius: 6px; border-top-width: 5px; }
.gazette-couv:hover, .gazette-mini:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 14px 30px rgba(11, 58, 138, .3); }
.gazette-couv img, .gazette-mini img { width: 100%; height: auto; display: block; }
.gazette .liens { flex-wrap: wrap; }
.lien-bouton { white-space: nowrap; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; }
.lien-bouton:hover { text-decoration: underline; }
.gazette-une p { margin: 8px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.journal {
  width: 120px; aspect-ratio: 3 / 4; border-radius: 10px; position: relative;
  background: #fff; box-shadow: 0 10px 24px rgba(11, 58, 138, .18);
  border-top: 14px solid var(--blue); display: grid; place-items: center; color: var(--navy);
  font: 700 1.6rem "Ubuntu", sans-serif;
}
.journal::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 16px; height: 22px;
  background: repeating-linear-gradient(180deg, var(--line) 0 3px, transparent 3px 8px);
}
.journal small { position: absolute; top: 8px; font: 800 .6rem "Nunito", sans-serif; letter-spacing: .1em; color: var(--green-deep); }
.grid-gazettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gazette {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; gap: 14px; align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.gazette:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.gazette .journal { width: 56px; border-top-width: 8px; font-size: .95rem; border-radius: 6px; flex: none; }
.gazette .journal::after, .gazette .journal small { display: none; }
.gazette h3 { font-size: 1.02rem; color: var(--navy); }
.gazette .liens { display: flex; gap: 12px; margin-top: 6px; font-weight: 700; font-size: .92rem; }
.gazette .liens a { text-decoration: none; }
.gazette .liens a:hover { text-decoration: underline; }

/* ---------- Archives ---------- */
.filtres { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.filtre {
  font: 700 .95rem "Nunito", sans-serif; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--navy);
}
.filtre.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.annee { margin: 26px 0 12px; font-size: 1.1rem; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.annee::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.liste-archives { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.archive {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: box-shadow .2s;
}
.archive:hover { box-shadow: var(--shadow-hover); }
.archive-vignette {
  width: 48px; height: 60px; border-radius: 8px; flex: none; overflow: hidden;
  background: var(--sky-pale); display: grid; place-items: center; color: var(--navy);
  font: 800 .7rem "Nunito", sans-serif;
}
.archive-vignette img { width: 100%; height: 100%; object-fit: cover; }
.archive-vignette.is-gazette { background: var(--blue); color: #fff; }
.archive strong { display: block; color: var(--navy); line-height: 1.3; }
.archive .meta { font-size: .85rem; color: var(--muted); }
.tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.tag-affiche { background: #e4f3dc; color: var(--green-deep); }
.tag-gazette { background: var(--sky-pale); color: var(--blue); }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: #dbe7fb; padding: 36px 0; margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 2px 0; }
.footer-name { font: 700 1.1rem "Ubuntu", sans-serif; color: #fff; }
.footer-small { font-size: .9rem; opacity: .85; }
.footer-small:empty { display: none; }

/* ---------- Compteur de visites ---------- */
.compteur {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px !important;
  background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px 12px 4px 10px;
  font-size: .88rem; font-weight: 700; color: #fff;
}
.compteur[hidden] { display: none; }
.compteur svg { width: 18px; height: 18px; fill: var(--sun); }

/* ---------- Fenêtre « Nous contacter » ---------- */
.footer-mail { margin-top: 8px !important; }
.footer-mail .email-texte { font-weight: 800; color: #fff; user-select: all; -webkit-user-select: all; }
.contact-fenetre {
  width: min(480px, calc(100% - 32px)); border: 0; border-radius: 22px; padding: 28px 26px 24px;
  box-shadow: 0 24px 70px rgba(8, 26, 60, .35); color: var(--ink); overflow: visible;
  border-top: 8px solid var(--green);
}
.contact-fenetre::backdrop { background: rgba(8, 26, 60, .6); }
.contact-fenetre h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 6px; }
.contact-fenetre p { margin: 6px 0; }
.email-boite { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.email-champ {
  flex: 1 1 200px; min-width: 0; font: 800 1.1rem "Nunito", sans-serif; color: var(--navy);
  background: var(--sky-pale); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px;
  user-select: all; -webkit-user-select: all;
}
.email-champ:focus { outline: none; border-color: var(--blue); }
.copie-ok { min-height: 1.4em; font-weight: 700; color: var(--green-deep); font-size: .92rem; }
.contact-fenetre .btn-contact { margin-top: 6px; }
.contact-aide { font-size: .85rem; color: var(--muted); margin-top: 14px !important; }
.fermer {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--sky-pale); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.fermer:hover { background: var(--line); }

/* ---------- Page mentions légales ---------- */
.site-header-compact { padding: 22px 0 18px; }
.logo-lien { display: block; max-width: 520px; }
.nav-retour { font-weight: 800; color: var(--navy); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.nav-retour:hover { background: var(--sky-pale); color: var(--blue); }
.legal { padding: 40px 0 24px; max-width: 860px; }
.legal .pill { margin-bottom: 8px; }
.legal-maj { margin: 0 0 22px; color: var(--muted); font-weight: 600; }
.legal-bloc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; margin-bottom: 18px; border-left: 6px solid var(--green); }
.legal-bloc h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 10px; }
.legal-bloc p { margin: 0 0 .7em; }
.legal-bloc p:last-child { margin-bottom: 0; }
.legal-liste { margin: 0 0 .8em; padding-left: 1.2em; }
.legal-liste li { margin: .25em 0; }

/* ---------- Pied de page : liens ---------- */
.footer-liens { margin-top: 10px !important; }
.footer-liens a { color: #dbe7fb; font-weight: 700; text-underline-offset: 3px; }
.footer-liens a:hover { color: var(--sun); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header { padding: 20px 0 22px; }
  .nav-inner { min-height: 56px; }
  .nav-links a { padding: 6px 10px; font-size: .92rem; }
  .gazette-une { grid-template-columns: 1fr; }
  .gazette-une .journal { width: 90px; }
  .liste-archives { grid-template-columns: 1fr; }
  .affiche-tete { padding: 16px 16px 12px; }
  .car-fleche { width: 42px; height: 42px; font-size: 1.7rem; }
  .car-prec { left: 6px; }
  .car-suiv { right: 6px; }
  .viewer-barre { gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
  .viewer-nav { width: 100%; gap: 5px; }
  .viewer-nav .viewer-btn { padding: 8px 10px; font-size: .82rem; }
  .viewer-titre { font-size: .95rem; }
  .viewer-btn { padding: 9px 11px; }
  .viewer-long { display: none; }
  .viewer-defile { padding: 8px; }
  .viewer .viewer-fleche { width: 42px; height: 42px; font-size: 1.8rem; background: rgba(255, 255, 255, .8); }
  .viewer .car-prec { left: 6px; }
  .viewer .car-suiv { right: 6px; }
  .gazette-couv { width: 120px; }
  .affiche-actions { padding: 12px 16px 16px; }
}
@media (max-width: 480px) {
  .nav-links a { padding: 6px 8px; }
  #contact-nav { padding: 10px; }
  #contact-nav .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ---------- Information importante ---------- */
.important { padding-top: 28px; }
.important .liste-affiches {
  background: linear-gradient(135deg, #fff8cf, #ffeb7a); border: 2px solid var(--sun);
  border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
}
.important .affiche-tete { border-top-color: var(--sun); }

/* ---------- Lien vers les archives ---------- */
.archives-carte {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; text-decoration: none;
  background: var(--navy); color: #fff; border-radius: 22px; padding: 20px 26px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .2s;
}
.archives-carte:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.archives-carte .pill { background: var(--sun); color: var(--navy-deep); }
.archives-texte { display: flex; flex-direction: column; flex: 1; min-width: 220px; gap: 2px; }
.archives-texte span { color: #dbe7fb; font-size: .92rem; }
.archives-fleche { font-size: 1.8rem; font-weight: 800; color: var(--sun); }

/* ---------- Page Archives ---------- */
.page-archives { padding-top: 28px; padding-bottom: 50px; min-height: 55vh; }
.nav-retour { font-weight: 800; color: var(--navy); text-decoration: none; }
.nav-retour:hover { color: var(--blue); }
@media (max-width: 640px) {
  .important .liste-affiches { padding: 10px; border-radius: 20px; }
}

.affiche-canvas { display: block; width: 100%; height: auto; }
.affiche-chargement { padding: 40px 20px; text-align: center; color: var(--muted); font-weight: 700; }
.nav-links a.is-current { background: var(--sky); color: var(--blue); }
.nav-links a.nav-important { background: var(--sun); color: var(--navy-deep); }
.nav-links a.nav-important:hover { background: #ffe34d; }


/* =====================================================================
   Design v2
   ===================================================================== */
/* En-tête compact */
.site-header { padding: 22px 0 18px; }
.site-header .logo-card { max-width: 520px; padding: 10px 14px; border-radius: 18px; }
.sun { width: 260px; height: 260px; top: -100px; }

/* Titres de section : texte + filet de couleur */
.pill {
  background: none !important; color: var(--navy) !important; padding: 0; border-radius: 0;
  font-weight: 700; letter-spacing: -.01em;
}
.pill::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; margin-top: 8px; background: var(--navy); }
.pill-green::after { background: var(--green); }
.pill-blue::after { background: var(--blue); }
.pill-navy::after { background: var(--navy); }
.pill-important::after { background: var(--sun); width: 88px; }
.section-head { align-items: flex-end; margin-bottom: 26px; }
.section-note { padding-bottom: 4px; }

/* Bienvenue en deux colonnes */
.intro { margin-top: 28px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 22px; align-items: stretch; }
.intro-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; border-top: 5px solid var(--blue);
}
.aside-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 6px; }
.aside-contact { border-top-color: var(--green); }
.aside-mail { margin: 0 0 12px; font-weight: 800; color: var(--blue); word-break: break-all; user-select: all; -webkit-user-select: all; }
.aside-gazette { display: flex; gap: 16px; align-items: center; flex: 1; }
.aside-gazette[hidden] { display: none; }
.aside-gazette p { margin: 4px 0 12px; color: var(--muted); font-size: .92rem; }
.aside-couv {
  flex: none; width: 92px; padding: 0; border: 0; background: #fff; cursor: pointer; overflow: hidden;
  border-radius: 8px; border-top: 6px solid var(--blue); box-shadow: 0 8px 20px rgba(11, 58, 138, .25);
  transition: transform .2s;
}
.aside-couv:hover { transform: translateY(-3px) rotate(-1deg); }
.aside-couv img { width: 100%; height: auto; display: block; }
.aside-gazette .gazette-badge { margin-bottom: 4px; }

/* Affiches plus posées */
.affiche {
  max-width: 780px; overflow: clip; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(11, 58, 138, .05), 0 14px 34px rgba(11, 58, 138, .10);
}
.affiche-actions {
  position: sticky; bottom: 0; z-index: 3;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 12px 20px;
}
.liste-affiches { gap: 44px; }

/* Apparition douce */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Pied de page : bande aux couleurs du logo */
.footer { position: relative; padding-top: 44px; margin-top: 40px; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 34%, var(--green) 34% 67%, var(--sun) 67% 100%);
}
.footer .compteur { opacity: .9; }

@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
  .site-header .logo-card { max-width: 380px; }
  .aside-gazette { flex: none; }
}
.aside-gazette .btn { margin: 0 6px 6px 0; }
.aside-gazette > div { min-width: 0; }
.archives-contact { margin-top: 48px; max-width: 440px; }

/* Archives : titre à gauche, encart contact à droite */
.archives-haut { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 8px; }
.archives-haut .section-head { margin-bottom: 20px; }
.archives-haut .filtres { margin-bottom: 0; }
@media (max-width: 820px) { .archives-haut { grid-template-columns: 1fr; } }

/* Bouton « Nous contacter » à droite de la barre de liens */
.nav-contact { flex: none; margin-left: auto; padding: 10px 20px; font-size: .95rem; cursor: pointer; border: 0; }
@media (max-width: 480px) { .nav-contact { padding: 8px 12px; font-size: .85rem; } }

/* Texte de secours quand le logo est supprime */
.logo-card .logo-texte { display: block; padding: 6px 4px; font-family: Ubuntu, sans-serif; font-weight: 700; font-size: 1.5rem; color: #0b3a8a; line-height: 1.2; }


/* =====================================================================
   Design v3 – version modernisée (surcharge : tout se règle ici)
   ===================================================================== */
:root {
  --radius: 26px;
  --bg: #f4f8fd;
  --shadow: 0 1px 2px rgba(11, 58, 138, .04), 0 10px 30px rgba(11, 58, 138, .07);
  --shadow-hover: 0 2px 6px rgba(11, 58, 138, .06), 0 22px 50px rgba(11, 58, 138, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body { font-size: 1.08rem; background: var(--bg); }
h1, h2, h3 { letter-spacing: -.02em; }
.wrap { width: min(1180px, 100% - 40px); }

/* ---------- En-tête : grand aplat marine, soleil et colline du logo ---------- */
.site-header, .site-header-compact {
  background: var(--navy); padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 9vw, 120px);
}
.site-header::before {            /* colline verte */
  content: ""; position: absolute; left: -6vw; bottom: -25vw; width: 34vw; height: 34vw; border-radius: 50%;
  background: var(--green); pointer-events: none;
}
.site-header::after {             /* vague claire qui rejoint la page */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(28px, 5vw, 56px);
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none;
}
.sun {
  right: 6%; top: -90px; width: clamp(180px, 26vw, 340px); height: clamp(180px, 26vw, 340px);
  background: var(--sun); opacity: 1;
}
.site-header .logo-card, .site-header-compact .logo-card {
  max-width: 640px; margin: 0; padding: clamp(14px, 2.2vw, 24px); border-radius: 30px;
  box-shadow: 0 30px 60px rgba(4, 20, 60, .35);
}
.site-header-compact .logo-card { max-width: 520px; }
.logo-lien { transition: transform .3s var(--ease); }
.logo-lien:hover { transform: translateY(-3px); }

/* ---------- Navigation flottante ---------- */
.nav {
  top: 10px; z-index: 30; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  margin-top: -34px; pointer-events: none;
}
.nav-inner {
  pointer-events: auto; min-height: 60px; padding: 6px 8px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(11, 58, 138, .16);
}
.nav-links a { padding: 10px 18px; transition: background .25s, color .25s; }
.nav-links a:hover { background: var(--sky-pale); color: var(--blue); }
.nav-links a.is-current { background: var(--navy); color: #fff; }
.nav-links a.nav-important { background: var(--sun); color: var(--navy-deep); }
.btn { padding: 13px 24px; transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-contact { box-shadow: none; }
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(90, 163, 58, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 58, 138, .28); }
.nav-contact { padding: 12px 24px; }

.bandeau { font-size: 1.05rem; padding: 14px 16px; }

/* ---------- Accueil : grand titre, texte à l'air libre ---------- */
.intro { margin-top: clamp(40px, 7vw, 84px); }
.intro-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.intro-card { background: none; box-shadow: none; padding: 0; border-left: 0; }
.intro-card h2 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.035em; color: var(--navy); }
.intro-sub { margin-top: 14px; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--green-deep); font-weight: 800; }
.intro-texte { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.7; max-width: 62ch; }

.aside-card { border: 0; border-radius: var(--radius); }
.aside-gazette {
  background: var(--navy); color: #fff; padding: 28px; gap: 22px; box-shadow: 0 24px 50px rgba(11, 58, 138, .28);
  position: relative; overflow: hidden;
}
.aside-gazette::before {
  content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: var(--sun);
}
.aside-gazette > * { position: relative; }
.aside-gazette h3 { color: #fff; font-size: 1.35rem; }
.aside-gazette p { color: #c9dcf7; }
.aside-gazette .gazette-badge { background: var(--sun); }
.aside-gazette .btn-primary { background: var(--green); }
.aside-gazette .btn-primary:hover { background: var(--green-deep); }
.aside-gazette .btn-outline { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.aside-gazette .btn-outline:hover { box-shadow: inset 0 0 0 2px var(--sun); color: var(--sun); }
.aside-couv { width: 108px; border-top: 0; border-radius: 10px; transform: rotate(-3deg); transition: transform .3s var(--ease); box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
.aside-couv:hover { transform: rotate(0) translateY(-4px) scale(1.03); }

/* ---------- Titres de section ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.pill { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; }
.pill::after { width: 84px; height: 8px; border-radius: 4px; margin-top: 14px; }
.section-note { font-size: 1.1rem; }

/* ---------- Affiches ---------- */
.liste-affiches { gap: clamp(36px, 6vw, 64px); }
.affiche {
  max-width: 820px; border: 0; border-radius: 32px; box-shadow: var(--shadow);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.affiche:hover { box-shadow: var(--shadow-hover); }
.affiche-tete { border-top: 0; padding: 28px 32px 20px; }
.affiche-tete h3 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.12; }
.date {
  display: inline-block; background: #e4f3dc; color: var(--green-deep); border-radius: 999px;
  padding: 4px 12px; letter-spacing: .02em; text-transform: none; font-size: .9rem;
}
.affiche-actions { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; padding: 16px 32px 24px; }
.btn-outline { box-shadow: inset 0 0 0 2px #cfdcec; }

/* Information importante : aplat jaune, sans bordure ni dégradé */
.important .liste-affiches { background: #fff4b8; border: 0; border-radius: 40px; padding: clamp(14px, 3vw, 36px); box-shadow: none; }
.important .affiche-tete { border-top: 0; }

/* ---------- Gazettes et archives ---------- */
.gazette, .archive { border-radius: 22px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.archive:hover { transform: translateY(-3px); }
.filtre { padding: 10px 20px; border: 0; background: #fff; box-shadow: inset 0 0 0 2px #d6e2f1; transition: all .2s; }
.filtre:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.filtre.is-active { box-shadow: none; }
.annee { font-size: clamp(1.5rem, 3vw, 2rem); margin: 44px 0 18px; }
.annee::after { height: 4px; border-radius: 2px; background: #d6e2f1; }
.archive-vignette { border-radius: 12px; width: 56px; height: 70px; }
.archives-carte { border-radius: 32px; padding: 32px 36px; }

/* ---------- Mentions légales ---------- */
.legal-bloc { border-left: 0; border-radius: 26px; padding: 28px 32px; }
.legal-bloc h2 { font-size: 1.4rem; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-deep); padding: clamp(48px, 7vw, 88px) 0 48px; margin-top: clamp(40px, 6vw, 80px); }
.footer::before { height: 10px; background: linear-gradient(90deg, var(--blue) 0 34%, var(--green) 34% 67%, var(--sun) 67% 100%); }
.footer-name { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 10px; }
.footer p { font-size: 1.05rem; }
.footer-mail .email-texte { color: var(--sun); }

/* ---------- Fenêtres ---------- */
.contact-fenetre { border-radius: 30px; border-top: 0; padding: 36px 32px 30px; }
.contact-fenetre h2 { font-size: 1.9rem; }

/* ---------- Apparition ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .intro-card h2, .intro-sub { animation: monte .9s var(--ease) both; }
  .intro-sub { animation-delay: .1s; }
  .site-header .sun { animation: flotte 9s ease-in-out infinite alternate; }
  @keyframes monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes flotte { from { transform: translateY(0); } to { transform: translateY(18px); } }
}

@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
  .site-header::before { width: 90vw; height: 90vw; left: -30vw; bottom: -76vw; }
}
@media (max-width: 640px) {
  .nav { margin-top: -28px; top: 6px; }
  .nav-inner { min-height: 54px; }
  .nav-links a { padding: 8px 12px; }
  .affiche-tete { padding: 20px 20px 14px; }
  .affiche-actions { padding: 12px 20px 20px; }
  .affiche { border-radius: 24px; }
  .aside-gazette { padding: 22px; }
}
