/*
Theme Name: Cassiopea
Theme URI: https://cassiopea-ad.fr
Author: Cassiopea · Pauline Woillet
Description: Thème bloc sur mesure de Cassiopea, assistante digitale. Tout le contenu se modifie dans l'éditeur de blocs, sans code. Palette, polices et règles : voir DESIGN.md.
Version: 0.4.10
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cassiopea
Tags: block-theme, full-site-editing, business
*/

/* ========== Jetons (miroir de theme.json, pour le CSS écrit à la main) ========== */
:root {
  --violet: #954FFF;
  --violet-encre: #6B2BD6;
  --violet-survol: #5A22B8;
  --lavande: #CBA9FF;
  --lavande-pale: #F1EAFF;
  --anthracite: #2A2633;
  --anthracite-2: #36313F;
  --fond: #FAF8FF;
  --carte: #FFFFFF;
  --gris-texte: #5F5A6B;
  --filet: #E6DEF5;
  --titre: "Baloo Bhaina 2", system-ui, sans-serif;
  --texte: Poppins, system-ui, sans-serif;
  --rayon: 8px;
  --large: 72rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --etoiles: #F6B93B;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; hyphens: none; }
p { margin: 0; }
a { text-underline-offset: 0.18em; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0),
   filet de sécurité ici à spécificité nulle pour ne pas écraser nos marges. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
:where(.wp-site-blocks) > * { margin-block: 0; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--violet-encre); outline-offset: 2px; border-radius: 4px; }
.sombre :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.ouverture :where(a, button):focus-visible { outline-color: var(--lavande); }

.conteneur { width: min(100% - 2rem, var(--large)); margin-inline: auto; }
@media (min-width: 768px) { .conteneur { width: min(100% - 4rem, var(--large)); } }

.label {
  font: 600 0.8125rem/1.3 var(--texte); letter-spacing: 0.04em; text-transform: uppercase; color: var(--violet-encre);
}
.lead { font-size: var(--wp--preset--font-size--chapeau); line-height: 1.5; color: var(--gris-texte); max-width: 34em; }

/* ========== Boutons (la classe est sur le conteneur .wp-block-button) ========== */
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; border: 2px solid var(--violet-encre); text-decoration: none;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.wp-block-button .wp-block-button__link:active { transform: scale(0.97); }
.wp-block-button.b-contour .wp-block-button__link { background: transparent; color: var(--violet-encre); }
.wp-block-button.b-lavande .wp-block-button__link { background: var(--lavande); border-color: var(--lavande); color: var(--anthracite); }
.wp-block-button.b-blanc .wp-block-button__link { background: transparent; border-color: #fff; color: #fff; }
.wp-block-button.b-clair .wp-block-button__link { background: transparent; border-color: #5A5466; color: var(--fond); min-height: 44px; padding: 0.625rem 1.25rem; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .wp-block-button .wp-block-button__link:hover { background: var(--violet-survol); border-color: var(--violet-survol); color: var(--fond); }
  .wp-block-button.b-lavande .wp-block-button__link:hover { background: #DCC6FF; border-color: #DCC6FF; color: var(--anthracite); }
  .wp-block-button.b-blanc .wp-block-button__link:hover,
  .wp-block-button.b-clair .wp-block-button__link:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
}

/* ========== En-tête ========== */
.entete { padding-block: 1.25rem; }
.entete-sombre { background: var(--anthracite); color: var(--fond); }
.entete-rangee { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.entete .wp-block-site-logo img { width: 168px; height: auto; }
.entete .logo-clair { margin: 0; flex: none; }
.entete .logo-clair a { display: block; }
.entete .logo-clair img { width: 168px; height: auto; }
.entete .menu { flex: 1; justify-content: center; }
.entete .menu .wp-block-navigation-item__content {
  font: 600 0.8125rem/1 var(--texte); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--anthracite);
}
.entete-sombre .menu .wp-block-navigation-item__content { color: #E5E0EE; }
.entete .menu .wp-block-navigation-item__content:hover { color: var(--violet-encre); }
.entete-sombre .menu .wp-block-navigation-item__content:hover { color: var(--lavande); }
/* Menu toujours sur une ligne (6 onglets hors accueil). */
.entete .menu .wp-block-navigation__container { gap: 1.5rem; flex-wrap: nowrap; white-space: nowrap; }
.entete .menu .current-menu-item > .wp-block-navigation-item__content { color: var(--violet-encre); }
.entete-sombre .menu .current-menu-item > .wp-block-navigation-item__content { color: var(--lavande); }
.entete-sombre .menu .wp-block-navigation__responsive-container-open { color: var(--fond); }
/* Sous 1180 px, le menu passe dans le panneau (bouton menu), comme convenu sur la maquette */
@media (max-width: 1179px) {
  .entete .menu .wp-block-navigation__responsive-container-open { display: flex !important; }
  .entete .menu .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .entete .menu { flex: 0; order: 3; }
}
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--anthracite) !important; color: var(--fond) !important; padding: 1.5rem;
}
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: var(--fond) !important; font: 700 1.75rem/1.2 var(--titre); text-transform: uppercase; letter-spacing: 0.02em;
}
/* Spécificité renforcée : le CSS du bloc Boutons (display:flex) est imprimé après cette feuille. */
.entete .wp-block-buttons.entete-cta { display: none; }
@media (min-width: 1024px) { .entete .wp-block-buttons.entete-cta { display: flex; flex: none; } }
.entete .entete-cta .wp-block-button__link { white-space: nowrap; }

/* Barre d'appel fixe sur mobile */
.barre-mobile {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
  background: rgba(250, 248, 255, 0.96); border-top: 1px solid var(--filet);
}
.barre-mobile .wp-block-button, .barre-mobile .wp-block-button__link { width: 100%; }
@media (min-width: 1024px) { .barre-mobile { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 76px; } }

/* ========== Ouverture sombre (accueil) ========== */
.ouverture {
  position: relative; overflow: hidden; color: var(--fond);
  background: radial-gradient(ellipse 60% 70% at 50% 45%, #3D3749 0%, var(--anthracite) 70%);
}
.scene-sombre { position: relative; min-height: min(calc(100svh - 96px), 800px); --mot: clamp(3.25rem, 1rem + 8.4vw, 9.5rem); }
.mot {
  position: absolute; margin: 0; pointer-events: none;
  font: 700 var(--mot)/0.85 var(--titre);
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--fond);
}
/* Les mots encadrent le portrait sans jamais toucher le visage : DÉLÈGUE au-dessus de la tête, RESPIRE à droite. */
/* Les accents dépassent de la boîte (interligne 0.85) : le décalage en em les garde visibles, centrés entre le haut et le front. */
.mot-g { left: 0; top: calc(3% + var(--mot) * 0.12); z-index: 3; }
/* RESPIRE peut déborder de la colonne jusqu'à 1rem du bord de l'écran : il s'éloigne ainsi du visage. */
.mot-d { right: calc((100% - 100vw) / 2 + 1rem); top: 33%; z-index: 3; color: var(--lavande); }

.ouverture .puce-avis {
  position: absolute; right: 0; top: calc(33% + var(--mot) * 0.85 + 1rem); z-index: 3;
  font: 600 0.75rem/1 var(--texte); letter-spacing: 0.04em; text-transform: uppercase;
}
.ouverture .puce-avis a {
  display: inline-flex; align-items: center; gap: 0.6rem; color: #E5E0EE; text-decoration: none;
  padding: 0.4rem 0.8rem 0.4rem 0.45rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05);
}
.ouverture .puce-avis a::before {
  content: "G"; width: 22px; height: 22px; border-radius: 50%; background: var(--fond);
  display: grid; place-items: center; font: 700 0.875rem/1 var(--texte); color: #4285F4;
}

.portrait-detoure {
  position: absolute !important; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2;
  /* Le haut du visage (11 % de la photo) reste au moins 2rem sous le bas de DÉLÈGUE. */
  height: min(94%, calc((97% - var(--mot) * 0.85 - 2rem) / 0.89)); aspect-ratio: 375 / 666; margin: 0;
}
.portrait-detoure img {
  width: 100%; height: 100% !important; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-composite: intersect;
}

.verre {
  position: absolute; left: 0; bottom: 3rem; z-index: 3; width: min(300px, 32%);
  padding: 1rem; border-radius: 12px; color: #E5E0EE; font-size: 0.8125rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem;
}
.verre .verre-titre { grid-column: 1; font-size: 0.875rem; font-weight: 600; color: var(--fond); }
.verre .verre-nom { grid-column: 1; }
.verre .verre-etoiles { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--etoiles); letter-spacing: 0.08em; }
.verre .citation { grid-column: 1 / -1; font-style: italic; line-height: 1.55; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.12); }
.verre .auteur { grid-column: 1 / -1; margin-top: 0.75rem; font-size: 0.75rem; color: #B8B1C6; }

/* Widget « Trouve ta solution » (dans la carte en verre) */
.verre.diagnostic { display: block; width: min(330px, 30%); padding: 1rem 1rem 1.1rem; }
.diagnostic .verre-titre { font: 700 1.125rem/1.2 var(--titre); color: var(--fond); }
.diagnostic .diag-question { font-size: 0.8125rem; color: #B8B1C6; margin-top: 0.15rem; }
.diagnostic .diag-choix { display: grid; gap: 0.4rem; margin-top: 0.75rem; }
.diagnostic .diag-option {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  padding: 0.55rem 0.65rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--fond);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.diagnostic .diag-option::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 6px;
  background: rgba(203,169,255,0.16) center / 15px no-repeat;
}
.diagnostic .diag-option::after { content: "→"; margin-left: auto; color: var(--lavande); }
.diagnostic .o1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CBA9FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.diagnostic .o2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CBA9FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.diagnostic .o3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CBA9FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 21V5'/%3E%3C/svg%3E"); }
.diagnostic .o4::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23CBA9FF'%3E%3Cpath d='M12 2.5c.6 5 2.5 7.4 9.5 9.5-7 2.1-8.9 4.5-9.5 9.5-.6-5-2.5-7.4-9.5-9.5 7-2.1 8.9-4.5 9.5-9.5Z'/%3E%3C/svg%3E"); }
.diagnostic .o5::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CBA9FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0-4-4m4 4 4-4M5 20h14'/%3E%3C/svg%3E"); }
@media (hover: hover) and (pointer: fine) { .diagnostic .diag-option:hover { border-color: var(--lavande); background: rgba(203,169,255,0.1); } }
.diagnostic .diag-option:focus-visible { border-color: var(--lavande); }
.diagnostic .diag-resultat { display: none; gap: 0.55rem; margin-top: 0.75rem; }
.diagnostic .diag-resultat.est-actif { display: grid; }
.diagnostic.est-choisi .diag-choix, .diagnostic.est-choisi .diag-question { display: none; }
.diagnostic .diag-retour { cursor: pointer; font-size: 0.75rem; color: var(--lavande); }
.diagnostic .diag-retour::before { content: "← "; }
.diagnostic .diag-resultat .label { color: var(--lavande); }
.diagnostic .diag-resultat p:not(.label):not(.diag-prix):not(.diag-retour) { font-size: 0.8125rem; line-height: 1.5; color: #E5E0EE; }
.diagnostic .diag-prix { font: 700 1.5rem/1 var(--titre); color: var(--fond); }
.diagnostic .wp-block-button, .diagnostic .wp-block-button__link { width: 100%; }
.diagnostic .wp-block-button__link { min-height: 42px; padding: 0.6rem 1rem; font-size: 0.875rem; }

.rond-boutons { position: absolute; left: 50%; bottom: 2.5rem; transform: translateX(-50%); z-index: 4; }
.wp-block-button.b-rond .wp-block-button__link {
  width: 92px; height: 92px; min-height: 0; padding: 0; border-radius: 50%; font-size: 0; color: transparent;
  background: rgba(42,38,51,0.55); border: 1px solid rgba(203,169,255,0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 10px rgba(203,169,255,0.08);
}
.wp-block-button.b-rond .wp-block-button__link::before {
  content: ""; width: 30px; height: 30px; background: var(--lavande);
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8.5 3v4M15.5 3v4'/%3E%3Cpath d='m9.5 15 2 2 3.5-3.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8.5 3v4M15.5 3v4'/%3E%3Cpath d='m9.5 15 2 2 3.5-3.5'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine) { .wp-block-button.b-rond .wp-block-button__link:hover { background: rgba(203,169,255,0.18); border-color: var(--lavande); } }

/* Bouton Calendly du haut de page : l'icône calendrier au début du texte (le rond posé sur la photo est retiré). */
.promesse .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.5rem; padding-inline: 1.25rem; text-align: left; font-size: 0.9375rem; }
.promesse .wp-block-button__link::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8.5 3v4M15.5 3v4'/%3E%3Cpath d='m9.5 15 2 2 3.5-3.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8.5 3v4M15.5 3v4'/%3E%3Cpath d='m9.5 15 2 2 3.5-3.5'/%3E%3C/svg%3E");
}

/* Bulle WhatsApp flottante (accueil) : en bas à droite, au-dessus de la barre d'appel sur mobile. */
.bulle-whatsapp { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; margin: 0; }
@media (max-width: 1023px) { .bulle-whatsapp { bottom: calc(76px + 0.75rem); right: 1rem; } }
.bulle-whatsapp a {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; box-shadow: 0 6px 20px rgba(42,38,51,0.25); text-decoration: none;
  font-size: 0; color: transparent; transition: transform 160ms cubic-bezier(0.23,1,0.32,1);
}
/* Icône centrée en absolu : le texte du lien (taille 0) ne la décale plus. */
.bulle-whatsapp a::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; background: #fff;
  -webkit-mask: center / contain no-repeat url("assets/img/outils/whatsapp.svg"); mask: center / contain no-repeat url("assets/img/outils/whatsapp.svg");
}
/* Bulle d'info au survol. Le texte du lien (« Écris-moi sur WhatsApp ») reste lu par les lecteurs d'écran. */
.bulle-whatsapp a::after {
  content: "Une question ? Écris-moi"; position: absolute; right: calc(100% + 0.75rem); top: 50%; transform: translateY(-50%) scale(0.96);
  white-space: nowrap; padding: 0.5rem 0.8rem; border-radius: 999px; background: var(--anthracite); color: var(--fond);
  font: 600 0.8125rem/1 var(--texte); opacity: 0; pointer-events: none; transition: opacity 160ms ease-out, transform 160ms cubic-bezier(0.23,1,0.32,1);
}
@media (hover: hover) and (pointer: fine) {
  .bulle-whatsapp a:hover { transform: scale(1.08); }
  .bulle-whatsapp a:hover::after { opacity: 1; transform: translateY(-50%) scale(1); }
}
.bulle-whatsapp a:focus-visible { outline: 3px solid var(--violet-encre); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .bulle-whatsapp a, .bulle-whatsapp a::after { transition: none; } }

.promesse { position: absolute; right: 0; bottom: 3rem; z-index: 3; width: min(340px, 27%); display: grid; gap: 0.9rem; justify-items: start; }
.promesse h1 { font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); line-height: 1.12; color: var(--fond); }
.promesse p { font-size: 0.9375rem; color: #D9D3E6; }

/* Colonne de droite (bureau) : badge Google en haut, RESPIRE juste dessous, collé à la photo
   mais toujours à droite du visage. La hauteur de l'ouverture est connue (--scene-h), donc la taille
   de la photo aussi (--photo-h) : RESPIRE se place depuis le centre, au-delà du visage (67 % de la photo). */
@media (min-width: 900px) {
  .scene-sombre {
    --scene-h: min(calc(100svh - 96px), 800px);
    --photo-h: min(calc(var(--scene-h) * 0.94), calc((var(--scene-h) * 0.97 - var(--mot) * 0.85 - 2rem) / 0.89));
  }
  .portrait-detoure { height: var(--photo-h); }
  .mot-d, .ouverture .puce-avis {
    right: auto;
    left: calc(50% + var(--photo-h) * 0.5631 * 0.17 + 2.5rem);
  }
  .ouverture .puce-avis { top: 5%; }
  .mot-d { top: calc(5% + 4rem); }
}
/* Fenêtres peu hautes : widget plus compact pour ne pas remonter jusqu'à DÉLÈGUE. */
@media (min-width: 900px) and (max-height: 760px) {
  .verre.diagnostic { bottom: 1.25rem; padding: 0.8rem; }
  .diagnostic .diag-question { display: none; }
  .diagnostic .diag-choix { gap: 0.3rem; margin-top: 0.5rem; }
  .diagnostic .diag-option { padding: 0.4rem 0.6rem; }
  .diagnostic .diag-option::before { width: 22px; height: 22px; }
}
/* Écrans moyens : colonnes latérales resserrées pour laisser la photo respirer. */
@media (min-width: 900px) and (max-width: 1199px) {
  .verre.diagnostic { width: 25%; }
  .promesse { width: 25%; }
}

@media (max-width: 899px) {
  .scene-sombre { min-height: 0; display: grid; gap: 1.25rem; padding-bottom: 2.5rem; }
  .mot, .ouverture .puce-avis, .verre, .rond-boutons, .promesse, .portrait-detoure { position: static !important; transform: none; width: auto; }
  .mot { font-size: clamp(3rem, 1rem + 11vw, 5rem); }
  .ouverture .puce-avis { order: 0; } .mot-g { order: 1; }
  .portrait-detoure { order: 2; height: 400px; margin: -0.5rem auto -1rem; }
  .mot-d { order: 3; text-align: right; margin-top: -0.25rem; }
  .promesse { order: 4; } .verre { order: 5; } .rond-boutons { display: none; }
  .verre.diagnostic { width: auto; }
  .scene-sombre .wp-block-buttons.rond-boutons { display: none; }
}

/* ========== Outils ========== */
.outils-bande { padding-block: 3rem 1rem; text-align: center; }
.outils-bande .label { color: var(--gris-texte); }
.outils-bande ul.wp-block-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.75rem; }
.outils-bande li { font: 600 1.0625rem/1 var(--texte); color: #8A8496; }
/* Logos dans leurs couleurs d'origine, noms en gris lisible (contraste AA). */
.outils-logos { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.25rem; }
.outils-logos .outil { display: flex; align-items: center; gap: 0.6rem; }
.outils-logos .outil-logo { margin: 0; flex: none; }
.outils-logos .outil-logo img { display: block; width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.outils-logos .outil-logo img[src$="zoom.svg"] { width: 68px; height: 16px; }
.outils-logos .outil p { margin: 0; font: 600 1.0625rem/1 var(--texte); color: var(--gris-texte); }
@media (max-width: 599px) { .outils-logos { gap: 0.9rem 1.5rem; } .outils-logos .outil p { font-size: 0.9375rem; } }

/* ========== Chiffres vérifiables ========== */
.chiffres { padding-block: clamp(4rem, 3rem + 3vw, 6rem); }
.chiffres h2 { margin-bottom: 2.5rem; }
.rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); row-gap: 2rem; }
.cellule { border-left: 1px solid var(--filet); padding: 0.25rem 1.5rem 0.5rem; display: grid; gap: 0.75rem; align-content: start; }
.cellule .label { color: var(--gris-texte); }
.cellule .nombre { font: 700 clamp(2.75rem, 2rem + 2.4vw, 4rem)/1 var(--titre); color: var(--anthracite); }
.cellule .nombre em { font-style: normal; color: var(--violet); }
.cellule p:last-child { font-size: 0.875rem; color: var(--gris-texte); max-width: 18em; }

/* ========== Étapes en escalier montant ========== */
.etapes2 { padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(4rem, 3rem + 3vw, 6rem); }
.etapes2 h2 { text-align: center; margin: 0 auto 3rem; }
.escalier { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) {
  .escalier { grid-template-columns: repeat(3, 1fr); }
  /* Escalier qui descend : l'étape 01 en haut, la 03 en bas. */
  .escalier > .marche2:nth-child(2) { margin-top: 3rem; }
  .escalier > .marche2:nth-child(3) { margin-top: 6rem; }
}
/* Marches en lavande (couleur claire du logo), texte anthracite pour le contraste AA. */
.marche2 { background: var(--lavande); color: var(--anthracite); border-radius: var(--rayon); padding: 1.25rem 1.5rem 1.5rem; min-height: 11rem; display: grid; align-content: space-between; gap: 2rem; }
.marche2 .label { color: var(--anthracite); opacity: 0.8; }
.marche2 h3 { font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.4rem; color: var(--anthracite); }
.marche2 p:not(.label) { font-size: 0.9375rem; color: var(--anthracite); }

/* ========== Bandeau de grands mots (fixe) ========== */
.bandeau { overflow: hidden; padding-block: 1rem; }
.bandeau .piste { display: flex; width: max-content; animation: defile 60s linear infinite; }
.bandeau .ligne { display: flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; white-space: nowrap; width: max-content; flex: none; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .bandeau:hover .piste { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .bandeau .piste { animation: none; transform: translateX(-4%); } }
.bandeau .w { font: 700 clamp(3rem, 2rem + 4vw, 6rem)/1 var(--titre); text-transform: uppercase; letter-spacing: 0.01em; display: flex; align-items: center; gap: 2.25rem; }
.bandeau .w::after {
  content: ""; width: 38px; height: 38px; flex: none; background: var(--lavande);
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.6 5.3 2.6 7.9 10.5 10.5-7.9 2.6-9.9 5.2-10.5 10.5C11.4 17.2 9.4 14.6 1.5 12 9.4 9.4 11.4 6.8 12 1.5Z'/%3E%3C/svg%3E");
          mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.6 5.3 2.6 7.9 10.5 10.5-7.9 2.6-9.9 5.2-10.5 10.5C11.4 17.2 9.4 14.6 1.5 12 9.4 9.4 11.4 6.8 12 1.5Z'/%3E%3C/svg%3E");
}
/* Contour : trait peint sous le remplissage, pour masquer les tracés qui se chevauchent à l'intérieur des lettres */
.bandeau .contour { color: var(--fond); -webkit-text-stroke: 3px var(--anthracite); paint-order: stroke fill; }
.bandeau .plein { color: var(--anthracite); }
.bandeau .violet { color: var(--violet); }
.bandeau .lavande { color: var(--lavande); }

/* ========== Formules ========== */
.formules2 { padding-block: clamp(4rem, 3rem + 3vw, 6rem); }
.formules2 h2 { margin-bottom: 2.5rem; }
.formules2 .grille { display: grid; gap: 1rem; }
@media (min-width: 900px) { .formules2 .grille { grid-template-columns: 1fr 1fr 1.6fr; align-items: stretch; } }
/* Cartes de même hauteur, prix alignés en bas de chaque carte */
.formule { background: var(--carte); border-radius: var(--rayon); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.formule .prix-label { margin-top: auto; }
.formule::before {
  content: ""; width: 36px; height: 36px; background: var(--violet);
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.formule.f1::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='9' width='28' height='19' rx='2'/%3E%3Cpath d='M3 32h34M15 18l4 4 7-7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='9' width='28' height='19' rx='2'/%3E%3Cpath d='M3 32h34M15 18l4 4 7-7'/%3E%3C/svg%3E"); }
.formule.f2::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='8' width='30' height='26' rx='3'/%3E%3Cpath d='M5 16h30M13 4v7M27 4v7M16 25l3 3 6-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='8' width='30' height='26' rx='3'/%3E%3Cpath d='M5 16h30M13 4v7M27 4v7M16 25l3 3 6-6'/%3E%3C/svg%3E"); }
.formule.f3::before { background: var(--lavande); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='9' width='30' height='22' rx='3'/%3E%3Cpath d='m5 11 15 11 15-11'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='9' width='30' height='22' rx='3'/%3E%3Cpath d='m5 11 15 11 15-11'/%3E%3C/svg%3E"); }
.formule h3 { text-transform: uppercase; font-size: 1.125rem; letter-spacing: 0.02em; }
.formule p, .formule ul { font-size: 0.9375rem; color: var(--gris-texte); }
.formule ul.wp-block-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.formule .prix-label { font-size: 0.8125rem; font-weight: 500; padding-top: 0.75rem; margin-bottom: -0.5rem; }
.formule .prix { font: 700 1.75rem/1 var(--titre); color: var(--violet-encre); }
.formule.f3 { background: var(--anthracite); color: var(--fond); }
.formule.f3 h3, .formule.f3 .prix { color: var(--fond); }
.formule.f3 p, .formule.f3 ul { color: #D9D3E6; }
@media (min-width: 600px) { .formule.f3 ul.wp-block-list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
/* Bloc « Bon à savoir » sous les formules (page Formules). */
.formules2 .suite.bon-a-savoir { display: grid; justify-content: stretch; gap: 0.5rem; }
.bon-a-savoir .label { margin: 0; }
.bon-a-savoir ul.wp-block-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; color: var(--anthracite); }
.formules2 .suite { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--lavande-pale); border-radius: var(--rayon); font-size: 0.9375rem; }

/* ========== Grimoire pleine largeur ========== */
.grimoire2 { background: var(--violet-encre); color: var(--fond); padding-block: clamp(4rem, 3rem + 4vw, 7rem); overflow: hidden; }
.grimoire2 > .conteneur { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .grimoire2 > .conteneur { grid-template-columns: 0.9fr 1.1fr; } }
.grimoire2 .label { color: var(--lavande); }
.grimoire2 h2 { margin-block: 0.75rem 1rem; color: #fff; }
.grimoire2 .lead { color: #EDE4FF; }
.couverture { position: relative; }
.couverture::before {
  content: ""; position: absolute; width: 220px; aspect-ratio: 120 / 56; right: 0; top: -1rem; background: var(--lavande);
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cpolyline points='6,16 32,42 58,22 86,48 114,8' fill='none' stroke='%23000' stroke-width='1.25' stroke-dasharray='2 5'/%3E%3Ccircle cx='6' cy='16' r='2.4'/%3E%3Ccircle cx='32' cy='42' r='2.8'/%3E%3Ccircle cx='58' cy='22' r='3.2'/%3E%3Ccircle cx='86' cy='48' r='2.4'/%3E%3Ccircle cx='114' cy='8' r='2.8'/%3E%3C/svg%3E");
          mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cpolyline points='6,16 32,42 58,22 86,48 114,8' fill='none' stroke='%23000' stroke-width='1.25' stroke-dasharray='2 5'/%3E%3Ccircle cx='6' cy='16' r='2.4'/%3E%3Ccircle cx='32' cy='42' r='2.8'/%3E%3Ccircle cx='58' cy='22' r='3.2'/%3E%3Ccircle cx='86' cy='48' r='2.4'/%3E%3Ccircle cx='114' cy='8' r='2.8'/%3E%3C/svg%3E");
}
.couverture .wp-block-image img { width: min(100%, 420px); border-radius: var(--rayon); transform: translateY(1.5rem); box-shadow: 0 40px 80px rgba(20, 8, 50, 0.45); }
.versions { display: grid; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 600px) { .versions { grid-template-columns: repeat(3, 1fr); } }
.version2 { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--rayon); padding: 1.25rem; display: grid; gap: 0.5rem; align-content: start; }
.version2 .label { color: var(--lavande); }
.version2 .prix { font: 700 2.25rem/1 var(--titre); color: #fff; }
.version2 p:not(.label):not(.prix) { font-size: 0.875rem; color: #EDE4FF; }
.version2.mise { background: var(--fond); border-color: var(--fond); color: var(--anthracite); }
.version2.mise .label, .version2.mise .prix { color: var(--violet-encre); }
.version2.mise p:not(.label):not(.prix) { color: var(--gris-texte); }
.version2 .wp-block-buttons { margin-top: 0.5rem; }
.version2 .wp-block-button, .version2 .wp-block-button__link { width: 100%; }

/* ========== Avis Google ========== */
.avis-google { padding-block: clamp(4rem, 3rem + 3vw, 6rem); }
.avis-google h2 { text-align: center; margin-bottom: 2.5rem; }
.avis-google .cadre { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 960px) { .avis-google .cadre { grid-template-columns: 15rem 1fr; } }
.resume { display: grid; gap: 0.5rem; justify-items: start; }
.resume .note { font: 700 1.5rem/1 var(--titre); }
.resume .note em, .carte-avis .etoiles { font-style: normal; color: var(--etoiles); letter-spacing: 0.08em; }
.resume p:not(.label):not(.note) { font-size: 0.875rem; color: var(--gris-texte); }
.defile { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.carte-avis { scroll-snap-align: start; background: var(--carte); border-radius: var(--rayon); padding: 1.25rem; display: grid; gap: 0.5rem; align-content: start; position: relative; }
.carte-avis::after { content: "G"; position: absolute; top: 1rem; right: 1rem; font: 700 1rem/1 var(--texte); color: #4285F4; }
.carte-avis .date { font-size: 0.8125rem; color: var(--gris-texte); margin-top: -0.4rem; }
.carte-avis p:last-child { font-size: 0.9375rem; }
/* Widget Trustindex : il garde sa largeur dans la grille et prend la police du site. */
.avis-widget { min-width: 0; }
.avis-google .source { margin-top: 1rem; text-align: center; font-size: 0.8125rem; color: var(--gris-texte); }

/* ========== Bande finale sombre (pied de page) ========== */
.final { background: var(--anthracite); color: var(--fond); padding-top: clamp(4rem, 3rem + 5vw, 8rem); }
.final .appel { text-align: center; display: grid; justify-items: center; gap: 1.25rem; }
.final .appel .label { color: var(--lavande); }
.final .appel h2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem); line-height: 1.02; color: var(--fond); }
.final .appel p:not(.label) { color: #D9D3E6; max-width: 34em; }
.menu-geant { margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding-block: 1.5rem; border-block: 1px solid #45404F; }
.menu-geant .wp-block-navigation__container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.25rem; width: 100%; }
.menu-geant .wp-block-navigation-item__content {
  font: 700 clamp(1.125rem, 0.5rem + 1.25vw, 1.5rem)/1 var(--titre); letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--fond); text-decoration: none;
}
.menu-geant .current-menu-item > .wp-block-navigation-item__content,
.menu-geant .wp-block-navigation-item__content:hover { color: var(--lavande); }
.pied { margin-block: 2rem 1.5rem; padding: 2rem; background: var(--anthracite-2); border-radius: var(--rayon); display: grid; gap: 2rem; }
@media (min-width: 768px) { .pied { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pied .pied-titre { font: 600 0.8125rem/1.3 var(--texte); letter-spacing: 0.04em; text-transform: uppercase; color: var(--lavande); margin-bottom: 0.75rem; }
.pied ul.wp-block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.pied a { color: #E5E0EE; text-decoration: none; font-size: 0.9375rem; }
.pied a:hover { color: var(--lavande); text-decoration: underline; }
.pied p:not(.pied-titre) { color: #D9D3E6; font-size: 0.9375rem; }
.pied .wp-block-buttons { margin-top: 1rem; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-bottom: 2rem; font-size: 0.8125rem; color: #B8B1C6; }

/* ========== Pages intérieures (contenu courant) ========== */
.page-interieure { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.page-interieure > * { width: min(100% - 2rem, 45rem); margin-inline: auto; }
.page-interieure h1 { margin-bottom: 1.5rem; }
.page-interieure h2 { font-size: var(--wp--preset--font-size--titre-3); margin-block: 2.5rem 0.75rem; }
.page-interieure p + p { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ========== Survol : tout ce qui est cliquable grossit légèrement et se met en valeur ==========
   Uniquement sur les écrans avec souris (pas d'effet collant au toucher), en transform pour rester fluide. */
.wp-block-button .wp-block-button__link,
.entete .menu .wp-block-navigation-item__content,
.menu-geant .wp-block-navigation-item__content,
.pied ul a,
.entete .logo-clair a, .entete .wp-block-site-logo a,
.ouverture .puce-avis a,
.diagnostic .diag-option, .diagnostic .diag-retour,
.faq .wp-block-details summary {
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.entete .menu .wp-block-navigation-item__content, .menu-geant .wp-block-navigation-item__content, .pied ul a, .diagnostic .diag-retour { display: inline-block; }
@media (hover: hover) and (pointer: fine) {
  .wp-block-button .wp-block-button__link:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(107, 43, 214, 0.28); }
  .wp-block-button.b-lavande .wp-block-button__link:hover,
  .wp-block-button.b-blanc .wp-block-button__link:hover,
  .wp-block-button.b-clair .wp-block-button__link:hover { box-shadow: 0 10px 24px rgba(203, 169, 255, 0.3); }
  .wp-block-button.b-rond .wp-block-button__link:hover { transform: scale(1.08); }
  .entete .menu .wp-block-navigation-item__content:hover,
  .pied ul a:hover { transform: scale(1.08); }
  .menu-geant .wp-block-navigation-item__content:hover { transform: scale(1.06); }
  .entete .logo-clair a:hover, .entete .wp-block-site-logo a:hover { transform: scale(1.04); }
  .ouverture .puce-avis a:hover { transform: scale(1.05); border-color: var(--lavande); background: rgba(203,169,255,0.12); }
  .diagnostic .diag-option:hover { transform: scale(1.03); }
  .diagnostic .diag-retour:hover { transform: translateX(-3px); }
  .faq .wp-block-details summary:hover { color: var(--violet-encre); transform: translateX(4px); }
  /* Liens dans le texte : soulignement épais et couleur affirmée */
  main p a:not(.wp-block-button__link):hover, main li a:hover { color: var(--violet); text-decoration-thickness: 2px; }
}
.wp-block-button .wp-block-button__link:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .wp-block-button .wp-block-button__link:hover, .entete .menu .wp-block-navigation-item__content:hover, .pied ul a:hover,
  .menu-geant .wp-block-navigation-item__content:hover, .diagnostic .diag-option:hover, .ouverture .puce-avis a:hover,
  .entete .logo-clair a:hover, .faq .wp-block-details summary:hover { transform: none; }
}