/* ═══════════════════════════════════════════════════════════════
   PERSONNALISATION RAPIDE DU SITE — TOUTES LES VARIABLES
   ─────────────────────────────────────────────────────────────
   Ce fichier est le SEUL à modifier pour personnaliser le site.
   modernist.css contient les composants de base, ne pas y toucher.

   Les variables ci-dessous écrasent celles de modernist.css.
   Changez une valeur ici → tout le site se met à jour.
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── COULEURS PRINCIPALES ── */
  --color-bg: #F5F5F0;              /* Fond de page (crème clair) */
  --color-surface: #ECEEE6;         /* Surface cartes, footer, champs */
  --color-text: #211E08;            /* Couleur du texte principal (brun foncé) */
  --color-accent: #94812B;          /* Couleur d'accent principale (kaki) */
  --color-accent-2: #7A6B1E;       /* Accent secondaire (kaki foncé) */
  --color-divider: color-mix(in srgb, #211E08 30%, transparent); /* Filets et bordures */

  /* ── RAMPE NEUTRE (du plus clair au plus foncé) ──
     Utilisée pour les fonds, bordures, texte atténué, bandeau cookies, etc. */
  --color-neutral-100: #F9F8F4;
  --color-neutral-200: #EFEEE8;
  --color-neutral-300: #DDDBD1;
  --color-neutral-400: #BCB9AB;
  --color-neutral-500: #9A9686;
  --color-neutral-600: #7A7664;
  --color-neutral-700: #5C584A;
  --color-neutral-800: #403D31;
  --color-neutral-900: #2C291C;     /* Quasi noir — bandeau stats, cookie banner */

  /* ── RAMPE ACCENT (déclinaisons du kaki #94812B) ──
     100 = très clair (fond teinté), 500 = base, 900 = très foncé (texte sur fond clair) */
  --color-accent-100: #FDFBF2;
  --color-accent-200: #F5EFD6;
  --color-accent-300: #E6DCAD;
  --color-accent-400: #CCBA72;
  --color-accent-500: #AD9A3E;
  --color-accent-600: #94812B;      /* = --color-accent (base) */
  --color-accent-700: #756618;      /* Bouton primary :active */
  --color-accent-800: #534A10;
  --color-accent-900: #332E0A;

  /* ── RAMPE ACCENT SECONDAIRE (déclinaisons du kaki foncé #7A6B1E) ── */
  --color-accent-2-100: #FAF8EF;
  --color-accent-2-200: #F0EBD4;
  --color-accent-2-300: #DED5A8;
  --color-accent-2-400: #C0B06B;
  --color-accent-2-500: #9A8D36;
  --color-accent-2-600: #7A6B1E;
  --color-accent-2-700: #5E5212;
  --color-accent-2-800: #433B0C;
  --color-accent-2-900: #2B2608;

  /* ── POLICES ──
     Titres : Barlow Condensed Bold 700
     Texte  : Lato Regular 400
     Pour changer : modifier ici ET l'@import Google Fonts dans modernist.css */
  --font-heading: 'Barlow Condensed', system-ui, sans-serif;
  --font-heading-weight: 700;
  --font-body: 'Lato', system-ui, sans-serif;

  /* ── ESPACEMENTS (padding, margin, gap) ──
     Échelle cohérente de 4px à 32px */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  /* ── ARRONDIS (border-radius) ──
     Changez --radius-md pour modifier tous les coins du site d'un coup.
     --radius-sm = coins discrets, --radius-lg = coins larges (modales, images) */
  --radius-sm: 16px;
  --radius-md: 16px;
  --radius-lg: 16px;

  /* ── OMBRES PORTÉES ──
     3 niveaux : sm (subtile), md (carte), lg (modale) */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2C291C 12%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2C291C 14%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2C291C 20%, transparent);
}

/* ─── Base ───
   Styles globaux : scroll fluide, mise en page flex verticale,
   images responsives par défaut. */
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
img { width: 100%; height: auto; object-fit: cover; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-accent); color: #fff; padding: 10px 16px; z-index: 500; }
.skip-link:focus { left: 8px; top: 8px; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--space-4); }
.section { padding-block: var(--space-8); }
.section-tight { padding-block: var(--space-6); }
.text-center { text-align: center; }
.kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.max-measure { max-width: 62ch; }

/* ─── Header / Nav ───
   En-tête collant (sticky) avec logo, menu hamburger mobile,
   et navigation principale. */
.site-header { position: sticky; top: 0; background: var(--color-bg); z-index: 100; border-bottom: 2px solid var(--color-divider); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-3); gap: var(--space-3); }
.nav-brand { text-decoration: none; color: var(--color-text); font-size: 18px; letter-spacing: -0.01em; display: inline-flex; align-items: center; }
.nav-brand img { height: 36px; width: auto; display: block; object-fit: contain; }
.brand-accent { color: var(--color-accent); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-links {
  position: fixed; top: 61px; left: 0; right: 0; bottom: 0; background: var(--color-bg);
  display: flex; flex-direction: column; padding: var(--space-4); overflow-y: auto;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-links a { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); font-size: 16px; }
.nav-links .nav-cta { border: 0; margin-top: var(--space-3); text-align: center; justify-content: center; padding: var(--space-2) var(--space-4); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { position: static; transform: none; opacity: 1; pointer-events: auto; flex-direction: row; align-items: center; gap: var(--space-6); padding: 0; background: transparent; }
  .nav-links a { border-bottom: 0; padding: 0; }
  .nav-links .nav-cta { margin-top: 0; }
}

/* ─── Hero ───
   Section d'accroche principale en haut de la page d'accueil.
   Grille image + texte, responsive en colonne sur mobile. */
.hero { display: grid; gap: var(--space-6); align-items: center; padding-block: var(--space-6) var(--space-8); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; padding-block: var(--space-8); } }
.hero h1 { font-size: clamp(32px, 6vw, 54px); }
.hero .lead { font-size: 16px; opacity: .85; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.hero-figure { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; }
.hero-figure img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }

/* ─── Chips / Zones ───
   Petites étiquettes (chips) pour les zones desservies,
   compétences, etc. .zones-band = bandeau pleine largeur. */
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Chips (étiquettes zones, compétences) — fond légèrement relevé */
.chip { border: 1px solid var(--color-divider); padding: 5px 12px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-md); background: #fff; }
.zones-band { background: var(--color-surface); border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); }

/* ─── Grilles ───
   Système de grilles responsive : .grid-2 à .grid-4 colonnes.
   Passe en 1 colonne sur mobile automatiquement. */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ─── Cartes de service ───
   Cartes cliquables dans la section « Mes accompagnements ».
   Bordure kaki au survol. */
/* Fond color-bg sur les cartes de service (section « Mes accompagnements ») */
.service-card { border: 1px solid var(--color-divider); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: inherit; border-radius: var(--radius-md); background: #fff; }
.service-card:hover { border-color: var(--color-accent); }
.service-card .icon { color: var(--color-accent); }
.service-card .card-title { text-decoration: none; }

/* ─── Étapes ───
   Section « Comment ça marche » : numéro + titre + description.
   Numéro en grand kaki à gauche sur desktop. */
.step { border-top: 2px solid var(--color-divider); padding-block: var(--space-4); display: grid; gap: var(--space-2); }
@media (min-width: 768px) { .step { grid-template-columns: 90px 1fr; align-items: start; } }
.step-num { font-family: var(--font-heading); font-weight: 800; font-size: 32px; color: var(--color-accent); line-height: 1; }

/* ─── Poster CTA ───
   Bandeau d'appel à l'action plein kaki avec texte blanc.
   Utilisé en bas de chaque page pour le bilan offert. */
.poster { background: var(--color-accent); color: #fff; padding: var(--space-8) var(--space-4); }
.poster h2 { font-size: clamp(28px, 5vw, 44px); color: #fff; }
.poster .btn-secondary { border-color: #fff; color: #fff; }
.poster .btn-secondary:hover { background: rgba(255,255,255,.15); }

/* ─── FAQ ───
   Accordéon de questions fréquentes avec <details>/<summary>.
   Le + / – change automatiquement à l'ouverture. */
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) 0; font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--color-accent); flex: none; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .faq-a { padding-bottom: var(--space-4); opacity: .85; }

/* ─── Tarifs ───
   Tableaux de prix et notes crédit d'impôt.
   .plan-heading = titre de section de tarif. */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.price-table-wrap .table { min-width: 560px; }
.pricing-note { border: 1px solid var(--color-accent); background: var(--color-accent-100); padding: var(--space-3) var(--space-4); font-size: 13px; border-radius: var(--radius-md); }
.plan-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-8) 0 var(--space-3); }
.plan-heading:first-of-type { margin-top: var(--space-4); }

/* ── Tables responsives mobile (tarifs) ──
   Sur mobile (<640px), les tableaux se transforment en cartes
   empilées avec les en-têtes affichés comme labels via data-label
   (injecté automatiquement par site.js). */
@media (max-width: 639px) {
  .price-table-wrap { border: 0; overflow: visible; }
  .price-table-wrap .table { min-width: 0; border: 0; }
  .price-table-wrap thead { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .price-table-wrap tbody tr {
    display: block; border: 1px solid var(--color-divider);
    padding: var(--space-3); margin-bottom: var(--space-3);
  }
  .price-table-wrap td {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 5px 0; border: 0; font-size: 14px; gap: var(--space-2);
  }
  .price-table-wrap td::before {
    content: attr(data-label);
    font-weight: 600; font-size: 11px; text-transform: uppercase;
    letter-spacing: .04em; opacity: .55; flex: none; max-width: 45%;
  }
  .price-table-wrap td:first-child {
    font-weight: 600; flex-direction: column; padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-divider); margin-bottom: 2px;
  }
  .price-table-wrap td:first-child::before { margin-bottom: 2px; }
  .price-table-wrap td:last-child { color: var(--color-accent); font-weight: 700; font-size: 15px; }
}

/* ─── Formulaires / Contact ───
   Page contact : grille formulaire + infos latérales.
   .honeypot = champ caché anti-spam. */
.contact-grid { display: grid; gap: var(--space-6); }
/* Mobile : rapproche la photo du texte d'intro (deux sections consécutives cumulaient leur padding) */
#contact-form { padding-block-start: var(--space-2); }
@media (min-width: 900px) { #contact-form { padding-block-start: var(--space-6); } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.form-row { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
/* Champ en erreur + message ciblé sous le champ */
.input[aria-invalid="true"] { border-color: #B3261E; background: #FFF7F6; }
.input[aria-invalid="true"]:focus-visible { outline-color: #B3261E; }
.field-error { display: block; color: #8C1D18; font-size: 13px; line-height: 1.35; margin-top: 6px; }
.field-error::before { content: "⚠ "; }
/* Le consentement est une ligne flex : son message doit occuper toute la largeur */
.consent-row { flex-wrap: wrap; }
.consent-row .field-error { flex: 1 0 100%; }
/* Base nulle sur le texte, sinon flex-wrap le renvoie sous la case à cocher */
.consent-row > span:not(.field-error) { flex: 1 1 0%; min-width: 0; }

.consent-row { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; margin-block: var(--space-3); }
.consent-row input { margin-top: 3px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-divider); margin-bottom: var(--space-4); border-radius: var(--radius-md); }
.alert-success { border-color: var(--color-accent); background: var(--color-accent-100); }
.contact-card { border: 1px solid var(--color-divider); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); border-radius: var(--radius-md); background: #fff; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 16px; text-decoration: none; color: inherit; }
.contact-line svg { color: var(--color-accent); flex: none; }
/* La carte remplit son cadre : sans height:100%, l'iframe gardait 260px
   dans un .img-frame au ratio 4/3 et laissait une grande zone vide en dessous. */
.map-frame { display: block; border: 0; width: 100%; height: 100%; filter: grayscale(1) contrast(1.05); }

/* ─── Pied de page ───
   Footer 4 colonnes avec logo, navigation, zones, contact.
   .footer-bottom = barre inférieure avec mentions légales. */
/* Poster CTA collé au footer (pas d'espace entre les deux) */
.site-footer { border-top: 2px solid var(--color-divider); background: var(--color-surface); margin-top: 0; }
.footer-grid { display: grid; gap: var(--space-6); padding-block: var(--space-8) var(--space-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-1); }
.footer-links a { font-size: 13px; color: inherit; text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--color-accent); }
.footer-bottom { border-top: 1px solid var(--color-divider); padding-block: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; font-size: 12px; opacity: .8; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--color-accent); }

/* ─── Bandeau cookies ───
   Bandeau fixe en bas de page pour le consentement RGPD.
   Fond sombre, boutons Accepter (kaki) / Refuser (bordure blanche). */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--color-neutral-900); color: #fff; padding: var(--space-4); display: none; flex-direction: column; gap: var(--space-3); border-top: 2px solid var(--color-accent); border-radius: var(--radius-md) var(--radius-md) 0 0; }
@media (min-width: 768px) { .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cookie-banner p { margin: 0; font-size: 13px; max-width: 70ch; }
.cookie-banner a { color: #fff; }
.cookie-actions { display: flex; gap: var(--space-2); flex: none; }
.cookie-banner .btn-secondary { color: #fff; }

/* ─── Avis Google — carousel ───
   Défilement horizontal automatique des avis clients.
   .reviews-carousel = conteneur masqué avec dégradés latéraux.
   .reviews-track = piste qui défile (animation CSS, pause au survol).
   Les cards sont dupliquées en JS pour une boucle infinie. */
.reviews-header { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.reviews-rating-big { font-family: var(--font-heading); font-weight: 800; font-size: 48px; line-height: 1; }
.reviews-stars { display: inline-flex; gap: 2px; color: #C9A838; }
.reviews-stars svg { width: 20px; height: 20px; fill: currentColor; }
.reviews-stars .star-empty { color: var(--color-neutral-300); }
.reviews-meta { font-size: 13px; opacity: .7; }
.reviews-carousel { overflow: hidden; position: relative; }
.reviews-carousel::before,
.reviews-carousel::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none;
}
.reviews-carousel::before { left: 0; background: linear-gradient(to right, var(--color-bg), transparent); }
.reviews-carousel::after { right: 0; background: linear-gradient(to left, var(--color-bg), transparent); }
.reviews-track {
  display: flex; gap: var(--space-4); width: max-content;
  /* Vitesse du défilement — augmentez la durée pour ralentir */
  animation: reviewsScroll 50s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes reviewsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* .review-card = carte d'avis individuelle.
   Position relative pour placer la date en haut à droite.
   Fond color-bg pour se distinguer du fond de section. */
.review-card {
  border: 1px solid var(--color-divider);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 320px;
  flex: none;
  border-radius: var(--radius-md);
  position: relative;
  background: #fff;
}
.review-head { display: flex; align-items: center; gap: var(--space-2); }
/* Avatar arrondi (cercle) avec initiale du client */
.review-avatar {
  width: 40px; height: 40px;
  background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 16px;
  flex: none;
  border-radius: 50%;
}
/* Nom et localisation resserrés (line-height serré, pas de marge) */
.review-author-name { font-weight: 600; font-size: 14px; line-height: 1.2; margin: 0; }
.review-author-loc { font-size: 12px; opacity: .6; line-height: 1.2; margin: 0; }
.review-stars-sm { display: inline-flex; gap: 1px; color: #C9A838; }
.review-stars-sm svg { width: 14px; height: 14px; fill: currentColor; }
.review-stars-sm .star-empty { color: var(--color-neutral-300); }
/* ── Texte des avis — tronqué à 4 lignes par défaut.
   Le lien « Lire la suite » / « Réduire » est généré par JS.
   .review-text.expanded = texte complet affiché. */
.review-text {
  font-size: 13px; opacity: .9; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Texte déplié quand on clique sur « Lire la suite » */
.review-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}
/* Lien « Lire la suite » / « Réduire » sous le texte */
/* Bouton « Lire la suite » / « Réduire » — aligné à gauche */
.review-toggle {
  font-size: 12px;
  color: var(--color-accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font-family: var(--font-body);
  text-align: left;
}
.review-toggle:hover { text-decoration: underline; }
/* Date de l'avis — positionnée en haut à droite de la carte */
.review-time {
  font-size: 11px; opacity: .5;
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}
/* Type de coaching consommé — affiché sous le bouton « Lire la suite » */
.review-service {
  font-size: 11px;
  color: var(--color-accent);
  opacity: .8;
  margin: 0;
  font-style: italic;
}

/* ─── Flèches de navigation du carousel ───
   Boutons gauche/droite pour swiper manuellement les avis.
   Positionnés aux extrémités du carousel, semi-transparents.
   .review-arrow = bouton flèche.
   .review-arrow--left / --right = positionnement gauche/droite. */
.reviews-carousel-wrap {
  position: relative;
}
.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .6;
  transition: opacity .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
}
.review-arrow:hover {
  opacity: 1;
  background: var(--color-surface);
}
.review-arrow--left { left: 8px; }
.review-arrow--right { right: 8px; }
/* Masquer les flèches sur mobile (swipe tactile natif) */
@media (max-width: 639px) {
  .review-arrow { display: none; }
}

/* ─── Logo partenaire (service à la personne) ───
   Badge avec logo de la coopérative de service à la personne.
   Logo utilisé : images/logo-services-a-la-personne.webp */
.partner-badge { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-divider); background: var(--color-bg); border-radius: var(--radius-md); }
.partner-badge img { height: 56px; width: auto; object-fit: contain; }
.partner-badge span { font-size: 11px; opacity: .65; max-width: 20ch; line-height: 1.3; }

/* ─── Options de coaching ───
   Cartes « Formule classique » / « Option Sport Santé »
   sur la page coaching. .option-card--accent = bordure kaki. */
.option-cards { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
@media (min-width: 600px) { .option-cards { grid-template-columns: 1fr 1fr; } }
.option-card { border: 2px solid var(--color-divider); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #fff; }
.option-card .card-title { font-size: 16px; margin-bottom: var(--space-1); }
.option-card .card-body { font-size: 13px; }
.option-card--accent { border-color: var(--color-accent); }

/* ─── Divers ───
   Classes utilitaires : cadre d'image, numéro en grand, texte atténué. */
.img-frame { border: 1px solid var(--color-divider); overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 1000 / 750; }
.img-frame img,
.img-frame video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* Photo d'accroche de la page contact, juste avant le formulaire. */
.img-frame.img-frame--band { aspect-ratio: 21 / 9; margin-bottom: var(--space-6); }
@media (max-width: 860px) { .img-frame.img-frame--band { aspect-ratio: 3 / 2; } }
/* Variantes de cadre — après .img-frame pour l'emporter sur son ratio 4/3. */
/* ─── Carrousel photo ───
   Même cadre visuel que .img-frame : le rail défile d'une image à l'autre,
   avec un temps d'arrêt suffisant pour la voir. Une seule image = rien ne bouge. */
.img-frame.carousel { position: relative; }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.carousel-track > img { flex: 0 0 100%; }
.carousel-dots { position: absolute; left: var(--space-3); bottom: var(--space-3); display: flex; gap: 6px; }
.carousel-dots button { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(32,30,29,.18); transition: background .2s; }
.carousel-dots button:hover { background: rgba(255,255,255,.85); }
.carousel-dots button[aria-current="true"] { background: var(--color-accent); }
.carousel-dots button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

.badge-num { font-family: var(--font-heading); font-weight: 800; font-size: 40px; color: var(--color-accent); line-height: 1; }
.text-muted { opacity: .6; }

/* ─── Bandeau chiffres clés ───
   Fond sombre pleine largeur, 4 colonnes de stats.
   Les chiffres déroulent de 0 à la valeur finale via IntersectionObserver.
   .stats-band = conteneur pleine largeur.
   .stat-item = colonne individuelle. */
.stats-band {
  background: var(--color-neutral-900);
  color: var(--color-bg);
  padding: var(--space-8) var(--space-4);
  overflow: hidden;
}
.stats-band .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  text-align: center;
}
@media (min-width: 640px) {
  .stats-band .container { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .stats-band .container { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
/* Séparateur vertical entre colonnes (desktop) */
@media (min-width: 900px) {
  .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255,255,255,.15);
  }
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  color: var(--color-accent-2-400);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-value .stat-prefix,
.stat-value .stat-suffix {
  font-size: .55em;
  opacity: .85;
}
.stat-label {
  font-size: 13px;
  /* opacity: .7; */
  max-width: 22ch;
  line-height: 1.4;
}

/* ─── Grille responsive texte + photo (page À propos) ───
   1 colonne sur mobile, 2 colonnes sur desktop (texte 1.2fr, photo 1fr).
   La photo s'adapte à la hauteur du texte. */
.about-content-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .about-content-grid { grid-template-columns: 1.2fr 1fr; }
}

/* ─── Bandeau « Mes valeurs » ───
   Fond sombre pleine largeur (comme le bandeau stats),
   3 colonnes centrées avec icônes kaki et texte blanc. */
.values-band {
  background: var(--color-neutral-900);
  color: #fff;
  padding: var(--space-8) var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════
   TAILLE DE TEXTE DESKTOP — 16px pour tout le texte courant
   ─────────────────────────────────────────────────────────────
   Sur desktop (≥768px), tout ce qui est texte descriptif / corps
   passe à 16px pour une meilleure lisibilité.
   Les titres (h1–h4), labels (kicker, meta, tag) et texte
   informatif/optionnel restent à leur taille réduite.
   Sur mobile (<768px), les tailles restent optimisées pour petit écran.
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  /* Corps de carte (accompagnements, options, etc.) */
  .card-body { font-size: 16px; }
  /* Texte des avis Google */
  .review-text { font-size: 16px; }
  /* Réponses FAQ */
  .faq-item .faq-a { font-size: 16px; }
  /* Question FAQ (summary) */
  .faq-item summary { font-size: 18px; }
  /* Description dans les options coaching */
  .option-card .card-body { font-size: 16px; }
  /* Texte dans la modale / dialog */
  .dialog-body { font-size: 16px; }
  /* Cellules de tableau */
  .table td { font-size: 16px; }
  /* Texte du bandeau valeurs */
  .values-band p { font-size: 16px; }
  /* Texte du poster CTA */
  .poster p { font-size: 16px; }
  /* Note crédit d'impôt (tarifs) */
  .pricing-note { font-size: 16px; }
  /* Chips (zones, compétences) */
  .chip { font-size: 16px; }
  /* Titres de cartes — tous contextes (accompagnements, coaching, options) */
  .card-title,
  .service-card .card-title,
  .option-card .card-title,
  span.card-title { font-size: 18px !important; }
  /* Kicker (sous-titres en majuscules kaki) */
  .kicker { font-size: 13px; }
  /* Étapes — numérotation + texte */
  .step .card-body { font-size: 16px; }
  /* Liens de contact */
  .contact-line { font-size: 16px; }
  /* Liens footer */
  .footer-links a { font-size: 16px; }
  /* Bandeau stats — texte blanc (labels) */
  .stat-label { font-size: 16px; }
  /* Titres d'étapes (Bilan & séance découverte, etc.) */
  .step h3, .step h4, .step .card-title { font-size: 18px; }
  /* Description dans les service-cards (accueil) */
  .service-card .card-body { font-size: 16px; }
  /* Titres des service-cards */
  .service-card .card-title { font-size: 18px; }
}


/* ═══════════════════════════════════════════════════════════
   REFONTE UI — composants modernes
   Cartes tarifaires, panneaux d'information, sous-navigation.
   ═══════════════════════════════════════════════════════════ */

/* ─── Sous-navigation par ancres (pills) ───
   Barre collante sous le header, sur la page tarifs. */
.subnav {
  position: sticky; top: 62px; z-index: 90;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 900px) { .subnav { top: 62px; } }
.subnav-inner { display: flex; gap: var(--space-2); overflow-x: auto; padding-block: var(--space-3); scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; text-decoration: none; color: inherit;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--color-divider); background: #fff;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.subnav a:hover { border-color: var(--color-accent); color: var(--color-accent-700); }

/* ─── Cartes tarifaires ───
   Remplacent les tableaux : une carte par formule, prix mis en avant.
   .plan-card--featured = formule mise en avant (bordure kaki + ruban). */
.plan-cards { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
@media (min-width: 620px) { .plan-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .plan-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2);
  background: #fff; border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-accent-400); }
.plan-card--featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-sm); }
.plan-card__ribbon {
  position: absolute; top: -11px; left: var(--space-6);
  background: var(--color-accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan-card__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .55; margin: 0; }
.plan-card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 2px 0 0; }
.plan-card__amount { font-family: var(--font-heading); font-weight: 700; font-size: clamp(34px, 5vw, 44px); line-height: 1; color: var(--color-text); }
.plan-card__unit { font-size: 14px; opacity: .6; }
.plan-card__rate {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--color-accent-700);
  background: var(--color-accent-200); padding: 4px 12px; border-radius: 999px;
}
.plan-card__note { font-size: 13px; opacity: .7; margin: 0; }
.plan-card__meta { font-size: 12px; opacity: .55; margin: 0; }

/* ─── Panneau d'information ───
   Bloc mis en avant avec filet kaki à gauche — remplace les encadrés plats. */
.info-panel {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: #fff; border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.info-panel__icon { color: var(--color-accent); flex: none; margin-top: 2px; }
.info-panel p { margin: 0; font-size: 14px; }
.info-panel h3 { font-size: 16px; margin: 0 0 var(--space-1); }
/* Variante empilée : titre, texte puis actions les uns sous les autres */
.info-panel--stack { flex-direction: column; gap: var(--space-3); }
.info-panel--stack > * { width: 100%; }

/* ─── Grille de faits / repères ───
   Petites tuiles chiffre + libellé, plus légères qu'un tableau. */
.fact-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fact {
  background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  padding: var(--space-4); display: flex; flex-direction: column; gap: 4px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fact:hover { border-color: var(--color-accent-400); box-shadow: var(--shadow-sm); }
.fact__value { font-family: var(--font-heading); font-weight: 700; font-size: 28px; line-height: 1; color: var(--color-accent-700); }
.fact__label { font-size: 13px; opacity: .75; }

/* ─── En-tête de section de tarif ───
   Titre + tag, avec un filet kaki court au-dessus. */
.plan-heading { border-top: 0; }
.section-eyebrow { display: flex; align-items: center; gap: var(--space-3); }
.section-eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--color-accent); border-radius: 2px; flex: none; }

/* ─── Cartes de service (accueil) — relief au survol ─── */
.service-card { background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card .icon-badge {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-accent-200); color: var(--color-accent-700);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.service-card .card-arrow { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--color-accent-700); display: inline-flex; align-items: center; gap: 6px; }
.service-card:hover .card-arrow { gap: 10px; }
.service-card .card-arrow { transition: gap .18s ease; }

/* ─── Étapes (accueil) — pastilles numérotées ─── */
.step-cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step-card { background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.step-card__num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { margin: var(--space-1) 0 0; font-size: 19px; }
.step-card p { margin: 0; font-size: 14px; opacity: .8; }


/* ─── Refonte UI (suite) — FAQ, options, contact ─── */
.faq-item {
  background: #fff; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); margin-bottom: var(--space-3);
  padding-inline: var(--space-6);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item:hover { border-color: var(--color-accent-400); }
.faq-item[open] { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.faq-item summary { font-size: 17px; }
.faq-item .faq-a { opacity: .8; font-size: 15px; }

.option-card { transition: transform .18s ease, box-shadow .18s ease; }
.option-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.contact-card { box-shadow: var(--shadow-sm); }

/* Bandeau valeurs (à propos) — tuiles translucides sur fond sombre */
.value-tile {
  text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  transition: background .2s ease, border-color .2s ease;
}
.value-tile:hover { background: rgba(255,255,255,.09); border-color: var(--color-accent-400); }


/* ─── Panneau crédit d'impôt en deux colonnes ───
   Texte à gauche, logo Service à la personne à droite. */
.info-panel--split {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--space-8); align-items: center;
  padding: var(--space-6);
}
.info-panel--split .info-panel__logo {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center; flex: none;
}
.info-panel--split .info-panel__logo img { height: 104px; width: auto; object-fit: contain; }
.info-panel--split .info-panel__logo span { font-size: 11px; opacity: .6; max-width: 20ch; line-height: 1.3; }
@media (max-width: 700px) {
  .info-panel--split { grid-template-columns: 1fr; gap: var(--space-4); }
  .info-panel--split .info-panel__logo { align-items: flex-start; text-align: left; }
}

/* ─── CTA de fin de formule (page tarifs) ───
   Bandeau accent compact, même esprit que le poster « Un tarif vous parle ? »
   mais contenu dans la largeur du container. */
.plan-cta {
  background: var(--color-accent); color: #fff; border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6); margin-top: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  align-items: center; justify-content: space-between;
}
.plan-cta h3 { color: #fff; font-size: 22px; margin: 0; }
.plan-cta p { margin: 6px 0 0; opacity: .92; font-size: 15px; max-width: 52ch; }
.plan-cta .btn-secondary { border-color: #fff; color: #fff; flex: none; }
.plan-cta .btn-secondary:hover { background: rgba(255,255,255,.15); }
@media (max-width: 640px) { .plan-cta { padding: var(--space-4); } .plan-cta h3 { font-size: 20px; } }

/* ═══════════════════════════════════════════════════════════════
   MOBILE — confort tactile et lisibilité (< 900px)
   Cibles tactiles portées à 44px minimum (recommandation WCAG /
   Apple HIG) et remontée des plus petits corps de texte.
   Le reste du fichier est déjà écrit en mobile-first : les
   media queries min-width n'enrichissent que les grands écrans.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .btn { min-height: 44px; padding-block: 10px; }
  .btn-icon { min-width: 44px; }
  .nav-toggle { min-height: 44px; min-width: 44px; }
  .subnav a { min-height: 44px; display: inline-flex; align-items: center; }
  .review-toggle { min-height: 44px; padding-block: 10px; }
  /* Puces du carrousel : la barre reste fine, la zone tactile est étendue en ::after */
  .carousel-dots { gap: 6px; }
  .carousel-dots button { position: relative; height: 4px; padding: 0; }
  .carousel-dots button::after { content: ''; position: absolute; left: 0; right: 0; top: -20px; bottom: -20px; }
  /* Lisibilité : plus rien sous 12px */
  .kicker { font-size: 12px; }
  .chip { font-size: 13px; padding: 7px 12px; }
  .review-time, .review-service, .review-author-loc { font-size: 12px; }
  .plan-card__label { font-size: 12px; }
  .plan-card__ribbon { font-size: 12px; }
  .tag { font-size: 12px; }
  .partner-badge span, .info-panel--split .info-panel__logo span { font-size: 12px; }
  .footer-links a, .footer-bottom, .consent-row { font-size: 13px; }
  /* Liens légaux du pied de page (dont « Cookies ») — zone tactile confortable */
  .footer-bottom a, .footer-bottom button { min-height: 44px; display: inline-flex; align-items: center; }
}


/* ─── Voile de chargement entre les pages ───
   Apparaît seulement si la page suivante met plus de 200 ms à répondre
   (pas de clignotement sur une navigation instantanée).
   Le logo se dévoile lettre par lettre (balayage par paliers), marque
   une pause complet, puis reboucle ; l'effet pulse tourne en continu. */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.page-loader.is-visible { opacity: 1; visibility: visible; }
/* Le conteneur porte le pulse, l'image porte le dévoilement */
.page-loader__mark {
  /* s'adapte à la largeur d'écran : ~78% sur mobile, plafonné sur grand écran */
  width: clamp(260px, 78vw, 640px);
  animation: loaderPulse 1.3s ease-in-out infinite;
}
.page-loader__mark img { display: block; width: 100%; height: auto; }
.page-loader__mark img {
  animation: loaderReveal 2.6s steps(11, end) infinite;
}
.page-loader::after {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--color-accent);
  animation: loaderBar 2.4s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.94); opacity: .78; }
}
/* Dévoilement de gauche à droite par paliers = lettre par lettre,
   puis maintien du logo complet jusqu'à la fin du cycle. */
@keyframes loaderReveal {
  0%   { clip-path: inset(0 100% 0 0); }
  42%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes loaderBar {
  0% { width: 0; }
  60% { width: 72%; }
  100% { width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader__mark { animation: none; }
  .page-loader__mark img { animation: none; clip-path: none; }
  .page-loader::after { animation: none; width: 40%; }
}


/* Les trois cartes blanches de la section entreprise (page Tarifs) :
   libellé et mention explicative agrandis pour rester lisibles. */
#entreprise .plan-card__label { font-size: 13px; opacity: .7; }
#entreprise .plan-card__meta { font-size: 16px; line-height: 1.5; opacity: .85; }
#entreprise .plan-card__unit { font-size: 16px; }
