/* ============================================
   ZANMI LASANTÉ – PARIS | style.css
   Identité « Lavi Nouvo » — calée sur le logo, 2025
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette du logo Lavi Nouvo */
  --azur:    #04608C;
  --azur-dk: #034B6E;
  --orange:  #F15F12;
  --orange-dk: #D24D08;
  --soleil:  #FBB304;
  --cream:   #F6F2E9;

  /* Aliases sémantiques (compat. avec le balisage existant) */
  --blue:    var(--azur);
  --blue-dk: var(--azur-dk);
  --gold:    var(--orange);
  --light:   var(--cream);

  --text:    #1C1813;
  --muted:   #7d7264;
  --white:   #fff;
  --radius:  10px;
  --shadow:  0 6px 20px rgba(4,96,140,.12);
  --max-w:   1100px;
  --transition: .25s ease;

  --f-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --f-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .section-title {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.01em;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--azur); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }
.section--grey { background: var(--cream); }

/* --- Header & Nav --- */
header {
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 #ECE4D5, 0 4px 18px rgba(28,24,19,.05);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: .7rem 1.5rem;
  max-width: 1180px; margin: 0 auto;
  gap: 1rem;
}

.site-logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  width: 52px; height: 52px;
  object-fit: contain;
}

.site-logo-text { color: var(--text); line-height: 1.15; }
.site-logo-text strong { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.site-logo-text span   { font-size: .78rem; color: var(--muted); display: block; margin-top: 1px; white-space: nowrap; }

nav { display: flex; gap: .05rem; flex-wrap: nowrap; align-items: center; }

nav a {
  color: #5b5346;
  padding: .45rem .45rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

nav a:hover,
nav a.active {
  background: #FDEFE3;
  color: var(--orange);
}

/* Bouton « Faire un don » dans l'en-tête */
.nav-donate {
  margin-left: .55rem;
  background: var(--orange);
  color: var(--white) !important;
  padding: .5rem .85rem;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(241,95,18,.28);
}
.nav-donate:hover { background: var(--orange-dk); color: var(--white) !important; }

/* Sélecteur de langue */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-left: .4rem;
  padding: .34rem .6rem;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--orange);
  background: #FDEFE3;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.lang-switch:hover {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(241,95,18,.30);
}
.lang-switch .lang-flag {
  flex: none;
  display: inline-flex;
  width: 20px; height: 14px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}
.lang-switch .lang-flag svg { width: 100%; height: 100%; display: block; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: .4rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--azur-dk); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--azur-dk);
  color: var(--white);
  text-align: center;
  padding: 5.5rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(4,52,80,.64), rgba(4,96,140,.58)), url('images/plateau-central.jpg');
  background-size: cover; background-position: center;
}

.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.hero p {
  font-size: 1.15rem;
  opacity: .95;
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.btn {
  display: inline-block;
  padding: .8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--transition), transform .15s;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(241,95,18,.3);
}
.btn-primary:hover { background: var(--orange-dk); color: var(--white); }

.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  margin-left: .75rem;
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* --- Alert banner --- */
.alert-banner {
  background: var(--azur-dk);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--soleil);
}
.alert-banner p { font-size: .95rem; max-width: 800px; margin: 0 auto; }
.alert-banner strong { color: var(--soleil); }

/* --- Cards grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(4,96,140,.18); }

.card-img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.1rem; color: var(--azur-dk); margin-bottom: .4rem; }
.card-body p  { font-size: .9rem; color: var(--muted); }
.card-ico {
  width: 48px; height: 48px;
  margin: -3.4rem 0 .85rem;
  position: relative;
  border-radius: 12px;
  background: var(--cream);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(4,96,140,.15);
}
.card-ico svg { width: 24px; height: 24px; }

/* --- Section headings --- */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--azur-dk);
  margin-bottom: .5rem;
}
.section-header p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--azur-dk);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* --- Timeline --- */
.timeline { list-style: none; border-left: 3px solid var(--orange); padding-left: 1.5rem; margin-top: 1.5rem; }
.timeline li { margin-bottom: 1.5rem; position: relative; }
.timeline li::before {
  content: '';
  position: absolute; left: -1.95rem; top: .3rem;
  width: 12px; height: 12px;
  background: var(--orange); border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-year {
  font-weight: 700; color: var(--azur); font-size: .9rem;
  display: block; margin-bottom: .2rem;
}

/* --- Team grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1rem;
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-4px); }

.team-card img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--soleil);
}

.team-card .avatar-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--azur);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  margin: 0 auto 1rem;
  border: 3px solid var(--soleil);
}

.team-card h3 { font-size: .95rem; color: var(--azur-dk); margin-bottom: .2rem; }
.team-card p  { font-size: .8rem; color: var(--muted); font-style: italic; }

/* --- Partners logos --- */
.partners-grid {
  display: flex; flex-wrap: wrap;
  gap: 1.5rem; align-items: center; justify-content: center;
  margin-top: 2rem;
}
.partner-logo {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; min-width: 150px;
  text-align: center;
}
.partner-logo span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--azur);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.partner-logo img {
  max-height: 60px; max-width: 140px;
  object-fit: contain; filter: grayscale(.3);
  transition: filter var(--transition);
}
.partner-logo:hover img { filter: none; }

/* --- Instagram --- */
.insta-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  margin-left: .35rem;
  border-radius: var(--radius);
  color: #5b5346;
  transition: background var(--transition), color var(--transition);
}
.insta-icon-link svg { width: 22px; height: 22px; }
.insta-icon-link:hover { background: #FDEFE3; color: var(--orange); }

.insta-cta {
  display: flex; align-items: center; gap: 1.1rem;
  flex-wrap: wrap; justify-content: center; text-align: left;
  max-width: 620px; margin: 2.25rem auto 0;
  padding: 1.1rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(95deg, #F6F2E9, #FDEFE3);
  border: 1px solid #F2D9C2;
}
.insta-cta .insta-badge {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  background: linear-gradient(45deg, #F9A826 0%, #F15F12 45%, #C8378E 100%);
  box-shadow: 0 6px 16px rgba(200,55,142,.28);
}
.insta-cta .insta-badge svg { width: 28px; height: 28px; }
.insta-cta .insta-text { flex: 1 1 240px; }
.insta-cta .insta-text strong {
  display: block; font-family: var(--f-display);
  color: var(--azur-dk); font-size: 1.05rem;
}
.insta-cta .insta-text span { font-size: .9rem; color: var(--muted); }
.insta-cta .insta-text a { font-weight: 600; }
.insta-cta .btn-insta {
  flex: none;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  color: var(--white) !important;
  background: linear-gradient(45deg, #F15F12, #C8378E);
  box-shadow: 0 6px 14px rgba(200,55,142,.28);
  transition: transform .15s, box-shadow var(--transition);
}
.insta-cta .btn-insta svg { width: 18px; height: 18px; }
.insta-cta .btn-insta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(200,55,142,.34); }

/* --- Photo gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery img {
  width: 100%; height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* --- Donate strip --- */
.donate-strip {
  background: var(--orange);
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--white);
}
.donate-strip h2 { font-size: 1.7rem; margin-bottom: .75rem; }
.donate-strip p  { font-size: 1.02rem; margin-bottom: 1.5rem; opacity: .96; max-width: 620px; margin-left:auto; margin-right:auto; }
.donate-strip .tax-note { font-size: .9rem; opacity: .9; margin-top: 1.1rem; margin-bottom: 0; }
.btn-white {
  background: var(--white);
  color: var(--orange-dk);
  font-weight: 700;
}
.btn-white:hover { background: var(--soleil); color: var(--text); }

/* --- Contact --- */
.contact-info { font-size: 1rem; margin-top: 1rem; }
.contact-info a { font-weight: 600; }

/* --- Footer --- */
footer {
  background: var(--azur-dk);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
footer h4 { color: var(--white); margin-bottom: .75rem; font-size: .95rem; }
footer p  { font-size: .85rem; line-height: 1.6; }
footer a  { color: rgba(255,255,255,.7); font-size: .85rem; display: block; margin-bottom: .3rem; }
footer a:hover { color: var(--soleil); }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .8rem;
}

/* --- Page hero (inner pages) --- */
.page-hero {
  position: relative;
  background: var(--azur-dk);
  color: var(--white);
  padding: 3.8rem 1.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .5rem; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.page-hero p  { opacity: .9; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* --- Prose content --- */
.prose h2 { font-size: 1.4rem; color: var(--azur-dk); margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; color: var(--azur); margin: 1.5rem 0 .5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul { margin: .5rem 0 1rem 1.5rem; }
.prose ul li { margin-bottom: .4rem; }
.prose a  { text-decoration: underline; }
.prose strong { color: var(--azur-dk); }

/* --- Highlight box --- */
.highlight-box {
  background: var(--cream);
  border-left: 4px solid var(--orange);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; }

/* --- Stats band (chiffres clés) --- */
.stats-band { background: var(--azur-dk); color: var(--white); padding: 3rem 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--soleil);
  line-height: 1;
}
.stat-label { font-size: .92rem; margin-top: .55rem; opacity: .9; }

/* --- Fundraising transparency --- */
.fund-list { max-width: 760px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.fund-row { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; }
.fund-year { font-family: var(--f-display); font-weight: 800; color: var(--azur); font-size: 1rem; }
.fund-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; margin-bottom: .3rem; }
.fund-name { color: var(--text); }
.fund-amt { font-weight: 700; color: var(--azur-dk); white-space: nowrap; }
.fund-track { height: 10px; border-radius: 999px; background: #ECE4D5; overflow: hidden; }
.fund-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--soleil), var(--orange)); }
.fund-total { text-align: center; margin-top: 2rem; font-size: 1.05rem; color: var(--text); }

/* --- Responsive --- */
@media (max-width: 1200px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }

  nav { display: none; flex-direction: column; width: 100%; }
  nav.open { display: flex; }
  nav a { width: 100%; }
  .nav-donate { margin-left: 0; margin-top: .35rem; text-align: center; }

  .nav-toggle { display: flex; }

  .header-inner { flex-wrap: wrap; }

  .btn-outline { margin-left: 0; margin-top: .5rem; }
}
