/* =====================================================
   STYLE.CSS (SIMPLIFIÉ) — compatible avec ton HTML actuel
===================================================== */

/* ---------- VARIABLES ---------- */
:root{
  --blue:#1d5fd6;
  --blue2:#1549a1;
  --text:#111;
  --muted:#555;
  --bg:#fff;

  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
  --shadow-hover:0 18px 36px rgba(0,0,0,.14);

  --radius:16px;
}

/* ---------- RESET / BASE ---------- */
html, body { height: 100%; margin: 0; padding: 0; }
*{ box-sizing: border-box; }

body{
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* footer collé en bas */
.page-container{
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
footer{ margin-top: auto; }

/* ---------- TITRES / TEXTES ---------- */
h2{ margin: 0 0 10px; font-size: 30px; }
p{ margin: 0 0 25px; color: var(--muted); line-height: 1.5; }

/* ---------- NAVBAR ---------- */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 28px;
  background:#fff;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.logo-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
}

.logo-img{ width:32px; height:32px; border-radius:8px; }
.logo-text{ font-size:20px; font-weight:700; color:var(--blue); }

.topbar nav{
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
}

.topbar nav a{
  text-decoration:none;
  font-size:14px;
  color:#333;
}
.topbar nav a:hover{ text-decoration: underline; }

/* bouton navbar */
.btn-nav{
  padding:8px 16px;
  border-radius:999px;
  background:var(--blue);
  color:#fff !important;
  box-shadow: 0 6px 18px rgba(29,95,214,.25);
}

/* ---------- HEADER IMAGE (haut de page) ---------- */
.page-header{
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("img/header-bg.jpg") center/cover no-repeat;
  padding: 90px 20px 70px;
  text-align: center;
  color: #fff;

  /* espace entre l'image et le contenu */
  margin-bottom: 60px;
}

.page-header h1{
  margin: 0 0 10px;
  font-size: 40px;
}
.page-header p{
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  opacity: .95;
}

/* ---------- CONTENU CENTRÉ (toutes pages) ---------- */
.page-content{
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

/* carte blanche (formulaires, blocs) */
.card{
  background:#fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

/* ---------- HERO (accueil) ---------- */
.hero{
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 20px;
}
.hero-layout{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:32px;
}
.hero-text{ flex: 1 1 320px; }

.hero-title{
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
}
.hero-title span{ color: var(--blue); }

.hero-sub{
  margin: 0 0 22px;
  color:#444;
  line-height: 1.5;
}

.hero-visual{
  flex: 1 1 280px;
  display:flex;
  justify-content:center;
}

.hero-img{
  width:100%;
  max-width:420px;
  height:auto;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
  display:block;
}

/* formulaire rapide */
.hero-form{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hero-form input{
  flex:1 1 260px;
  min-width:0;
  height:48px;
  padding: 0 16px;
  border-radius:999px;
  border:1px solid #ddd;
  outline:none;
  font-size:14px;
}

/* bouton du hero (comme btn-primary mais adapté au hero) */
.hero-form button{
  height:48px;
  padding: 0 22px;
  border-radius:999px;
  border:none;
  background:var(--blue);
  color:#fff;
  cursor:pointer;
  white-space:nowrap;
  box-shadow: 0 8px 20px rgba(29,95,214,.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.hero-form button:hover{
  background: var(--blue2);
  transform: translateY(-2px);
}

/* ---------- TRUST (3 blocs) ---------- */
.trust{
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.trust-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  text-align:center;
}

.trust-item{
  background:#fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}
.trust-item p{ margin: 8px 0 0; color:#444; }

/* ---------- RACCOURCIS (accueil) ---------- */
.home-shortcuts{
  max-width: 1000px;
  margin: 0 auto 70px;
  padding: 0 20px;
}
.home-shortcuts-title{ margin: 0 0 18px; font-size: 24px; }

.home-shortcuts-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
}

.shortcut-card{
  display:block;
  padding: 18px;
  text-decoration:none;
  color: var(--text);
  border-radius: 18px;
  background: linear-gradient(to bottom right,#fff,#f5f7ff);
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.shortcut-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ---------- SERVICES ---------- */
.services-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card{
  background: linear-gradient(to bottom right,#fff,#f5f7ff);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-img{
  width:100%;
  height:160px;
  object-fit: cover;
  border-radius: 14px;
  display:block;
  margin-bottom: 10px;
}

.service-card h3{ margin: 8px 0 8px; }
.service-card p{ margin: 0; color: var(--muted); line-height: 1.5; }

/* ---------- FORMULAIRES (inscription + don) ---------- */
.form-group{ margin-bottom: 14px; }
.form-group label{
  display:block;
  font-size:13px;
  margin-bottom:5px;
  color:#333;
}

.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size:14px;
  outline:none;
}
.form-group textarea{ resize: vertical; }

/* bouton principal */
.btn-primary{
  display:inline-block;
  border:none;
  background: var(--blue);
  color:#fff;
  padding: 10px 18px;
  border-radius:999px;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(29,95,214,.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration:none;
}
.btn-primary:hover{
  background: var(--blue2);
  transform: translateY(-2px);
}

/* boutons montants don */
.don-amounts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 6px 0 12px;
}
.don-amount-btn{
  border:1px solid #dbe6ff;
  background:#f2f6ff;
  color: var(--blue);
  padding: 7px 14px;
  border-radius:999px;
  cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.don-amount-btn:hover{
  background: var(--blue);
  color:#fff;
}

/* ---------- FOOTER ---------- */
footer{
  background:#1d1d1d;
  color:#fff;
  padding: 16px 20px;
}
.footer-container{
  max-width: 1000px;
  margin: 0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:15px;
}
.footer-col{
  flex:1;
  min-width:160px;
}
.footer-col h4{ margin: 0 0 6px; }
.footer-col p, .footer-col a{
  margin: 3px 0;
  color:#ccc;
  font-size:12px;
  text-decoration:none;
}
.footer-bottom{
  text-align:center;
  margin-top:12px;
  font-size:11px;
  color:#aaa;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:700px){
  .topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-header{
    padding: 70px 15px 50px;
  }
  .page-header h1{ font-size: 28px; }
  .page-header p{ font-size: 14px; }

  .hero-layout{ flex-direction: column-reverse; }
  .hero-title{ font-size: 26px; }

  .hero-form input, .hero-form button{ width: 100%; }

  .card{ padding: 18px; }
}
