/* =============================================================================
   Pages de service : aide-domicile-personnes-agees, aide-personnes-agees,
   entretien-logement, garde-enfants et pages provisoires.

   - À charger APRÈS style.css (balise <link> dans le <head> de chaque page).
   - Chaque <section> de ces pages porte la classe "atsad-page". Les surcharges
     de style.css sont préfixées par "#main .atsad-page" : leur priorité est
     supérieure à celle de style.css, sans recourir à !important.
   - Les couleurs de marque viennent de style.css (--color-accent...).
   - Le formulaire de devis a son propre style, embarqué dans devis_wc.js.
============================================================================= */

:root {
  --atsad-blue: #1b3b6f;          /* bleu foncé : titres, textes, boutons */
  --atsad-blue-soft: #eaf3fb;     /* fond bleu très clair */
  --atsad-accent-soft: #ffece5;   /* fond orange très clair (pastilles d'icône) */
}


/* ---- En-tête de page : fil d'Ariane, titre, textes d'introduction ---- */

.atsad-breadcrumb { font-size: 13px; color: #7c93ad; margin: 0 0 12px; }
.atsad-breadcrumb a { color: inherit; text-decoration: underline; }

#main .atsad-page .section-title { margin: 0 0 8px; padding: 0; }
#main .atsad-page .section-title :is(h1, h2) { margin: 0; padding: 0; }
#main #aide-personnes-agees .section-title { margin-bottom: 24px; }   /* page sans bandeau : le titre est suivi directement du texte d'introduction */

#main .atsad-page .atsad-intro,
#main .atsad-page .atsad-lead { max-width: 900px; margin: 0 auto 16px; text-align: center; }
#main .atsad-page .atsad-lead { margin-bottom: 30px; }

/* Animation d'apparition (AOS) : trajet de 24 px au lieu de 100 px, pour une
   séquence titre -> textes -> formulaire discrète et lisible. */
#main .atsad-page [data-aos="fade-up"]:not(.aos-animate) { transform: translate3d(0, 24px, 0); }


/* ---- Hero ---- */

.atsad-service-hero { background: linear-gradient(180deg, var(--fond-famille, var(--atsad-blue-soft)) 0%, #fff 100%); padding-bottom: 0; }   /* bandeau → chapitre suivant : seulement la marge haute du chapitre (40 px) */
body.famille-mixte .atsad-service-hero { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%), var(--teinte-mixte); }
.atsad-service-hero h1 {
  font-family: var(--font-nav, "Poppins", sans-serif);
  font-size: 32px; font-weight: 500; line-height: 1.35;
  color: var(--atsad-blue); max-width: 760px; margin-bottom: 18px;
}
.atsad-service-hero h1 .atsad-accent { font-weight: 700; }
.atsad-hero-text { max-width: 640px; color: #3d5978; font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
.atsad-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Pastille d'information au-dessus du titre (ex. « Exclusivité Toulouse », comme l'estampille de la vignette) */
.atsad-hero-badge { display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 20px; background: var(--color-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Hero avec photo : texte à gauche, photo à droite ; photo sous le texte sur tablette et téléphone */
.atsad-hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 40px; align-items: center; }
.atsad-hero-photo { margin: 0; }
.atsad-hero-photo img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 14px 34px rgba(27, 59, 111, .18); }
@media (max-width: 992px) {
  .atsad-hero-grille { grid-template-columns: 1fr; gap: 26px; }
  .atsad-hero-photo { max-width: 460px; }
}

.atsad-btn-hero {
  display: inline-block; padding: 12px 26px; border-radius: 30px;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: .2s ease;
}
.atsad-btn-hero-primary { background: var(--color-accent); color: #fff; }
.atsad-btn-hero-primary:hover { background: var(--color-accent-dark); color: #fff; }
.atsad-btn-hero-secondary { background: #fff; color: var(--atsad-blue); border: 1px solid #c8d9ea; }
.atsad-btn-hero-secondary:hover { background: var(--atsad-blue-soft); }


/* ---- Grille de prestations ---- */

.atsad-service-cards { background: #fff; }
.atsad-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 992px) { .atsad-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .atsad-cards-grid { grid-template-columns: 1fr; } }

/* Grille de 4 cartes : 4 par rangée (grand écran), 2 sur tablette et petit ordinateur, 1 sur téléphone */
.atsad-cards-grid--quatre { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1199px) { .atsad-cards-grid--quatre { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .atsad-cards-grid--quatre { grid-template-columns: 1fr; } }

/* Grille dont la dernière rangée, incomplète, est centrée (ex. 5 cartes) : 3, 2 ou 1 carte par rangée */
.atsad-cards-grid--centre { display: flex; flex-wrap: wrap; justify-content: center; }
.atsad-cards-grid--centre .atsad-card { flex: 0 1 calc((100% - 52px) / 3); }
@media (max-width: 992px) { .atsad-cards-grid--centre .atsad-card { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 640px) { .atsad-cards-grid--centre .atsad-card { flex-basis: 100%; } }

.atsad-card {
  background: #fbfdff; border: 1px solid #eaf1f8; border-radius: 12px;
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.atsad-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(27, 59, 111, .08); }
.atsad-card-icon {
  width: 54px; height: 54px; margin-bottom: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--fond-icone, var(--atsad-accent-soft)); color: var(--color-accent); font-size: 26px;
}
body.famille-soin { --fond-icone: #d9e8f7; }   /* pastilles des cartes : bleu pour les soins, pêche pour l'aide */
.atsad-card-icon img { width: 28px; height: 28px; object-fit: contain; }
.atsad-card h3 { font-family: var(--font-nav, "Poppins", sans-serif); font-size: 18px; color: var(--atsad-blue); margin-bottom: 10px; }
.atsad-card p { font-size: 14px; line-height: 1.6; color: #56728f; margin-bottom: 16px; }
.atsad-card-btn {
  display: inline-block; padding: 8px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; background: var(--color-accent);
}
.atsad-card-btn:hover { background: var(--color-accent-dark); color: #fff; }


/* ---- reCAPTCHA ---- */

/* Badge masqué : la mention exigée par Google est affichée dans le formulaire de devis (devis_wc.js). */
.grecaptcha-badge { visibility: hidden; }
