/* CVP Conseil · direction A « Horizon » · squelette du 16/11/2026
   Tokens issus de directions-visuelles.md. Les hex de décor sont des estimations
   à l'œil des logos : à remplacer après passage de la pipette. */

/* Polices auto-hébergées (licence OFL), sous-ensemble « latin » de Google Fonts :
   couvre le français (accents, œ, €, apostrophe courbe). Aucun appel à Google à l'affichage. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-Variable.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: only light; /* pas de mode sombre automatique : les couleurs restent exactement celles ci-dessous */
  --ivoire: #FAF7F0; /* blanc cassé : en-tête, hero, étapes, autres pages */
  --soleil: #F9F2C8; /* bandes alternées, soleil, pastilles : jaune pastel doux */
  --papier: #FFFEFB; /* fond des encadrés, un cran plus clair que le fond */
  --ombre-douce: 0 2px 4px rgba(122, 90, 51, 0.12), 0 12px 32px rgba(122, 90, 51, 0.20);
  --eucalyptus: #2F5B57;
  --eucalyptus-fonce: #244744;
  --caramel: #7A5A33;
  --caramel-logo: #A9855B; /* décor seul, jamais de texte */
  --encre: #2B2A26;
  --gris: #5F5A52;
  --bordure: #8D8678;
  --erreur: #9B2C2C;

  --police-titre: "Source Serif 4", Georgia, serif;
  --police-texte: "Source Sans 3", system-ui, sans-serif;

  --t-h1: clamp(2.25rem, 1.5rem + 3.5vw, 4rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --t-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-txt: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --t-pt: 0.875rem;

  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;

  --rayon-carte: 20px;
  --largeur-texte: 62ch;
  --gouttiere: clamp(16px, 5vw, 48px);
  --largeur-max: 1120px;
}

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

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--t-txt);
  line-height: 1.6;
  /* Tous les textes du site sont justifiés ; la césure automatique (lang="fr") évite les grands blancs entre les mots */
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
button { text-align: inherit; } /* les boutons suivent aussi la justification (sinon le navigateur les centre) */
/* Seuls les titres (et les petits surtitres) restent alignés à gauche : justifiés, leurs mots s'étirent */
h1, h2, h3, h4, .surtitre { text-align: left; hyphens: manual; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--eucalyptus); text-underline-offset: 0.2em; }
a:hover { color: var(--eucalyptus-fonce); }

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

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  color: var(--encre);
  margin: 0 0 var(--s-3);
}
h1 { font-size: var(--t-h1); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
h4 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 var(--s-3); max-width: var(--largeur-texte); }

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--largeur-max));
  margin-inline: auto;
}
.surtitre {
  display: block;
  margin-bottom: var(--s-3);
  font-size: var(--t-pt);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
}
.mention { font-size: var(--t-pt); color: var(--gris); }

/* Repère provisoire : visible exprès, pour ne rien oublier de remplacer */
.provisoire {
  background: repeating-linear-gradient(135deg, #fff3d6 0 6px, #fbe7b5 6px 12px);
  outline: 1px dashed var(--caramel);
  padding: 0 4px;
  border-radius: 3px;
}

.lien-evitement {
  position: absolute; left: var(--s-3); top: -100px;
  background: var(--eucalyptus); color: var(--ivoire);
  padding: var(--s-2) var(--s-3); border-radius: 8px; z-index: 100;
}
.lien-evitement:focus { top: var(--s-3); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivoire);
  border-bottom: 1px solid rgba(141, 134, 120, 0.35);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: 80px;
}
.logo img { width: 200px; height: auto; }
.nav ul {
  display: flex; align-items: center; gap: var(--s-5);
  list-style: none; margin: 0; padding: 0;
}
.nav a:not(.bouton) {
  color: var(--encre); text-decoration: none; font-weight: 500;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
}
.nav a:not(.bouton):hover,
.nav a[aria-current="page"] { border-bottom-color: var(--caramel-logo); }
.nav-bouton {
  display: none;
  background: none; border: 1.5px solid var(--encre); color: var(--encre);
  border-radius: 999px; min-height: 44px; padding: 0 var(--s-4);
  font: inherit; font-weight: 600; cursor: pointer;
}

@media (max-width: 860px) {
  .logo img { width: 160px; }
  .js .nav-bouton { display: inline-block; }
  .js .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivoire);
    border-bottom: 1px solid rgba(141, 134, 120, 0.35);
    padding: var(--s-3) var(--gouttiere) var(--s-5);
  }
  .js .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .nav a:not(.bouton) { display: block; padding-block: var(--s-3); }
  .nav .bouton { width: 100%; }
  /* Sans JavaScript, le menu reste visible et passe à la ligne */
  .entete .conteneur { flex-wrap: wrap; }
  .nav ul { flex-wrap: wrap; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--s-5);
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--eucalyptus); color: var(--ivoire);
  font-family: var(--police-texte); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s;
}
.bouton:hover { background: var(--eucalyptus-fonce); color: var(--ivoire); }
.bouton-secondaire {
  background: transparent; color: var(--encre); border-color: var(--encre);
}
.bouton-secondaire:hover { background: var(--soleil); color: var(--encre); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--s-8) var(--s-9); }
.hero .conteneur { position: relative; z-index: 1; }
.hero-texte { max-width: 34rem; }
.hero-texte p { font-size: var(--t-h3); line-height: 1.4; }
.hero-texte p.signature { margin-top: var(--s-3); font-size: var(--t-pt); font-weight: 600; color: var(--gris); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* Clé + soleil Corasol, à droite du titre. Sans animation, on voit directement l'image finale. */
.horizon {
  position: absolute; right: var(--gouttiere); top: 46%; translate: 0 -50%;
  width: min(40vw, 600px); z-index: 0; pointer-events: none;
}
/* Sans animation (mouvement réduit) : seul le logo final de CVP Conseil est affiché, sans calques */
.horizon .cvp-calques { display: none; }
/* Déroulé (environ 4,8 s en tout, une seule fois) :
   0 s    la maison du logo CVP se construit (toit, mur, fenêtres),
   0,95 s la branche d'eucalyptus arrive,
   1,2 s  « CVP Conseil » s'écrit de gauche à droite,
   2 s    le fichier d'origine du logo remplace les calques,
   1,5 s  la clé Corasol glisse, puis le soleil se lève, les rayons et « CORASOL INVEST » apparaissent. */
@media (prefers-reduced-motion: no-preference) {
  .horizon .cvp-calques { display: inline; animation: cvp-calques-fin 0.4s ease-in 2.0s both; }
  .horizon .cvp-trait   { stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: cvp-trace 0.35s ease-out both; } /* « 1 2 » : le trait est entièrement caché au départ, sans petit point */
  .horizon .cvp-toit    { animation-duration: 0.5s; }
  .horizon .cvp-mur     { animation-delay: 0.4s; }
  .horizon .cvp-f1      { animation-delay: 0.65s; }
  .horizon .cvp-f2      { animation-delay: 0.75s; }
  .horizon .cvp-f3      { animation-delay: 0.85s; }
  .horizon .cvp-f4      { animation-delay: 0.95s; }
  .horizon .cvp-feuilles { animation: cvp-feuilles-arrivent 0.5s ease-out 0.95s both; }
  .horizon .cvp-voile   { animation: cvp-ecriture 0.9s ease-in-out 1.2s both; }
  .horizon .cvp-final   { animation: cvp-final 0.4s ease-in 2.0s both; }
  .horizon .cle    { animation: cle-glisse 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s both; }
  .horizon .astre  { animation: soleil-leve 1.3s cubic-bezier(0.25, 0.8, 0.3, 1) 2.7s both; }
  .horizon .rayons path { animation: rayon-apparait 0.5s ease-out both; }
  .horizon .rayons path:nth-child(1) { animation-delay: 3.8s; }
  .horizon .rayons path:nth-child(2),
  .horizon .rayons path:nth-child(3) { animation-delay: 3.95s; }
  .horizon .rayons path:nth-child(4),
  .horizon .rayons path:nth-child(5) { animation-delay: 4.1s; }
  .horizon .rayons path:nth-child(6),
  .horizon .rayons path:nth-child(7) { animation-delay: 4.25s; }
  .horizon .nom        { animation: nom-apparait 0.6s ease-out 3.9s both; }
  .horizon .nom-invest { animation: nom-apparait 0.6s ease-out 4.2s both; }
  /* L'animation attend que l'image soit à l'écran (utile sur mobile, où elle est sous le texte) */
  .js .horizon:not(.joue) * { animation-play-state: paused; }
}
@keyframes cvp-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cvp-feuilles-arrivent { from { opacity: 0; translate: 80px -50px; } to { opacity: 1; translate: 0 0; } }
@keyframes cvp-ecriture { from { translate: 0 0; } to { translate: 1180px 0; } }
@keyframes cvp-calques-fin { from { opacity: 1; } to { opacity: 0; } }
@keyframes cvp-final { from { opacity: 0; } to { opacity: 1; } }
@keyframes cle-glisse    { from { translate: -7500px 0; } to { translate: 0 0; } }
@keyframes soleil-leve   { from { translate: 0 760px; }  to { translate: 0 0; } }
@keyframes rayon-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes nom-apparait  { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 700px) {
  /* Sur mobile, l'image passe sous le texte, dans le flux de la page (elle ne recouvre rien) */
  .hero { padding-block: var(--s-7) var(--s-6); }
  .horizon {
    position: static; translate: none; display: block;
    width: min(100%, 440px); margin: var(--s-6) auto 0; padding-inline: var(--gouttiere);
  }
}

/* Les ancres ne se cachent pas sous l'en-tête collant */
[id] { scroll-margin-top: 96px; }
.carte .liste-simple { padding-left: 1.1em; margin: 0 0 var(--s-3); font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
@media (max-width: 700px) { .section { padding-block: var(--s-7); } }
.section-soleil { background: var(--soleil); }
.entete-section { margin-bottom: var(--s-6); }

.cartes {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.carte {
  background: var(--papier);
  box-shadow: var(--ombre-douce);
  border-radius: var(--rayon-carte);
  padding: var(--s-5);
}
.carte p { margin-bottom: var(--s-4); }
.carte .lien-fleche { font-weight: 600; }

/* « Qui fait quoi ? » : une carte par société, avec son logo, pour ne pas les confondre */
.societes { margin-top: var(--s-7); }
.societes > p { margin-bottom: var(--s-5); }
.societe-logo { height: 72px; width: auto; margin-bottom: var(--s-3); }
.societe-logo.logo-corasol { height: 88px; filter: url(#logo-fonce); mix-blend-mode: multiply; }
.societe h4 { margin-bottom: var(--s-3); }
.societe .pays {
  display: block; margin-top: 2px; font-family: var(--police-texte); font-size: var(--t-pt);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--caramel);
}
.societes .resume { margin: var(--s-5) 0 0; font-size: 1.0625rem; }

.etapes {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  list-style: none; margin: 0; padding: 0; counter-reset: etape;
}
.etapes li {
  counter-increment: etape;
  background: var(--papier);
  box-shadow: var(--ombre-douce);
  border-radius: var(--rayon-carte);
  padding: var(--s-4) var(--s-4) var(--s-5);
}
.etapes li::before {
  content: counter(etape);
  display: block; margin-bottom: var(--s-2);
  font-family: var(--police-titre); font-size: 2.5rem; font-weight: 600;
  line-height: 1; color: var(--caramel);
}
.etapes h3 { margin-bottom: var(--s-2); }
.etapes p { font-size: 1rem; }

/* Trois accroches sous le hero */
.accroches { padding-block: var(--s-7); }
.accroches-liste {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.accroches-liste li { border-top: 3px solid var(--caramel-logo); padding-top: var(--s-3); }
.accroches-liste strong {
  display: block; margin-bottom: var(--s-2); text-align: left;
  font-family: var(--police-titre); font-size: var(--t-h3); line-height: 1.25;
}
.accroches-liste span { color: var(--gris); }

/* Liste des documents (accordéon) */
.liste-docs { border-top: 1px solid rgba(141, 134, 120, 0.35); }
.liste-docs:last-of-type { border-bottom: 1px solid rgba(141, 134, 120, 0.35); margin-bottom: var(--s-4); }
.liste-docs summary {
  cursor: pointer; padding: var(--s-3) 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
}
.liste-docs summary::-webkit-details-marker { display: none; }
.liste-docs summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--caramel); }
.liste-docs[open] summary::after { content: "–"; }
.liste-docs ul { margin: 0 0 var(--s-3); padding-left: 1.2em; font-size: 1rem; }
.liste-docs li { margin-bottom: var(--s-2); }

/* Page « demande » : assistant en étapes */
.bandeau-dossier { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.bandeau-dossier .actions { margin-top: 0; }
.assistant { max-width: 44rem; }
.progression { margin-bottom: var(--s-5); }
.barre { height: 8px; border-radius: 999px; background: rgba(141, 134, 120, 0.25); overflow: hidden; }
.barre span { display: block; height: 100%; width: 0; background: var(--eucalyptus); border-radius: 999px; transition: width 0.3s; }
@media (prefers-reduced-motion: reduce) { .barre span { transition: none; } }
.etape-compteur { margin: var(--s-2) 0 0; font-size: var(--t-pt); font-weight: 600; color: var(--gris); }
.pas { border: 0; margin: 0 0 var(--s-6); padding: 0; min-width: 0; }
.pas legend {
  font-family: var(--police-titre); font-weight: 600; font-size: var(--t-h3); line-height: 1.25;
  padding: 0; margin-bottom: var(--s-4); text-align: left;
}
.js .pas { display: none; margin-bottom: var(--s-5); }
.js .pas.actif { display: block; }
.demande-grille { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.demande-grille .champ.large { grid-column: 1 / -1; }
.demande-docs p { max-width: none; }
.assistant .champ textarea { min-height: 96px; }
.js .assistant .si { display: none; }
.js .assistant .si.visible { display: block; }
.pas-nav { display: none; }
.js .pas-nav { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; }
.pas-nav .bouton { min-width: 9rem; }
.js .pas-nav [hidden] { display: none; }
.vous-concerne { display: none; font-size: var(--t-pt); font-weight: 600; color: var(--eucalyptus); }
.liste-docs.pertinent .vous-concerne { display: inline; margin-left: auto; margin-right: var(--s-3); }
.liste-docs summary { justify-content: flex-start; }
.liste-docs summary::after { margin-left: auto; }
.liste-docs.pertinent summary::after { margin-left: 0; }

/* Schéma Belgique / Espagne */
.comparatif { margin-top: var(--s-7); }

/* Le slogan du hero est une phrase longue : titre un peu moins grand */
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }

.deux-colonnes {
  display: grid; gap: var(--s-6); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.portrait {
  width: 100%; max-width: 360px; height: auto; justify-self: center;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-douce);
}
/* « À propos » : la photo flotte à droite et le texte l'entoure. Sur petit écran, la photo reste au-dessus du texte. */
#apropos .deux-colonnes { display: flow-root; max-width: 1180px; } /* largeur limitée : sous la photo, les lignes restent lisibles */
#apropos p { max-width: none; }
/* Le nom est centré en tête de section ; la photo commence en dessous */
#apropos .entete-propos { margin-bottom: var(--s-6); }
#apropos .entete-propos h2 { text-align: center; } /* le surtitre « À propos » reste à gauche */
#apropos .portrait { display: block; width: 100%; max-width: 480px; margin: 0 auto var(--s-5); }
/* Vidéo de présentation à la place du portrait : bouton de lecture central et bascule des sous-titres */
.lecteur-presentation { position: relative; width: 100%; max-width: 480px; margin: 0 auto var(--s-5); }
.lecteur-presentation video { cursor: pointer; display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #2a1c14; border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce); }
.lecteur-play, .lecteur-st { position: absolute; cursor: pointer; color: #2a1c14; background: linear-gradient(180deg, #E4C9A3, #CFA97C 55%, #BF915C); border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.lecteur-play[hidden], .lecteur-st[hidden] { display: none; }
.lecteur-play { top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0 0 0 4px; border-radius: 50%; display: grid; place-items: center; }
.lecteur-st { top: 12px; left: 12px; min-height: 30px; padding: 0 11px; border-radius: 999px; font-family: inherit; font-size: 0.75rem; font-weight: 400; line-height: 1; color: #fffdf6; background: rgba(42, 28, 20, 0.45); box-shadow: none; }
.lecteur-st[aria-pressed="true"] { background: rgba(42, 28, 20, 0.75); color: #E4C9A3; }
@media (max-width: 480px) { .lecteur-st { top: 8px; left: 8px; } }
.lecteur-play:focus-visible, .lecteur-st:focus-visible { outline: 3px solid #fffdf6; outline-offset: 3px; }
.lecteur-barre { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; border-radius: 0 0 var(--rayon-carte) var(--rayon-carte); background: linear-gradient(transparent, rgba(20, 12, 8, 0.78)); color: #fffdf6; transition: opacity 0.25s ease; }
.lecteur-barre[hidden], .lecteur-texte[hidden] { display: none; }
.lecteur-presentation.est-plein .lecteur-barre { border-radius: 0; }
.lecteur-presentation.repos .lecteur-barre:not(:focus-within) { opacity: 0; pointer-events: none; }
.lecteur-avance { display: block; width: 100%; height: 18px; margin: 0; accent-color: #CFA97C; cursor: pointer; }
.lecteur-commandes { display: flex; align-items: center; gap: 6px; }
.lecteur-commandes button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; cursor: pointer; border: 0; border-radius: 50%; color: inherit; background: transparent; }
.lecteur-commandes button:hover { background: rgba(255, 253, 246, 0.18); }
.lecteur-commandes button:focus-visible, .lecteur-avance:focus-visible { outline: 2px solid #fffdf6; outline-offset: 2px; }
.lecteur-temps { margin-right: auto; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.lecteur-pause .i-lire, .lecteur-pause.en-cours .i-pause { display: block; }
.lecteur-pause .i-pause, .lecteur-pause.en-cours .i-lire { display: none; }
.lecteur-son .i-muet, .lecteur-son.muet .i-son { display: none; }
.lecteur-son.muet .i-muet { display: block; }
#apropos .lecteur-presentation .lecteur-texte { position: absolute; left: 12px; right: 12px; bottom: 78px; max-width: none; margin: 0; text-align: center; font-size: 0.95rem; line-height: 1.5; color: #fffdf6; pointer-events: none; }
.lecteur-texte span { background: rgba(42, 28, 20, 0.82); padding: 2px 8px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* la vidéo ne dépasse jamais la hauteur de la fenêtre : les sous-titres restent visibles */
#apropos .lecteur-presentation { max-width: min(680px, max(420px, calc((100vh - 40px) * 0.75))); }
/* plein écran : le cadre entier (image, pastille et sous-titres), image jamais rognée */
#apropos .lecteur-presentation.est-plein { float: none; width: 100%; height: 100%; max-width: none; margin: 0; background: #000; }
#apropos .lecteur-presentation.est-plein video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: #000; border-radius: 0; box-shadow: none; }
#apropos .lecteur-presentation.est-plein .lecteur-texte { bottom: 90px; font-size: clamp(1.05rem, 2.8vh, 1.9rem); padding: 0 8%; }
@media (prefers-reduced-motion: no-preference) {
  .lecteur-play, .lecteur-st { transition: transform 0.2s ease; }
  .lecteur-play:hover { transform: scale(1.08); }
  .lecteur-play:active, .lecteur-st:active { transform: scale(0.96); }
}
@media (min-width: 961px) {
  #apropos .portrait { float: right; width: 480px; margin: 0 0 var(--s-4) var(--s-6); }
  #apropos .lecteur-presentation { float: right; width: min(680px, 60%, max(420px, calc((100vh - 40px) * 0.75))); margin: 0 0 var(--s-4) var(--s-6); }
}

.page-titre { padding-block: var(--s-8) var(--s-6); }
.page-titre p { font-size: var(--t-h3); line-height: 1.4; }

.liste-simple { padding-left: 1.2em; max-width: var(--largeur-texte); }
.liste-simple li { margin-bottom: var(--s-2); }
.avertissement {
  border-left: 3px solid var(--caramel-logo);
  padding-left: var(--s-4); max-width: var(--largeur-texte);
}

/* ---------- Contact et formulaire ---------- */
.formulaire { display: grid; gap: var(--s-4); max-width: 34rem; }
.champ label, .champ legend { display: block; font-weight: 600; margin-bottom: var(--s-2); }
.champ input:not([type="checkbox"]), .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: var(--s-2) var(--s-3);
  background: var(--papier); color: var(--encre);
  /* Même ombrage que les autres encadrés ; le liseré fin garde le champ repérable (contraste) */
  border: 1px solid var(--bordure); border-radius: 12px;
  box-shadow: var(--ombre-douce);
  font: inherit;
}
.champ textarea { min-height: 160px; resize: vertical; }
.champ input:user-invalid, .champ select:user-invalid, .champ textarea:user-invalid {
  border-color: var(--erreur); border-width: 2px;
}
.erreur {
  display: none; margin-top: var(--s-2);
  font-size: var(--t-pt); color: var(--erreur); font-weight: 500;
}
.champ :user-invalid ~ .erreur { display: block; }
.consentement { display: flex; gap: var(--s-3); align-items: flex-start; }
.consentement input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--eucalyptus); }
.consentement label { font-weight: 400; margin: 0; text-align: left; } /* phrase d'acceptation alignée à gauche (grand écran et mobile) */
.etat-formulaire {
  min-height: 1.5em; font-weight: 500; color: var(--caramel);
}

/* Carte Google Maps : elle ne se charge qu'après un clic du visiteur (vie privée) */
.carte-bureau {
  max-width: 26rem; aspect-ratio: 4 / 3; margin: var(--s-4) auto 0;
  background: var(--papier); border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-douce); overflow: hidden;
  display: grid; place-items: center;
}
/* Grand écran : horaires et carte un peu plus bas, sous l'introduction (le mobile a sa propre marge plus bas) */
.contact-infos { margin-top: var(--s-6); }
/* La phrase sous la carte est centrée sur la carte (même largeur maximale qu'elle) */
.carte-bureau + .mention { max-width: 26rem; margin-inline: auto; text-align: center; }
/* Horaires en gras (grand écran et mobile) */
/* Les horaires ont la largeur de la carte : leur centre est donc exactement celui de la carte */
.contact-infos > p:first-child { font-weight: 600; text-align: center; max-width: 26rem; margin-inline: auto; }
/* Mobile : la carte est un peu plus petite (300 px de large au maximum) */
@media (max-width: 520px) {
  .carte-bureau { max-width: 300px; margin-inline: auto; }
  .carte-bureau + .mention { margin-top: var(--s-3); text-align: center; }
}
/* Mobile (page en une seule colonne) : titre et introduction, puis le formulaire,
   puis les horaires et la carte en dessous du formulaire */
@media (max-width: 800px) {
  #contact .deux-colonnes { display: flex; flex-direction: column; gap: 0; }
  #contact .deux-colonnes > div:first-child { display: contents; }
  #contact .formulaire { order: 1; margin-top: var(--s-4); }
  #contact .contact-infos { order: 2; margin-top: var(--s-4); }
  /* Horaires : un petit peu plus grands sur mobile (16 px au lieu de 14 px) */
  #contact .contact-infos > p:first-child { font-size: 1rem; }
  /* Le message d'état ne réserve plus de place tant qu'il est vide (il reste présent pour les lecteurs d'écran) */
  #contact .etat-formulaire { min-height: 0; margin-bottom: 0; }
}
.carte-bureau-attente { padding: var(--s-4); text-align: justify; }
/* Le bouton « Afficher la carte » est centré dans le cadre (le texte au-dessus reste justifié) */
.carte-bureau-attente .bouton { display: flex; width: fit-content; margin-inline: auto; }
.carte-bureau-attente p { font-size: var(--t-pt); color: var(--gris); margin-bottom: var(--s-3); }
.carte-bureau iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--soleil);
  border-top: 2px solid var(--caramel-logo);
  padding-block: var(--s-6) var(--s-4);
  font-size: 0.8125rem;
  line-height: 1.55;
}
/* Adresse à gauche, logo au centre, contact à droite */
.pied-grille {
  display: grid; gap: var(--s-5) var(--s-6);
  grid-template-columns: 1fr auto 1fr; align-items: center;
}
/* Le logo est posé sur un fond clair : ses couleurs (caramel, eucalyptus) ressortent */
.pied-logo {
  display: flex; align-items: center; justify-content: center; gap: var(--s-4);
  background: var(--papier); border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-douce); padding: var(--s-2) var(--s-4);
}
/* Les deux logos ont la même hauteur */
.pied-logo img { height: clamp(64px, 11vw, 120px); width: auto; }
/* Corasol un peu plus grand : son « INVEST » est en petits caractères fins */
.pied-logo .logo-corasol {
  height: clamp(76px, 13vw, 150px); filter: url(#logo-fonce);
  mix-blend-mode: multiply; /* le blanc du fichier se fond dans la carte */
}
/* Pied de page trié par société : CVP Conseil à gauche, Corasol Invest à droite (alignée à droite) ;
   la signature est aussi alignée à droite */
.pied-corasol { justify-self: end; text-align: right; }
.pied-corasol h2 { text-align: right; }
@media (max-width: 1100px) {
  .pied-grille { grid-template-columns: 1fr 1fr; align-items: start; }
  .pied-logo { grid-column: 1 / -1; order: -1; justify-self: center; }
}
/* Mobile : sous le logo, adresse à gauche et contact à droite sur la même ligne (texte un peu réduit) */
@media (max-width: 520px) {
  .pied .conteneur { padding-inline: 12px; }
  .pied { font-size: 0.75rem; }
  /* Le logo est centré verticalement entre la ligne du haut du pied de page et l'adresse/contact */
  .pied { padding-top: var(--s-5); }
  .pied-grille { gap: var(--s-5) var(--s-3); }
  .pied h2 { font-size: 0.6875rem; letter-spacing: 0.08em; }
  /* Les logos suivent la largeur de l'écran pour toujours tenir dans leur carte (même sur 320 px) */
  .pied-logo { gap: var(--s-3); padding-inline: var(--s-3); }
  .pied-logo img { height: 17vw; }
  .pied-logo .logo-corasol { height: 20.3vw; }
}
.pied h2 {
  font-size: 0.75rem; font-weight: 600; margin-bottom: var(--s-2);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--caramel);
}
.pied p { margin-bottom: var(--s-2); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: var(--s-2); }
.pied a { color: var(--encre); }
.pied a:hover { color: var(--eucalyptus); }
/* Bas de page : © à gauche, liens légaux au centre sur une seule ligne, signature à droite */
.pied-bas {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3);
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid rgba(122, 90, 51, 0.3);
  font-size: 0.75rem; color: var(--gris);
}
.pied-bas .signature { justify-self: end; text-align: right; }
.pied-liens { display: flex; gap: var(--s-2); justify-content: center; white-space: nowrap; }
/* Grand écran : le logo est centré verticalement entre la ligne du haut du pied de page
   et la ligne qui sépare le bas de page (même espace au-dessus et en dessous, 32 px) */
@media (min-width: 521px) {
  .pied { padding-top: var(--s-5); }
  .pied-grille { row-gap: var(--s-5); }
}
@media (min-width: 1101px) {
  .pied-bas { margin-top: var(--s-5); }
}
/* Mobile : © à gauche, liens légaux au centre, signature à droite, toujours sur une seule ligne */
@media (max-width: 520px) {
  .pied-bas { grid-template-columns: 1fr auto 1fr; gap: var(--s-2); font-size: 0.75rem; line-height: 1.4; }
  /* Marges desserrées : espaces autour des blocs comme avant (fin de la section Contact 64 px,
     logo centré à 32 px au-dessus et en dessous, ligne du bas et bas de page à 24 px) */
  #contact { padding-bottom: var(--s-7); }
  .pied { padding-bottom: var(--s-4); }
  .pied-bas { margin-top: var(--s-4); padding-top: var(--s-3); }
  /* Seuls les interlignes et les petits espaces entre les lignes restent resserrés */
  .pied { line-height: 1.4; }
  .pied h2 { margin-bottom: 6px; }
  .pied p { margin-bottom: 6px; }
  .pied li { margin-bottom: 4px; }
  /* Les deux liens légaux s'empilent au centre pour laisser de la place de chaque côté */
  .pied-liens { flex-direction: column; align-items: center; gap: 2px; }
  .pied-liens > span { display: none; }
  .pied-bas .signature { text-wrap: balance; }
}
.signature { opacity: 0.8; transition: opacity 0.2s; }
.signature a { color: var(--caramel); font-weight: 600; }
.signature:hover, .signature:focus-within { opacity: 1; }

/* « À propos » sur beige (28/11/2026), photo nette aux coins arrondis, sans fondu. */
#apropos { background: #EADFCF; }
#apropos .surtitre { color: #5E4426; } /* un peu plus foncé que le caramel du site, pour le contraste sur beige */

/* Phrase de conclusion d'« À propos » */
#apropos .conclusion {
  clear: both; margin: var(--s-6) 0 0; padding-top: var(--s-5);
  text-align: center;
  /* filet séparateur qui se fond aux deux extrémités */
  background: linear-gradient(to right, transparent, var(--caramel-logo) 35%, var(--caramel-logo) 65%, transparent) top center / 100% 3px no-repeat;
  font-family: var(--police-titre); font-weight: 600; font-size: var(--t-h3); line-height: 1.35;
}
#apropos .conclusion a { display: block; margin-top: var(--s-3); font-family: var(--police-texte); font-size: 1rem; }

/* Page demande : intertitre du second demandeur */
.second-titre { margin: 0; max-width: none; }
.js .assistant .accord-second:not(.visible) { display: none; }

/* Choix « Oui / Non » en cases carrées (un seul choix possible) */
.choix-carres { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix-carres legend { padding: 0; text-align: left; }
.champ.choix-carres label { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin: 0 var(--s-5) 0 0; font-weight: 400; cursor: pointer; }
.champ.choix-carres input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0;
  display: grid; place-content: center;
  background: var(--papier); border: 1.5px solid var(--bordure); border-radius: 6px; cursor: pointer;
}
.champ.choix-carres input[type="radio"]:checked { background: var(--eucalyptus); border-color: var(--eucalyptus); }
.champ.choix-carres input[type="radio"]:checked::after { content: ""; width: 6px; height: 12px; border: solid var(--papier); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
/* Sous-question rattachée au champ qui précède : décalée, avec un repère à gauche */
.choix-carres.sous-question { margin-left: var(--s-3); padding-left: var(--s-3); border-left: 3px solid var(--caramel-logo); }
/* « Oui » et « Non » restent alignés, que la case soit cochée ou non */
.champ.choix-carres label { vertical-align: top; }
.champ.sous-question:not(.choix-carres) { margin-left: var(--s-3); padding-left: var(--s-3); border-left: 3px solid var(--caramel-logo); }
/* Les questions Oui / Non s'ecrivent comme les autres questions, pas comme un titre d'etape */
.pas .choix-carres legend { font-family: var(--police-texte); font-size: 0.9375rem; font-weight: 600; line-height: 1.5; color: var(--encre); margin-bottom: var(--s-1); }

/* Adresse découpée : rue large, numéro et boîte courts ; en colonne sur petit écran */
.groupe-adresse { border: 0; margin: 0; padding: 0; min-width: 0; }
.pas .groupe-adresse legend { font-family: var(--police-texte); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; margin-bottom: var(--s-2); padding: 0; }
.grille-adresse { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-adresse .rue, .grille-adresse .ville, .grille-adresse .plein { grid-column: 1 / -1; }
.grille-adresse .champ label { font-weight: 500; }
@media (min-width: 640px) {
  .grille-adresse { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grille-adresse .rue { grid-column: span 4; }
  .grille-adresse .court { grid-column: span 1; }
  .grille-adresse .court:has(#d-code-postal) { grid-column: span 2; }
  .grille-adresse .ville { grid-column: span 4; }
}
/* La boîte a assez de place pour son libellé sur une ligne */
@media (min-width: 640px) {
  .grille-adresse .rue { grid-column: span 3; }
  .grille-adresse .court:has(#d-adresse-boite), .grille-adresse .court:has(#d-boite) { grid-column: span 2; }
  .grille-adresse .court:has(#d-code-postal) { grid-column: span 2; }
}
/* Numéro et boîte : réponses courtes, cases étroites */
.champ input#d-numero, .champ input#d-boite { width: 96px; max-width: 100%; }
@media (min-width: 640px) {
  .grille-adresse { grid-template-columns: minmax(0, 1fr) 96px 96px; }
  .grille-adresse .rue, .grille-adresse .court:has(#d-numero), .grille-adresse .court:has(#d-boite), .grille-adresse .court:has(#d-adresse-boite) { grid-column: auto; }
  .grille-adresse .court:has(#d-code-postal) { grid-column: 1; max-width: 160px; }
  .grille-adresse .ville { grid-column: 1 / -1; }
  .grille-adresse .plein { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
  .grille-adresse { grid-template-columns: 140px minmax(0, 1fr) 96px 96px; }
  .grille-adresse .rue { grid-column: 1 / 3; }
  .grille-adresse .court:has(#d-code-postal) { grid-column: 1; max-width: none; }
  .grille-adresse .ville { grid-column: 2 / -1; }
}

/* Page demande : chaque case a la longueur de la réponse attendue (jamais plus large que l'écran) */
.assistant .champ #d-enfants-nombre,
.assistant .champ #d-peb { width: 100%; max-width: 6rem; }
.assistant .champ #d-revenu-mois-1,
.assistant .champ #d-revenu-mois-2,
.assistant .champ #d-pension-recue,
.assistant .champ #d-allocations,
.assistant .champ #d-cheques-repas,
.assistant .champ #d-voiture-societe,
.assistant .champ #d-epargne-projet,
.assistant .champ #d-assurance-groupe,
.assistant .champ #d-loyer,
.assistant .champ #d-ligne-credit,
.assistant .champ #d-pension-payee,
.assistant .champ #d-prix-achat,
.assistant .champ #d-montant-credit { width: 100%; max-width: 10rem; }
.assistant .champ #d-adresse-depuis,
.assistant .champ #d-naissance,
.assistant .champ #d-belgique-depuis,
.assistant .champ #d-carte-validite,
.assistant .champ #d-employeur-depuis,
.assistant .champ #d-activite-compl-depuis { width: 100%; max-width: 12rem; }
.assistant .champ #tel,
.assistant .champ #d-nationalite,
.assistant .champ #d-num-entreprise,
.assistant .champ #d-enfants-ages,
.assistant .champ #d-pays { width: 100%; max-width: 14rem; }
.assistant .champ #d-registre-national,
.assistant .champ #d-carte-identite,
.assistant .champ #d2-carte,
.assistant .champ #d2-registre { width: 100%; max-width: 15rem; }
.assistant .champ #d-lieu-naissance,
.assistant .champ #d-etat-civil,
.assistant .champ #d-contrat,
.assistant .champ #rdv { width: 100%; max-width: 18rem; }
.assistant .champ #nom,
.assistant .champ #email,
.assistant .champ #d-situation,
.assistant .champ #d-activite-compl-nom,
.assistant .champ #d2-nom { width: 100%; max-width: 22rem; }
/* Code postal et ville sur la même ligne, y compris sur téléphone et petite fenêtre */
@media (max-width: 639px) {
  .grille-adresse { grid-template-columns: 96px 96px minmax(0, 1fr); }
  .grille-adresse .rue, .grille-adresse .plein { grid-column: 1 / -1; }
  .grille-adresse .court:has(#d-code-postal) { grid-column: 1; }
  .grille-adresse .ville { grid-column: 2 / -1; }
}
/* Exemple affiché en fond de case : gris lisible, qui s'efface à la saisie */
.champ input::placeholder { color: var(--gris); opacity: 0.8; }

/* Hero : le leitmotiv de Coralie, présenté comme sa parole, signée */
.hero h1.citation { position: relative; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.15; margin-bottom: var(--s-4); }
.hero h1.citation span { display: block; }
.hero h1.citation em { font-style: normal; color: var(--caramel); }
.hero-texte p.signature-citation { display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-5); font-size: 1rem; font-weight: 600; color: var(--caramel); text-align: left; }
.hero-texte p.signature-citation::before { content: ""; flex: none; width: 44px; height: 2px; background: var(--caramel-logo); }
.hero-texte p.accroche-hero { margin-bottom: 0; text-align: left; }
/* Hero : phrase de conclusion, avant les boutons */
.hero-texte p.conclusion-hero { margin: var(--s-4) 0 0; font-family: var(--police-titre); font-weight: 600; font-size: var(--t-h3); line-height: 1.35; text-align: left; }
/* Hero : phrase en italique, signature un peu plus petite */
.hero-texte p.accroche-hero { font-style: italic; }
.hero-texte p.signature-citation { font-size: 0.875rem; }
/* Hero : les deux logos de droite un peu plus haut (sans effet sur téléphone, où ils sont sous le texte) */
@media (min-width: 701px) { .horizon { top: 42%; } }
/* Les trois accroches remontent : moins de vide entre le hero et elles */
@media (min-width: 701px) { .hero { padding-bottom: var(--s-6); } }
.section.accroches { padding-top: var(--s-4); }
/* Phrase de fin de l'introduction Services */
.entete-section p.fin-section { margin-top: var(--s-4); padding-left: var(--s-4); border-left: 3px solid var(--caramel-logo); font-family: var(--police-titre); font-weight: 600; font-size: var(--t-h3); line-height: 1.35; text-align: left; }
/* Mention « Dossier traité par… » de la carte Belgique alignée à droite */
#belgique .mention { text-align: right; margin-left: auto; }
/* Cartes Belgique / Espagne : même hauteur, et les parties alignées d'une carte à l'autre
   (titre, introduction, liste, honoraires, mention en pied de carte) */
@media (min-width: 761px) {
  .cartes:has(> #belgique) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); }
  .cartes > #belgique, .cartes > #espagne { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; }
  #belgique > .mention, #espagne > .mention { grid-row: 5; align-self: end; margin-bottom: 0; }
}
/* La mention Belgique remonte au niveau de la ligne « honoraires » de la carte Espagne */
@media (min-width: 761px) { #belgique > .mention { grid-row: 4; align-self: start; } }

/* Schéma « qui paie le courtier ? » : un seul encadré, une ligne par pays ; la case foncée est celle qui paie */
.comparatif > h3 { text-align: center; }
.schema { max-width: 940px; margin-inline: auto; background: var(--papier); border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce); padding: var(--s-2) var(--s-5); }
.schema-ligne { display: grid; grid-template-columns: 7.5rem minmax(0, 330px) minmax(0, 1fr); gap: var(--s-5); align-items: center; padding-block: var(--s-4); }
.schema-ligne + .schema-ligne { border-top: 1px solid rgba(169, 133, 91, 0.35); }
.schema-ligne h4 { margin: 0; font-size: 1.125rem; }
.schema-ligne p { margin: 0; font-size: 1rem; text-align: left; }
.flux { display: flex; align-items: center; gap: var(--s-2); }
.noeud { flex: none; display: grid; justify-items: center; gap: 2px; width: 92px; padding: var(--s-2) var(--s-1); border: 1.5px solid var(--eucalyptus); border-radius: 14px; color: var(--eucalyptus); font-size: 0.875rem; font-weight: 600; line-height: 1.3; text-align: center; }
.noeud.paie { background: var(--eucalyptus); color: var(--ivoire); }
.fleche { flex: 1; min-width: 70px; position: relative; text-align: center; font-size: 0.8125rem; color: var(--caramel); line-height: 1.2; padding-bottom: 10px; }
.fleche::before { content: ""; position: absolute; left: 0; right: 2px; bottom: 4px; height: 2px; background: var(--caramel-logo); }
.fleche::after { content: ""; position: absolute; right: 2px; bottom: 1px; width: 7px; height: 7px; border: solid var(--caramel-logo); border-width: 2px 2px 0 0; transform: rotate(45deg); }
@media (max-width: 820px) {
  .schema { padding-inline: var(--s-4); max-width: 480px; }
  .schema-ligne { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .schema-ligne h4 { text-align: center; }
}
/* Le titre du schéma est l'en-tête du cadre, centré, séparé des deux lignes par un filet */
.schema > h3 { margin: 0; padding-block: var(--s-4); text-align: center; border-bottom: 2px solid rgba(169, 133, 91, 0.5); }

/* « Qui fait quoi ? » : adresse en haut à droite, face au logo de sa société */
.societe-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.societe-tete .societe-logo { margin-bottom: 0; }
.societe-tete .mention { margin: 0 0 0 auto; text-align: right; max-width: 17rem; line-height: 1.5; }
/* Adresses de « Qui fait quoi ? » un peu plus petites */
.societe-tete .mention { font-size: 0.75rem; max-width: 15rem; }
/* Adresse en quatre lignes courtes, alignées à droite ; le numéro d'entreprise est détaché */
.societe-tete .adresse-societe { margin: 0 0 0 auto; max-width: none; font-style: normal; line-height: 1.55; text-align: right; }
.adresse-societe span { display: block; }
.adresse-societe .numero { margin-top: var(--s-2); padding-top: var(--s-1); border-top: 1px solid rgba(169, 133, 91, 0.45); font-weight: 600; }
/* En-tête de carte : logo à gauche, adresse à droite, alignées en haut et en bas.
   La première ligne démarre au sommet du logo, le numéro finit à sa base. */
.societe-tete { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; }
.societe-tete .societe-logo, .societe-tete .societe-logo.logo-corasol { height: 88px; width: auto; flex: none; align-self: flex-start; }
.societe-tete .adresse-societe { display: flex; flex-direction: column; justify-content: space-between; height: 88px; line-height: 1.3; }
.adresse-societe .numero { margin-top: 0; padding-top: 3px; line-height: 1.1; }
/* Adresses un peu plus bas, réglage à l'œil */
.societe-tete .adresse-societe { position: relative; top: 26px; }
.societe .societe-tete { margin-bottom: calc(var(--s-3) + 18px); } /* le nom de la société descend d'autant, pour ne pas toucher le numéro */
/* Le nom et le pays de chaque société sont rattachés à leur logo, centrés dessous */
.societe-identite { display: grid; justify-items: center; gap: var(--s-1); text-align: center; }
.societe-identite h4 { margin: 0; text-align: center; }
.societe .societe-tete { margin-bottom: var(--s-4); align-items: flex-start; }
/* Le décalage de l'adresse compte dans la mise en page : elle ne peut plus chevaucher le texte */
.societe .societe-tete .adresse-societe { top: 0; margin-top: 26px; }
@media (max-width: 700px) { .societe .societe-tete .adresse-societe { margin: 0 auto; height: auto; gap: 2px; } .societe .societe-tete { justify-content: center; } }
/* Très petits téléphones : le schéma se resserre */
@media (max-width: 360px) { .noeud { width: 74px; } .fleche { min-width: 44px; } .flux { gap: var(--s-1); } .schema { padding-inline: var(--s-3); } }
/* Logo Corasol agrandi (copie accentuée, couleurs un peu renforcées) ; les deux logos occupent la même hauteur
   pour que les deux noms restent alignés */
.societe .societe-tete .societe-logo { height: 104px; width: 206px; max-width: 100%; object-fit: contain; }
.societe .societe-tete .societe-logo.logo-corasol { height: 104px; width: auto; filter: url(#logo-fonce) contrast(1.15) saturate(1.1); }
.societe .societe-identite h4 { font-size: 1.0625rem; }
.societe .societe-identite .pays { font-size: 0.75rem; }

/* « Qui fait quoi ? » : en-tête centré, séparé des deux cartes par un filet en fondu */
.societes > .societes-tete {
  margin: 0 auto var(--s-5); max-width: 40rem; padding-bottom: var(--s-5); text-align: center;
  background: linear-gradient(to right, transparent, var(--caramel-logo) 35%, var(--caramel-logo) 65%, transparent) bottom center / 100% 3px no-repeat;
}
.societes-tete .surtitre { text-align: center; margin-bottom: var(--s-2); }
.societes-tete h3 { text-align: center; font-size: var(--t-h2); margin-bottom: var(--s-3); }
.societes-tete p { margin: 0 auto; text-align: center; }
/* Avertissement légal sur le crédit : en petit, mais bien lisible */
.avertissement-legal { margin: var(--s-3) 0 0; max-width: none; font-size: 0.875rem; font-weight: 600; color: var(--encre); text-align: left; }
/* Avertissement légal aligné à droite */
.avertissement-legal { text-align: right; }
/* Phrase sur la décision du prêteur un peu plus petite */
#services .avertissement { font-size: 0.9375rem; }
/* Avertissement légal présenté comme chez les prêteurs : bandeau encadré, pictogramme, texte centré et gras */
.avertissement-legal {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  margin: var(--s-5) 0 0; padding: var(--s-3) var(--s-4); max-width: none;
  background: var(--papier); border: 2px solid var(--encre); border-radius: 6px;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--encre); text-align: center;
}
.avertissement-legal svg { flex: none; }
/* Le même bandeau en tête du pied de page, sur toutes les pages */
.pied .pied-avertissement { margin: 0 0 var(--s-5); }
/* Fond caramel pâle, dans « Services » comme en pied de page */
.pied .pied-avertissement, #services .avertissement-legal { background: #EFE3CF; }

/* « Pourquoi CVP Conseil ? » : titre centré, texte sur deux colonnes calées sur les deux cartes, phrase de fin centrée */
#services .entete-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); align-items: start; }
#services .entete-section > * { grid-column: 1 / -1; }
#services .entete-section > .surtitre, #services .entete-section > h2 { text-align: center; }
#services .entete-section > h2 { margin-bottom: var(--s-6); }
#services .entete-section > p { max-width: none; padding-inline: var(--s-5); }
#services .entete-section > p:nth-of-type(1) { grid-column: 1; grid-row: 3 / span 2; margin-bottom: 0; }
#services .entete-section > p:nth-of-type(2) { grid-column: 2; grid-row: 3; }
#services .entete-section > p:nth-of-type(3) { grid-column: 2; grid-row: 4; margin-bottom: 0; }
#services .entete-section > p.fin-section {
  grid-column: 1 / -1; margin: var(--s-6) 0 0; padding: var(--s-5) 0 0; border-left: 0; text-align: center;
  background: linear-gradient(to right, transparent, var(--caramel-logo) 35%, var(--caramel-logo) 65%, transparent) top center / 100% 3px no-repeat;
}
@media (max-width: 760px) {
  #services .entete-section { grid-template-columns: minmax(0, 1fr); }
  #services .entete-section > p:nth-of-type(n) { grid-column: 1; grid-row: auto; padding-inline: 0; margin-bottom: var(--s-3); }
  #services .entete-section > p.fin-section { margin-top: var(--s-4); padding-top: var(--s-4); }
}
/* « Services » à droite ; « Chaque projet a son chemin. » détaché en sous-titre sous le grand titre */
#services .entete-section > .surtitre { text-align: right; }
#services .entete-section > h2 { margin-bottom: var(--s-3); }
#services .entete-section > .chemin { grid-column: 1 / -1; margin-bottom: var(--s-6); font-family: var(--police-titre); font-weight: 600; font-size: var(--t-h3); color: var(--caramel); text-align: center; }
#services .entete-section > p:nth-of-type(1) { grid-row: 4 / span 2; }
#services .entete-section > p:nth-of-type(2) { grid-row: 4; }
#services .entete-section > p:nth-of-type(3) { grid-row: 5; }
@media (max-width: 760px) { #services .entete-section > p:nth-of-type(n) { grid-row: auto; } #services .entete-section > .chemin { margin-bottom: var(--s-4); } }
/* « Services » à gauche, la phrase sous le titre en italique */
#services .entete-section > .surtitre { text-align: left; }
#services .entete-section > .chemin { font-style: italic; }
/* Phrase de fin encadrée par deux filets en fondu : au-dessus et en dessous */
#services .entete-section > p.fin-section {
  padding-bottom: var(--s-5);
  background:
    linear-gradient(to right, transparent, var(--caramel-logo) 35%, var(--caramel-logo) 65%, transparent) top center / 100% 3px no-repeat,
    linear-gradient(to right, transparent, var(--caramel-logo) 35%, var(--caramel-logo) 65%, transparent) bottom center / 100% 3px no-repeat;
}
@media (max-width: 760px) { #services .entete-section > p.fin-section { padding-bottom: var(--s-4); } }

/* « Comment ça se passe » : une frise. Quatre étapes reliées par un fil, puis la cinquième, à part, qui continue */
#etapes .entete-section { text-align: center; margin-bottom: var(--s-7); }
#etapes .entete-section .surtitre, #etapes .entete-section h2 { text-align: center; }
#etapes .etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
#etapes .etapes li { position: relative; background: none; box-shadow: none; padding: 0 var(--s-2); border-radius: 0; text-align: center; }
#etapes .etapes li::before {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--s-3);
  border-radius: 50%; background: var(--eucalyptus); color: var(--ivoire); font-size: 1.5rem;
}
#etapes .etapes li:nth-child(-n+3)::after { content: ""; position: absolute; top: 27px; left: calc(50% + 40px); width: calc(100% - 80px + var(--s-4)); height: 2px; background: var(--caramel-logo); }
#etapes .etapes h3 { text-align: center; font-size: 1.1875rem; }
#etapes .etapes p { margin: 0 auto; text-align: center; max-width: 16rem; }
#etapes .etapes li:nth-child(5) {
  grid-column: 1 / -1; margin-top: var(--s-6); padding: var(--s-5);
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-5); align-items: center; text-align: left;
  background: var(--papier); border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce); border-left: 5px solid var(--caramel-logo);
}
#etapes .etapes li:nth-child(5)::before { grid-row: 1 / span 2; margin: 0; background: var(--caramel); }
#etapes .etapes li:nth-child(5) h3 { text-align: left; margin-bottom: var(--s-1); }
#etapes .etapes li:nth-child(5) p { margin: 0; max-width: none; text-align: left; }
@media (max-width: 820px) {
  #etapes .etapes { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  #etapes .etapes li, #etapes .etapes li:nth-child(5) { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); align-items: start; text-align: left; }
  #etapes .etapes li::before { grid-row: 1 / span 2; margin: 0; }
  #etapes .etapes li:nth-child(-n+3)::after { top: 56px; left: calc(var(--s-2) + 27px); width: 2px; height: calc(100% - 56px + var(--s-5)); }
  #etapes .etapes h3, #etapes .etapes p { text-align: left; max-width: none; margin-inline: 0; }
  #etapes .etapes li:nth-child(5) { margin-top: 0; padding: var(--s-4) var(--s-3); column-gap: var(--s-3); }
}
/* Le surtitre « Comment ça se passe » à gauche, comme « Services » */
#etapes .entete-section .surtitre { text-align: left; }
/* Titre de la frise un peu plus petit */
#etapes .entete-section h2 { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); }
/* Plus d'air entre « Comment ça se passe » et le titre */
#etapes .entete-section .surtitre { margin-bottom: var(--s-5); }

/* Étape 5 : bandeau vert, « Et après ? » en tête, pastille jaune. C'est la suite, pas une étape de plus */
#etapes .etapes li:nth-child(5) {
  width: min(100%, 780px); justify-self: center; margin-top: var(--s-6);
  padding: var(--s-5) var(--s-6); column-gap: var(--s-5);
  background: var(--eucalyptus); color: var(--ivoire); border-left: 0; border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce);
}
#etapes .etapes li:nth-child(5)::before {
  grid-row: 1 / span 3; width: 72px; height: 72px; font-size: 2rem;
  background: var(--soleil); color: var(--eucalyptus); outline: 2px dashed rgba(249, 242, 200, 0.6); outline-offset: 6px;
}
#etapes .et-apres { display: block; font-size: var(--t-pt); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soleil); }
#etapes .etapes li:nth-child(5) h3 { color: var(--ivoire); font-size: var(--t-h3); margin: var(--s-1) 0 var(--s-2); }
#etapes .etapes li:nth-child(5) p { color: var(--ivoire); }
@media (max-width: 820px) {
  #etapes .etapes li:nth-child(5) { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; margin-top: var(--s-2); padding: var(--s-5) var(--s-4); row-gap: var(--s-2); }
  #etapes .etapes li:nth-child(5)::before { grid-row: auto; margin-bottom: var(--s-2); }
  #etapes .etapes li:nth-child(5) h3, #etapes .etapes li:nth-child(5) p { text-align: center; }
}
/* « Et après ? » plus grand */
#etapes .et-apres { font-size: 1.25rem; }

/* Étapes 1 à 4 : chaque texte dans un encadré, la pastille à cheval sur son bord supérieur */
#etapes .etapes li:nth-child(-n+4) {
  margin-top: 28px; padding: 0 var(--s-3) var(--s-4);
  background: var(--papier); border-radius: var(--rayon-carte); box-shadow: var(--ombre-douce);
}
#etapes .etapes li:nth-child(-n+4)::before { margin: -28px auto var(--s-3); outline: 6px solid var(--ivoire); }
#etapes .etapes li:nth-child(-n+4) h3 { padding-bottom: var(--s-3); background: linear-gradient(to right, transparent, var(--caramel-logo) 30%, var(--caramel-logo) 70%, transparent) bottom center / 100% 2px no-repeat; }
#etapes .etapes li:nth-child(-n+3)::after { top: -1px; left: calc(50% + 34px); width: calc(100% - 68px + var(--s-4)); }
@media (min-width: 821px) { #etapes .etapes li:nth-child(-n+4) h3 { min-height: 4.4rem; display: grid; align-content: center; } }
@media (max-width: 820px) {
  #etapes .etapes li:nth-child(-n+4) { margin-top: 0; padding: var(--s-4) var(--s-3); column-gap: var(--s-3); }
  #etapes .etapes li:nth-child(-n+4)::before { margin: 0; outline: 0; }
  #etapes .etapes li:nth-child(-n+4) h3 { padding-bottom: var(--s-2); margin-bottom: var(--s-2); background-size: 100% 0; }
  #etapes .etapes li:nth-child(-n+3)::after { top: calc(var(--s-4) + 56px); left: calc(var(--s-3) + 27px); width: 2px; height: calc(100% - var(--s-4) - 56px + var(--s-5) + var(--s-4)); }
}
/* Bandeau de l'étape 5 en caramel (couleur du logo CVP) au lieu du vert */
#etapes .etapes li:nth-child(5) { background: var(--caramel); }
#etapes .etapes li:nth-child(5)::before { color: var(--caramel); }
/* Caramel pâle : texte foncé, pastille caramel, fine bordure pour garder le bandeau visible */
#etapes .etapes li:nth-child(5) { background: #EFE3CF; color: var(--encre); border: 1.5px solid var(--caramel-logo); }
#etapes .etapes li:nth-child(5) h3, #etapes .etapes li:nth-child(5) p { color: var(--encre); }
#etapes .et-apres { color: #5E4426; }
#etapes .etapes li:nth-child(5)::before { background: var(--caramel); color: var(--ivoire); outline-color: var(--caramel-logo); }
/* Bandeau de l'étape 5 plus compact, avec une ombre plus marquée */
#etapes .etapes li:nth-child(5) { width: min(100%, 660px); padding: var(--s-4) var(--s-5); column-gap: var(--s-4); box-shadow: 0 4px 10px rgba(122, 90, 51, 0.16), 0 18px 40px rgba(122, 90, 51, 0.26); }
#etapes .etapes li:nth-child(5)::before { width: 60px; height: 60px; font-size: 1.625rem; }
#etapes .et-apres { font-size: 1.125rem; }
#etapes .etapes li:nth-child(5) h3 { font-size: 1.25rem; }
@media (max-width: 820px) { #etapes .etapes li:nth-child(5) { padding: var(--s-4) var(--s-3); } }
/* Bandeau de l'étape 5 sur toute la largeur de la frise */
#etapes .etapes li:nth-child(5) { width: 100%; }
/* Le bandeau va du milieu de la carte 1 au milieu de la carte 4 */
@media (min-width: 821px) { #etapes .etapes li:nth-child(5) { width: calc(100% - (100% - 3 * var(--s-4)) / 4); } }
/* Étapes 1 à 4 : le texte sous le filet est centré dans la hauteur restante de la carte */
@media (min-width: 821px) {
  #etapes .etapes li:nth-child(-n+4) { display: flex; flex-direction: column; }
  #etapes .etapes li:nth-child(-n+4) p { flex: 1; display: grid; align-content: center; width: 100%; }
}

/* Frise : les numéros sont au-dessus des cartes, reliés par un pointillé terminé par une pointe vers le suivant */
@media (min-width: 821px) {
  #etapes .etapes li:nth-child(-n+4) { margin-top: 76px; }
  #etapes .etapes li:nth-child(-n+4)::before { margin: -76px auto calc(20px + var(--s-4)); outline: 0; box-shadow: 0 0 0 5px var(--soleil), 0 6px 14px rgba(122, 90, 51, 0.25); flex: none; }
  #etapes .etapes li:nth-child(-n+3)::after {
    top: -55px; left: calc(50% + 40px); width: calc(100% - 80px + var(--s-4)); height: 14px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M2 2l6 5-6 5' fill='none' stroke='%237A5A33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 10px 14px no-repeat,
      repeating-linear-gradient(to right, var(--caramel-logo) 0 7px, transparent 7px 13px) left center / calc(100% - 12px) 2px no-repeat;
  }
}

/* « Préparer votre dossier » : même en-tête que les autres rubriques, puis deux cartes au choix */
#dossier .entete-section { text-align: center; }
#dossier .entete-section .surtitre { text-align: left; margin-bottom: var(--s-5); }
#dossier .entete-section h2 { text-align: center; font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); }
#dossier .entete-section p { margin-inline: auto; text-align: center; }
.dossier-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); max-width: 840px; margin-inline: auto; }
.dossier-choix .carte { display: flex; flex-direction: column; align-items: center; text-align: center; border-top: 4px solid var(--caramel-logo); }
.dossier-icone { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--s-3); border-radius: 50%; background: #EFE3CF; color: var(--caramel); }
.dossier-choix h3 { text-align: center; font-size: 1.25rem; }
.dossier-choix p { flex: 1; margin-inline: auto; text-align: center; font-size: 1rem; }
@media (max-width: 700px) { .dossier-choix { grid-template-columns: minmax(0, 1fr); } }

/* Bandeaux de « Préparer votre dossier » : en-tête coloré (icône et titre), puis explication et bouton ; la carte se soulève au survol */
.dossier-choix .carte { padding: 0; overflow: hidden; border-top: 0; align-items: stretch; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 10px rgba(122, 90, 51, 0.14), 0 16px 36px rgba(122, 90, 51, 0.20); }
.dossier-choix .carte:hover { transform: translateY(-4px); box-shadow: 0 8px 14px rgba(122, 90, 51, 0.18), 0 24px 48px rgba(122, 90, 51, 0.26); }
@media (prefers-reduced-motion: reduce) { .dossier-choix .carte { transition: none; } .dossier-choix .carte:hover { transform: none; } }
.dossier-tete { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: #EFE3CF; border-bottom: 2px solid var(--caramel-logo); }
.dossier-tete .dossier-icone { flex: none; width: 52px; height: 52px; margin: 0; background: var(--papier); }
.dossier-tete h3 { margin: 0; text-align: left; }
.dossier-choix .carte p { padding: var(--s-4) var(--s-5) 0; margin-bottom: var(--s-4); }
.dossier-choix .carte .bouton { align-self: center; margin: 0 var(--s-4) var(--s-5); }

/* Contact : en-tête centré, puis rendez-vous et adresses à gauche, formulaire à droite */
#contact .entete-section { text-align: center; }
#contact .entete-section .surtitre { text-align: left; margin-bottom: var(--s-5); }
#contact .entete-section h2 { text-align: center; font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); }
#contact .entete-section p { margin-inline: auto; text-align: center; margin-top: var(--s-4); font-size: 1.1875rem; }
/* Grand écran : l'invitation tient sur une seule ligne */
@media (min-width: 821px) { #contact .entete-section p { max-width: none; white-space: nowrap; } }
.contact-duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: start; }
.contact-duo .contact-form { display: flex; }

/* Rendez-vous : texte posé sur le fond de la rubrique, sans encadré */
.rdv h3 { margin: 0 0 var(--s-3); text-align: left; font-size: 1.375rem; }
.rdv p { text-align: left; }
.rdv-intro { margin: 0 0 var(--s-4); }
.rdv-heures { margin: 0 0 var(--s-5); padding-left: var(--s-3); border-left: 3px solid var(--caramel-logo); }
.rdv-heures strong { display: flex; align-items: center; gap: var(--s-2); font-size: 1.25rem; }
.rdv-heures svg { flex: none; color: var(--caramel); }
.rdv-heures span { display: block; font-size: 0.9375rem; color: var(--gris); }

/* Les deux adresses : nom et rue au-dessus d'une petite carte */
.adresses { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.adresses h4 { margin: 0; font-size: 1.0625rem; }
.adresses p { margin: 0 0 var(--s-2); font-size: 0.9375rem; }
.adresses .carte-bureau { width: 100%; max-width: none; height: 210px; aspect-ratio: auto; margin: 0; box-shadow: none; border: 1px solid rgba(169, 133, 91, 0.35); }
/* Avant le clic : un fond quadrillé très pâle, comme un plan, et un petit bouton */
.adresses .carte-bureau-attente { width: 100%; height: 100%; padding: 0; display: grid; place-items: center;
  background: linear-gradient(rgba(169, 133, 91, 0.13) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(169, 133, 91, 0.13) 1px, transparent 1px) 0 0 / 28px 28px, var(--ivoire); }
.adresses .carte-bureau-attente button { min-height: 44px; padding: 0 var(--s-4); font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--caramel); background: var(--papier); border: 1px solid var(--caramel-logo); border-radius: 999px; cursor: pointer; }
.adresses .carte-bureau-attente button:hover { background: #EFE3CF; }
.lien-carte { display: inline-block; margin-top: var(--s-2); font-size: 0.875rem; }
.rdv .rdv-note { margin: var(--s-4) 0 0; font-size: 0.8125rem; color: var(--gris); }

/* Cadre du formulaire : bandeau d'en-tête, champs sur fond très clair, repère visible au moment de la saisie */
#contact .formulaire { width: 100%; max-width: none; margin: 0; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); padding: 0 var(--s-6) var(--s-5); background: var(--papier); border-radius: var(--rayon-carte); overflow: hidden; box-shadow: 0 4px 10px rgba(122, 90, 51, 0.14), 0 22px 48px rgba(122, 90, 51, 0.24); }
#contact .formulaire > .champ:nth-of-type(n+6), #contact .formulaire > .bouton, #contact .formulaire > .etat-formulaire { grid-column: 1 / -1; }
#contact .formulaire > .bouton { justify-self: center; min-width: 18rem; margin-top: var(--s-2); }
#contact .formulaire > .etat-formulaire { margin: 0; text-align: center; }
#contact .champ textarea { min-height: 120px; }
#contact .form-tete { order: -1; grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-4); margin: 0 calc(-1 * var(--s-6)) var(--s-3); padding: var(--s-4) var(--s-6); background: #EFE3CF; border-bottom: 2px solid var(--caramel-logo); }
#contact .form-tete .dossier-icone { display: grid; place-items: center; flex: none; width: 56px; height: 56px; margin: 0; border-radius: 50%; background: var(--papier); color: var(--caramel); }
#contact .form-tete h3 { margin: 0; font-size: 1.375rem; text-align: left; }
#contact .champ input:not([type="checkbox"]), #contact .champ select, #contact .champ textarea { background: var(--ivoire); box-shadow: none; border-color: rgba(122, 90, 51, 0.45); transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; }
#contact .champ input:not([type="checkbox"]):focus, #contact .champ select:focus, #contact .champ textarea:focus { background: #fff; border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(169, 133, 91, 0.22); }
#contact .champ input:user-invalid, #contact .champ select:user-invalid, #contact .champ textarea:user-invalid { border-color: var(--erreur); }

/* Sous 900 px : une colonne, le formulaire d'abord, puis le rendez-vous et les adresses */
@media (max-width: 900px) {
  .contact-duo { grid-template-columns: minmax(0, 1fr); }
  .contact-duo .contact-form { order: -1; }
  .rdv { width: 100%; max-width: 30rem; margin-inline: auto; }
}
@media (max-width: 640px) {
  #contact .formulaire { grid-template-columns: minmax(0, 1fr); padding-inline: var(--s-3); }
  #contact .formulaire > .champ { grid-column: 1 / -1; }
  #contact .form-tete { margin-inline: calc(-1 * var(--s-3)); padding: var(--s-3); gap: var(--s-3); }
  #contact .formulaire > .bouton { min-width: 0; width: 100%; }
}

/* Signature du pied : chaque moitié reste entière ; sur grand écran le tout tient sur une ligne */
.pied-bas .signature > span { white-space: nowrap; }
@media (min-width: 1000px) { .pied-bas .signature { white-space: nowrap; } }
/* Mobile : la mention © se coupe proprement, sans mots écartés */
@media (max-width: 520px) { .pied-bas > span:first-child { text-align: left; text-wrap: balance; } }

/* « À propos » est placé juste après l'accueil : « Préparer votre dossier » prend le beige pour garder l'alternance des fonds */
#dossier { background: #EADFCF; }
#dossier .surtitre { color: #5E4426; }

/* Trois points forts : colonnes étroites, donc texte aligné à gauche (la justification écartait les mots) */
.accroches-liste li, .accroches-liste li span { text-align: left; }

/* Promesse en bas de l'accueil : grande, en caractères de titre, centrée entre deux filets en fondu */
.promesse-hero { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.3em; max-width: none; margin: var(--s-7) 0 0; padding: var(--s-5) 0; text-align: center;
  font-family: var(--police-titre); font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem); font-weight: 400; line-height: 1.3; color: var(--encre);
  background: linear-gradient(to right, transparent, var(--caramel-logo) 30%, var(--caramel-logo) 70%, transparent) top center / 100% 1px no-repeat,
              linear-gradient(to right, transparent, var(--caramel-logo) 30%, var(--caramel-logo) 70%, transparent) bottom center / 100% 1px no-repeat; }
.promesse-hero em { font-style: normal; font-weight: 600; color: var(--caramel); }

/* Fonds : blanc cassé (--ivoire), crème, jaune pâle (--soleil), beige d'« À propos » et brun caramel doux */
.section.accroches, #contact { background: #F5ECDA; }
#dossier { background: #E4D1B3; }
#dossier .entete-section p { color: var(--encre); }

/* Léger dégradé de haut en bas dans chaque rubrique (la couleur de fond reste le ton le plus soutenu).
   Accueil : uni jusqu'à 60 %, pour que le voile de l'animation du logo (#FEFDFA) reste invisible. */
.hero { background: #FCFAF5 linear-gradient(180deg, #FEFDFA 0 60%, #FCFAF5 100%); }
.section.accroches { background: #FAF5E9 linear-gradient(180deg, #FCFAF5, #FAF5E9); }
#apropos { background: #E3D5C1 linear-gradient(180deg, #F0E7DA, #E3D5C1); }
#services { background: #F8F1CF linear-gradient(180deg, #FCF9E6, #F8F1CF); }
#etapes { background: #F4EFE3 linear-gradient(180deg, #FDFBF6, #F4EFE3); }
#dossier { background: #EADDC4 linear-gradient(180deg, #F3EBDC, #EADDC4); }
#contact { background: #F0E3CB linear-gradient(180deg, #F9F3E5, #F0E3CB); }
.pied { background: #FAF5DC linear-gradient(180deg, #FDFAEC, #FAF5DC); }

/* Barre du menu : même couleur et même dégradé que la rubrique « Contact » */
.entete { background: #F0E3CB linear-gradient(180deg, #F9F3E5, #F0E3CB); border-bottom-color: rgba(122, 90, 51, 0.30); }
@media (max-width: 860px) { .entete .nav { background: #F0E3CB; } }

/* Logo de la barre du menu (pas de filtre sur l'accueil : il fonçait le voile de l'animation) : couleurs un peu plus soutenues, sans épaissir les traits.
   Les fichiers des logos ne sont pas modifiés. */
.entete .logo img { filter: brightness(0.93) saturate(1.15) contrast(1.05); }
/* Téléphone : les logos sont sous le texte, dans le bas de l'accueil ; fond uni pour que le voile de l'animation reste invisible */
@media (max-width: 860px) { .hero { background: #FEFDFA; } }

/* Dégradés enchaînés : chaque rubrique commence par la teinte sur laquelle finit la précédente,
   passe par sa couleur propre au milieu, puis glisse vers la suivante. Raccords :
   accueil/points forts #FCFAF5 · /À propos #F4ECDF · /Services #F5EFD8 · /étapes #FAF6E6 ·
   /dossier #F3EBDA · /contact #EEE2CA · /pied #F6EFD8 */
.section.accroches { background: #F4ECDF linear-gradient(180deg, #FCFAF5 0, #FAF5E9 55%, #F4ECDF 100%); }
#apropos { background: #EADFCF linear-gradient(180deg, #F4ECDF 0, #EADFCF 25%, #EADFCF 75%, #F5EFD8 100%); }
#services { background: #F5EFD8 linear-gradient(180deg, #F5EFD8 0, #FBF6DC 12%, #FAF4D6 70%, #FAF6E6 100%); }
#etapes { background: #F3EBDA linear-gradient(180deg, #FAF6E6 0, #FCFAF3 40%, #F3EBDA 100%); }
#dossier { background: #EADDC4 linear-gradient(180deg, #F3EBDA 0, #EADDC4 55%, #EEE2CA 100%); }
#contact { background: #EEE2CA linear-gradient(180deg, #EEE2CA 0, #F7F0E0 35%, #F6EFD8 100%); }
.pied { background: #F6EFD8 linear-gradient(180deg, #F6EFD8 0, #FAF5DC 100%); border-top: 1px solid rgba(169, 133, 91, 0.35); }

/* Un filet très fin, en fondu sur les côtés, marque le début de chaque rubrique et du pied de page */
.section.accroches, #apropos, #services, #etapes, #dossier, #contact, .pied { position: relative; }
.section.accroches::before, #apropos::before, #services::before, #etapes::before, #dossier::before, #contact::before, .pied::before {
  content: ""; position: absolute; top: 0; left: var(--gouttiere); right: var(--gouttiere); height: 1px; pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(169, 133, 91, 0.45) 20%, rgba(169, 133, 91, 0.45) 80%, transparent);
}
.pied { border-top: 0; }
/* Pas de filet entre la promesse de l'accueil et les trois points forts */
.section.accroches::before { content: none; }
/* Très petits téléphones : la signature passe sur sa propre ligne, centrée (sinon elle dépassait de l'écran à 320 px) */
@media (max-width: 359px) {
  .pied-bas { grid-template-columns: auto auto; justify-content: space-between; }
  .pied-bas .signature { grid-column: 1 / -1; justify-self: center; text-align: center; }
}
/* Téléphone : texte aligné à gauche (la justification creusait de grands blancs dans les colonnes étroites).
   Les titres et textes centrés ou alignés à droite gardent leur propre réglage. */
@media (max-width: 520px) { body, .carte-bureau-attente { text-align: left; } }

/* 30/11/2026 : fonds en blanc cassé, jaune crème, jaune pâle, jaune pastel */
:root { --blanc-casse: #FDFBF3; --j-creme: #F9EDC4; --j-pale: #FCF7DA; --j-pastel: #FAEFA9;
  --ivoire: var(--blanc-casse); --soleil: var(--j-pale); }
.hero { background: #FDFBF3; }
.section.accroches { background: linear-gradient(180deg, #FDFBF3 0, #FDFBF3 40%, #FCF7DA 100%); }
#apropos { background: linear-gradient(180deg, #FCF7DA 0, #F9EDC4 25%, #F9EDC4 75%, #FCF7DA 100%); }
#services { background: linear-gradient(180deg, #FCF7DA 0, #FCF7DA 70%, #FDFBF3 100%); }
#etapes { background: linear-gradient(180deg, #FDFBF3 0, #FDFBF3 60%, #FCF4C4 100%); }
#dossier { background: linear-gradient(180deg, #FCF4C4 0, #FAEFA9 55%, #FAEEB4 100%); }
#contact { background: linear-gradient(180deg, #FAEEB4 0, #F9EDC4 35%, #FCF7DA 100%); }
.pied { background: linear-gradient(180deg, #FCF7DA, #FDFBF3); }
.entete, .entete .nav { background: #F9EDC4; }
@media (min-width: 861px) { .entete .nav { background: none; } }
@media (max-width: 860px) { .hero { background: #FDFBF3; } }
/* Encadrés teintés (beige auparavant) passés en jaune crème */
.pied .pied-avertissement, #services .avertissement-legal, #etapes .etapes li:nth-child(5), .dossier-icone, .dossier-tete, #contact .form-tete { background: #F9EDC4; }
.dossier-tete .dossier-icone, #contact .form-tete .dossier-icone { background: var(--papier); }

/* Boutons principaux en caramel doux, texte foncé pour rester lisible (30/11/2026) */
.bouton:not(.bouton-secondaire) { background: #CFA97C; color: var(--encre); border-color: #CFA97C; }
.bouton:not(.bouton-secondaire):hover { background: #C29764; color: var(--encre); border-color: #C29764; }

/* Dégradé sur le caramel doux (30/11/2026) : clair en haut, soutenu en bas */
.bouton:not(.bouton-secondaire) { background: #CFA97C linear-gradient(180deg, #E4C9A3 0%, #CFA97C 55%, #BF915C 100%) border-box; border-color: transparent; }
.bouton:not(.bouton-secondaire):hover { background: #C29764 linear-gradient(180deg, #DDBD92 0%, #C29764 55%, #B58650 100%) border-box; border-color: transparent; }

/* Petite animation des boutons principaux (30/11/2026) : le bouton se soulève et un reflet le traverse ; il s'enfonce au clic */
.bouton:not(.bouton-secondaire) { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.bouton:not(.bouton-secondaire)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-110%); }
.bouton:not(.bouton-secondaire):hover, .bouton:not(.bouton-secondaire):focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(122, 90, 51, 0.30); }
.bouton:not(.bouton-secondaire):hover::after, .bouton:not(.bouton-secondaire):focus-visible::after { transform: translateX(110%); transition: transform 0.7s ease; }
.bouton:not(.bouton-secondaire):active { transform: translateY(0) scale(0.97); box-shadow: 0 2px 6px rgba(122, 90, 51, 0.25); }
@media (prefers-reduced-motion: reduce) {
  .bouton:not(.bouton-secondaire), .bouton:not(.bouton-secondaire):hover, .bouton:not(.bouton-secondaire):focus-visible, .bouton:not(.bouton-secondaire):active { transform: none; transition: none; }
  .bouton:not(.bouton-secondaire)::after { content: none; }
}

/* Même animation sur les autres boutons : à contour, « Menu », « Afficher la carte » (30/11/2026) */
.bouton-secondaire, .nav-bouton, .adresses .carte-bureau-attente button { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.bouton-secondaire:hover, .nav-bouton:hover, .adresses .carte-bureau-attente button:hover,
.bouton-secondaire:focus-visible, .nav-bouton:focus-visible, .adresses .carte-bureau-attente button:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(122, 90, 51, 0.22); }
.bouton-secondaire:active, .nav-bouton:active, .adresses .carte-bureau-attente button:active { transform: translateY(0) scale(0.97); box-shadow: 0 2px 6px rgba(122, 90, 51, 0.18); }
@media (prefers-reduced-motion: reduce) {
  .bouton-secondaire, .nav-bouton, .adresses .carte-bureau-attente button { transition: none; transform: none !important; }
}
.adresses .carte-bureau-attente button:hover { background: var(--j-creme); }

/* Liens du menu (« À propos », « Services », « Comment ça se passe ») : simple soulèvement (30/11/2026) */
.nav a:not(.bouton) { transition: transform 0.2s ease; }
@media (min-width: 861px) { .nav a:not(.bouton) { display: inline-block; } }
.nav a:not(.bouton):hover, .nav a:not(.bouton):focus-visible { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .nav a:not(.bouton) { transition: none; transform: none !important; } }

/* Pictogrammes (30/11/2026) : même trait fin que ceux déjà en place, caramel */
.picto { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--j-creme); color: var(--caramel); }
.accroches-liste .picto { margin-bottom: var(--s-3); }
.accroches-liste span.picto { color: var(--caramel); text-align: center; }
.accroches-liste span.picto, .accroches-liste li span.picto { display: grid; }
.carte h3.avec-picto { display: flex; align-items: center; gap: var(--s-3); }
.adresses h4 svg, .pied-cvp a svg { vertical-align: -3px; color: var(--caramel); flex: none; }
.adresses h4 svg, .pied-cvp a svg { display: inline-block; margin-right: 2px; }

/* Mobile : pictogramme à gauche, texte à droite, pour gagner de la hauteur (30/11/2026) */
@media (max-width: 640px) {
  .section.accroches { padding-block: var(--s-3) var(--s-5); }
  .accroches-liste { gap: var(--s-3); }
  .accroches-liste li { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s-3); align-content: start; border-top-width: 2px; padding-top: var(--s-3); }
  .accroches-liste li span.picto { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 40px; height: 40px; margin: 0; }
  .accroches-liste li span.picto svg { width: 22px; height: 22px; }
  .accroches-liste li > strong, .accroches-liste li > span:not(.picto) { grid-column: 2; }
  .accroches-liste strong { font-size: 1.0625rem; line-height: 1.3; }
  .accroches-liste li > span:not(.picto) { font-size: 0.9375rem; line-height: 1.45; margin-top: 2px; }
}

/* Ordinateur : même présentation que sur mobile, pictogramme à gauche et texte à droite (30/11/2026) */
@media (min-width: 641px) {
  .section.accroches { padding-bottom: var(--s-6); }
  .accroches-liste li { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s-3); align-content: start; }
  .accroches-liste li span.picto { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 44px; height: 44px; margin: 0; }
  .accroches-liste li span.picto svg { width: 24px; height: 24px; }
  .accroches-liste li > strong, .accroches-liste li > span:not(.picto) { grid-column: 2; }
}

/* Points forts : aucun mot coupé en fin de ligne (30/11/2026) */
.accroches-liste strong { -webkit-hyphens: manual; hyphens: manual; }

/* Mentions légales : la colonne de lecture est centrée dans la page (30/11/2026) */
.page-legale .conteneur { max-width: 44rem; margin-inline: auto; }
.page-legale p, .page-legale .liste-simple { max-width: none; }

/* « À propos » : confort de lecture (mise en page seulement, le texte ne change pas) */
#apropos .entete-propos ~ div:last-child p { text-align: justify; hyphens: auto; max-width: none; margin: 0 0 var(--s-4); line-height: 1.75; }
#apropos .entete-propos ~ div:last-child p:first-child { font-family: var(--police-titre); font-size: clamp(1.15rem, 1.05rem + 0.2vw, 1.25rem); line-height: 1.6; margin-bottom: var(--s-5); }
#apropos .entete-propos ~ div:last-child p:nth-child(4) { display: flow-root; padding: var(--s-4); border-left: 3px solid #CFA97C; border-radius: 0 12px 12px 0; background: rgba(255, 253, 246, 0.75); font-size: 1rem; line-height: 1.7; }
#apropos .entete-propos ~ div:last-child p.conclusion { clear: both; margin: 0; padding-top: var(--s-5); border-top: 1px solid rgba(207, 169, 124, 0.6); font-family: var(--police-titre); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.5; text-align: center; hyphens: manual; text-wrap: balance; }
#apropos .conclusion a { display: block; width: fit-content; margin: var(--s-3) auto 0; font-family: var(--police-texte, inherit); font-size: 1rem; }
@media (min-width: 961px) {
  #apropos .deux-colonnes { width: min(100% - 2 * var(--gouttiere), 1200px); max-width: none; }
  #apropos .lecteur-presentation:not(.est-plein) { float: right; width: min(680px, 52%, max(420px, calc((100vh - 40px) * 0.75))); margin: 6px 0 var(--s-4) var(--s-6); }
}
