/* ==========================================================================
   Variables & reset
   ========================================================================== */
:root {
  --color-primary: #1b5e63;
  --color-primary-dark: #123f43;
  --color-primary-light: #e6f2f2;
  --color-accent: #a35f21;
  --color-accent-dark: #8a4d1a;
  --color-text: #1f2a2b;
  --color-text-muted: #4a5859;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8f7;
  --color-border: #d8e2e1;
  --color-success-bg: #e7f5ea;
  --color-success-text: #1e5c2b;
  --color-error: #a3271b;
  --font-base: "Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
  --radius: 10px;
  --focus-ring: 3px solid #0b6ea8;
}

* { box-sizing: border-box; }

html {
  font-size: 19px; /* base plus grande pour lisibilité senior */
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Empêche Safari iOS d'agrandir automatiquement le texte au passage en
     mode paysage, ce qui désynchroniserait les tailles de police. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Confort tactile iOS/Android : pas de flash gris/bleu au toucher (on garde
   un retour visuel volontaire via :active/:hover à la place), et suppression
   du délai de 300 ms avant qu'un tap ne déclenche son action. */
a, button, .btn, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: #f4f8f7;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(27, 94, 99, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(201, 120, 47, 0.1) 0%, transparent 38%),
    radial-gradient(circle at 20% 88%, rgba(201, 120, 47, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 84% 92%, rgba(27, 94, 99, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: bg-drift 45s ease-in-out infinite alternate;
  line-height: 1.65;
}

@keyframes bg-drift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@media (max-width: 900px) {
  /* Les arrière-plans "fixed" posent problème sur mobile (rendu et
     performance) : on passe en défilement normal. */
  body { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  color: var(--color-primary-dark);
  line-height: 1.3;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; line-height: 1.2; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.15rem; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Mise en page générale / barre latérale
   ========================================================================== */
.app-shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.site-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: opacity 0.2s ease;
}
.logo:hover { color: var(--color-primary-dark); opacity: 0.85; }

.logo svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(18, 63, 67, 0.18));
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #047857;
  box-shadow: 0 2px 5px rgba(4, 120, 87, 0.35);
}
.logo-badge svg { filter: none; }

/* Traduction automatique : menu déroulant personnalisé avec vrais drapeaux (flagcdn.com),
   moteur de traduction Google Translate. */

/* Le widget Google natif reste dans le DOM (nécessaire au moteur de traduction)
   mais invisible : c'est notre menu déroulant qui sert d'interface. */
.translate-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lang-dropdown {
  position: relative;
  margin-bottom: 1.5rem;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.6rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}
.lang-dropdown-toggle:focus,
.lang-dropdown-toggle[aria-expanded="true"] {
  border-color: var(--color-primary);
}

.lang-caret {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-dropdown-list {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  z-index: 200;
}
.lang-dropdown-list[hidden] {
  display: none;
}

.lang-dropdown-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-text);
}
.lang-dropdown-list li:hover,
.lang-dropdown-list li[aria-selected="true"] {
  background: var(--color-primary-light);
}

/* Empêche le bandeau injecté par Google de décaler la mise en page */
body { top: 0 !important; position: static !important; }
.goog-te-banner-frame { display: none !important; }

@media (max-width: 900px) {
  .lang-dropdown { margin-bottom: 0; width: 220px; margin-right: 0.75rem; }
  /* Sur mobile, la barre latérale n'est plus en position sticky et perd son
     contexte d'empilement : la liste passe donc en position fixe (calculée en
     JS) pour être garantie au-dessus du reste du contenu (ex. la photo du hero). */
  .lang-dropdown-list {
    position: fixed;
    z-index: 300;
  }
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 0.8rem;
  border-left: 4px solid transparent;
  border-radius: 0 8px 8px 0;
}

.main-nav a:hover {
  color: var(--color-primary-dark);
  border-left-color: var(--color-accent);
  background: var(--color-primary-light);
}

.main-nav a[aria-current="page"] {
  background: var(--color-primary);
  color: #fff;
  border-left: none;
  border-radius: 8px;
}

.nav-cta {
  margin-top: 1rem;
  background: var(--color-accent) !important;
  color: #fff !important;
  text-align: center;
  border-radius: 999px;
  border-left: none !important;
}
.nav-cta:hover { background: var(--color-accent-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
}

.site-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .site-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .site-content {
    width: 100%;
  }
  .sidebar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 1.5rem;
  }
  .logo { margin-bottom: 0; margin-right: auto; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
    gap: 0.25rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { border-left: none; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-left: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-photo {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: url('../images/aide-quotidien.jpg') center / cover no-repeat;
}

.hero-photo-overlay {
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(18,63,67,0.85) 0%, rgba(18,63,67,0.45) 55%, rgba(18,63,67,0.1) 100%);
}

.hero-card-dark {
  background: rgba(18, 63, 67, 0.82);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  animation: hero-in 0.8s ease both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card-dark h1 {
  color: #fff;
  font-size: 2rem;
}

.hero-card-dark p {
  color: #e4f0ef;
  font-size: 1.1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 1rem;
  color: #fff;
}

.hero-banner {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
  padding: 1.25rem 1.5rem;
}

.hero-banner p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Bouton retour en haut */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  /* + env(safe-area-inset-bottom) : reste au-dessus de la barre de geste sur
     iPhone récents, sans effet sur les appareils qui ne la définissent pas. */
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 150;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-primary-dark);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.01s, visibility 0.01s; }
  .hero-card-dark { animation: none; }
  .card, .step-card { transition: none; }
}

@media (max-width: 780px) {
  .hero-photo, .hero-photo-overlay { min-height: 420px; }
  .hero-card-dark { max-width: 100%; padding: 1.75rem; }
  .hero-card-dark h1 { font-size: 1.6rem; }
  .hero-banner p { font-size: 1rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.hero-card-dark .btn-primary {
  box-shadow: 0 0 0 0 rgba(163, 95, 33, 0.55);
  animation: cta-pulse 2.6s ease-in-out infinite;
}
.hero-card-dark .btn-primary:hover { animation: none; }

@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(163, 95, 33, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(163, 95, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 95, 33, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-dark .btn-primary { animation: none; }
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary-dark);
}
.btn-outline:hover { background: var(--color-primary-light); }

.btn-block { display: block; width: 100%; }

/* ==========================================================================
   Sections génériques
   ========================================================================== */
section { padding: 3.5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header {
  max-width: 65ch;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header p { color: var(--color-text-muted); font-size: 1.1rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: 0 2px 10px rgba(18, 63, 67, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(18, 63, 67, 0.1);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Cards grid (avantages / critères) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: 0 2px 10px rgba(18, 63, 67, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(18, 63, 67, 0.1);
}

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.card-amount {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 780px) { .stats { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(18, 63, 67, 0.06);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease;
}
.stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stat-card:nth-child(2) { transition-delay: 0.12s; }
.stat-card:nth-child(3) { transition-delay: 0.24s; }
.stat-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-light);
  font-size: 1.6rem;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 0.35rem;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .stat-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Animations au défilement */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cards-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.photo-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.photo-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.photo-card {
  margin: 0;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-border));
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-primary);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.photo-card figcaption {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

/* Témoignages (carrousel) */
.testimonial-carousel {
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-viewport {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: 0 2px 10px rgba(18, 63, 67, 0.06);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  color: var(--color-primary-dark);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.carousel-btn:hover {
  background: var(--color-primary-light);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--color-primary);
}

.testimonial-card blockquote {
  position: relative;
  margin: 0;
  padding-left: 2.25rem;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.6;
}
.testimonial-card blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.4rem;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.35;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.testimonial-card figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Callout / CTA band */
.cta-band {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 2.5rem;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--color-accent-dark); }
.cta-band .btn-primary:hover { background: #f3e6da; }

/* ==========================================================================
   Formulaire
   ========================================================================== */
.form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 0 2px 10px rgba(18, 63, 67, 0.06);
  max-width: 760px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.4rem; }
.form-field.full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.required-mark { color: var(--color-error); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
}

textarea { resize: vertical; min-height: 120px; }

.field-hint {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.field-error {
  color: var(--color-error);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: none;
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: var(--color-error);
}
.form-field.invalid .field-error { display: block; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.checkbox-field input { width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; flex-shrink: 0; }
.checkbox-field label { font-weight: 400; margin-bottom: 0; }

/* Honeypot anti-spam field (masqué visuellement, accessible aux robots seulement) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  display: none;
}
.form-status.success {
  display: block;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 2px solid #bfe4c8;
  animation: status-in 0.35s ease;
}
.form-status.success::before {
  content: "\2705\00A0";
}
@media (prefers-reduced-motion: reduce) {
  .form-status.success { animation: none; }
}
@keyframes status-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-status.error {
  display: block;
  background: #fbeceb;
  color: var(--color-error);
}

/* ==========================================================================
   FAQ (details/summary)
   ========================================================================== */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.25rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--color-bg);
  box-shadow: 0 2px 10px rgba(18, 63, 67, 0.06);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  font-size: 1.4rem;
  color: var(--color-accent);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--color-primary); }
.faq-item p {
  padding-bottom: 1rem;
  color: var(--color-text-muted);
  animation: faq-open 0.25s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item p { animation: none; }
}

/* ==========================================================================
   Table (mentions / usage des dons)
   ========================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
th { background: var(--color-bg-alt); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #d7e6e5;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.site-footer a { color: #d7e6e5; }
.site-footer a:hover { color: #fff; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* ==========================================================================
   Pages internes (contenu long)
   ========================================================================== */
.page-hero {
  background: var(--color-primary-light);
  padding: 2.75rem 0;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.breadcrumb {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: underline; }

.prose { max-width: 75ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.alert {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.alert-info {
  background: var(--color-primary-light);
  border: 1px solid #bcdad9;
}
.alert-warning {
  background: #fdf3e3;
  border: 1px solid #f0d9a6;
  color: #6b4b0f;
}
