:root {
  --primary-blue: #2f5ea8;
  --primary-blue-dark: #1c3f73;
  --primary-blue-light: #4a7bc8;
  --soft-blue: #eaf1fb;
  --accent-red: #e63946;
  --text-dark: #1f2d3d;
  --text-mid: #4a5568;
  --text-light: #ffffff;
  --max-width: 1100px;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(47, 94, 168, 0.10);
  --shadow-hover: 0 8px 32px rgba(47, 94, 168, 0.18);
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: #f7f9fc;
}

/* ── HEADER ── */
header {
  background: white;
  padding: 14px 24px;
  box-shadow: 0 2px 12px rgba(47, 94, 168, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* sticky header : le site reste accessible en scrollant — réduit le taux de rebond */

.header-container {
  max-width: var(--max-width);
  margin: auto;
}

.header-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  width: 64px;
  height: auto;
  display: inline-block;
  object-fit: contain;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.04);
}

.header-title {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.header-container a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: bold;
  transition: color var(--transition);
}

.header-container a:hover {
  color: var(--accent-red);
}

/* ── HERO ── */
/* Gradient directionnel : donne du mouvement, l'œil suit de haut-gauche vers bas-droite */
.hero {
  background:
    linear-gradient(135deg, rgba(28, 63, 115, 0.92) 0%, rgba(47, 94, 168, 0.80) 100%),
    url("images/aide-personne.webp") center/cover no-repeat;
  color: var(--text-light);
  padding: 90px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Vague décorative en bas du hero : transition douce vers la section suivante */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero .sub-hero {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero > p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.90);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CTA BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-red);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.45);
  background: #c62d3a;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Variante outline : pour les contextes non-CTA (ex : retour arrière, liens secondaires)
   Fond transparent + bordure bleue = lisible sur fond blanc, sans concurrencer le CTA rouge */
.btn--outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--soft-blue);
  color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  box-shadow: none;
  transform: translateY(-2px);
}

/* ── SECTIONS ── */
section {
  padding: 60px 24px;
}

.container {
  max-width: var(--max-width);
  margin: auto;
}

/* Titres de section : ligne décorative sous le titre — repère visuel fort */
h2 {
  text-align: center;
  margin-bottom: 36px;
  color: var(--primary-blue);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 14px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: var(--accent-red);
  border-radius: 2px;
}

/* ── SECTION ABOUT ── */
/* Fond blanc cassé + encadré : crée une respiration entre les sections bleues */
.about-section {
  background: white;
}

.about {
  text-align: center;
  max-width: 780px;
  margin: auto;
}

.about p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── SERVICES GRID ── */
.services-section {
  background: #f7f9fc;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Card : fond blanc + ombre pour effet "élévation" — plus premium que fond coloré flat */
.service-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  /* zoom subtil au hover sur l'image */
  transition: transform 0.4s ease;
}

.service-card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: 22px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.card-body--icon-only {
  justify-content: center;
  padding: 40px 24px;
}

/* Cercle de fond derrière l'icône : isole visuellement l'icône, plus lisible */
.card-body svg:first-child,
.card-body--icon-only svg:first-child {
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  padding: 12px;
  border-radius: 50%;
}

.service-card h3 {
  color: var(--primary-blue);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
}

.service-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-icon--red {
  color: #e63946;
  background: #fdecea;
}

.card-icon--blue {
  color: #4a4a4a;        /* gris anthracite — comme la mallette du logo */
  background: #f0f0f0;
}

.card-icon--flesh {
  color: #4a7bc8;        /* bleu myosotis — var(--primary-blue-light) */
  background: #eaf1fb;   /* var(--soft-blue) — cohérent avec le reste */
}

.card-icon--green {
  color: #388e3c;
  background: #e8f5e9;
}

/* ── REASSURANCE ── */
/* Fond blanc pour contraster avec les sections grises adjacentes */
.reassurance {
  background: white;
  text-align: center;
}

/* Grid d'items au lieu d'une liste : plus aéré, plus scannable */
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

.reassurance-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--soft-blue);
  border-radius: 10px;
  padding: 16px 18px;
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: box-shadow var(--transition);
}

.reassurance-grid li:hover {
  box-shadow: var(--shadow);
}

.reassurance-grid .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ── ZONE D'INTERVENTION ── */
.zone-section {
  background: #f7f9fc;
}

.zone-section .about p {
  font-size: 1rem;
}

.zone-section a {
  color: var(--primary-blue);
  font-weight: bold;
  text-decoration: underline;
}

/* ── CTA SECTION ── */
/* Dégradé du bleu primaire au bleu foncé : plus riche qu'un aplat */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section h2::after {
  background: rgba(255,255,255,0.5);
}

.cta-section p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ── FOOTER ── */
footer {
  background: var(--primary-blue-dark);
  color: white;
  padding: 36px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 2;
  display: block;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* ── RESPONSIVE HELPERS ── */
.mobile-only { display: none; }

@media screen and (max-width: 767px) {
  .mobile-hidden { display: none; }
  .mobile-only { display: block; }
}

/* ── RESPONSIVE HERO ── */
@media (min-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .hero .sub-hero { font-size: 1.8rem; }
}

/* ── RESPONSIVE SERVICES & REASSURANCE ── */
@media (max-width: 599px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .card-image img { height: 200px; }
  .reassurance-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ── RESPONSIVE HEADER ── */
@media (min-width: 1024px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── PAGE MENTIONS LÉGALES ── */
.legal-hero {
  background: var(--soft-blue);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 2px solid #d0e4f7;
}

.legal-hero h1 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.legal-hero p {
  font-size: 0.9rem;
  color: #555;
  max-width: 700px;
  margin: auto;
}

.legal-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.legal-content article {
  border-left: 4px solid var(--primary-blue);
  padding-left: 18px;
}

.legal-content h2 {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-blue);
  padding-bottom: 0;
}

.legal-content h2::after {
  display: none;
}

.legal-content p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #333;
}

.legal-content a {
  color: var(--primary-blue);
  font-weight: bold;
}

.legal-back {
  text-align: center;
  margin-top: 10px;
}

.card-icon {
  display: flex;
}

.card-body .card-icon,
.card-body--icon-only .card-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  background: var(--soft-blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 6px;
  display: block;
}

