/* Collectif Solidaire Znaga : feuille de style du site */

:root {
  --green: #174b35;
  --green2: #286b49;
  --orange: #d66b25;       /* orange du logo : texte en grand uniquement (contraste 3,5:1) */
  --orange-fonce: #b8571c; /* boutons et survols : contraste 4,7:1 avec le blanc */
  --gold: #f2c66d;
  --cream: #fff8eb;
  --ink: #24352b;
  --muted: #66746a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; } /* hauteur de l'en-tête collant */
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fffdf8; line-height: 1.55; }
a { color: inherit; }
.wrap { width: min(1160px, 92%); margin: auto; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: var(--green); padding: 8px 14px; border-radius: 8px; font-weight: 700; }

/* En-tête */
.top { background: white; position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 15px #183b2515; }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 0 0 auto; }
.brand img { display: block; width: 112px; height: 112px; object-fit: contain; border-radius: 12px; background: #fff; }
.brand-label { font-weight: 800; color: var(--green); font-size: clamp(18px, 2.5vw, 25px); line-height: 1.05; }
.brand-label span { display: block; color: var(--orange); font-family: Georgia, serif; font-style: italic; font-size: 1.35em; }
.links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.links a { text-decoration: none; font-weight: 700; }
.links a:hover { color: var(--orange-fonce); }

/* Accueil */
.hero { position: relative; min-height: 440px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #e8d5b3; }
.hero img { width: 100%; height: 100%; min-height: 440px; object-fit: contain; background: #eadfc9; }
.hero-copy { padding: 55px clamp(24px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, #fff7e8, #f4dfbd); }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; color: var(--green2); font-size: 12px; font-weight: 800; }
.hero h1 { font-family: Georgia, serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; color: var(--green); margin: 12px 0; }
.hero p { font-size: 18px; color: #4c5d50; }
.btn { display: inline-block; background: var(--green); color: white; text-decoration: none; padding: 13px 22px; border-radius: 30px; font-weight: 800; margin-top: 12px; width: max-content; }
.btn.orange { background: var(--orange-fonce); }

/* Sections */
section { padding: 65px 0; }
.section-title { text-align: center; color: var(--green); font: italic 700 clamp(30px, 4vw, 42px) Georgia, serif; margin: 0 0 12px; }
.intro { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.soft { background: var(--cream); }

/* Missions. Les images sont en « contain » sur fond beige parce que les
   illustrations actuelles ont toutes des proportions différentes. */
.missions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mission { background: #fffdf8; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px #1c3a2514; border: 1px solid #e8ddca; padding: 7px; }
.mission img { display: block; width: 100%; height: 175px; object-fit: contain; background: #f5efe4; border-radius: 10px; }
.mission div { padding: 14px 15px 17px; }
.mission h3 { color: var(--green); font-size: 17px; margin: 0 0 5px; }
.mission p { font-size: 14px; color: var(--muted); margin: 0; }

/* Galerie « sur le terrain » */
.gallery { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; }
.gallery figure { margin: 0; background: #fffdf8; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px #1c3a2514; border: 1px solid #e8ddca; padding: 8px; }
.gallery img { display: block; width: 100%; height: 230px; object-fit: contain; background: #f5efe4; border-radius: 10px; }
.gallery figcaption { padding: 14px 16px; font-weight: 700; color: var(--green); }

/* Appel aux dons */
.appeal { background: var(--green); color: white; border-radius: 22px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.appeal h2 { font: italic 700 34px Georgia, serif; margin: 0 0 6px; }
.appeal p { margin: 0; color: #e4eee6; }
.appeal .btn { background: var(--orange-fonce); white-space: nowrap; }

/* Qui sommes-nous */
.about { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; max-width: 850px; }
.about img { width: 100%; height: 340px; object-fit: cover; border-radius: 18px; }
.about h2 { font: italic 700 36px Georgia, serif; color: var(--green); margin: 0 0 14px; }
.details { background: #f7f0e4; padding: 22px; border-radius: 14px; margin-top: 18px; }
.details strong { color: var(--green); }

/* Pied de page */
.contact { background: #103d2b; color: white; padding: 36px 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 22px; }
.contact h2 { font: italic 700 30px Georgia, serif; margin: 0 0 10px; }
.contact a { color: white; }
.small { font-size: 13px; color: #d7e4da; }
.copy { border: 0; background: #fff; color: var(--green); font-weight: 800; border-radius: 20px; padding: 7px 12px; cursor: pointer; margin-left: 8px; }
.note { text-align: center; color: var(--muted); font-size: 12px; padding: 15px; }

/* Mentions légales */
.legal { max-width: 850px; }
.legal h1 { font: italic 700 clamp(30px, 4vw, 42px) Georgia, serif; color: var(--green); margin: 0 0 24px; }
.legal h2 { color: var(--green); font-size: 20px; margin: 34px 0 8px; }
.a-completer { background: #fde3c8; color: #7a3410; padding: 0 5px; border-radius: 4px; font-weight: 700; }

@media (max-width: 800px) {
  html { scroll-padding-top: 0; }
  .top { position: static; } /* collant, l'en-tête occuperait un tiers de l'écran */
  .nav { align-items: flex-start; padding: 15px 0; flex-direction: column; }
  .brand img { width: 88px; height: 88px; }
  .links { gap: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero img { min-height: 270px; max-height: 330px; }
  .hero-copy { padding: 34px 6%; }
  .missions { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .appeal { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .missions { gap: 14px; }
  .gallery { gap: 16px; }
  .mission img { height: 150px; }
  .gallery img { height: 210px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .mission div { padding: 10px; }
  .mission h3 { font-size: 15px; }
  .mission p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
