/* ==========================================================================
   Atout Cœur Seniors — feuille de style
   Palette « Bleu Sérénité » + accent corail chaud pour les CTA.
   Design pensé pour l'accessibilité (seniors) : grandes polices, fort
   contraste, gros boutons, navigation simple. Polices système (RGPD).
   ========================================================================== */

:root {
  --blue-deep: #2C5F7C;
  --blue-mid: #3E7A9C;
  --blue-sky: #6FA8C4;
  --blue-pale: #E3EEF4;
  --beige: #EFE7DA;
  --cream: #FBFAF7;
  --ink: #1E2A33;
  --muted: #51616C;
  --accent: #D9774F;       /* corail chaud, CTA */
  --accent-dark: #B85A33;  /* fond bouton (contraste AA texte blanc) */
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(30, 42, 51, 0.10);
  --radius: 14px;
  --maxw: 1120px;
}

/* --- Reset léger --- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }

/* --- Accessibilité : lien d'évitement + focus visible --- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue-deep); color: #fff; padding: .8rem 1.2rem; z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 3.5rem 0; }
.section-alt { background: var(--blue-pale); }
.section-beige { background: var(--beige); }

h1, h2, h3 { line-height: 1.25; color: var(--blue-deep); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lead { font-size: 1.25rem; color: var(--muted); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.15rem; font-weight: 700; text-decoration: none;
  padding: .95rem 1.7rem; border-radius: 50px; border: 3px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: var(--blue-deep); color: #fff; }
.btn-secondary:hover { background: var(--blue-mid); }
.btn-outline { background: transparent; color: var(--blue-deep); border-color: var(--blue-deep); }
.btn-outline:hover { background: var(--blue-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row.center { justify-content: center; }

/* --- En-tête / navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--beige);
  box-shadow: 0 2px 12px rgba(30,42,51,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .7rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--blue-deep); font-weight: 800; font-size: 1.35rem; }
.brand-icon { color: var(--accent); font-size: 1.6rem; line-height: 1; }
.main-nav { display: flex; flex-wrap: wrap; gap: .2rem .4rem; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.08rem;
  padding: .55rem .9rem; border-radius: 8px;
}
.main-nav a:hover { background: var(--blue-pale); color: var(--blue-deep); }
.main-nav a[aria-current="page"] { color: var(--blue-deep); background: var(--blue-pale); }
.main-nav a.nav-cta { background: var(--accent-dark); color: #fff; }
.main-nav a.nav-cta:hover { background: var(--accent); }

/* --- Hero --- */
.hero { background: linear-gradient(160deg, var(--blue-pale) 0%, var(--cream) 70%); padding: 4rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; aspect-ratio: 4 / 3; background: var(--blue-sky); }
.eyebrow { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .03em; padding: .35rem .9rem; border-radius: 50px; margin-bottom: 1rem; text-transform: uppercase; }

/* --- Cartes --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-pale); color: var(--blue-deep); font-size: 1.8rem; margin-bottom: 1rem;
}

/* --- Étapes (RDV découverte) --- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.4rem; border: 1px solid var(--beige); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-dark); color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: .9rem;
}
.step h3 { font-size: 1.2rem; }

/* --- Liste à puces « check » --- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2.2rem; font-size: 1.1rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: #fff; background: var(--blue-deep); width: 1.6rem; height: 1.6rem;
  border-radius: 50%; display: grid; place-items: center; font-size: .95rem; font-weight: 700;
}

/* --- Tableau tarifs --- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.price-card { background: var(--white); border: 2px solid var(--beige); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--accent); transform: scale(1.02); }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--blue-deep); margin: .3rem 0; }
.price-card .price span { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0; text-align: left; display: grid; gap: .6rem; }
.price-card ul li { padding-left: 1.6rem; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 800; }
.badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: .25rem .8rem; border-radius: 50px; font-size: .85rem; margin-bottom: .6rem; }

table.rate-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rate-table th, .rate-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--beige); font-size: 1.08rem; }
.rate-table th { background: var(--blue-deep); color: #fff; font-size: 1.05rem; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table td:last-child { font-weight: 700; color: var(--blue-deep); white-space: nowrap; }

/* --- Bandeau CTA --- */
.cta-band { background: var(--blue-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce9f0; margin-left: auto; margin-right: auto; }

/* --- Encart contact / coordonnées --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info-block { display: grid; gap: 1.2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); }
.info-item .ico { font-size: 1.6rem; color: var(--accent-dark); }
.info-item a { font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.info-item a:hover { text-decoration: underline; }
.info-item .label { display: block; font-size: .95rem; color: var(--muted); font-weight: 600; }

/* --- Formulaire --- */
.form { background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: 1.05rem; }
.field .req { color: var(--accent-dark); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1.08rem; padding: .85rem 1rem;
  border: 2px solid var(--beige); border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue-sky); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.form-hint { font-size: .95rem; color: var(--muted); }
.honey { position: absolute; left: -5000px; }

/* --- Page header (sous-pages) --- */
.page-head { background: linear-gradient(160deg, var(--blue-pale), var(--cream)); padding: 3rem 0 2.5rem; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { font-size: 1.2rem; color: var(--muted); }

/* --- Pied de page --- */
.site-footer { background: var(--ink); color: #d7dee3; padding: 3rem 0 1.5rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin: 0 0 .9rem; }
.site-footer a { color: #bcd4e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: .6rem; }
.footer-brand .brand-icon { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-bottom { border-top: 1px solid #34424c; margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: .95rem; color: #9fb1bd; }
.footer-bottom a { color: #bcd4e2; }

/* --- Bandeau « zone d'intervention » --- */
.zone { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; font-size: 1.2rem; }
.zone .pin { font-size: 1.8rem; }

/* --- Prose (mentions légales / confidentialité) --- */
.prose { max-width: 80ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-width: 480px; margin: 0 auto; }
  .grid-3, .grid-4, .steps, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  html { font-size: 110%; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; }
  .grid-2, .grid-3, .grid-4, .steps, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  section { padding: 2.5rem 0; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: 100%; }
}
