:root {
  /* ===== CHARTE EDUCAD-CI : Bleu Marine, Orange, Vert, Blanc ===== */
  --blue:       #0A2540;      /* Bleu marine royal profond */
  --blue-mid:   #133E68;      /* Bleu moyen élégant */
  --blue-light: #EBF3FA;      /* Bleu très clair / fond doux */
  --orange:     #F7941D;      /* Orange vibrant officiel */
  --orange-deep:#E07E0C;      /* Orange profond hover */
  --green:      #16A34A;      /* Vert émeraude espoir */
  --green-deep: #15803D;      /* Vert foncé hover */
  --green-light:#ECFDF5;      /* Vert très clair pour badges */
  --white:      #FFFFFF;
  --cream:      #F8FAFC;      /* Fond global très épuré */
  --ink:        #0F172A;      /* Texte principal sombre et très net */
  --muted:      #475569;      /* Texte secondaire lisible */
  --line:       #E2E8F0;      /* Séparateurs fins */
  --shadow-sm:  0 4px 12px rgba(10, 37, 64, 0.05);
  --shadow-md:  0 12px 28px -6px rgba(10, 37, 64, 0.10);
  --shadow-lg:  0 22px 48px -10px rgba(10, 37, 64, 0.16);
  /* Compatibilité anciens composants */
  --rose:       var(--orange);
  --rose-deep:  var(--orange-deep);
  --peach:      #FFF7ED;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ======= HEADER ======= */
.site-header {
  height: 84px;
  padding: 0 clamp(22px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 37, 64, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.25);
  transition: background 0.3s ease;
}

.brand {
  font: 700 1.65rem 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}
.brand:hover { transform: scale(1.02); }
.brand span { font-style: italic; font-weight: 600; color: var(--orange); }

nav { display: flex; gap: 28px; align-items: center; }
nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
  border-radius: 2px;
}
nav a:hover { color: #FFFFFF; }
nav a:hover::after { width: 100%; }

/* ======= BOUTONS ======= */
.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: 600 0.92rem 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-sm);
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.button-dark {
  background: var(--blue);
  color: var(--white);
}
.button-dark:hover { background: var(--blue-mid); }

.button-rose {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(247, 148, 29, 0.35);
}
.button-rose:hover {
  box-shadow: 0 12px 28px rgba(247, 148, 29, 0.45);
}

.button-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}
.button-green:hover {
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4);
}

.button-light {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}
.button-light:hover {
  background: #FFFFFF;
  color: var(--orange-deep);
}

.button-outline {
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.button-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Bouton FAIRE UN DON header */
.donate-button {
  background: linear-gradient(135deg, var(--orange) 0%, #E07A07 100%);
  color: var(--white);
  border-radius: 999px;
  padding: 11px 24px;
  font: 700 0.88rem 'DM Sans', sans-serif;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(247, 148, 29, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.donate-button:hover {
  background: linear-gradient(135deg, #FF9E2C 0%, var(--orange-deep) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(247, 148, 29, 0.5);
}

/* ======= EYEBROW ======= */
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow i { font-size: 0.9rem; color: var(--green); }

/* ======= HERO ======= */
.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  position: relative;
  background: var(--blue);
  overflow: hidden;
}
.hero-copy {
  padding: clamp(80px, 11vw, 160px) clamp(25px, 7vw, 120px);
  align-self: center;
  z-index: 2;
  color: var(--white);
}
.hero h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.hero h1 {
  font-size: clamp(3.2rem, 5.8vw, 5.8rem);
  margin: 0;
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero h1 em {
  color: var(--orange);
  font-style: italic;
  font-weight: 600;
}
.lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  font-size: 1.12rem;
  margin: 28px 0 36px;
  line-height: 1.65;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.text-link {
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, color 0.2s;
}
.text-link:hover {
  color: var(--orange);
  transform: translateX(4px);
}
.hero-image {
  position: relative;
  min-height: 580px;
  background: var(--blue);
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.95) contrast(1.05);
}
.hero-note {
  position: absolute;
  right: 6%;
  bottom: 42px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
  border-left: 5px solid var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-left-width: 5px;
  border-left-color: var(--orange);
  z-index: 10;
  animation: educad-float 4s ease-in-out infinite;
}
.hero-note strong { color: var(--blue); font-weight: 700; font-size: 0.95rem; }
.hero-note span { color: var(--muted); font-weight: 500; }

/* ======= SECTIONS ======= */
.promise, .catalogue { padding: 100px clamp(22px, 7vw, 120px); }
.promise {
  text-align: center;
  background: linear-gradient(180deg, var(--blue-light) 0%, #FFFFFF 100%);
  position: relative;
}
.promise h2, .section-heading h2, .gift-section h2, .dialog-head h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  margin: 0;
  color: var(--blue);
  font-weight: 700;
}
.promise-grid {
  max-width: 1100px;
  margin: 55px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.promise-grid article {
  background: var(--white);
  padding: 38px 28px;
  border-radius: 20px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}
.promise-grid article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  transition: height 0.25s ease;
}
.promise-grid article:nth-child(2)::before { background: var(--blue); }
.promise-grid article:nth-child(3)::before { background: var(--orange); }

.promise-grid article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.promise-grid article:hover::before { height: 6px; }

.promise-grid i {
  font-size: 1.6rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 14px;
  margin-bottom: 16px;
}
.promise-grid article:nth-child(2) i { color: var(--blue); background: var(--blue-light); }
.promise-grid article:nth-child(3) i { color: var(--orange-deep); background: #FFF7ED; }

.promise-grid h3 {
  margin: 14px 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: var(--blue);
}
.promise-grid p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

/* ======= CATALOGUE & SERVICES ======= */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.catalogue-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 40px 0 35px;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 9px 20px;
  color: var(--muted);
  cursor: pointer;
  font: 600 0.86rem 'DM Sans', sans-serif;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.filter.active, .filter:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3);
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.search:focus-within { border-color: var(--blue); }
.search i { color: var(--muted); font-size: 0.9rem; }
.search input {
  border: 0;
  background: transparent;
  outline: 0;
  padding: 6px 0;
  width: 210px;
  font: 500 0.9rem 'DM Sans', sans-serif;
  color: var(--ink);
}

/* ======= CARTES SERVICES ======= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  background: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(247, 148, 29, 0.3);
}
.service-picture {
  height: 230px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.service-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-picture img {
  transform: scale(1.06);
}
.service-content { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-category {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}
.service-card h3 {
  font: 700 1.45rem 'Playfair Display', Georgia, serif;
  margin: 12px 0 10px;
  color: var(--blue);
  line-height: 1.25;
}
.service-card p { font-size: 0.94rem; color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
.service-meta {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
.service-price { font-size: 1.1rem; color: var(--green); font-weight: 700; }

/* ======= SECTION CTA (FAIRE UN DON / ACTION) ======= */
.gift-section {
  margin: 20px clamp(22px, 7vw, 120px) 100px;
  padding: clamp(45px, 6vw, 85px);
  background: linear-gradient(135deg, var(--blue) 0%, #0F3863 100%);
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  color: var(--white);
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.22);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gift-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(247, 148, 29, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.gift-section h2 { max-width: 580px; color: var(--white); margin: 0 0 10px; }
.gift-section .eyebrow { color: var(--orange); }
.gift-section p:not(.eyebrow) { color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; margin: 0; }

/* ======= FOOTER ======= */
footer {
  background: var(--blue);
  color: var(--white);
  padding: 70px clamp(22px, 7vw, 120px) 45px;
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1fr 1fr;
  gap: 40px;
  border-top: 4px solid var(--orange);
}
footer .brand { color: var(--white); font-size: 1.7rem; }
footer p { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; line-height: 1.65; }
footer h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 18px;
}
footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--orange); }

/* ======= RESPONSIVE ======= */
@media (max-width: 960px) {
  .site-header { height: auto; min-height: 76px; flex-wrap: wrap; gap: 10px 18px; padding: 12px 18px; }
  .site-header nav { order: 3; width: 100%; min-width: 0; overflow-x: auto; justify-content: flex-start; gap: 18px; padding: 2px 0 4px; scrollbar-width: thin; }
  .site-header nav a { flex: 0 0 auto; white-space: nowrap; font-size: .88rem; }
  .brand { font-size: 1.35rem; }
  .donate-button { padding: 10px 14px; font-size: .78rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 380px; grid-row: 1; }
  .hero-copy { padding: 60px 28px 70px; }
  .hero-note { right: 20px; bottom: 20px; }
  .promise-grid, .services-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gift-section { flex-direction: column; align-items: flex-start; text-align: left; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 14px; gap: 8px 10px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: .8rem; }
  .donate-button { padding: 9px 11px; font-size: .7rem; line-height: 1.1; }
  .promise-grid, .services-grid { grid-template-columns: 1fr; }
  .promise, .catalogue { padding: 65px 18px; }
  .gift-section { margin: 0 18px 60px; padding: 36px 24px; }
  footer { grid-template-columns: 1fr; padding: 50px 18px; }
}

@keyframes educad-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
