/* Services Plus 94 — feuille de style
   Concept : un site "lisible d'abord" pour des personnes âgées et leurs proches.
   Grands caractères, contrastes forts, boutons d'appel toujours visibles.
   Vert sapin (confiance, soin) + jaune tournesol (chaleur, actions). */
:root {
  --pine: #1d5049;        /* couleur principale */
  --pine-deep: #123632;   /* bandeaux sombres, texte fort */
  --sun: #f4b63f;         /* actions principales */
  --sun-soft: #fdf0d2;    /* fonds d'accent */
  --mist: #eef3f1;        /* fond de sections */
  --paper: #ffffff;
  --ink: #1b2826;         /* texte */
  --ink-soft: #4a5b58;    /* texte secondaire */
  --line: #d3dedb;

  --f-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;

  --step--1: 0.95rem;
  --step-0: 1.125rem;     /* 18px : corps de texte */
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 2.6rem);
  --step-4: clamp(2.3rem, 5.4vw, 3.6rem);

  --radius: 14px;
  --wrap: 1160px;
  color-scheme: light;
}

html.big-text { font-size: 118%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; color: var(--pine-deep); }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 38em; }
.eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--pine-deep); color: #e6efec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46em; }
.stack { display: grid; gap: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #f7c35f; color: var(--ink); }
.btn--line { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn--line:hover { background: var(--pine); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--pine-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Bandeau supérieur ---------- */
.topbar { background: var(--pine-deep); color: #dce9e5; font-size: var(--step--1); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 8px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar .badge-auth { display: inline-flex; gap: 8px; align-items: center; }
.textsize { background: transparent; border: 1px solid #6c8c86; color: #fff; border-radius: 999px; padding: 4px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.textsize[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine-deep); }
.brand img { height: 52px; width: auto; border-radius: 8px; }
.brand-name { font-family: var(--f-display); font-weight: 750; font-size: 1.35rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--mist); color: var(--pine); }
.nav .btn { min-height: 48px; padding: 0 20px; margin-left: 8px; }
.menu-toggle { display: none; background: var(--mist); border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 700; color: var(--pine-deep); cursor: pointer; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; gap: 8px; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(18,54,50,.12); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px; }
  .nav a { padding: 14px 16px; font-size: var(--step-1); }
  .nav .btn { margin: 8px 0 0; }
  .brand img { height: 44px; }
}

/* ---------- Accueil : hero ---------- */
.hero { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--pine); background: linear-gradient(transparent 62%, var(--sun-soft) 62%); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual .frame { border-radius: 28px; overflow: hidden; aspect-ratio: 4/3.4; max-width: 100%; background: linear-gradient(135deg, var(--pine) 0%, #3f7d72 100%); box-shadow: 0 24px 50px rgba(18,54,50,.18); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -18px; bottom: -22px; background: #fff; border-radius: 18px;
  padding: 16px 20px; box-shadow: 0 14px 34px rgba(18,54,50,.16); display: flex; gap: 14px; align-items: center; max-width: 300px;
}
.hero-card strong { font-family: var(--f-display); font-size: 2rem; color: var(--pine); line-height: 1; }
.hero-card span { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.35; }
.trust { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: var(--step--1); font-weight: 700; color: var(--pine-deep); }
.trust svg { width: 18px; height: 18px; color: var(--pine); flex: none; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { left: 12px; bottom: -18px; }
}

/* ---------- Bloc autorisation ---------- */
.authorised { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--sun-soft); border-radius: 22px; padding: 28px clamp(20px, 4vw, 40px); }
.authorised .seal { width: 84px; height: 84px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; }
.authorised p { color: var(--ink); }
@media (max-width: 600px) { .authorised { grid-template-columns: 1fr; } }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.service { display: grid; gap: 12px; align-content: start; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.service .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--mist); color: var(--pine); display: grid; place-items: center; }
.service .ico svg { width: 28px; height: 28px; }
.service ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.service ul li + li { margin-top: 4px; }

.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--mist), #cfe0db); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .photo-strip { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split .media { border-radius: 22px; overflow: hidden; aspect-ratio: 5/4; background: linear-gradient(135deg, var(--pine), #3f7d72); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Règles d'or */
.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.values li { padding: 14px 22px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); font-family: var(--f-display); font-weight: 650; font-size: var(--step-1); color: #fff; }
.values li::before { content: "★"; color: var(--sun); margin-right: 10px; font-size: .9em; }

/* Étapes : vraie séquence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--pine); }
.steps li::before { content: "Étape " counter(step); font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pine); }
.steps p { color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Financement */
.fund { display: grid; gap: 8px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.fund .tag { justify-self: start; font-size: var(--step--1); font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--pine-deep); }
.fund p { color: var(--ink-soft); }

/* Zone */
.zone-box { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.zone-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: .9; color: var(--sun); }
@media (max-width: 600px) { .zone-box { grid-template-columns: 1fr; gap: 12px; } }

/* Bandeau contact */
.cta-band { background: var(--pine); color: #e7f0ed; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band .phones { display: grid; gap: 12px; }
.cta-band .phones a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-weight: 700; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.cta-band .phones a:hover { background: rgba(255,255,255,.18); }
.cta-band .phones small { display: block; font-weight: 400; font-size: var(--step--1); color: #bcd3cd; }
.cta-band svg { width: 26px; height: 26px; color: var(--sun); flex: none; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* Page intérieure : en-tête */
.page-head { background: var(--mist); }
.page-head .wrap { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 16px; }
.crumbs { font-size: var(--step--1); color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* Recrutement */
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perks li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.perks b { display: block; font-family: var(--f-display); color: var(--pine-deep); font-size: var(--step-0); }
.perks svg { width: 26px; height: 26px; color: var(--pine); margin-top: 2px; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25em; width: 22px; height: 22px; border-radius: 50%; background: var(--sun-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5049' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 18px; }
.info-list div { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.info-list svg { width: 26px; height: 26px; color: var(--pine); margin-top: 3px; }
.info-list b { display: block; color: var(--pine-deep); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); background: var(--mist); border-radius: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: var(--step--1); color: var(--ink-soft); }
.consent input { width: 22px; height: 22px; margin-top: 2px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: 12px; font-weight: 700; }
.notice--ok { background: #dff0e6; color: #14532d; }
.notice--err { background: #fde2e1; color: #7f1d1d; }

/* Mentions légales */
.legal { max-width: 46em; display: grid; gap: 34px; }
.legal section { display: grid; gap: 10px; }
.legal h2 { font-size: var(--step-2); }

/* Pied de page */
.footer { background: var(--pine-deep); color: #c7d8d4; font-size: var(--step--1); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px 28px; }
.footer h3 { color: #fff; font-size: var(--step-0); margin-bottom: 10px; }
.footer a { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer .legal-line { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }

/* Bouton d'appel fixe sur mobile */
.call-fab { display: none; }
@media (max-width: 720px) {
  .call-fab {
    display: flex; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  }
  .call-fab .btn { width: 100%; }
  body { padding-bottom: 84px; }
}

/* ---------- Photos (ajout) ---------- */
.service--photo { padding: 0; overflow: hidden; gap: 0; }
.service--photo .thumb { margin: 0; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--mist), #cfe0db); overflow: hidden; }
.service--photo .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service--photo:hover .thumb img { transform: scale(1.04); }
.service--photo .service-body { display: grid; gap: 12px; align-content: start; padding: 0 24px 26px; }
.service--photo .ico { margin-top: -27px; position: relative; background: #fff; box-shadow: 0 6px 16px rgba(18,54,50,.14); }

.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.aud-card { display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--mist); border-radius: 22px; overflow: hidden; }
.aud-card > * { min-width: 0; }
.aud-card figure { margin: 0; min-height: 240px; background: linear-gradient(135deg, var(--pine), #3f7d72); }
.aud-card img { width: 100%; height: 100%; object-fit: cover; }
.aud-card .stack { padding: 26px 26px 28px; gap: 10px; align-content: center; }
.aud-card p:not(.eyebrow) { color: var(--ink-soft); }
@media (max-width: 1000px) { .audience { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .aud-card { grid-template-columns: 1fr; } .aud-card figure { aspect-ratio: 16/10; min-height: 0; } }

.page-head--photo .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(28px, 5vw, 56px); }
.page-head--photo .wrap > * { min-width: 0; }
.head-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; max-width: 100%; background: linear-gradient(135deg, var(--pine), #3f7d72); box-shadow: 0 18px 40px rgba(18,54,50,.15); }
.head-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .page-head--photo .wrap { grid-template-columns: 1fr; } .head-photo { aspect-ratio: 16/9; } }
.cta-band > *, .phones a span { min-width: 0; overflow-wrap: anywhere; }
.notice { background: #fff; }
