/* ============================================================
   EMPLACEMENT : /fond-taymakon/public/css/app.css
   Fond Taymakon Niger — CSS mobile-first
   Fraunces (titres) + DM Sans (corps)
   ============================================================ */

/* ─── Variables & Reset ──────────────────────────────────────────────────── */
:root {
  /* Couleurs */
  --c-green:       #1a5c38;
  --c-green-dark:  #0f3d25;
  --c-green-light: #e8f5ee;
  --c-orange:      #e07b23;
  --c-orange-dark: #b85f10;
  --c-orange-light:#fef3e6;
  --c-gold:        #c9a227;
  --c-red:         #d9373f;
  --c-red-light:   #fdecea;
  --c-blue:        #1a6fa0;
  --c-blue-light:  #e6f2f9;

  /* Neutres */
  --c-white:    #ffffff;
  --c-bg:       #f7f5f0;
  --c-surface:  #ffffff;
  --c-border:   #e2ddd6;
  --c-text:     #1a1612;
  --c-text-2:   #5a5248;
  --c-text-3:   #9a8f85;

  /* Typographie */
  --f-title: 'Fraunces', Georgia, serif;
  --f-body:  'DM Sans', system-ui, sans-serif;

  /* Espacement */
  --space-1:  4px;
  --space-2:  8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout */
  --container: 1140px;
  --container-narrow: 720px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(26,22,18,.08);
  --shadow-lg: 0 8px 32px rgba(26,22,18,.12);

  /* Transitions */
  --t: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100dvh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: 1280px; }
.section  { padding: var(--space-7) 0; }
.section--alt { background: var(--c-surface); }

/* ─── Typographie ────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.section-title  { margin-bottom: var(--space-5); color: var(--c-green-dark); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); flex-wrap: wrap; gap: var(--space-3); }
.section-link   { font-size: .9rem; color: var(--c-orange); font-weight: 600; }
.section-cta    { text-align: center; margin-top: var(--space-6); }

/* ─── Boutons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: .65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary  { background: var(--c-green); color: #fff; }
.btn--primary:hover { background: var(--c-green-dark); text-decoration: none; }
.btn--orange   { background: var(--c-orange); color: #fff; }
.btn--orange:hover { background: var(--c-orange-dark); text-decoration: none; }
.btn--vote     { background: var(--c-orange); color: #fff; font-size: 1rem; padding: .75rem 1.5rem; }
.btn--vote:hover { background: var(--c-orange-dark); transform: translateY(-1px); text-decoration: none; }
.btn--outline  { border: 2px solid var(--c-green); color: var(--c-green); background: transparent; }
.btn--outline:hover { background: var(--c-green-light); text-decoration: none; }
.btn--ghost    { border: 2px solid var(--c-border); color: var(--c-text-2); background: transparent; }
.btn--ghost:hover { background: var(--c-bg); text-decoration: none; }
.btn--sm       { padding: .45rem .9rem; font-size: .85rem; }
.btn--lg       { padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn--block    { width: 100%; }
.btn--hero     { padding: 1rem 2rem; font-size: 1.1rem; border-radius: 50px; background: var(--c-orange); color: #fff; box-shadow: 0 4px 24px rgba(224,123,35,.35); }
.btn--hero:hover { background: var(--c-orange-dark); transform: translateY(-2px); text-decoration: none; }

/* ─── Header / Navigation ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  max-width: var(--container);
  margin: 0 auto;
}
.site-logo img { height: 36px; width: auto; }
.site-nav { display: none; margin-left: auto; }
.site-nav__list { display: flex; gap: var(--space-2); }
.site-nav__link {
  padding: .4rem .75rem;
  border-radius: 6px;
  color: var(--c-text-2);
  font-weight: 500;
  font-size: .93rem;
  transition: color var(--t), background var(--t);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--c-green); background: var(--c-green-light); text-decoration: none; }

.site-header__actions { display: none; gap: var(--space-2); align-items: center; }
.site-header__countdown { display: none; }

/* User menu */
.user-menu { position: relative; }
.user-menu__btn {
  display: flex; align-items: center; gap: var(--space-2);
  padding: .4rem .75rem;
  border-radius: 50px;
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  font-size: .9rem;
}
.user-menu__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.user-menu__dropdown {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--space-2) 0;
  z-index: 200;
}
.user-menu__dropdown[data-open] { display: block; }
.user-menu__dropdown li a {
  display: block;
  padding: .55rem var(--space-4);
  color: var(--c-text);
  font-size: .9rem;
}
.user-menu__dropdown li a:hover { background: var(--c-bg); text-decoration: none; }
.user-menu__dropdown [role="separator"] { border-top: 1px solid var(--c-border); margin: var(--space-2) 0; }
.menu__logout { color: var(--c-red) !important; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: var(--space-2); margin-left: auto;
}
.hamburger__bar {
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Nav overlay ─────────────────────────────────────────────────── */
.mobile-nav { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.mobile-nav.is-open { pointer-events: all; }
.mobile-nav__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity var(--t);
}
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: var(--c-white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open .mobile-nav__panel { transform: none; }

.mobile-nav__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav__close { font-size: 1.2rem; color: var(--c-text-2); padding: var(--space-2); }
.mobile-nav__user {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4);
  background: var(--c-green-light);
}
.mobile-nav__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
}
.mobile-nav__list { padding: var(--space-3) 0; }
.mobile-nav__list li a {
  display: flex; align-items: center;
  padding: .75rem var(--space-5);
  color: var(--c-text);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-nav__list li a:hover { background: var(--c-bg); text-decoration: none; }
.mobile-nav__divider { border-top: 1px solid var(--c-border); margin: var(--space-2) 0; }
.mobile-nav__auth { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.mobile-nav__logout { color: var(--c-red) !important; }
.mobile-nav__countdown {
  margin: var(--space-4);
  padding: var(--space-4);
  background: var(--c-green);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
}

/* ─── Countdown ──────────────────────────────────────────────────────────── */
.countdown__label { font-size: .8rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--space-2); }
.countdown__digits { display: flex; align-items: center; gap: var(--space-2); justify-content: center; }
.countdown__block  { display: flex; flex-direction: column; align-items: center; }
.countdown__num    { font-family: var(--f-title); font-size: 1.8rem; font-weight: 700; line-height: 1; min-width: 2.2ch; text-align: center; }
.countdown__block small { font-size: .65rem; text-transform: uppercase; opacity: .8; }
.countdown__sep { font-size: 1.4rem; font-weight: 700; opacity: .6; align-self: flex-start; padding-top: .1rem; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--hero-bg, var(--c-green-dark)) center/cover no-repeat;
  position: relative;
  min-height: 320px;
  display: flex; align-items: center;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,40,20,.85) 0%, rgba(10,40,20,.55) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-7) var(--space-4);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
}
.hero__season {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  background: rgba(255,255,255,.15); padding: .25rem .75rem; border-radius: 50px;
}
.hero__title {
  font-family: var(--f-title);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}
.hero__countdown { background: rgba(255,255,255,.15); padding: var(--space-4); border-radius: var(--radius); backdrop-filter: blur(8px); }
.hero__countdown .countdown__num { font-size: 2.2rem; }

/* ─── Stats band ─────────────────────────────────────────────────────────── */
.stats-band { background: var(--c-green); color: #fff; padding: var(--space-5) 0; }
.stats-band__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.stat-card { text-align: center; padding: var(--space-4); }
.stat-card--featured { background: rgba(255,255,255,.15); border-radius: var(--radius); }
.stat-card__label { display: block; font-size: .85rem; opacity: .8; margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: .05em; }
.stat-card__value { display: block; font-family: var(--f-title); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
.stat-card small  { display: block; font-size: .8rem; opacity: .7; margin-top: var(--space-1); }

/* ─── Home grid ──────────────────────────────────────────────────────────── */
.home-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }

/* ─── Projet cards ───────────────────────────────────────────────────────── */
.projets-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-3);
  scrollbar-width: thin;
}
.projets-scroll > * { scroll-snap-align: start; flex: 0 0 280px; }
.projets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.projet-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.projet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.projet-card__img { position: relative; height: 180px; overflow: hidden; background: var(--c-green-light); }
.projet-card__img img { width: 100%; height: 100%; object-fit: cover; }
.projet-card__img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.5rem; }
.projet-card__rank { position: absolute; top: var(--space-3); left: var(--space-3); font-size: 1.5rem; }
.projet-card__rang { position: absolute; top: var(--space-3); right: var(--space-3); background: rgba(0,0,0,.5); color: #fff; padding: .2rem .5rem; border-radius: 4px; font-size: .8rem; font-weight: 700; }
.projet-card__cat  { position: absolute; bottom: var(--space-3); left: var(--space-3); background: var(--c-green); color: #fff; padding: .2rem .6rem; border-radius: 50px; font-size: .75rem; }
.projet-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.projet-card__titre { font-family: var(--f-title); font-weight: 700; color: var(--c-text); font-size: 1rem; line-height: 1.3; }
.projet-card__titre:hover { color: var(--c-green); text-decoration: none; }
.projet-card__localite { font-size: .8rem; color: var(--c-text-3); }
.projet-card__desc { font-size: .88rem; color: var(--c-text-2); line-height: 1.5; }
.projet-card__vote-count { display: flex; align-items: center; gap: var(--space-1); font-size: .85rem; color: var(--c-orange); font-weight: 600; }
.projet-card__vote-row { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-2); }
.projet-card__montant { font-size: .82rem; color: var(--c-text-3); }
.projet-card__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ─── Progress bars ──────────────────────────────────────────────────────── */
.progress { background: var(--c-border); border-radius: 50px; overflow: hidden; height: 6px; }
.progress--lg { height: 12px; }
.progress--sm { height: 4px; }
.progress__bar { height: 100%; background: var(--c-orange); border-radius: 50px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.progress__bar--orange { background: var(--c-orange); }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--success   { background: #d4edda; color: #1a5c38; }
.badge--warning   { background: #fff3cd; color: #856404; }
.badge--error     { background: var(--c-red-light); color: var(--c-red); }
.badge--info      { background: var(--c-blue-light); color: var(--c-blue); }
.badge--orange    { background: var(--c-orange-light); color: var(--c-orange-dark); }
.badge--green     { background: var(--c-green-light); color: var(--c-green-dark); }
.badge--category  { background: var(--c-green-light); color: var(--c-green); }
.badge--domain    { background: var(--c-blue-light); color: var(--c-blue); }
.badge--sm        { font-size: .7rem; padding: .15rem .5rem; }
.badge--valide    { background: var(--c-blue-light); color: var(--c-blue); }
.badge--gagnant   { background: #fff3cd; color: var(--c-gold); }
.badge--finance   { background: #d4edda; color: var(--c-green-dark); }
.badge--soumis    { background: var(--c-bg); color: var(--c-text-2); }
.badge--rejete    { background: var(--c-red-light); color: var(--c-red); }
.badge--vote   { background: #e6f0ff; color: var(--c-blue); }
.badge--deliberation { background: #fff3cd; color: var(--c-gold); }
.badge--type-journalier   { background: #e6f0ff; color: var(--c-blue); }
.badge--type-hebdomadaire { background: var(--c-green-light); color: var(--c-green-dark); }
.badge--type-mensuel      { background: var(--c-orange-light); color: var(--c-orange-dark); }
.badge--type-financier    { background: #f0e6ff; color: #6b21a8; }
.badge--type-special      { background: #fff3cd; color: var(--c-gold); }

/* ─── Widgets sidebar ────────────────────────────────────────────────────── */
.widget { background: var(--c-surface); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); margin-bottom: var(--space-4); }
.widget__title { font-family: var(--f-title); font-size: 1rem; color: var(--c-green-dark); margin-bottom: var(--space-4); font-weight: 700; }
.widget--gagnant { border: 2px solid var(--c-gold); }
.widget__img { width: 100%; border-radius: var(--radius); margin-bottom: var(--space-3); aspect-ratio: 16/9; object-fit: cover; }
.widget__projet-titre { font-weight: 700; display: block; margin-bottom: var(--space-2); }
.widget__montant { font-size: .9rem; color: var(--c-text-2); margin-bottom: var(--space-3); }
.widget__link { display: block; margin-top: var(--space-3); font-size: .85rem; color: var(--c-orange); font-weight: 600; }
.widget__empty { font-size: .9rem; color: var(--c-text-3); }

/* Classement mini */
.classement-mini { display: flex; flex-direction: column; gap: var(--space-2); }
.classement-mini__item { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--c-border); }
.classement-mini__item:last-child { border-bottom: none; }
.classement-mini__rang { font-weight: 700; font-size: .85rem; min-width: 1.5rem; }
.classement-mini__item--1 .classement-mini__rang { color: var(--c-gold); }
.classement-mini__item--2 .classement-mini__rang { color: #9da0a0; }
.classement-mini__item--3 .classement-mini__rang { color: #c17f3c; }
.classement-mini__titre { font-size: .88rem; font-weight: 600; flex: 1; color: var(--c-text); }
.classement-mini__votes { font-size: .78rem; color: var(--c-text-3); }

/* ─── Formulaires ────────────────────────────────────────────────────────── */
.form-group     { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.form-label     { font-size: .9rem; font-weight: 600; color: var(--c-text); }
.form-label-row { display: flex; justify-content: space-between; align-items: center; }
.form-label-link { font-size: .85rem; color: var(--c-orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-control {
  padding: .7rem var(--space-3);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text);
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(26,92,56,.12); }
.form-control--error { border-color: var(--c-red); }
.form-control--error:focus { box-shadow: 0 0 0 3px rgba(217,55,63,.12); }
.form-control--textarea { resize: vertical; min-height: 100px; }
.form-error  { font-size: .82rem; color: var(--c-red); }
.form-hint   { font-size: .82rem; color: var(--c-text-3); }
.form-cgu    { font-size: .85rem; color: var(--c-text-2); text-align: center; margin-bottom: var(--space-4); }
.req { color: var(--c-red); }
.form-fieldset { border: 1.5px solid var(--c-border); border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-5); }
.form-fieldset legend { padding: 0 var(--space-2); font-weight: 700; font-size: .95rem; color: var(--c-green); }
.form-compact .form-group { margin-bottom: var(--space-3); }

/* Password toggle */
.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 3rem; }
.input-password-toggle {
  position: absolute; right: var(--space-3); top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-3); font-size: .9rem;
  padding: var(--space-2);
}

/* File upload */
.file-upload__input { position: absolute; opacity: 0; width: 0; height: 0; }
.file-upload__label {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4);
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  cursor: pointer; color: var(--c-text-2);
  transition: border-color var(--t), background var(--t);
}
.file-upload__label:hover { border-color: var(--c-green); background: var(--c-green-light); }
.file-upload__icon { font-size: 1.5rem; }
.file-upload__preview img { max-height: 120px; border-radius: var(--radius); margin-top: var(--space-3); }
.char-count { text-align: right; }

/* ─── Auth pages ─────────────────────────────────────────────────────────── */
.auth-page main { background: var(--c-bg); }
.auth-container {
  min-height: calc(100dvh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5) var(--space-4);
}
.auth-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-card__logo { display: block; margin-bottom: var(--space-5); }
.auth-card__title { font-family: var(--f-title); font-size: 1.6rem; color: var(--c-green-dark); margin-bottom: var(--space-2); }
.auth-card__sub   { font-size: .92rem; color: var(--c-text-2); margin-bottom: var(--space-5); }
.auth-card__footer { text-align: center; font-size: .9rem; color: var(--c-text-2); margin-top: var(--space-4); }

/* ─── Alertes / Flash ────────────────────────────────────────────────────── */
.flash-container { position: fixed; top: var(--space-4); right: var(--space-4); z-index: 999; display: flex; flex-direction: column; gap: var(--space-2); max-width: 380px; }
.flash {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: .92rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }
.flash--success { background: #d4edda; color: #1a5c38; border-left: 4px solid var(--c-green); }
.flash--error   { background: var(--c-red-light); color: var(--c-red); border-left: 4px solid var(--c-red); }
.flash--info    { background: var(--c-blue-light); color: var(--c-blue); border-left: 4px solid var(--c-blue); }
.flash span     { flex: 1; }
.flash__close   { font-size: .8rem; opacity: .6; flex-shrink: 0; }

.alert { padding: var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-4); font-size: .92rem; }
.alert--success { background: #d4edda; color: #1a5c38; }
.alert--error   { background: var(--c-red-light); color: var(--c-red); }
.alert--warning { background: #fff3cd; color: #856404; }
.alert--info    { background: var(--c-blue-light); color: var(--c-blue); }

/* ─── Page header ────────────────────────────────────────────────────────── */
.page-header { padding: var(--space-6) 0; color: var(--c-white); }
.page-header--green  { background: var(--c-green); }
.page-header--dark   { background: var(--c-green-dark); }
.page-header--orange { background: var(--c-orange-dark); }
.page-header--light  { background: var(--c-surface); color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.page-header__eyebrow { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-bottom: var(--space-2); }
.page-header__title { font-family: var(--f-title); font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; }
.page-header__sub   { font-size: .95rem; opacity: .85; margin-top: var(--space-2); }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  padding-top: var(--space-4); padding-bottom: var(--space-4);
  font-size: .85rem; color: var(--c-text-3);
}
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-green); }
.breadcrumb span[aria-current] { color: var(--c-text); font-weight: 600; }

/* ─── Commentaires ───────────────────────────────────────────────────────── */
.commentaires-list { display: flex; flex-direction: column; gap: var(--space-4); }
.commentaire-item  { display: flex; gap: var(--space-3); }
.commentaire-item__avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; background: var(--c-green);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}
.commentaire-item__body { flex: 1; }
.commentaire-item__meta { display: flex; gap: var(--space-3); align-items: baseline; margin-bottom: var(--space-1); }
.commentaire-item__meta strong { font-size: .9rem; }
.commentaire-item__meta time { font-size: .78rem; color: var(--c-text-3); }
.commentaire-item__texte { font-size: .9rem; color: var(--c-text-2); }
.commentaire-item__projet { font-size: .8rem; color: var(--c-text-3); }

/* ─── Sticky CTA ─────────────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.sticky-cta p { font-size: .9rem; font-weight: 600; color: var(--c-text); }
.sticky-cta__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.sticky-vote { position: fixed; bottom: 0; left: 0; right: 0; padding: var(--space-3) var(--space-4); background: var(--c-white); border-top: 1px solid var(--c-border); z-index: 90; box-shadow: 0 -4px 20px rgba(0,0,0,.08); }

/* ─── Voter page ─────────────────────────────────────────────────────────── */
.voter-projet-card { display: flex; align-items: center; gap: var(--space-4); background: var(--c-green-light); padding: var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-5); }
.voter-projet-card__img { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.voter-projet-card__label { font-size: .8rem; color: var(--c-text-3); }
.voter-projet-card__titre { font-weight: 700; color: var(--c-green-dark); }
.voter-montant { text-align: center; padding: var(--space-5); background: var(--c-bg); border-radius: var(--radius); margin-bottom: var(--space-5); }
.voter-montant__label { display: block; font-size: .85rem; color: var(--c-text-3); margin-bottom: var(--space-2); }
.voter-montant__prix  { display: block; font-family: var(--f-title); font-size: 2.2rem; font-weight: 700; color: var(--c-green); }
.voter-securite { text-align: center; font-size: .82rem; color: var(--c-text-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--c-border); }
.payment-methods__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-3); }
.payment-method-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.payment-method-card { position: relative; cursor: pointer; }
.payment-method-card__inner {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--t);
}
.payment-method-card input:checked + .payment-method-card__inner { border-color: var(--c-green); background: var(--c-green-light); }
.payment-method-card__icone { font-size: 1.6rem; }
.payment-method-card strong { font-size: .85rem; }
.payment-method-card small  { font-size: .75rem; color: var(--c-text-3); }
.voter-confirm { margin-top: var(--space-5); }
.voter-confirm__recap { background: var(--c-bg); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: .9rem; color: var(--c-text-2); margin-bottom: var(--space-4); }
.vote-status-result { margin-top: var(--space-4); padding: var(--space-3); border-radius: var(--radius); font-size: .9rem; text-align: center; }
.voter-result { margin-top: var(--space-4); min-height: var(--space-5); text-align: center; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); flex-wrap: wrap; }
.pagination__btn {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1.5px solid var(--c-border);
  color: var(--c-text-2);
  font-size: .9rem;
  transition: all var(--t);
}
.pagination__btn:hover { border-color: var(--c-green); color: var(--c-green); text-decoration: none; }
.pagination__btn--active { background: var(--c-green); color: #fff; border-color: var(--c-green); }
.pagination__dots { color: var(--c-text-3); padding: 0 var(--space-1); }

/* ─── Empty states ───────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: var(--space-7) var(--space-5); color: var(--c-text-2); }
.empty-state--page { padding: var(--space-8) var(--space-5); }
.empty-state__icon { font-size: 3rem; display: block; margin-bottom: var(--space-4); }
.empty-state p { margin-bottom: var(--space-5); }
.empty-state-inline { font-size: .9rem; color: var(--c-text-3); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--c-green-dark); color: rgba(255,255,255,.85); margin-top: auto; }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-7) var(--space-4);
  display: grid; grid-template-columns: 1fr; gap: var(--space-6);
}
.site-footer__brand img { filter: brightness(0) invert(1); opacity: .9; margin-bottom: var(--space-3); }
.site-footer__brand p   { font-size: .9rem; opacity: .7; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.site-footer__col strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: var(--space-3); }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__col ul a { font-size: .88rem; color: rgba(255,255,255,.75); }
.site-footer__col ul a:hover { color: #fff; text-decoration: none; }
.site-footer__contact { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__contact strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); }
.site-footer__contact a { font-size: .88rem; color: rgba(255,255,255,.75); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--space-4);
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--space-2);
  font-size: .82rem; color: rgba(255,255,255,.5);
  text-align: center;
}

/* ─── Error page ─────────────────────────────────────────────────────────── */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page__inner { text-align: center; padding: var(--space-7) var(--space-4); }
.error-page__code { font-family: var(--f-title); font-size: clamp(5rem, 20vw, 8rem); font-weight: 900; color: var(--c-border); line-height: 1; }
.error-page__title { font-family: var(--f-title); font-size: 1.8rem; color: var(--c-green-dark); margin-bottom: var(--space-3); }
.error-page__desc  { color: var(--c-text-2); margin-bottom: var(--space-6); }
.error-page__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ─── Filtres ────────────────────────────────────────────────────────────── */
.filtres { background: var(--c-surface); border-radius: var(--radius); padding: var(--space-4); margin-bottom: var(--space-5); box-shadow: var(--shadow); }
.filtres__inner { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.filtres__select { padding: .5rem var(--space-3); border: 1.5px solid var(--c-border); border-radius: var(--radius); background: var(--c-white); font-size: .9rem; color: var(--c-text); }
.filtres__tri { display: flex; border: 1.5px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.filtres__tri-btn { padding: .45rem .85rem; font-size: .85rem; color: var(--c-text-2); transition: all var(--t); }
.filtres__tri-btn--active { background: var(--c-green); color: #fff; }
.filtres__actifs { margin-top: var(--space-3); display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--c-text-3); }
.filtre-tag { background: var(--c-border); padding: .2rem .65rem; border-radius: 50px; font-size: .8rem; color: var(--c-text-2); }
.filtre-pill { padding: .35rem .85rem; border-radius: 50px; font-size: .85rem; border: 1.5px solid var(--c-border); color: var(--c-text-2); transition: all var(--t); }
.filtre-pill--active { background: var(--c-green); color: #fff; border-color: var(--c-green); }

/* ─── Notif badge ────────────────────────────────────────────────────────── */
.notif__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--c-red); color: #fff;
  border-radius: 50%; font-size: .7rem; font-weight: 700;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .stats-band__grid { grid-template-columns: repeat(3, 1fr); }
  .projets-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .site-nav, .site-header__actions, .site-header__countdown { display: flex; }
  .hamburger { display: none; }
  .home-grid { grid-template-columns: 1fr 320px; }
  .projets-scroll { overflow: visible; flex-wrap: wrap; }
  .projets-scroll > * { flex: 1 1 280px; }
  .site-footer__inner { grid-template-columns: 220px 1fr 160px; }
  .site-footer__nav   { grid-template-columns: repeat(3, 1fr); }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .projets-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { gap: var(--space-5); }
}