/* ============================================================
   cabinet conseil idiôma — feuille de style du site public
   ------------------------------------------------------------
   Tout ce qui se règle se règle ICI, dans le bloc :root.
   Les deux couleurs d'accent (--accent, --accent-soft) sont
   surchargées à la volée par le thème saisonnier actif ;
   les valeurs ci-dessous servent de repli.
   ============================================================ */

/* ------------------------------------------------------------
   POLICE
   Cabin (Google Fonts) est chargée dans le <head> du gabarit.
   C'est un substitut libre de Gill Sans, dessiné dans la même
   veine humaniste.

   POUR REVENIR À GILL SANS :
     1. déposer les fichiers .woff2 dans  assets/fonts/
     2. décommenter le bloc @font-face ci-dessous
     3. retirer les trois balises <link> de Google Fonts
        dans templates/layout.php

@font-face {
  font-family: 'Gill Sans';
  src: url('../fonts/GillSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gill Sans';
  src: url('../fonts/GillSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gill Sans';
  src: url('../fonts/GillSans-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
   ------------------------------------------------------------ */

:root {
  /* --- Charte : les deux couleurs officielles --- */
  --bleu:            #008AB3;
  --marine:          #29234F;

  /* --- Teintes 50 % et 20 % de la charte --- */
  --bleu-50:         #80C5D9;
  --bleu-20:         #CCE9F1;
  --marine-50:       #9491A7;
  --marine-20:       #D4D3DC;

  /* --- Accents (page À propos) — surchargés par les saisons --- */
  --accent:          #E42F12;
  --accent-soft:     #FAD5D0;

  /* --- Neutres --- */
  --blanc:           #FFFFFF;
  --gris:            #F7F7F5;
  --gris-trait:      #DCDFE4;
  --texte:           var(--marine);
  --texte-doux:      #6E6A83;

  /* --- Typographie --- */
  --police: 'Cabin', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

  /* Échelle relevée au pixel sur grille_web_CC_idioma.pdf (planche 1280 px) :
     titres 30,8 px · surtitres 21,4 px · corps 20,8 px · secondaire 19 px
     · étiquettes 13 px · navigation 15 px · numéro de service 76 px.
     Les clamp() reproduisent ces valeurs à 1280 et montent à peine au-delà. */
  --t-xxl:  clamp(1.6rem, 2.4vw, 2.1rem);      /* titres de héro et de section */
  --t-xl:   clamp(1.6rem, 2.4vw, 2.1rem);
  --t-l:    clamp(1.15rem, 1.72vw, 1.42rem);   /* sous-titres, questions       */
  --t-sur:  clamp(1.1rem, 1.67vw, 1.4rem);     /* surtitres                    */
  --t-m:    clamp(1.05rem, 1.62vw, 1.35rem);   /* corps                        */
  --t-s:    clamp(.98rem, 1.48vw, 1.24rem);    /* secondaire                   */
  --t-nav:  clamp(.9rem, 1.17vw, 1rem);        /* navigation                   */
  --t-xs:   clamp(.78rem, 1.02vw, .88rem);     /* étiquettes                   */

  /* --- Rythme --- */
  --h-entete:    72px;

  /* Largeur utile du contenu. C'est LE réglage à toucher si le site
     paraît trop étroit ou trop large : min() garde une marge sur les
     petits écrans et plafonne sur les très grands.
       plus large  : min(1760px, 96vw)
       maquette    : 1180px            */
  --conteneur:   min(1560px, 94vw);
  /* Distance entre le bord intérieur du conteneur et le bord de l'écran.
     Sert aux images qui doivent aller se coller contre ce bord. */
  --bord:        calc((100vw - min(1560px, 94vw)) / 2 + var(--gouttiere));
  --gouttiere:   clamp(1.25rem, 2.5vw, 2.5rem);
  --sec-y:       clamp(3rem, 6vw, 5.5rem);
  --rayon:       2px;
}

/* ============================ Base ============================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* clip, pas hidden : hidden casserait l'entête collante. */
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: var(--t-m);
  line-height: 1.62;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--marine); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

.conteneur {
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* ========================== Entête ============================ */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-trait);
}
.entete__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--h-entete);
  padding-block: .55rem;
}
/* Logo calé à gauche, navigation poussée à droite */
.entete__logo { flex: 0 0 auto; margin-right: auto; display: block; }
.entete__logo img { height: clamp(38px, 3.7vw, 50px); width: auto; display: block; }

.nav { margin-left: auto; }
.nav__liste {
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(.9rem, 1.9vw, 2rem);
  list-style: none; margin: 0; padding: 0;
}
.nav__lien {
  color: var(--marine); font-weight: 600; font-size: var(--t-nav);
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav__lien:hover { text-decoration: none; border-bottom-color: var(--bleu-50); }
.nav__lien.est-actif { border-bottom-color: var(--bleu); }

/* ------------------------- Menu déroulant ---------------------- */
.nav__item { position: relative; }
/* Ce bouton ne porte volontairement PAS la classe .nav__lien : les deux
   ensemble se disputaient la propriété display, et le <button> retombait
   sur son alignement centré par défaut. Il reprend donc ici, seul, tout
   ce dont il a besoin. */
.nav__lien--parent {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem 0;
  background: none; border: 0; border-bottom: 2px solid transparent;
  font-family: inherit; font-size: var(--t-nav); font-weight: 600;
  color: var(--marine); text-align: left; cursor: pointer;
}
.nav__lien--parent:hover { border-bottom-color: var(--bleu-50); }
.nav__lien--parent.est-actif { border-bottom-color: var(--bleu); }
.nav__chevron {
  color: var(--bleu); font-size: .7em; line-height: 1;
  transition: transform .18s ease;
}
.nav__lien--parent[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.sous-menu {
  position: absolute; top: calc(100% + .55rem); left: -1rem; z-index: 60;
  min-width: 15rem; list-style: none; margin: 0; padding: .5rem 0;
  background: var(--blanc);
  border: 1px solid var(--gris-trait);
  border-top: 3px solid var(--bleu);
  border-radius: var(--rayon);
  box-shadow: 0 12px 28px rgba(41, 35, 79, .12);
}
.sous-menu[hidden] { display: none; }
.sous-menu::before {
  content: ''; position: absolute; left: 0; right: 0;
  top: -.65rem; height: .65rem;
}
.sous-menu a {
  display: block; padding: .6rem 1.15rem;
  color: var(--marine); font-size: var(--t-nav); font-weight: 600;
}
.sous-menu a:hover { background: var(--bleu-20); text-decoration: none; }
.sous-menu a[aria-current="page"] { color: var(--bleu); }

.bouton {
  display: inline-block; font-weight: 600; font-size: var(--t-nav);
  padding: .7rem 1.4rem; border-radius: var(--rayon);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bouton:hover { text-decoration: none; }
.bouton--contour {
  color: var(--marine); border-color: var(--bleu); background: transparent;
}
.bouton--contour:hover { background: var(--bleu-20); }
.bouton--plein {
  color: #fff; background: var(--bleu); border-color: var(--bleu);
}
.bouton--plein:hover { background: #00738f; border-color: #00738f; }
.bouton[disabled] { opacity: .45; cursor: not-allowed; }

/* Bouton hamburger */
.entete__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
}
.entete__burger span {
  display: block; height: 2px; background: var(--marine);
  transition: transform .22s ease, opacity .18s ease;
}
.entete__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.entete__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.entete__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.entete__voile {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(41, 35, 79, .45);
}

@media (max-width: 900px) {
  .entete__burger { display: flex; }
  .entete__logo img { height: clamp(34px, 8vw, 44px); }
  .nav {
    position: absolute; z-index: 45; top: 100%; left: 0; right: 0; margin-left: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--gris-trait);
    max-height: 72dvh; overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }
  .nav.est-ouvert { transform: none; opacity: 1; visibility: visible; }
  .nav__liste {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gouttiere) 1.75rem;
  }
  .nav__liste > li { border-bottom: 1px solid var(--gris-trait); }
  .nav__lien { display: block; padding: 1rem 0; font-size: 1.05rem; border-bottom: 0; }
  .nav__item-bouton { border-bottom: 0 !important; padding-top: 1.25rem; }
  .nav__lien--parent {
    display: flex; width: 100%; padding: 1rem 0;
    justify-content: flex-start; text-align: left;
    font-size: 1.05rem; border-bottom: 0;
  }
  .nav__chevron { font-size: .9rem; padding-left: .6rem; }
  .sous-menu::before { content: none; }
  .sous-menu {
    position: static; min-width: 0; margin: 0 0 .75rem;
    border: 0; border-left: 2px solid var(--bleu-50); border-radius: 0;
    box-shadow: none; padding: 0 0 0 1rem; background: none;
  }
  .sous-menu a { padding: .7rem 0; font-weight: 400; }
  .sous-menu a:hover { background: none; }
  .nav__item-bouton .bouton { display: block; text-align: center; }
}

/* ========================= Sections ============================ */

/* L'entête est collante : sans cette marge, une ancre passerait dessous. */
.sec { padding-block: var(--sec-y); scroll-margin-top: calc(var(--h-entete) + 1.5rem); }
.sec--blanc       { background: var(--blanc); }
.sec--clair       { background: var(--bleu-20); }
.sec--gris        { background: var(--gris); }
.sec--accent_soft { background: var(--accent-soft); }
.sec--marine      { background: var(--marine); color: #fff; }
.sec--accent      { background: var(--accent); color: #fff; }
.sec--marine :is(h1,h2,h3,.surtitre),
.sec--accent :is(h1,h2,h3,.surtitre) { color: #fff; }
.sec--marine a, .sec--accent a { color: #fff; text-decoration: underline; }

/* Deux sections voisines de même fond : on fusionne l'espacement */
.sec + .sec.sec--clair, .sec + .sec.sec--blanc { }

/* La casse vient du contenu, pas du CSS : la maquette écrit « Accueil » et
   « Nos services » en capitale initiale, « POINT DE DÉPART » en majuscules. */
.surtitre {
  display: block;
  font-size: var(--t-sur);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--bleu);
  margin-bottom: .55rem;
}
.sec--accent_soft .surtitre { color: var(--accent); }
/* Sur À propos, la maquette passe tous les surtitres en accent (rouge). */
.page--a-propos .surtitre { color: var(--accent); }

.titre-section { font-size: var(--t-xl); max-width: 34ch; line-height: 1.17; }
.titre-section--large { max-width: 46ch; }
.plomb { font-size: var(--t-m); max-width: 64ch; color: var(--texte); }
.sec--marine .plomb, .sec--accent .plomb { color: rgba(255,255,255,.92); }

.filet { border: 0; border-top: 1px solid currentColor; opacity: .28; margin: 2rem 0; }

/* ============================ Héro ============================= */

.hero__grille {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero__grille--avec-image { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 860px) {
  .hero__grille--avec-image { grid-template-columns: minmax(0, 1fr); }
}
/* La colonne prend la largeur de sa plus longue ligne : le filet placé
   sous elle fait donc exactement la largeur du titre, comme sur la maquette. */
/* Aucun retour de ligne forcé dans les titres : c'est la largeur de cette
   colonne qui décide où la ligne se coupe. En mobile elle prend tout. */
.hero__contenu { max-width: min(100%, 28em); }
.hero__titre { font-size: var(--t-xxl); line-height: 1.17; margin-bottom: .9rem; max-width: 100%; }
.hero__texte { max-width: 100%; }
/* L'illustration se colle au bord de l'écran et déborde le rembourrage
   vertical de la section : aucun blanc au-dessus ni en dessous. */
.hero__image { justify-self: stretch; align-self: stretch; display: grid; align-content: center; }
.hero__image img { width: 100%; height: auto; }
@media (min-width: 761px) {
  .hero__grille--avec-image .hero__image {
    margin-right: calc(-1 * var(--bord));
    margin-block: calc(-1 * var(--sec-y));
  }
}
.service__image { align-self: center; }
.service__image img { width: 100%; height: auto; }
@media (min-width: 761px) {
  .service__grille--avec-image .service__image {
    margin-right: calc(-1 * var(--bord));
    margin-block: calc(-1 * var(--sec-y));
  }
}

.hero__liens {
  display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.75rem);
  list-style: none; margin: 1.9rem 0 0; padding: 1.15rem 0 0;
  border-top: 1px solid var(--bleu);
}
.hero__liens { font-size: var(--t-s); }
.hero__liens a { color: var(--marine); }
.hero__liens .num { color: var(--marine); font-weight: 600; margin-right: .45rem; }

/* ========================== Services =========================== */

.service__grille {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}
.service__grille--avec-image { grid-template-columns: auto minmax(0, 1fr) minmax(0, .8fr); }
.service__numero {
  font-size: clamp(3rem, 5.9vw, 5rem);
  font-weight: 700; line-height: .95; color: var(--bleu);
  letter-spacing: -.03em;
}
.service__titre { font-size: var(--t-l); max-width: 26ch; }
.service__texte { max-width: 56ch; }

.service__details {
  display: grid; gap: 1.5rem 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem; padding: 1.5rem 0;
  border-top: 1px solid var(--bleu-50);
  border-bottom: 1px solid var(--bleu-50);
  font-size: var(--t-s);
}
@media (max-width: 700px) { .service__details { grid-template-columns: minmax(0, 1fr); } }
.etiquette {
  display: block; font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--bleu); margin-bottom: .35rem;
}
.service__cta {
  display: inline-block; margin-top: 1.5rem;
  font-size: var(--t-s); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--marine);
}
.service__cta:hover { color: var(--bleu); text-decoration: none; }
.service__cta .fleche { color: var(--bleu); margin-left: .35rem; }

.service__suivant {
  display: block; text-align: left; margin-top: .9rem;
  font-size: var(--t-s); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--marine);
}
.service__suivant:hover { color: var(--bleu); text-decoration: none; }
.service__suivant .fleche { color: var(--bleu); margin-left: .45rem; }

@media (max-width: 860px) {
  .service__grille, .service__grille--avec-image { grid-template-columns: minmax(0, 1fr); }
  .service__numero { font-size: 2.6rem; }
}

/* ====================== Carrousel clients ====================== */

.clients { text-align: center; }
.clients__titre {
  font-size: var(--t-l); color: var(--bleu); margin-bottom: 2rem;
}
.carrousel { display: flex; align-items: center; gap: .5rem; }
/* Quatre logos visibles à la fois sur ordinateur, un seul en mobile :
   la largeur d'un élément se déduit de l'espacement, sans valeur en dur. */
.carrousel { --logos-visibles: 3; --logos-espace: clamp(1.25rem, 2.4vw, 2.5rem); }
.carrousel__piste {
  display: flex; gap: var(--logos-espace);
  overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding: .5rem 0; flex: 1; min-width: 0;
  scrollbar-width: none;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
/* Alignement sur le début, pas sur le centre : « center » cale un seul
   logo au milieu de la piste et laisse ses voisins coupés aux extrémités. */
.carrousel__item {
  flex: 0 0 calc((100% - (var(--logos-visibles) - 1) * var(--logos-espace)) / var(--logos-visibles));
  scroll-snap-align: start;
  display: grid; place-items: center;
}
.carrousel__item img {
  max-height: 92px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .78;
  transition: filter .2s ease, opacity .2s ease;
}
.carrousel__item:hover img { filter: none; opacity: 1; }
.carrousel__fleche {
  flex: 0 0 auto; width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  color: var(--bleu-50); font-size: 1.9rem; line-height: 1;
  display: grid; place-items: center;
}
.carrousel__fleche:hover { color: var(--bleu); }

/* ======================== Constat / phases ===================== */

.constat__items, .phases__items {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.constat__items { margin-top: 1.5rem; padding-top: 1.6rem; border-top: 1px solid var(--bleu); font-size: var(--t-s); }
.constat__item { max-width: 30ch; }

.phases__items { margin-top: 2.5rem; }
.phase { padding-left: 1.75rem; border-left: 1px solid var(--bleu-50); }
.phase:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 760px) {
  .phase { padding-left: 0; border-left: 0; border-top: 1px solid var(--bleu-50); padding-top: 1.5rem; }
  .phase:first-child { border-top: 0; padding-top: 0; }
}
.phase__numero { color: var(--bleu); font-weight: 600; font-size: var(--t-s); }
.phase__titre { font-size: var(--t-l); margin: .3rem 0 1.2rem; }
.phase__champ + .phase__champ { margin-top: 1.1rem; }

/* =========================== Cartes ============================ */

.cartes__items {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}
.carte {
  background: var(--blanc); border: 1px solid var(--bleu-50);
  border-radius: var(--rayon); padding: 1.6rem 1.5rem;
}
.carte__etiquette {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--bleu);
}
.carte__titre { font-size: var(--t-l); margin: .5rem 0 .8rem; }
.carte p { font-size: var(--t-s); }

/* ========================== Checklist ========================== */

.checklist {
  display: grid; gap: 0 clamp(2rem, 6vw, 5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none; margin: 2.5rem 0 0; padding: 0;
}
.checklist li {
  display: flex; align-items: baseline; gap: .7rem;
  padding: 1.6rem 0 .9rem; border-bottom: 1px solid var(--bleu-50);
  font-size: var(--t-l); font-weight: 600;
}
.checklist li::before { content: '•'; color: var(--bleu); font-size: 1.1em; }

/* ============================= CTA ============================= */

.cta { text-align: center; }
.cta .surtitre { color: var(--bleu); }
.cta__titre { font-size: var(--t-xl); max-width: 24ch; margin-inline: auto; }
.cta__texte { max-width: 56ch; margin-inline: auto; }
.cta .bouton { margin-top: 1.75rem; }

/* ========================== Citation =========================== */

.citation__texte {
  font-size: var(--t-xl); font-weight: 600; line-height: 1.28;
  max-width: 30ch; margin: 0 0 1.5rem;
}
.citation__sous { max-width: 72ch; font-size: var(--t-s); }

/* ========================== Portrait =========================== */

.portrait__grille {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: start;
}
@media (max-width: 760px) { .portrait__grille { grid-template-columns: minmax(0, 1fr); } }
.portrait__nom { font-size: var(--t-xl); margin-bottom: 1rem; }
.portrait__photo { border-radius: var(--rayon); }
.portrait .surtitre { color: var(--accent); }

/* =========================== Piliers =========================== */

.piliers__items {
  display: grid; gap: clamp(1.25rem, 3vw, 2.25rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.25rem;
}
.pilier { border-top: 1px solid rgba(41,35,79,.3); padding-top: 1rem; }
.pilier__titre { font-size: var(--t-m); font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.pilier p { font-size: var(--t-s); }

/* ====================== Liste numérotée ======================== */

.liste-num { list-style: none; margin: 2.25rem 0 0; padding: 0; }
.liste-num li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: 1.15rem 0; border-bottom: 1px solid rgba(41,35,79,.25);
  font-size: var(--t-l); font-weight: 600;
}
.liste-num .num { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ============================= FAQ ============================= */

.faq__items { margin-top: 2rem; }
.faq__item { border-bottom: 1px solid var(--bleu-50); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.15rem 0; font-family: inherit;
  font-size: var(--t-l); font-weight: 600; color: var(--bleu);
}
.faq__q .signe { flex: 0 0 auto; font-weight: 400; transition: transform .2s ease; }
.faq__q[aria-expanded="true"] .signe { transform: rotate(45deg); }
.faq__r { padding: 0 0 1.25rem; font-size: var(--t-s); max-width: 78ch; }
.faq__r[hidden] { display: none; }

/* ==================== Rendez-vous + formulaire ================= */

.rv__onglets {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--gris-trait); margin-bottom: 2.5rem;
}
.rv__onglet {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 1rem .5rem; font-size: var(--t-s); font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--marine-50); border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.rv__onglet[aria-selected="true"] { color: var(--bleu); border-bottom-color: var(--bleu); }

.rv__intro {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start; margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .rv__intro { grid-template-columns: minmax(0, 1fr); } }
.rv__titre { font-size: var(--t-xl); }
.rv__note { font-size: var(--t-s); color: var(--texte-doux); }

.rv__carte {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--bleu-20); border-left: 4px solid var(--bleu);
  padding: 1.25rem 1.4rem;
}
.rv__carte img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.rv__carte-nom { font-size: var(--t-l); font-weight: 600; color: var(--bleu); }
.rv__carte p { font-size: var(--t-s); margin: 0; }

/* Calendrier */
.cal {
  border: 1px solid var(--bleu); border-radius: var(--rayon); overflow: hidden;
}
.cal__barre {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--bleu); color: #fff; padding: .85rem 1.25rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.cal__nav { display: flex; align-items: center; gap: .75rem; }
.cal__nav button {
  width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.55);
  background: none; color: #fff; cursor: pointer; border-radius: var(--rayon);
  font-size: .9rem; line-height: 1;
}
.cal__nav button:hover:not([disabled]) { background: rgba(255,255,255,.16); }
.cal__nav button[disabled] { opacity: .35; cursor: not-allowed; }
.cal__mois { min-width: 9.5rem; text-align: center; letter-spacing: .06em; }

.cal__corps { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 800px) { .cal__corps { grid-template-columns: minmax(0, 1fr); } }

.cal__grille { padding: 1.5rem; }
.cal__jours, .cal__cases { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__jours { font-size: var(--t-xs); letter-spacing: .1em; color: var(--texte-doux); text-align: center; margin-bottom: .5rem; }
.cal__cases { gap: 2px; }
.cal__case {
  aspect-ratio: 1 / .8; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; border-radius: var(--rayon);
  font-family: inherit; font-size: var(--t-s); color: var(--marine); cursor: pointer;
}
.cal__case[disabled] { color: var(--marine-20); cursor: default; }
.cal__case .point { width: 4px; height: 4px; border-radius: 50%; background: var(--bleu); }
.cal__case[disabled] .point { visibility: hidden; }
.cal__case:hover:not([disabled]) { background: var(--bleu-20); }
.cal__case[aria-pressed="true"] { background: var(--bleu); color: #fff; }
.cal__case[aria-pressed="true"] .point { background: #fff; }

.cal__plages { padding: 1.5rem; border-left: 1px solid var(--gris-trait); }
@media (max-width: 800px) { .cal__plages { border-left: 0; border-top: 1px solid var(--gris-trait); } }
.cal__plages-titre { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.cal__plages-jour { font-size: var(--t-l); font-weight: 600; margin: .3rem 0 .2rem; }
.cal__fuseau { font-size: var(--t-xs); color: var(--texte-doux); margin-bottom: 1.25rem; }
.cal__vide { text-align: center; color: var(--texte-doux); font-size: var(--t-s); padding: 2rem 1rem; }
.cal__liste { display: grid; gap: .5rem; max-height: 320px; overflow-y: auto; }
.cal__heure {
  padding: .7rem 1rem; border: 1px solid var(--bleu-50); border-radius: var(--rayon);
  background: none; font-family: inherit; font-size: var(--t-s); font-weight: 600;
  color: var(--marine); cursor: pointer; text-align: center;
}
.cal__heure:hover { border-color: var(--bleu); background: var(--bleu-20); }
.cal__heure[aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: #fff; }

.cal__alerte {
  padding: 1.5rem; background: var(--gris); border: 1px solid var(--gris-trait);
  border-radius: var(--rayon); font-size: var(--t-s);
}

/* Formulaires */
.form__grille {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
}
@media (max-width: 800px) { .form__grille { grid-template-columns: minmax(0, 1fr); } }

.form { background: var(--gris); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form__lignes { display: grid; gap: 1.4rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.champ--large { grid-column: 1 / -1; }
.champ label {
  display: block; font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--marine);
  margin-bottom: .4rem;
}
.champ input, .champ textarea, .champ select {
  width: 100%; font-family: inherit; font-size: var(--t-m); color: var(--marine);
  background: transparent; border: 0; border-bottom: 1px solid var(--marine-20);
  padding: .5rem 0; border-radius: 0;
}
.champ textarea { min-height: 7rem; resize: vertical; }
.champ input:focus, .champ textarea:focus { border-bottom-color: var(--bleu); outline: none; }
.champ input::placeholder, .champ textarea::placeholder { color: #A9A6B6; }
.champ--erreur input, .champ--erreur textarea { border-bottom-color: var(--accent); }
.champ__erreur { color: var(--accent); font-size: var(--t-xs); margin-top: .3rem; }

.consentement { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.75rem; font-size: var(--t-s); }
.consentement input { margin-top: .3rem; flex: 0 0 auto; }
.form .bouton { margin-top: 1.5rem; }
.form__apres { font-size: var(--t-xs); color: var(--texte-doux); margin-top: .9rem; }

.form__aside > * + * { margin-top: 2rem; }
.form__aside-groupe { padding-bottom: 1.75rem; border-bottom: 1px solid var(--gris-trait); }
.form__aside-groupe:last-child { border-bottom: 0; }
.form__aside p { font-size: var(--t-s); margin: 0 0 .6rem; }

.avis {
  padding: 1rem 1.25rem; border-radius: var(--rayon);
  border-left: 4px solid var(--bleu); background: var(--bleu-20);
  font-size: var(--t-s); margin-bottom: 1.5rem;
}
.avis--erreur { border-left-color: var(--accent); background: var(--accent-soft); }

/* =========================== Pied ============================== */

.pied { background: var(--marine); color: rgba(255,255,255,.9); padding-block: clamp(2.2rem, 3.4vw, 2.75rem) 0; }
/* Sur la maquette, la goutte démarre au-dessus des titres de colonnes et
   son bas s'aligne sur le premier lien de chaque colonne : les colonnes
   sont donc décalées vers le bas, pas le logo vers le haut. */
.pied__inner {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.pied__colonne { padding-top: clamp(1.1rem, 2.2vw, 1.75rem); }
@media (max-width: 980px) { .pied__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pied__inner { grid-template-columns: minmax(0, 1fr); }
  .pied__colonne { padding-top: 0; }
}

.pied__logo { width: clamp(54px, 5vw, 66px); }
.pied__mention {
  font-size: .72rem; letter-spacing: .14em; color: var(--bleu-50);
  margin: .9rem 0 1.4rem;
}
.pied__signature { font-style: italic; font-weight: 600; color: #fff; line-height: 1.45; font-size: 1.05rem; }
.pied__titre {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bleu-50); margin: 0 0 1rem;
}
.pied__colonne ul { list-style: none; margin: 0; padding: 0; }
.pied__colonne li + li { margin-top: .6rem; }
.pied__colonne a { color: rgba(255,255,255,.9); font-size: .95rem; }
.pied__colonne a:hover { color: #fff; }

.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: var(--t-xs); color: rgba(255,255,255,.75);
}
.pied__bas p { margin: 0; }

/* ========================== Impression ========================= */

@media print {
  .entete, .pied, .carrousel__fleche, .rv__onglets { display: none; }
  body { color: #000; }
}

/* ============================================================
   EMPILEMENT MOBILE
   Placé en fin de feuille à dessein : les grilles de base sont
   déclarées plus haut et, à spécificité égale, c'est la dernière
   règle qui gagne. Ce bloc doit rester le dernier.
   ============================================================ */

@media (max-width: 980px) {
  .piliers__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .constat__items,
  .cartes__items,
  .checklist,
  .phases__items,
  .piliers__items,
  .service__details,
  .form__lignes,
  .rv__intro,
  .form__grille,
  .portrait__grille,
  .cal__corps,
  .hero__grille,
  .hero__grille--avec-image,
  .service__grille,
  .service__grille--avec-image,
  .pied__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__contenu { max-width: none; }
  .pied__colonne { padding-top: 0; }

  /* Les illustrations occupent toute la largeur de l'écran */
  .hero__image, .service__image {
    margin-inline: calc(-1 * var(--gouttiere));
    margin-block: 0;
  }
}

@media (max-width: 860px) {
  .carrousel { --logos-visibles: 1; --logos-espace: 1.5rem; }
}
