/* ==========================================================================
   Le Droit du Consommateur — Feuille de style principale
   Site de l'association Le Droit du Consommateur
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --navy: #1B3A6B;
  --navy-dark: #152d55;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --cream: #F7F3EE;
  --burgundy: #8B1A2F;
  --burgundy-dark: #6d1424;
  --text-gray: #4A5568;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 12px;
  --radius-sm: 6px;
}

/* --- Reset & base --------------------------------------------------------*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-gray);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0; }

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
}
@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
}

.section { padding: 6rem 0; }
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Eyebrow label with gold divider, used above section titles */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.eyebrow-line { width: 40px; height: 3px; background: var(--gold); border-radius: 2px; }
.eyebrow-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--burgundy); color: var(--white); box-shadow: 0 4px 20px rgba(139,26,47,0.35); }
.btn-primary:hover { background: var(--burgundy-dark); }

.btn-outline { background: rgba(247,243,238,0.1); color: var(--cream); border: 1.5px solid rgba(247,243,238,0.4); }
.btn-outline:hover { background: rgba(247,243,238,0.18); }

.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 16px rgba(201,168,76,0.4); }
.btn-gold:hover { background: #b8943e; }

.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-dark); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
}

/* On the homepage, the header starts transparent (over the hero photo)
   and becomes solid once the page is scrolled — handled by main.js
   toggling this class. On every other page there is no hero photo behind
   the header, so it is solid from the start (see body.subpage below). */
.site-header.is-solid,
body.subpage .site-header {
  background: rgba(255,252,248,0.96);
  box-shadow: 0 2px 20px rgba(27,58,107,0.10);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.brand-tagline { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Default (transparent) state text colors — overridden by .is-solid below */
.site-header:not(.is-solid) .brand-name { color: var(--cream); text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.site-header:not(.is-solid) .brand-tagline { color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.site-header.is-solid .brand-name, body.subpage .site-header .brand-name { color: var(--navy); text-shadow: none; }
.site-header.is-solid .brand-tagline, body.subpage .site-header .brand-tagline { color: var(--gold); text-shadow: none; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.site-header:not(.is-solid) .main-nav a { color: rgba(255,255,255,0.92); text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.site-header:not(.is-solid) .main-nav a:hover { background: rgba(255,255,255,0.15); }
.site-header.is-solid .main-nav a, body.subpage .site-header .main-nav a { color: var(--navy); }
.site-header.is-solid .main-nav a:hover, body.subpage .site-header .main-nav a:hover { background: rgba(27,58,107,0.08); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(27,58,107,0.15);
    padding: 0.5rem;
  }
  .main-nav.is-open { display: flex; animation: slideDown 0.3s ease-out; }
  .site-header .main-nav a,
  .site-header.is-solid .main-nav a { color: var(--navy) !important; padding: 0.9rem 1rem; text-shadow: none !important; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: transparent;
  }
  .nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .site-header:not(.is-solid) .nav-toggle { color: var(--cream); }
  .site-header.is-solid .nav-toggle,
  body.subpage .nav-toggle { color: var(--navy); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/president-oualid_072131d6.jpg');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(27,58,107,0.95) 0%, rgba(27,58,107,0.88) 45%, rgba(27,58,107,0.55) 70%, rgba(27,58,107,0.3) 100%);
}
.hero-gold-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
@media (max-width: 992px) { .hero-gold-line { display: none; } }

.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 8rem 0 4rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--gold); }

.hero-lead { font-size: 1.2rem; color: rgba(247,243,238,0.9); margin-bottom: 1rem; }
.hero-lead strong { color: var(--cream); }
.hero-sub { color: rgba(247,243,238,0.7); margin-bottom: 2.5rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-stat { display: flex; align-items: center; gap: 0.75rem; }
.hero-stat-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.hero-stat-label { font-size: 0.9rem; font-weight: 600; color: var(--cream); }
.hero-stat-sub { font-size: 0.75rem; color: rgba(247,243,238,0.6); }

.hero-scroll-hint {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 3rem;
  color: rgba(247,243,238,0.6);
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.hero-scroll-hint svg { animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; z-index: 1; }

/* ==========================================================================
   Association section
   ========================================================================== */
.association { background: var(--cream); }
.association-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 3rem; align-items: start; margin-bottom: 4rem; }
@media (max-width: 900px) { .association-grid { grid-template-columns: 1fr; } }

.association-outer { display: flex; align-items: stretch; gap: 1.5rem; }
.association-outer > .association-grid { flex: 1; margin-bottom: 4rem; }
.association-spine {
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 0.25rem;
  width: 20px;
  flex-shrink: 0;
}
@media (min-width: 1100px) { .association-spine { display: flex; } }
.association-spine-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(201,168,76,0.1) 100%);
}
.association-spine-text {
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.association h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); line-height: 1.2; margin-bottom: 2rem; }
.association h2 em { font-style: italic; color: var(--burgundy); }

.pull-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--burgundy);
  background: rgba(139,26,47,0.04);
  border-radius: 0 8px 8px 0;
}
.pull-quote p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--navy); margin: 0 0 0.75rem; }
.pull-quote-attr { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--burgundy); }
.pull-quote-attr .rule { width: 30px; height: 2px; background: var(--gold); }

.legal-card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 48px rgba(27,58,107,0.18); }
.legal-card-body { background: var(--navy); padding: 1.5rem; }
.legal-card-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.legal-card dl { margin: 0; }
.legal-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(201,168,76,0.15); }
.legal-row:last-child { border-bottom: none; }
.legal-row dt { font-size: 0.85rem; color: rgba(247,243,238,0.6); margin: 0; }
.legal-row dd { font-size: 0.85rem; font-weight: 600; color: var(--cream); margin: 0; text-align: right; }
.legal-card img { width: 100%; height: 160px; object-fit: cover; }

.divider-label {
  display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem;
}
.divider-label .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,168,76,0.5), transparent); }
.divider-label .line.reverse { background: linear-gradient(270deg, rgba(201,168,76,0.5), transparent); }
.divider-label span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

.domains-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 700px) { .domains-grid { grid-template-columns: 1fr; } }
.domain-card {
  display: flex; gap: 1.25rem; padding: 1.5rem;
  background: var(--white); border-radius: var(--radius);
  border-left: 4px solid var(--burgundy);
  box-shadow: 0 4px 20px rgba(27,58,107,0.07);
}
.domain-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(27,58,107,0.06); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.domain-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.domain-card h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.domain-card p { font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--white); }
.services-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: end; margin-bottom: 3.5rem; }
@media (max-width: 850px) { .services-head { grid-template-columns: 1fr; } }
.services-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); line-height: 1.2; }
.services-head h2 em { font-style: italic; color: var(--burgundy); }
.services-note { padding: 1.25rem; border-radius: var(--radius); background: var(--cream); border-left: 4px solid var(--gold); }
.services-note p { margin: 0; }

.service-row {
  display: grid; grid-template-columns: 70px 1fr 1.15fr;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem;
  background: var(--white); border: 1px solid rgba(27,58,107,0.07);
  box-shadow: 0 2px 16px rgba(27,58,107,0.07);
}
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr; } }
.service-num-col { display: flex; align-items: center; justify-content: center; }
.service-num-col span { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; opacity: 0.4; }
.service-main { padding: 1.5rem; }
.service-main-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.service-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.service-main h3 { font-size: 1.2rem; }
.service-main p { font-size: 0.9rem; margin: 0; }
.service-points { padding: 1.5rem; background: rgba(247,243,238,0.5); border-left: 1px solid rgba(27,58,107,0.06); }
.service-points-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.service-points ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
@media (max-width: 500px) { .service-points ul { grid-template-columns: 1fr; } }
.service-points li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8rem; }
.service-points li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; }

.services-cta {
  margin-top: 3rem; padding: 2.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 100%);
  box-shadow: 0 8px 40px rgba(27,58,107,0.25);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.services-cta h3 { color: var(--cream); font-size: 1.5rem; margin-bottom: 0.5rem; }
.services-cta p { color: rgba(247,243,238,0.8); margin: 0; }

/* ==========================================================================
   Values
   ========================================================================== */
.values { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); position: relative; overflow: hidden; }
.values-head { text-align: center; margin-bottom: 3.5rem; }
.values-head .eyebrow { justify-content: center; }
.values-head h2 { color: var(--cream); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.values-head p { max-width: 620px; margin: 0 auto; color: rgba(247,243,238,0.75); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: 1.5rem; border-radius: var(--radius); text-align: center;
  background: rgba(247,243,238,0.06); border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(4px);
}
.value-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.value-card h3 { color: var(--cream); font-size: 1.1rem; margin-bottom: 0.75rem; }
.value-card p { font-size: 0.9rem; color: rgba(247,243,238,0.7); margin: 0; }

.values-quote {
  max-width: 700px; margin: 0 auto; text-align: center;
  padding: 2.5rem; border-radius: var(--radius);
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.25);
}
.values-quote-mark { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold); line-height: 1; margin-bottom: 1rem; }
.values-quote p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--cream); margin-bottom: 1rem; }
.values-quote .rule { width: 40px; height: 2px; background: var(--gold); margin: 0 auto 1rem; }
.values-quote-attr { font-size: 0.9rem; font-weight: 600; color: var(--gold); margin: 0; }

/* ==========================================================================
   Team
   ========================================================================== */
.team { background: var(--cream); }
.team-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; margin-bottom: 4rem; align-items: start; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }

.president-card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 48px rgba(27,58,107,0.18); }
.president-card img { width: 100%; height: 260px; object-fit: cover; }
.president-card-body { background: var(--navy); padding: 1.5rem; }
.president-card-body h3 { color: var(--cream); font-size: 1.4rem; margin-bottom: 0.25rem; }
.president-role { font-size: 0.9rem; font-weight: 600; color: var(--gold); margin-bottom: 0.75rem; }
.president-rule { height: 1px; background: rgba(201,168,76,0.25); margin-bottom: 0.75rem; }
.president-card-body address { font-size: 0.75rem; color: rgba(247,243,238,0.6); font-style: normal; }

.team-content { display: flex; flex-direction: column; gap: 1.5rem; }
.team-mission { padding: 1.75rem; border-radius: var(--radius); background: var(--white); box-shadow: 0 4px 20px rgba(27,58,107,0.07); }
.team-mission h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.team-mission p { margin: 0; }

.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 550px) { .roles-grid { grid-template-columns: 1fr; } }
.role-card { padding: 1.25rem; border-radius: var(--radius); background: var(--white); box-shadow: 0 4px 16px rgba(27,58,107,0.07); border-left: 3px solid var(--burgundy); }
.role-card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.role-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(27,58,107,0.08); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.role-card-head span { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.role-card p { font-size: 0.8rem; margin: 0; }

.public-block { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 32px rgba(27,58,107,0.12); margin-bottom: 4rem; }
.public-side { background: var(--navy); display: flex; align-items: center; padding: 0.75rem 2rem; }
.public-side span { color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.public-main { background: var(--white); padding: 2rem; }
.public-main-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.public-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.public-main h3 { font-size: 1.2rem; }
.public-main p { max-width: 800px; margin: 0; }

.staff-heading { padding-top: 3rem; border-top: 1px solid rgba(27,58,107,0.1); margin-bottom: 2.5rem; }
.staff-heading h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-top: 1rem; }

.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .staff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 32px rgba(27,58,107,0.12); }
.staff-card img { width: 100%; height: 240px; object-fit: cover; }
.staff-card-body { background: var(--white); padding: 1.5rem; }
.staff-role { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.staff-card-body h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.staff-card-body p { font-size: 0.9rem; margin-bottom: 1rem; }
.staff-contact { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.8rem; }
.staff-contact a:hover { color: var(--navy); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { background: var(--cream); }
.gallery-head { max-width: 700px; margin-bottom: 3.5rem; }
.gallery-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1rem; }
.gallery-rule { width: 80px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 1.25rem; }
.gallery-head p { font-size: 1.1rem; margin: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--navy);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem; opacity: 0; transition: opacity 0.25s ease;
  background: linear-gradient(to top, rgba(27,58,107,0.95), rgba(27,58,107,0.5), transparent);
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }
.gallery-caption h3 { color: var(--cream); font-size: 1rem; margin-bottom: 0.25rem; }
.gallery-caption p { color: rgba(247,243,238,0.85); font-size: 0.8rem; margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(21,45,85,0.92);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(900px, 100%); max-height: 80vh; border-radius: var(--radius); }
.lightbox-caption { color: var(--cream); text-align: center; margin-top: 1rem; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(247,243,238,0.15); color: var(--cream); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(247,243,238,0.28); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card { padding: 1.5rem; border-radius: var(--radius); background: var(--navy); color: var(--cream); }
.contact-info-card h3 { color: var(--cream); font-size: 1.1rem; margin-bottom: 1.25rem; }
.contact-info-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(201,168,76,0.15); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.contact-info-value, .contact-info-value a { font-size: 0.85rem; color: rgba(247,243,238,0.7); }
.contact-info-value a:hover { color: var(--cream); }

.contact-note { padding: 1.5rem; border-radius: var(--radius); background: rgba(139,26,47,0.06); border: 1px solid rgba(139,26,47,0.15); }
.contact-note h4 { color: var(--burgundy); font-size: 1rem; margin-bottom: 0.75rem; }
.contact-note p { font-size: 0.9rem; margin: 0; }

.legal-mini { padding: 1.5rem; border-radius: var(--radius); background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); }
.legal-mini h4 { font-size: 1rem; margin-bottom: 0.75rem; }
.legal-mini ul { list-style: none; margin: 0; padding: 0; font-size: 0.8rem; display: flex; flex-direction: column; gap: 0.35rem; }

.contact-form {
  padding: 2rem; border-radius: var(--radius);
  background: var(--cream); box-shadow: 0 4px 32px rgba(27,58,107,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(27,58,107,0.15); background: var(--white);
  color: var(--navy); font-family: var(--font-body); font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }

.form-disclaimer {
  display: flex; gap: 0.75rem; padding: 1rem; border-radius: var(--radius-sm);
  background: rgba(27,58,107,0.06); border: 1px solid rgba(27,58,107,0.1);
  font-size: 0.75rem; margin-bottom: 1.5rem;
}

.form-submit { width: 100%; padding: 1rem; font-size: 1rem; border-radius: var(--radius); }
.form-submit[disabled] { opacity: 0.6; cursor: wait; }

.form-status { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-status.is-success { display: block; background: rgba(27,58,107,0.08); color: var(--navy); border: 1px solid rgba(27,58,107,0.2); }
.form-status.is-error { display: block; background: rgba(139,26,47,0.08); color: var(--burgundy); border: 1px solid rgba(139,26,47,0.2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--cream); }
.footer-top-line { height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 4rem 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-brand-tagline { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.footer-desc { max-width: 360px; font-size: 0.9rem; color: rgba(247,243,238,0.75); margin-bottom: 1rem; }
.footer-legal-lines { font-size: 0.85rem; color: rgba(247,243,238,0.65); display: flex; flex-direction: column; gap: 0.4rem; }

.footer-col h3 { color: var(--gold); font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(201,168,76,0.3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.9rem; color: rgba(247,243,238,0.75); }
.footer-col a:hover { color: var(--cream); }

.footer-permanence { margin-top: 1.5rem; padding: 1rem; border-radius: var(--radius-sm); background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); font-size: 0.8rem; }
.footer-permanence strong { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(201,168,76,0.2); padding: 1.25rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.75rem; color: rgba(247,243,238,0.5); }

/* ==========================================================================
   Inner pages (Soutenir, Mentions légales, 404)
   ========================================================================== */
.page-hero-spacer { height: 100px; }
.page-content { max-width: 860px; margin: 0 auto; padding: 4rem 0 6rem; }
.page-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-rule { width: 80px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 3rem; }

.legal-section { margin-bottom: 3rem; }
.legal-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.legal-section p, .legal-section li { margin-bottom: 0.75rem; }
.legal-section-list { display: flex; flex-direction: column; gap: 0.5rem; }

.legal-contact-block { margin-top: 4rem; padding: 2rem; border-radius: var(--radius); background: rgba(139,26,47,0.08); border-left: 5px solid var(--burgundy); }

/* Soutenir page */
.support-intro p { font-size: 1.1rem; margin-bottom: 1.25rem; }
.support-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 3rem 0; }
@media (max-width: 650px) { .support-reasons { grid-template-columns: 1fr; } }
.support-reason { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--radius-sm); background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); }
.support-reason-icon { font-size: 1.6rem; flex-shrink: 0; }
.support-reason h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.support-reason p { margin: 0; font-size: 0.95rem; }

.donation-box { padding: 2.5rem; border-radius: var(--radius); background: var(--navy); color: var(--cream); margin: 3rem 0; }
.donation-box h2 { color: var(--cream); margin-bottom: 2rem; }
.donation-amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
@media (max-width: 650px) { .donation-amounts { grid-template-columns: repeat(2, 1fr); } }
.amount-btn {
  padding: 1rem; border-radius: var(--radius-sm); font-weight: 600;
  background: rgba(201,168,76,0.2); color: var(--cream);
  border: 2px solid rgba(201,168,76,0.3); transition: all 0.15s ease;
}
.amount-btn.is-selected { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.donation-custom { margin-bottom: 1.5rem; }
.donation-custom label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; }
.donation-custom input {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: rgba(247,243,238,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--cream);
}
.donation-fiscal { padding: 1rem; border-radius: var(--radius-sm); background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3); font-size: 0.9rem; margin-bottom: 2rem; }
.donation-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.donation-unavailable-note {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: rgba(247,243,238,0.08); border: 1px solid rgba(201,168,76,0.25);
  font-size: 0.85rem; margin-top: 1.5rem;
}

.other-ways { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0 3rem; }
.other-way { padding: 1.5rem; border-radius: var(--radius-sm); background: rgba(139,26,47,0.08); border: 1px solid rgba(139,26,47,0.2); }
.other-way h3 { color: var(--burgundy); font-size: 1.1rem; margin-bottom: 0.75rem; }
.other-way p { margin-bottom: 1rem; }
.other-way a.btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }

.faq-item { padding: 1.5rem; border-radius: var(--radius-sm); background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); margin-bottom: 1rem; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.faq-item p { margin: 0; font-size: 0.95rem; }

.cta-banner { margin-top: 3rem; padding: 2rem; border-radius: var(--radius); background: var(--navy); color: var(--cream); text-align: center; }
.cta-banner h3 { color: var(--cream); margin-bottom: 0.75rem; }
.cta-banner p { margin-bottom: 1.5rem; }

/* 404 page */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem 4rem; }
.error-code { font-family: var(--font-display); font-size: 5rem; color: var(--navy); font-weight: 700; margin-bottom: 0.5rem; }
.error-title { font-size: 1.5rem; margin-bottom: 1rem; }
.error-desc { max-width: 420px; margin: 0 auto 2rem; }
