/* DJU LA MLIMA – feuille de style du site */

:root {
  --navy: #12305A;
  --navy-deep: #0C2143;
  --sky: #7CC4E8;
  --sky-deep: #1F7FB0;
  --mist: #EAF4FA;
  --snow: #FAFCFE;
  --ink: #1B2633;
  --muted: #4C5B6B;
  --sun: #F2B33D;
  --line: #C9DCE9;
  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font-family: var(--text); font-size: 1.125rem; line-height: 1.65;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 68ch; }
a { color: var(--sky-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
section { padding: 5rem 0; }
.alt { background: var(--mist); }

/* En-tête */
header.top {
  position: sticky; top: 0; z-index: 10; background: var(--navy-deep);
  border-bottom: 3px solid var(--sky);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; flex-wrap: wrap; width: min(1320px, 100% - 2rem); }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.brand img { display: block; height: 56px; width: auto; }
.brand-texte { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; color: #fff; white-space: nowrap; }
nav ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: #DCEBF5; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: .98rem; }
nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

/* Accueil */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy);
  min-height: clamp(460px, 56vw, 640px); display: flex; align-items: center;
  padding: 6rem 0 3rem;
}
.hero-fond { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; animation: apparition 1.1s ease-out both; }
.hero-fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.hero-voile {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(100deg, rgba(10,29,61,.94) 0%, rgba(10,29,61,.82) 32%, rgba(10,29,61,.46) 60%, rgba(10,29,61,.18) 100%);
}
.hero-texte { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 800; letter-spacing: -0.02em; max-width: 12ch; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero p.lead { font-size: 1.3rem; color: #EAF2F8; margin-top: 1.4rem; max-width: 46ch; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero-vague { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: #7CC4E8; z-index: 1; }
@media (max-width: 700px) {
  .hero-voile { background: linear-gradient(185deg, rgba(10,29,61,.96) 0%, rgba(10,29,61,.88) 38%, rgba(10,29,61,.55) 70%, rgba(10,29,61,.3) 100%); }
}
.actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--sun); color: #2A1E00; }
.btn.primary:hover { background: #FFC85A; }
.btn.ghost { border-color: var(--sky); color: #fff; background: transparent; }
.btn.ghost:hover { background: rgba(124,196,232,.18); }

@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-fond { animation: none; } html { scroll-behavior: auto; } }

/* Mission et objectifs */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.goals { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--navy); }
.goals li { padding: .8rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--navy); }

/* Domaines d'action */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 2.5rem; border-top: 2px solid var(--navy); }
.area { padding: 1.8rem 2rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.area:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--line); }
.area h3 { margin-bottom: .7rem; }
.area ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.area li { margin-bottom: .4rem; }

/* Bureau */
.organs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.organ { border-top: 4px solid var(--sky-deep); padding-top: 1rem; }
.organ .role { font-family: var(--display); font-weight: 500; color: var(--sky-deep); margin-bottom: .6rem; }
.organ p { color: var(--muted); font-size: 1.02rem; }
.board { margin-top: 3rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 2rem; }
.board dl { display: grid; grid-template-columns: max-content 1fr; gap: .7rem 2rem; margin: 1rem 0 0; }
.board dt { font-family: var(--display); font-weight: 700; color: var(--navy); }
.board dd { margin: 0; }
.todo { color: var(--muted); font-style: italic; }
.result { margin-top: 1.6rem; padding: 1rem 1.2rem; border-left: 5px solid var(--sun); background: #FFF8E6; }
.result p { margin: 0; }

/* Adhésion */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 1rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; margin-bottom: .8rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: 1.02rem; }
.fee { margin-top: 2rem; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.fee strong { background: var(--sky); padding: .1rem .5rem; border-radius: 4px; }

/* Événements */
.empty { border: 2px dashed var(--sky-deep); border-radius: 6px; padding: 2rem; margin-top: 2rem; background: #fff; }
.event { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.event time { font-family: var(--display); font-weight: 800; color: var(--sky-deep); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery button { padding: 0; border: 0; background: var(--navy); border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
#lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1000px); width: 100%; overflow: visible; }
#lightbox::backdrop { background: rgba(12, 33, 67, .93); }
#lightbox figure { margin: 0; }
#lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 6px; }
#lightbox figcaption { color: #fff; text-align: center; margin-top: .8rem; font-family: var(--display); min-height: 1.6rem; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: var(--sun); color: #2A1E00; font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.lb-btn.prev { left: .5rem; }
.lb-btn.next { right: .5rem; }
.lb-close { position: absolute; top: -3rem; right: 0; background: transparent; border: 2px solid var(--sky); color: #fff; border-radius: 999px; padding: .4rem 1rem; font-family: var(--display); font-weight: 700; cursor: pointer; }

/* Contact */
form { display: grid; gap: 1rem; max-width: 560px; margin-top: 2rem; }
label { font-family: var(--display); font-weight: 700; color: var(--navy); display: grid; gap: .35rem; }
input, textarea { font: inherit; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--sky-deep); outline: none; }
textarea { min-height: 8rem; resize: vertical; }
.contact-info { margin-top: 2rem; }

.reseaux { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1rem; }
.reseau-lien { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.reseau-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
footer .reseau-badge { background: rgba(255,255,255,.14); color: #fff; }
footer .reseau-lien { color: #DCEBF5; }
footer .reseau-lien:hover .reseau-badge { background: rgba(255,255,255,.26); }
.contact-info .reseau-badge { background: var(--mist); color: var(--sky-deep); border: 1px solid var(--line); }
.contact-info .reseau-lien { color: var(--navy); }
.contact-info .reseau-lien:hover .reseau-badge { background: var(--sky); color: #fff; }

footer { background: var(--navy-deep); color: #B9D0E2; padding: 2.5rem 0; font-size: .98rem; }
footer p { max-width: none; margin-bottom: .4rem; }
footer strong { color: #fff; font-family: var(--display); }

@media (max-width: 820px) {
  section { padding: 3.5rem 0; }
  .split, .areas, .organs, .steps { grid-template-columns: 1fr; }
  .area, .area:nth-child(even) { padding: 1.5rem 0; border-left: none; }
  .board dl { grid-template-columns: 1fr; gap: .1rem; }
  .board dd { margin-bottom: .8rem; }
  .event { grid-template-columns: 1fr; gap: .2rem; }
}

/* ===== Site à plusieurs pages ===== */

#site-header { position: sticky; top: 0; z-index: 10; }
#site-header header.top { position: static; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: #2A1E00; padding: .6rem 1rem; z-index: 20; font-family: var(--display); font-weight: 700; }
.skip:focus { left: 0; }
nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--sky); color: #fff; border-radius: 999px; padding: .35rem 1rem; font-family: var(--display); font-weight: 700; cursor: pointer; }

.page-head { background: var(--navy); color: #fff; padding: 3.5rem 0 2.6rem; border-bottom: 8px solid var(--sky); }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; }
.page-head p { color: #D6E8F4; font-size: 1.2rem; margin: 1rem 0 0; max-width: 56ch; }

.principles { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 2px solid var(--navy); }
.principles li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; }
.principles strong { font-family: var(--display); color: var(--navy); }

.rules { margin: 1.5rem 0 0; padding-left: 1.2rem; max-width: 68ch; }
.rules li { margin-bottom: .6rem; }

.event { grid-template-columns: 11rem 1fr; }
.event .meta { color: var(--muted); font-family: var(--display); margin-bottom: .4rem; }
.event h3 { margin-bottom: .3rem; }
.news-item { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.news-item time { font-family: var(--display); font-weight: 700; color: var(--sky-deep); }
.news-item h3 { margin: .3rem 0 .6rem; }
.list-block { margin-top: 2rem; }
.more { margin-top: 1.5rem; font-family: var(--display); font-weight: 700; }

.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 1rem auto 0; color: #D6E8F4; }
.cta-band .actions { justify-content: center; }

footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
footer a { color: #DCEBF5; }
footer .foot-credit { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); }
footer .foot-credit p { margin: 0; font-size: .88rem; color: #9DB6CC; }

@media (max-width: 820px) {
  .brand img { height: 36px; }
  .brand-texte { font-size: 1.05rem; }
  .nav-toggle { display: inline-block; padding: .3rem .8rem; font-size: .92rem; }
  header.top nav { width: 100%; }
  header.top nav ul { display: none; flex-direction: column; gap: .2rem; padding: .6rem 0 1rem; }
  header.top.nav-open nav ul { display: flex; }
  header.top nav a { display: block; padding: .5rem 0; font-size: 1.1rem; }
  .principles li { grid-template-columns: 1fr; gap: .2rem; }
  .event { grid-template-columns: 1fr; gap: .2rem; }
  footer .foot-grid { grid-template-columns: 1fr; }
}

/* ===== Transparence financière ===== */

.meta { color: var(--muted); font-family: var(--display); font-size: .95rem; }

.cotis-select { margin: 1.5rem 0 0; display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 700; color: var(--navy); }
.cotis-select select { font: inherit; font-weight: 500; padding: .4rem .7rem; border: 2px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }

.cotis-liste { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.cotis-liste li { padding: .7rem 0; border-bottom: 1px solid var(--line); }

.projet-detail { border: 1px solid var(--line); border-radius: 6px; margin-top: 1rem; background: #fff; overflow: hidden; }
.projet-detail summary { cursor: pointer; padding: 1rem 1.2rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; justify-content: space-between; list-style: none; font-family: var(--display); }
.projet-detail summary::-webkit-details-marker { display: none; }
.projet-detail summary strong { color: var(--navy); font-size: 1.1rem; }
.projet-chiffres { color: var(--muted); font-size: .95rem; }
.projet-corps { padding: 0 1.2rem 1.2rem; border-top: 1px solid var(--line); }
.projet-corps h4 { margin: 1rem 0 .3rem; font-family: var(--display); color: var(--navy); }

.fin-ligne { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.fin-ligne strong { font-family: var(--display); color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-family: var(--display); font-size: .92rem; color: var(--navy); }
.hint { color: var(--muted); font-size: 1.02rem; }

/* Résumé financier général */
.totaux-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.totaux-carte { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem 1rem; text-align: center; }
.totaux-valeur { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.totaux-label { margin-top: .4rem; color: var(--muted); font-size: .92rem; }
.totaux-carte-principale { background: var(--navy); border-color: var(--navy); }
.totaux-carte-principale .totaux-valeur, .totaux-carte-principale .totaux-label { color: #fff; }

/* Bilans des mandats */
.mandat-carte { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.8rem 2rem; margin-bottom: 2rem; }
.mandat-entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mandat-entete h2 { font-size: 1.4rem; }
.mandat-statut { font-family: var(--display); font-weight: 700; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; background: var(--mist); color: var(--sky-deep); white-space: nowrap; }
.mandat-carte h3 { margin: 1.3rem 0 .5rem; font-size: 1.1rem; }

/* Avancement du programme (barres de progression) */
.prog-liste { margin-top: .5rem; }
.prog-item { margin-bottom: 1.3rem; }
.prog-item:last-child { margin-bottom: 0; }
.prog-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--display); font-weight: 700; color: var(--navy); margin-bottom: .45rem; }
.prog-pct { color: var(--sky-deep); font-variant-numeric: tabular-nums; }
.prog-piste { background: var(--mist); border: 1px solid var(--line); border-radius: 999px; height: .7rem; overflow: hidden; }
.prog-remplissage { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sky-deep), var(--sky)); transition: width .4s ease; }
.prog-remplissage.prog-haut { background: linear-gradient(90deg, #1E7B45, #4CAF77); }
.prog-remplissage.prog-bas { background: linear-gradient(90deg, #B3261E, #E8695F); }
.prog-desc { margin: .5rem 0 0; color: var(--muted); font-size: .98rem; }

/* Mot du président */
.mot-president-wrap { max-width: 740px; margin: 0 auto; text-align: center; }
.mot-president-photo {
  width: 240px; height: 240px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 4px solid #fff; outline: 1px solid var(--line); box-shadow: 0 6px 18px rgba(18,48,90,.18);
  margin: 0 auto 1.3rem; display: block;
  image-rendering: -webkit-optimize-contrast;
}
.mot-president-wrap h2::before {
  content: "“"; display: block; font-family: Georgia, serif; font-size: 4rem; line-height: 1;
  color: var(--sun); margin-bottom: -.5rem;
}
#mot-president-texte {
  margin: 1.3rem 0 0; padding: 0; border: none; font-size: 1.28rem; line-height: 1.75;
  font-style: italic; color: var(--navy);
}
#mot-president-texte p { margin: 0 0 1rem; }
.mot-president-signature { margin-top: 1.2rem; font-family: var(--display); font-weight: 700; color: var(--sky-deep); font-style: normal; }

@media (max-width: 700px) {
  .projet-detail summary { flex-direction: column; align-items: flex-start; }
  .totaux-grid { grid-template-columns: repeat(2, 1fr); }
}
