/*
Theme Name: L & I Avocats
Theme URI: https://li-avocats.fr
Author: L & I Avocats
Description: Thème bloc sur mesure du cabinet L & I Avocats, avocats d'affaires du bâtiment et de l'immobilier. Le contenu est composé de blocs natifs, modifiables dans l'éditeur.
Version: 2.0.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: li-avocats
*/

/* ==========================================================================
   L & I Avocats — thème 2026 (version 2 : claire et dynamique)
   Bleu de Prusse pour l'encre, azur des façades de verre pour les accents
   (esperluette du logo, survols), blanc et ciel pâle pour les fonds. Le double
   carré du logo sert de tracé ; cotes et cartouche du dessin technique.
   ========================================================================== */

:root {
  /* Bleu de Prusse */
  --prusse-950: oklch(0.19 0.05 256);
  --prusse-900: oklch(0.23 0.06 256);
  --prusse-800: oklch(0.28 0.075 254);
  --prusse-700: oklch(0.35 0.09 252);
  --prusse-600: oklch(0.5 0.15 252);   /* azur foncé : accents sur fond clair (contraste AA) */
  /* Azur des façades de verre (remplace le vert, à la demande du cabinet) */
  --calque: oklch(0.68 0.13 242);       /* azur vif : traits, esperluette, accents sur fond sombre */
  --calque-pale: oklch(0.965 0.016 240); /* ciel pâle : fonds de section */
  /* Neutres teintés vers le bleu */
  --blanc: oklch(0.995 0.002 250);
  --beton: oklch(0.965 0.006 250);
  --encre: oklch(0.21 0.035 256);
  --gris: oklch(0.47 0.025 256);
  --trait: oklch(0.88 0.012 250);
  --trait-appuye: oklch(0.62 0.02 256);
  --clair: oklch(0.97 0.008 250);
  --clair-doux: oklch(0.83 0.025 240);
  --trait-sombre: oklch(1 0 0 / 0.18);

  --serif: "Jost", "Josefin Sans", system-ui, sans-serif; /* titres (nom historique de la variable) */
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lettrage: "Josefin Sans", "Archivo", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);        /* expo out */
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --gouttiere: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --h-entete: 92px;
  --section: clamp(80px, 10vw, 156px);

  --z-apercu: 50;
  --z-menu: 90;
  --z-entete: 100;
  --z-evitement: 200;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
sup { font-size: 0.6em; line-height: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 1.35rem + 2.7vw, 3.7rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem); font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--prusse-600);
  outline-offset: 3px;
}
.sur-sombre :focus-visible,
.ouverture :focus-visible,
.pied :focus-visible,
.menu-mobile :focus-visible,
.bandeau :focus-visible,
.contact-panneau :focus-visible,
.appel :focus-visible { outline-color: var(--calque); }

::selection { background: var(--calque); color: var(--prusse-950); }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lien-evitement {
  position: fixed;
  top: 12px; left: 12px;
  z-index: var(--z-evitement);
  padding: 12px 18px;
  background: var(--blanc);
  color: var(--encre);
  font-weight: 600;
  translate: 0 -200%;
  transition: translate 0.3s var(--ease);
}
.lien-evitement:focus { translate: 0 0; }

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section); }

.chapo {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 1.12rem + 1.05vw, 2.05rem);
  line-height: 1.32;
  letter-spacing: -0.008em;
  color: var(--encre);
  text-wrap: balance;
}

/* Titre d'appoint : un seul usage par page, jamais en série */
.titre-discret {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  letter-spacing: 0;
  color: var(--prusse-600);
  display: flex;
  align-items: center;
  gap: 14px;
}
.titre-discret::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  flex: none;
}

/* --------------------------------------------------------------------------
   Boutons et liens
   -------------------------------------------------------------------------- */
.fleche {
  width: 18px;
  height: 10px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.5s var(--ease);
}

.bouton {
  --fond: var(--prusse-800);
  --texte: var(--blanc);
  --survol: var(--prusse-600);
  --texte-survol: var(--blanc);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  background: var(--fond);
  color: var(--texte);
  font: 600 0.9375rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.45s var(--ease);
}
.bouton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--survol);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.bouton:hover, .bouton:focus-visible { color: var(--texte-survol); }
.bouton:hover::before, .bouton:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.bouton:hover .fleche, .bouton:focus-visible .fleche { transform: translateX(5px); }

.bouton-calque {
  --fond: var(--calque);
  --texte: var(--prusse-950);
  --survol: var(--blanc);
  --texte-survol: var(--prusse-950);
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.lien-fleche:hover, .lien-fleche:focus-visible {
  background-size: 0 1px;
  background-position: 100% 100%;
}
.lien-fleche:hover .fleche { transform: translateX(5px); }
.lien-clair { color: var(--blanc); }

/* --------------------------------------------------------------------------
   Logo (redessiné d'après le fichier du cabinet)
   -------------------------------------------------------------------------- */
.carre {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  transition: transform 0.7s var(--ease);
}
.logo-lettres {
  font-family: var(--lettrage);
  font-weight: 300;
  font-size: 118px;
  letter-spacing: 6px;
  text-anchor: middle;
  fill: currentColor;
}
.logo-lettres-complet { font-size: 100px; }
.logo-esperluette { fill: var(--calque); }
.logo-paris,
.logo-depuis {
  font-family: var(--lettrage);
  font-weight: 400;
  text-anchor: middle;
  fill: currentColor;
}
.logo-paris { font-size: 27px; letter-spacing: 9px; }
.logo-depuis { font-size: 20px; letter-spacing: 5px; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-entete);
  color: var(--blanc);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.entete-rangee {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  height: var(--h-entete);
  transition: height 0.5s var(--ease);
  animation: entete-arrive 1s var(--ease) 0.2s backwards;
}
.entete.est-defile {
  background: var(--blanc);
  color: var(--encre);
  box-shadow: 0 1px 0 var(--trait);
}
.entete.est-defile .entete-rangee { height: 72px; }

.marque {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  text-decoration: none;
}
.marque-logo {
  width: 46px;
  height: auto;
  overflow: visible;
  transition: width 0.5s var(--ease);
}
.est-defile .marque-logo { width: 40px; }
.marque:hover .carre-arriere { transform: translate(-10px, 10px); }
.marque:hover .carre-avant { transform: translate(10px, -10px); }
.marque-texte { display: grid; line-height: 1.15; }
.marque-nom { font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; }
.marque-sous { font-size: 0.78rem; opacity: 0.78; letter-spacing: 0.02em; }

.nav-principale > ul {
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-principale a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.nav-principale > ul > li > a:hover,
.nav-principale > ul > li > a:focus-visible,
.nav-principale a[aria-current="page"],
.nav-deroulant:has([aria-current="page"]) > a { background-size: 100% 1px; }

.chevron {
  width: 9px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.4s var(--ease);
}
.nav-deroulant { position: relative; }
.nav-deroulant:hover .chevron,
.nav-deroulant:focus-within .chevron { transform: rotate(180deg); }
.nav-sous {
  position: absolute;
  top: calc(100% + 6px);
  left: -22px;
  width: 290px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--blanc);
  color: var(--encre);
  box-shadow: 0 24px 48px -20px oklch(0.19 0.05 256 / 0.45), 0 0 0 1px var(--trait);
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity 0.3s var(--ease), translate 0.45s var(--ease), visibility 0s linear 0.3s;
}
.nav-sous::before { /* pont de survol */
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
.nav-deroulant:hover .nav-sous,
.nav-deroulant:focus-within .nav-sous {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition-delay: 0s;
}
.nav-sous a {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  white-space: normal;
  background: none;
  transition: background-color 0.3s;
}
.nav-sous a:hover, .nav-sous a:focus-visible, .nav-sous a[aria-current="page"] { background-color: var(--beton); }
.nav-sous-titre { font-weight: 600; }
.nav-sous-texte { font-size: 0.85rem; color: var(--gris); font-weight: 400; }

.entete-tel {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.entete-tel:hover { text-decoration: underline; text-underline-offset: 4px; }

.bouton-entete {
  --fond: var(--calque);
  --texte: var(--prusse-950);
  --survol: var(--blanc);
  --texte-survol: var(--prusse-950);
  min-height: 46px;
  padding: 0 20px;
}
.est-defile .bouton-entete {
  --fond: var(--prusse-800);
  --texte: var(--blanc);
  --survol: var(--prusse-600);
  --texte-survol: var(--blanc);
}

.menu-bouton {
  display: none;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 4px 0 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 0.9375rem/1 var(--sans);
  cursor: pointer;
}
.menu-bouton-traits {
  position: relative;
  width: 26px;
  height: 10px;
}
.menu-bouton-traits::before,
.menu-bouton-traits::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-bouton-traits::before { top: 0; }
.menu-bouton-traits::after { top: 8.5px; }
.menu-bouton[aria-expanded="true"] .menu-bouton-traits::before { top: 4.25px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton-traits::after { top: 4.25px; transform: rotate(-45deg); }

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 118px var(--gouttiere) 36px;
  overflow-y: auto;
  background: var(--prusse-900);
  color: var(--blanc);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.75s var(--ease), visibility 0s linear 0.75s;
}
.menu-mobile[data-ouvert] {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path 0.75s var(--ease);
}
.menu-mobile-liens {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--trait-sombre);
}
.menu-mobile-liens li { border-bottom: 1px solid var(--trait-sombre); overflow: hidden; }
.menu-mobile-liens a {
  display: block;
  padding: 16px 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 1.2rem + 2.5vw, 2.4rem);
  line-height: 1.15;
  text-decoration: none;
  translate: 0 110%;
  transition: translate 0.8s var(--ease), color 0.3s;
}
.menu-mobile-sous a { padding-left: 28px; font-size: clamp(1.3rem, 1rem + 1.6vw, 1.8rem); color: var(--clair-doux); }
.menu-mobile-liens a[aria-current="page"] { color: var(--calque); }
.menu-mobile[data-ouvert] .menu-mobile-liens a { translate: 0 0; }
.menu-mobile[data-ouvert] li:nth-child(2) a { transition-delay: 0.05s; }
.menu-mobile[data-ouvert] li:nth-child(3) a { transition-delay: 0.1s; }
.menu-mobile[data-ouvert] li:nth-child(4) a { transition-delay: 0.15s; }
.menu-mobile[data-ouvert] li:nth-child(5) a { transition-delay: 0.2s; }
.menu-mobile-pied { display: grid; gap: 24px; justify-items: start; color: var(--clair-doux); font-size: 0.95rem; }
.menu-mobile-pied a:not(.bouton) { text-decoration: none; }

body.menu-ouvert { overflow: hidden; }
body.menu-ouvert .entete { background: transparent; color: var(--blanc); box-shadow: none; }

@media (max-width: 1239px) {
  .entete-tel { display: none; }
}
@media (max-width: 1079px) {
  .nav-principale, .bouton-entete { display: none; }
  .menu-bouton { display: inline-flex; }
  :root { --h-entete: 80px; }
}
@media (min-width: 1080px) {
  .menu-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   Ouvertures (photo plein cadre)
   -------------------------------------------------------------------------- */
.ouverture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--prusse-900);
  color: var(--blanc);
}
.ouverture-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}
.ouverture-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: photo-entree 2.6s var(--ease) backwards;
}
.ouverture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, oklch(0.2 0.055 256 / 0.93) 0%, oklch(0.2 0.055 256 / 0.72) 40%, oklch(0.2 0.055 256 / 0.1) 80%),
    linear-gradient(0deg, oklch(0.19 0.05 256 / 0.8) 0%, oklch(0.19 0.05 256 / 0) 38%),
    linear-gradient(180deg, oklch(0.19 0.05 256 / 0.55) 0%, oklch(0.19 0.05 256 / 0) 22%);
}

.ouverture-accueil {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(700px, 100svh);
}
.ouverture-accueil .ouverture-photo { left: 26%; }
.ouverture-accueil .ouverture-photo img { object-position: 30% 50%; }
.ouverture-accueil::before {
  background:
    linear-gradient(90deg, var(--prusse-900) 0%, var(--prusse-900) 26%, oklch(0.23 0.06 256 / 0.55) 44%, oklch(0.23 0.06 256 / 0) 70%),
    linear-gradient(0deg, oklch(0.19 0.05 256 / 0.75) 0%, oklch(0.19 0.05 256 / 0) 34%),
    linear-gradient(180deg, oklch(0.19 0.05 256 / 0.5) 0%, oklch(0.19 0.05 256 / 0) 20%);
}

.ouverture-trace {
  position: absolute;
  top: 19%;
  right: max(var(--gouttiere), calc((100vw - var(--max)) / 2 - 40px));
  z-index: -1;
  width: clamp(280px, 34vw, 540px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.trace-carre {
  fill: none;
  stroke: var(--calque);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: trace 2.2s var(--ease-quart) 0.5s backwards;
}
.trace-avant { animation-delay: 0.85s; }
.trace-reperes path {
  fill: none;
  stroke: var(--calque);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: apparition 0.8s var(--ease) 2.3s backwards;
}

.ouverture-contenu {
  align-self: center;
  padding-top: calc(var(--h-entete) + 56px);
  padding-bottom: 56px;
}
.ouverture-lieu {
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clair-doux);
  animation: monte-leger 1s var(--ease) 0.35s backwards;
}
.ouverture-lieu span + span::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 22px;
  vertical-align: middle;
  background: var(--calque);
}

.titre-1 {
  font-size: clamp(2.7rem, 1.45rem + 4.7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 13ch;
}
.h1-sur,
.h1-ligne {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.h1-sur > span,
.h1-ligne > span {
  display: block;
  animation: ligne-monte 1.25s var(--ease) backwards;
}
.h1-sur {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--calque);
}
.h1-sur > span { animation-delay: 0.4s; }
.h1-ligne:nth-child(2) > span { animation-delay: 0.5s; }
.h1-ligne:nth-child(3) > span { animation-delay: 0.6s; }
.h1-ligne:nth-child(4) > span { animation-delay: 0.7s; }

.ouverture-texte {
  max-width: 36ch;
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--clair);
  animation: monte-leger 1.1s var(--ease) 0.95s backwards;
}
.ouverture-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 40px;
  animation: monte-leger 1.1s var(--ease) 1.1s backwards;
}

.ouverture-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 40px;
  padding-block: 24px 30px;
  border-top: 1px solid var(--trait-sombre);
  font-size: 0.9rem;
  color: var(--clair-doux);
  animation: apparition 1.2s var(--ease) 1.4s backwards;
}
.ouverture-bas p { margin: 0; }
.ouverture-bas a { text-decoration: none; font-variant-numeric: tabular-nums; }
.ouverture-bas a:hover { color: var(--blanc); }
.defiler {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  color: var(--blanc);
}
.defiler-trait {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: var(--trait-sombre);
}
.defiler-trait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--calque);
  animation: descend 2.4s var(--ease-quart) 2s infinite backwards;
}

/* Ouverture des pages intérieures : photo + cartouche */
.ouverture-page {
  display: flex;
  align-items: flex-end;
  min-height: clamp(540px, 80svh, 780px);
  padding-top: calc(var(--h-entete) + 40px);
  padding-bottom: clamp(40px, 6vw, 84px);
}
.ouverture-page::before {
  background:
    linear-gradient(0deg, oklch(0.19 0.05 256 / 0.9) 0%, oklch(0.19 0.05 256 / 0.35) 55%, oklch(0.19 0.05 256 / 0.55) 100%);
}
.ouverture-sobre { min-height: clamp(380px, 52svh, 520px); }

.cartouche {
  position: relative;
  max-width: 920px;
  background: oklch(0.19 0.05 256 / 0.6);
  animation: apparition 1s var(--ease) 0.3s backwards;
}
.cartouche::before { /* le cadre se trace */
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid oklch(1 0 0 / 0.38);
  pointer-events: none;
  animation: cadre 1.4s var(--ease-quart) 0.4s backwards;
}
.cartouche-haut {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid oklch(1 0 0 / 0.38);
}
.cartouche-haut > * {
  padding: 12px 20px;
  border-right: 1px solid oklch(1 0 0 / 0.38);
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 115%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clair-doux);
  text-decoration: none;
}
.cartouche-haut a:hover { color: var(--blanc); }
.cartouche-haut > :last-child { border-right: 0; margin-left: auto; }
.cartouche-titre {
  padding: clamp(20px, 3vw, 34px) clamp(20px, 2.6vw, 36px) clamp(24px, 3.4vw, 42px);
  font-size: clamp(2.4rem, 1.35rem + 3.9vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.cartouche-titre > span {
  display: block;
  animation: monte 1.2s var(--ease) 0.55s backwards;
}

/* --------------------------------------------------------------------------
   Accueil — Qui sommes-nous
   -------------------------------------------------------------------------- */
.qui-grille {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}
.qui-grille .titre-discret { grid-column: 1 / 4; margin-top: 0.9em; }
.enonce {
  grid-column: 4 / 13;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.95rem, 1.2rem + 2.75vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.enonce em { color: var(--prusse-600); }
.qui-lien { grid-column: 4 / 13; justify-self: start; margin-top: 18px; }

/* La cote : ligne de dimension du dessin technique */
.cote {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: clamp(64px, 8vw, 112px);
  color: var(--gris);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cote-borne {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cote-borne:first-child::after,
.cote-borne:last-child::before {
  content: "";
  width: 1px;
  height: 22px;
  background: var(--encre);
}
.cote-trait {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--encre);
}
.cote-trait::before { /* pointe de flèche */
  content: "";
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border: solid var(--encre);
  border-width: 0 0 1px 1px;
}
.cote-trait-gauche::before { left: 0; transform: rotate(45deg); }
.cote-trait-droite::before { right: 0; transform: rotate(-135deg); }
.cote-valeur {
  padding-inline: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--prusse-600);
}

/* --------------------------------------------------------------------------
   Accueil — Vos besoins, nos services
   -------------------------------------------------------------------------- */
.services { background: var(--beton); }
.services-grille {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
}
.services-titre {
  grid-column: 1 / 6;
  align-self: start;
  position: sticky;
  top: 120px;
}
.services-texte { grid-column: 7 / 13; max-width: 62ch; }
.services-texte .chapo { margin-bottom: 1.1em; }
.services-texte p:not(.chapo) { color: var(--gris); }

.rangs-titre {
  margin-top: clamp(80px, 9vw, 128px);
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gris);
}
.rangs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--encre);
}
.rang {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: center;
  padding: clamp(26px, 3vw, 42px) 0;
  border-bottom: 1px solid var(--trait-appuye);
  text-decoration: none;
}
.rang::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--prusse-800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.rang:hover::after, .rang:focus-visible::after { transform: scaleX(1); }
.rang-titre {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 1.15rem + 1.7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: transform 0.7s var(--ease), color 0.4s;
}
.rang:hover .rang-titre, .rang:focus-visible .rang-titre { transform: translateX(18px); color: var(--prusse-600); }
.rang-titre { grid-column: 1 / 7; }
.rang-texte { grid-column: 7 / 12; color: var(--gris); max-width: 46ch; }
.rang .rang-fleche { grid-column: 12 / 13; justify-self: end; }
.rang-fleche {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--trait-appuye);
  transition: background-color 0.45s var(--ease), border-color 0.45s, color 0.45s;
}
.rang:hover .rang-fleche, .rang:focus-visible .rang-fleche {
  background: var(--prusse-800);
  border-color: var(--prusse-800);
  color: var(--blanc);
}
.rang:hover .fleche { transform: translateX(4px); }

/* Aperçu photo qui suit le pointeur */
.apercu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-apercu);
  width: 280px;
  pointer-events: none;
}
.apercu-cadre {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: -238px 0 0 28px; /* au-dessus et à droite du pointeur : le titre survolé reste lisible */
  opacity: 0;
  clip-path: inset(50% 0 50% 0);
  transition: opacity 0.35s var(--ease), clip-path 0.7s var(--ease);
  box-shadow: 0 30px 60px -30px oklch(0.19 0.05 256 / 0.6);
}
.apercu-cadre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.15;
  transition: scale 1s var(--ease);
}
.apercu.visible .apercu-cadre { opacity: 1; clip-path: inset(0); }
.apercu.visible .apercu-cadre img { scale: 1; }

/* --------------------------------------------------------------------------
   Bandeau d'affirmation
   -------------------------------------------------------------------------- */
.bandeau {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(110px, 15vw, 220px);
  background: var(--prusse-900);
  color: var(--blanc);
}
.bandeau-photo {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  width: 100%;
  height: 124%;
  object-fit: cover;
  opacity: 0.24;
  filter: grayscale(1) contrast(1.1);
}
.bandeau::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--prusse-900) 5%, oklch(0.23 0.06 256 / 0.6) 55%, oklch(0.23 0.06 256 / 0) 100%);
}
.bandeau-texte {
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 1.25rem + 3.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.bandeau-domaines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  color: var(--clair-doux);
  font-weight: 500;
}
.bandeau-domaines li { display: flex; align-items: center; gap: 12px; }
.bandeau-domaines li::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid var(--calque);
  box-shadow: 3px -3px 0 -1px var(--prusse-900), 3px -3px 0 0 var(--calque);
}

/* --------------------------------------------------------------------------
   Clients
   -------------------------------------------------------------------------- */
.clients-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
}
.clients-entete p { max-width: 34ch; color: var(--gris); margin: 0; }
.defile {
  margin-top: clamp(48px, 6vw, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.defile-piste {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  animation: defile 60s linear infinite;
}
.defile-piste li { flex: none; padding-right: clamp(48px, 5vw, 88px); }
.defile img {
  width: auto;
  height: 72px;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.82;
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease);
}
.defile li:hover img { filter: none; opacity: 1; }
.defile:hover .defile-piste,
.defile:focus-within .defile-piste { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  scroll-margin-top: 0;
}
.contact-panneau {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  padding: var(--section) var(--gouttiere) clamp(56px, 6vw, 88px);
  background: var(--prusse-900);
  color: var(--blanc);
}
.contact-panneau img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(1);
}
.contact-panneau::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--prusse-900) 10%, oklch(0.23 0.06 256 / 0.2) 100%);
}
.contact-panneau-contenu { width: 100%; max-width: 460px; margin-left: auto; }
.contact-panneau h2 { font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.3rem); }
.coordonnees { margin: 40px 0 0; display: grid; }
.coordonnees div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--trait-sombre);
}
.coordonnees dt { color: var(--clair-doux); font-size: 0.875rem; font-weight: 500; padding-top: 2px; }
.coordonnees dd { margin: 0; font-variant-numeric: tabular-nums; }
.coordonnees a { text-decoration: none; background: linear-gradient(var(--calque), var(--calque)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.coordonnees a:hover { background-size: 100% 1px; }

.contact-zone {
  display: flex;
  align-items: center;
  padding: var(--section) var(--gouttiere);
  background: var(--blanc);
}
.formulaire { width: 100%; max-width: 640px; }
.formulaire-intro {
  margin-bottom: 36px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 300;
}
.champ { display: grid; gap: 6px; margin-bottom: 30px; }
.champ label { font-size: 0.875rem; font-weight: 600; }
.facultatif { font-weight: 400; color: var(--gris); }
.champ input,
.champ textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--trait-appuye);
  border-radius: 0;
  background: transparent;
  color: var(--encre);
  font: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ input:focus,
.champ textarea:focus {
  outline: none;
  border-bottom-color: var(--prusse-600);
  box-shadow: 0 1px 0 var(--prusse-600);
}
.champ input:user-invalid,
.champ textarea:user-invalid { border-bottom-color: oklch(0.5 0.17 25); }
::placeholder { color: var(--gris); opacity: 1; }
.formulaire-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 8px;
}
.formulaire-note { margin: 0; max-width: 34ch; font-size: 0.875rem; color: var(--gris); }
.formulaire-retour:empty { display: none; }
.formulaire-retour {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--calque-pale);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Pages intérieures
   -------------------------------------------------------------------------- */
.intro-page {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.intro-page .chapo { grid-column: 4 / 12; margin: 0; }

.plan-page {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px clamp(32px, 5vw, 88px);
  padding-bottom: var(--section);
}
.sommaire {
  position: sticky;
  top: 112px;
  align-self: start;
}
.sommaire-titre { margin-bottom: 14px; font-size: 0.875rem; font-weight: 600; color: var(--gris); }
.sommaire ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--trait);
}
.sommaire a {
  display: block;
  margin-left: -1px;
  padding: 10px 0 10px 20px;
  border-left: 1px solid transparent;
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.3s, border-color 0.4s var(--ease);
}
.sommaire a:hover { color: var(--encre); }
.sommaire a[aria-current="true"] { color: var(--encre); border-left-color: var(--prusse-800); font-weight: 500; }

.bloc + .bloc { margin-top: clamp(72px, 8vw, 120px); }
.bloc h2 { max-width: 20ch; }
.bloc-sous {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--prusse-600);
}
.bloc-texte { max-width: 62ch; margin-top: 28px; color: var(--gris); }
.bloc-texte strong { color: var(--encre); font-weight: 600; }

/* Liste des prestations : puce en double carré, comme le logo */
.prestations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  column-gap: 48px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--encre);
}
.prestations li {
  position: relative;
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--trait);
  color: var(--gris);
  line-height: 1.55;
  transition: color 0.3s;
}
.prestations li strong { color: var(--encre); font-weight: 600; }
.prestations li::before,
.prestations li::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--prusse-600);
  transition: transform 0.6s var(--ease), background-color 0.4s;
}
.prestations li::before { left: 0; top: 29px; }
.prestations li::after { left: 4px; top: 25px; }
.prestations li:hover { color: var(--encre); }
.prestations li:hover::before { transform: translate(2px, -2px); background: var(--calque); border-color: var(--calque); }
.prestations li:hover::after { transform: translate(-2px, 2px); }

.prestations-large { grid-template-columns: 1fr; }
.prestations-large li {
  padding-block: 24px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--encre);
}
.prestations-large li::before { top: calc(24px + 0.5em); }
.prestations-large li::after { top: calc(20px + 0.5em); }

.photo-large {
  overflow: hidden;
  margin: clamp(64px, 8vw, 112px) 0;
  aspect-ratio: 16 / 9;
  background: var(--beton);
}
.photo-large img { width: 100%; height: 100%; object-fit: cover; }
.photo-legende {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--gris);
}

.photo-pleine {
  position: relative;
  overflow: hidden;
  height: clamp(320px, 62vw, 760px);
  background: var(--prusse-900);
}
.photo-pleine img { width: 100%; height: 100%; object-fit: cover; }

/* Sections à deux colonnes */
.duo {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: start;
}
.duo-gauche { grid-column: 1 / 7; }
.duo-droite { grid-column: 8 / 13; }
.duo-gauche h2 { max-width: 16ch; }
.duo .bloc-texte { margin-top: 28px; }
.duo-droite .prestations { margin-top: 0; }
.mention-liste { margin: 28px 0 0; font-weight: 600; color: var(--encre); }

.fond-beton { background: var(--beton); }
.fond-prusse { background: var(--prusse-900); color: var(--blanc); }
.fond-prusse .bloc-texte { color: var(--clair-doux); }
.fond-prusse .bloc-sous { color: var(--calque); }

.copro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: center;
}
.copro-texte { grid-column: 1 / 6; }
.copro-texte .bloc-texte { font-size: 1.125rem; }
.copro-photo { grid-column: 7 / 13; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.copro-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Passerelle vers une autre page */
.passerelle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--encre);
  border-bottom: 1px solid var(--encre);
  text-decoration: none;
}
.passerelle-titre {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: color 0.4s;
}
.passerelle-texte { display: block; margin-top: 10px; color: var(--gris); font-family: var(--sans); font-size: 1rem; letter-spacing: 0; }
.passerelle:hover .passerelle-titre { color: var(--prusse-600); }
.passerelle:hover .rang-fleche { background: var(--prusse-800); border-color: var(--prusse-800); color: var(--blanc); }
.passerelle:hover .fleche { transform: translateX(4px); }

/* Conclusion de page : affirmation + double carré tracé */
.conclusion {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: center;
}
.conclusion-texte {
  grid-column: 1 / 9;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.25rem + 2.8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.conclusion-trace {
  grid-column: 10 / 13;
  width: 100%;
  max-width: 260px;
  justify-self: end;
  overflow: visible;
}
.conclusion-trace path {
  fill: none;
  stroke: var(--prusse-600);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

/* Citation (Expertise) */
.citation {
  position: relative;
  margin: 0;
}
.citation blockquote {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.citation-etiquette { grid-column: 1 / 4; margin-top: 0.7em; }
.citation p { grid-column: 4 / 13; }
.citation p {
  max-width: 30ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.citation-etiquette {
  display: block;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--calque);
}

.colonnes-texte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px clamp(40px, 5vw, 80px);
}
.colonne-texte { padding-top: 28px; border-top: 1px solid var(--encre); }
.colonne-texte h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 400; margin-bottom: 18px; }
.colonne-texte p { color: var(--gris); }
.sigles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.sigles li {
  padding: 7px 14px;
  border: 1px solid var(--trait-appuye);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Bandeau d'appel en fin de page */
.appel {
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--prusse-800);
  color: var(--blanc);
}
.appel-grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: 32px 56px;
  align-items: end;
}
.appel h2 { font-size: clamp(2rem, 1.35rem + 2.2vw, 3.3rem); }
.appel-coord { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--clair-doux); }
.appel-coord a { color: var(--blanc); text-decoration: none; }
.appel-coord a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Équipe
   -------------------------------------------------------------------------- */
.monogramme {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  flex: none;
}
.monogramme::before,
.monogramme::after {
  content: "";
  position: absolute;
  width: 84%;
  height: 84%;
  border: 1px solid currentColor;
  transition: transform 0.8s var(--ease);
}
.monogramme::before { top: 0; right: 0; }
.monogramme::after { bottom: 0; left: 0; }
.monogramme span {
  position: relative;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.associes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}
.associe {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 64px;
  min-height: 440px;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--prusse-900);
  color: var(--blanc);
  overflow: hidden;
  isolation: isolate;
}
.associe:nth-child(2) { background: var(--prusse-800); }
.associe .monogramme { width: 120px; color: var(--calque); }
.associe .monogramme span { font-size: 2.5rem; color: var(--blanc); }
.associe:hover .monogramme::before { transform: translate(-8%, 8%); }
.associe:hover .monogramme::after { transform: translate(8%, -8%); }
.associe-nom {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem);
  line-height: 1.05;
}
.nom { font-variant-caps: all-small-caps; letter-spacing: 0.035em; }
.associe-role {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--calque);
}
.associe-lien {
  position: absolute;
  top: clamp(28px, 3.4vw, 48px);
  right: clamp(28px, 3.4vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--clair-doux);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.associe-lien svg { width: 18px; height: 18px; fill: currentColor; }
.associe-lien:hover { color: var(--blanc); }

.annuaire-titre {
  margin: clamp(80px, 9vw, 128px) 0 24px;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem);
}
.annuaire {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--encre);
}
.personne {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 32px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--trait);
  transition: background-color 0.4s;
}
.personne .monogramme { color: var(--prusse-600); }
.personne:hover .monogramme::before { transform: translate(-10%, 10%); }
.personne:hover .monogramme::after { transform: translate(10%, -10%); }
.personne-nom { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem); font-weight: 400; }
.personne-role { margin: 0; color: var(--gris); }

/* --------------------------------------------------------------------------
   Mentions légales
   -------------------------------------------------------------------------- */
.texte-legal { max-width: 72ch; }
.texte-legal h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 400;
}
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal p { color: var(--gris); }
.a-completer {
  margin-bottom: 64px;
  padding: 24px 28px;
  border: 1px dashed var(--trait-appuye);
  background: var(--beton);
}
.a-completer strong { display: block; margin-bottom: 6px; }
.a-completer p { margin: 0; color: var(--gris); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--prusse-950);
  color: var(--clair-doux);
}
.pied a { text-decoration: none; }
.pied a:hover { color: var(--blanc); }
.pied-grille {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr));
  gap: 48px 32px;
  padding-block: clamp(72px, 8vw, 112px) clamp(56px, 6vw, 88px);
}
.pied-logo { width: 168px; height: auto; overflow: visible; color: var(--blanc); }
.pied-logo:hover .carre-arriere { transform: translate(-12px, 12px); }
.pied-logo:hover .carre-avant { transform: translate(12px, -12px); }
.pied-marque p { margin-top: 24px; max-width: 24ch; font-size: 0.95rem; }
.pied-colonne h2 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blanc);
}
.pied-colonne ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pied-colonne address { font-style: normal; margin-bottom: 1em; }
.pied-social a { display: inline-flex; align-items: center; gap: 10px; }
.pied-social svg { width: 18px; height: 18px; fill: currentColor; }
.pied-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-block: 26px 34px;
  border-top: 1px solid var(--trait-sombre);
  font-size: 0.875rem;
}
.pied-bas p { margin: 0 auto 0 0; }
.pied-remonter { display: inline-flex; align-items: center; gap: 10px; }
.pied-remonter svg { width: 10px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform 0.5s var(--ease); }
.pied-remonter:hover svg { transform: translateY(-4px); }

/* --------------------------------------------------------------------------
   Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1079px) {
  .qui-grille .titre-discret,
  .enonce,
  .qui-lien { grid-column: 1 / -1; }
  .services-titre { grid-column: 1 / -1; position: static; }
  .services-texte { grid-column: 1 / -1; }
  .intro-page .chapo { grid-column: 1 / -1; }
  .plan-page { grid-template-columns: 1fr; }
  .sommaire { display: none; }
  .duo-gauche, .duo-droite { grid-column: 1 / -1; }
  .copro-texte, .copro-photo { grid-column: 1 / -1; }
  .conclusion-texte { grid-column: 1 / -1; }
  .citation-etiquette, .citation p { grid-column: 1 / -1; }
  .conclusion-trace { display: none; }
  .contact { grid-template-columns: 1fr; }
  .contact-panneau { min-height: 0; }
  .contact-panneau-contenu { margin-left: 0; max-width: none; }
  .appel-grille { grid-template-columns: 1fr; align-items: start; }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-marque { grid-column: 1 / -1; }
  .ouverture-trace { opacity: 0.55; top: auto; bottom: 22%; }
}

@media (max-width: 719px) {
  body { font-size: 1rem; }
  .ouverture-accueil { min-height: 100svh; }
  .ouverture-contenu { padding-top: calc(var(--h-entete) + 40px); padding-bottom: 36px; }
  .ouverture-trace { display: none; }
  .ouverture-accueil .ouverture-photo { left: 0; }
  .ouverture-accueil .ouverture-photo img { object-position: 62% 50%; }
  .ouverture::before,
  .ouverture-accueil::before {
    background:
      linear-gradient(0deg, oklch(0.19 0.05 256 / 0.92) 0%, oklch(0.2 0.055 256 / 0.72) 55%, oklch(0.2 0.055 256 / 0.5) 100%);
  }
  .ouverture-bas { gap: 6px 24px; }
  .ouverture-bas .defiler { display: none; }
  .cote { gap: 10px; font-size: 0.75rem; }
  .cote-borne { gap: 10px; }
  .cote-valeur { font-size: 1rem; }
  .rang { grid-template-columns: minmax(0, 1fr) auto; }
  .rang-titre { grid-column: 1; }
  .rang-texte { grid-column: 1 / -1; grid-row: 2; }
  .rang .rang-fleche { width: 48px; height: 48px; grid-row: 1; grid-column: 2; }
  .coordonnees div { grid-template-columns: 1fr; gap: 2px; }
  .personne { grid-template-columns: auto minmax(0, 1fr); }
  .personne-role { grid-column: 2; }
  .associe { min-height: 360px; gap: 48px; }
  .pied-grille { grid-template-columns: 1fr; }
  .cartouche-haut > :last-child { margin-left: 0; }
  .cartouche-haut > * { padding: 10px 14px; letter-spacing: 0.1em; }
  .passerelle { grid-template-columns: minmax(0, 1fr); }
  .passerelle .rang-fleche { display: none; }
  .formulaire-actions .bouton { width: 100%; }
}

/* --------------------------------------------------------------------------
   Mouvement
   -------------------------------------------------------------------------- */
@keyframes photo-entree { from { transform: scale(1.12); filter: brightness(0.6); } }
@keyframes ligne-monte { from { transform: translateY(108%); } }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
@keyframes monte-leger { from { transform: translateY(18px); opacity: 0; } }
@keyframes apparition { from { opacity: 0; } }
@keyframes trace { from { stroke-dashoffset: 1; } }
@keyframes cadre { from { clip-path: inset(0 100% 100% 0); } }
@keyframes entete-arrive { from { opacity: 0; transform: translateY(-12px); } }
@keyframes descend { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes defile { to { transform: translateX(-50%); } }

/* Apparitions pilotées par le défilement : le contenu reste visible sans elles */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .apparait {
      animation: monte linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .cote-trait {
      animation: cote-trace linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
    .cote-trait-gauche { transform-origin: right; }
    .cote-trait-droite { transform-origin: left; }
    .rangs > li {
      animation: monte linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .photo-large,
    .copro-photo {
      animation: devoile linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    .photo-large img,
    .copro-photo img,
    .photo-pleine img,
    .bandeau-photo {
      animation: parallaxe linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    .prestations li {
      animation: monte-leger linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .conclusion-trace path {
      stroke-dasharray: 1;
      animation: trace linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 55%;
    }
    .associe, .personne {
      animation: monte linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
  }
}
@keyframes cote-trace { from { transform: scaleX(0); } }
@keyframes devoile { from { clip-path: inset(14% 7% 0 7%); } }
@keyframes parallaxe { from { transform: translateY(-7%) scale(1.14); } to { transform: translateY(7%) scale(1.14); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .defile { -webkit-mask-image: none; mask-image: none; }
  .defile-piste { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 32px; }
  .defile-piste li[aria-hidden="true"] { display: none; }
  .apercu { display: none; }
}

.espace-haut { margin-top: clamp(56px, 7vw, 96px); }
.section-suite { padding-top: 0; }
.photo-pleine { margin: 0; }
.citation blockquote { margin: 0; }
abbr[title] { text-decoration: none; cursor: help; }

/* Recette : captures pleine page (index.html?capture) */
.capture *, .capture *::before, .capture *::after { animation: none !important; transition: none !important; }
.capture .ouverture-accueil { min-height: 900px; }
.capture .ouverture-page { min-height: 720px; }
.capture .ouverture-sobre { min-height: 480px; }

/* ==========================================================================
   Adaptations WordPress
   La maquette ci-dessus est reprise telle quelle. Ce qui suit ne traite que ce
   que change le balisage des blocs natifs : classes posées sur des
   conteneurs (boutons, images), paragraphes à la place de <span>, bloc
   Navigation, Contact Form 7, barre d'administration.
   ========================================================================== */

.wp-site-blocks { padding: 0; }
main.wp-block-group { display: block; }
figure.wp-block-image { margin: 0; }
.wp-block-image img { vertical-align: bottom; }
.wp-block-post-content > * { margin-block: 0; }

/* Paragraphes posés là où la maquette avait des <span> */
.entete-rangee p,
.marque p,
.ouverture-lieu > p,
.ouverture-bas p,
.cartouche-haut > p,
.cote > p,
.rang > p,
.passerelle > p,
.coordonnees p,
.personne > *,
.associe p,
.pied-bas p,
.monogramme { margin: 0; }

/* Barre d'administration (connecté) */
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }

/* ---------- Boutons : core/button pose la classe sur le conteneur ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.bouton-bloc > .wp-block-button__link,
input.bouton-envoi {
  --fond: var(--prusse-800);
  --texte: var(--blanc);
  --survol: var(--prusse-600);
  --texte-survol: var(--blanc);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--fond);
  color: var(--texte);
  font: 600 0.9375rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.bouton-bloc > .wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--survol);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.bouton-bloc > .wp-block-button__link:hover,
.bouton-bloc > .wp-block-button__link:focus-visible { color: var(--texte-survol); }
.bouton-bloc > .wp-block-button__link:hover::before,
.bouton-bloc > .wp-block-button__link:focus-visible::before { transform: scaleX(1); transform-origin: left; }
input.bouton-envoi:hover, input.bouton-envoi:focus-visible { background: var(--survol); color: var(--texte-survol); }

.bouton-bloc--calque > .wp-block-button__link {
  --fond: var(--calque);
  --texte: var(--prusse-950);
  --survol: var(--blanc);
  --texte-survol: var(--prusse-950);
}

/* Flèche dessinée en CSS (le bloc Bouton n'accepte pas de SVG) */
.avec-fleche > .wp-block-button__link::after,
.lien-bloc a::after,
.lien-bouton > .wp-block-button__link::after {
  content: "";
  width: 18px;
  height: 10px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.5s var(--ease);
}
.avec-fleche > .wp-block-button__link:hover::after,
.lien-bloc a:hover::after,
.lien-bouton > .wp-block-button__link:hover::after { transform: translateX(5px); }
.lien-bouton > .wp-block-button__link::after { display: none; }

/* Lien souligné (« Notre équipe », « Nos services ») */
.lien-bloc a,
.lien-bouton > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  color: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-size 0.6s var(--ease);
}
.lien-bloc a:hover, .lien-bloc a:focus-visible,
.lien-bouton > .wp-block-button__link:hover,
.lien-bouton > .wp-block-button__link:focus-visible { background-size: 0 1px; background-position: 100% 100%; }
.lien-bouton--clair > .wp-block-button__link { color: var(--blanc); }

/* ---------- En-tête ---------- */
.entete-rangee { gap: clamp(16px, 2vw, 32px); }
.marque { position: relative; }
.marque-nom a { text-decoration: none; color: inherit; }
.marque-nom a::after { content: ""; position: absolute; inset: 0; } /* tout le bloc est cliquable */
.marque-nom { font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; }
.entete-tel a { text-decoration: none; font-variant-numeric: tabular-nums; }
.entete-tel a:hover { text-decoration: underline; text-underline-offset: 4px; }
.entete-appel { flex: none; }
.bouton-bloc--entete > .wp-block-button__link {
  --fond: var(--calque);
  --texte: var(--prusse-950);
  --survol: var(--blanc);
  --texte-survol: var(--prusse-950);
  min-height: 46px;
  padding: 0 20px;
}
.est-defile .bouton-bloc--entete > .wp-block-button__link {
  --fond: var(--prusse-800);
  --texte: var(--blanc);
  --survol: var(--prusse-600);
  --texte-survol: var(--blanc);
}

/* Bloc Navigation */
.nav-principale.wp-block-navigation { font-size: 0.9375rem; font-weight: 500; }
.nav-principale .wp-block-navigation__container { gap: clamp(18px, 2vw, 32px); }
.nav-principale .wp-block-navigation-item__content {
  padding-block: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-principale .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.nav-principale .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.nav-principale .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"],
.nav-principale .wp-block-navigation__container > .has-child:has([aria-current="page"]) > .wp-block-navigation-item__content { background-size: 100% 1px; }
.nav-principale .wp-block-navigation__submenu-icon { width: 10px; height: 10px; margin-left: 6px; }
.nav-principale .wp-block-navigation__submenu-icon svg { stroke: currentColor; transition: transform 0.4s var(--ease); }
.nav-principale .has-child:hover .wp-block-navigation__submenu-icon svg { transform: rotate(180deg); }

/* Sous-menu « Expertise » */
.entete .nav-principale:not(.has-background) .wp-block-navigation__submenu-container {
  top: calc(100% + 6px);
  left: -22px;
  min-width: 290px !important;
  padding: 8px;
  border: 0;
  background: var(--blanc);
  color: var(--encre);
  box-shadow: 0 24px 48px -20px oklch(0.19 0.05 256 / 0.45), 0 0 0 1px var(--trait);
}
.nav-principale .wp-block-navigation__submenu-container::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-principale .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  white-space: normal;
  transition: background-color 0.3s;
}
.nav-principale .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.nav-principale .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] { background-color: var(--beton); }
.nav-principale .wp-block-navigation__submenu-container .wp-block-navigation-item__label { font-weight: 600; }
.nav-principale .wp-block-navigation-item__description { display: block; font-size: 0.85rem; font-weight: 400; color: var(--gris); }

/* Lien « Prendre rendez-vous » : seulement dans le menu mobile */
.nav-principale .nav-appel { display: none; }

/* Sous 1080 px : le menu passe en panneau plein écran (le bloc bascule à 600 px par défaut) */
@media (min-width: 600px) and (max-width: 1079px) {
  .nav-principale .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .nav-principale .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1079px) {
  .entete-tel, .entete-appel { display: none; }
}
.nav-principale .wp-block-navigation__responsive-container-open,
.nav-principale .wp-block-navigation__responsive-container-close { color: inherit; }
.nav-principale .wp-block-navigation__responsive-container-open svg,
.nav-principale .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

.entete .nav-principale:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
  padding: 26px var(--gouttiere) 36px;
  background: var(--prusse-900);
  color: var(--blanc);
}
.nav-principale .is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 64px;
  align-items: stretch;
}
.nav-principale .is-menu-open .wp-block-navigation__container {
  width: 100%;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--trait-sombre);
}
.nav-principale .is-menu-open .wp-block-navigation-item {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid var(--trait-sombre);
}
.nav-principale .is-menu-open .wp-block-navigation-item__content {
  display: block;
  padding: 16px 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 1.2rem + 2.5vw, 2.4rem);
  line-height: 1.15;
  background: none !important;
}
.nav-principale .is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: var(--calque); }
.entete .nav-principale .is-menu-open .wp-block-navigation__submenu-container {
  min-width: 0 !important;
  padding: 0 0 0 28px !important;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.nav-principale .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border-bottom: 0; border-top: 1px solid var(--trait-sombre); }
.nav-principale .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: clamp(1.3rem, 1rem + 1.6vw, 1.8rem); color: var(--clair-doux); }
.nav-principale .is-menu-open .wp-block-navigation-item__description { display: none; }
.nav-principale .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
.nav-principale .is-menu-open .nav-appel { display: block; border-bottom: 0; padding-top: 32px; }
.nav-principale .is-menu-open .nav-appel .wp-block-navigation-item__content {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  padding: 18px 26px;
  background: var(--calque) !important;
  color: var(--prusse-950);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- Ouvertures ---------- */
.ouverture-photo.wp-block-image,
.wp-block-image.ouverture-photo img { width: 100%; height: 100%; }
.wp-block-image.ouverture-photo img { object-fit: cover; animation: photo-entree 2.6s var(--ease) backwards; }
.ouverture-accueil .wp-block-image.ouverture-photo img { object-position: 30% 50%; }
@media (max-width: 719px) {
  .ouverture-accueil .wp-block-image.ouverture-photo img { object-position: 62% 50%; }
}

.ouverture-lieu { display: flex; gap: 22px; }
.ouverture-lieu > * + *::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 22px;
  vertical-align: middle;
  background: var(--calque);
}

/* Titre d'accueil : révélation d'un seul tenant (le texte reste un simple bloc Titre) */
.h1-sur { animation: monte-leger 1s var(--ease) 0.4s backwards; }
.titre-1 { animation: titre-devoile 1.3s var(--ease) 0.5s backwards; }
@keyframes titre-devoile { from { clip-path: inset(0 0 100% 0); transform: translateY(28px); } to { clip-path: inset(0 0 -10% 0); } }

.ouverture-actions { margin-top: 40px; animation: monte-leger 1.1s var(--ease) 1.1s backwards; }
.ouverture-actions .wp-block-button { margin: 0; }

.defiler { margin-left: auto !important; }
.defiler a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--blanc);
}
.defiler a::after {
  content: "";
  width: 1px;
  height: 34px;
  background:
    linear-gradient(var(--calque), var(--calque)) 0 -34px / 1px 34px no-repeat,
    var(--trait-sombre);
  animation: defile-trait 2.4s var(--ease-quart) 2s infinite backwards;
}
@keyframes defile-trait { 0% { background-position: 0 -34px, 0 0; } 60%, 100% { background-position: 0 34px, 0 0; } }
@media (max-width: 719px) { .defiler { display: none; } }

.cartouche-haut > p { padding: 12px 20px; }
.cartouche-titre { animation: monte 1.2s var(--ease) 0.55s backwards; }

/* ---------- Cote : trois paragraphes, les traits sont dessinés en CSS ---------- */
.cote { gap: 0; view-timeline-name: --cote; }
.cote-borne { display: flex; align-items: center; gap: 18px; }
.cote-borne:first-child::after,
.cote-borne:last-child::before {
  content: "";
  width: 1px;
  height: 22px;
  background: var(--encre);
}
.cote-valeur {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
}
.cote-valeur::before,
.cote-valeur::after {
  content: "";
  flex: 1;
  height: 9px;
  background:
    linear-gradient(var(--encre), var(--encre)) center / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M8 1L1 4.5 8 8' fill='none' stroke='%23121c2e'/%3E%3C/svg%3E") left center / 9px 9px no-repeat;
}
.cote-valeur::after {
  background:
    linear-gradient(var(--encre), var(--encre)) center / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M1 1l7 3.5L1 8' fill='none' stroke='%23121c2e'/%3E%3C/svg%3E") right center / 9px 9px no-repeat;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cote-valeur::before { transform-origin: right; animation: cote-trace linear both; animation-timeline: --cote; animation-range: entry 10% cover 40%; }
    .cote-valeur::after { transform-origin: left; animation: cote-trace linear both; animation-timeline: --cote; animation-range: entry 10% cover 40%; }
  }
}
@media (max-width: 719px) { .cote-valeur { gap: 10px; } }

/* ---------- Domaines d'intervention : rangées cliquables ---------- */
.rangs { border-top: 1px solid var(--encre); }
.rang { position: relative; }
.rang-apercu { display: none; } /* image source de l'aperçu qui suit le pointeur */
.rang-titre { grid-column: 1 / 7; grid-row: 1; }
.rang-titre a { color: inherit; text-decoration: none; }
.rang-titre a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rang-texte { grid-column: 7 / 12; grid-row: 1; margin: 0; }
.rang::before { /* case de la flèche */
  content: "";
  grid-column: 12 / 13;
  grid-row: 1;
  justify-self: end;
  width: 60px;
  height: 60px;
  border: 1px solid var(--trait-appuye);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23121c2e' stroke-width='1.4'/%3E%3C/svg%3E") center / 18px 10px no-repeat;
  transition: background-color 0.45s var(--ease), border-color 0.45s;
}
.rang:hover::before, .rang:focus-within::before {
  background: var(--prusse-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E") center / 18px 10px no-repeat;
  border-color: var(--prusse-800);
}
.rang:focus-within .rang-titre { transform: translateX(18px); color: var(--prusse-600); }
.rang:focus-within::after { transform: scaleX(1); }
.rang-titre a:focus-visible { outline: none; }
.rang:has(.rang-titre a:focus-visible) { outline: 2px solid var(--prusse-600); outline-offset: 4px; }
@media (max-width: 719px) {
  .rang { grid-template-columns: minmax(0, 1fr) auto; }
  .rang-titre { grid-column: 1; }
  .rang-texte { grid-column: 1 / -1; grid-row: 2; }
  .rang::before { grid-column: 2; width: 48px; height: 48px; }
}

/* ---------- Passerelle vers une autre page ---------- */
.passerelle { position: relative; grid-template-columns: minmax(0, 1fr) auto; }
.passerelle > p { grid-column: 1; }
.passerelle-titre { margin: 0; }
.passerelle-titre a { color: inherit; text-decoration: none; }
.passerelle-titre a::after { content: ""; position: absolute; inset: 0; }
.passerelle-texte { margin-top: -14px !important; }
.passerelle::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 60px;
  height: 60px;
  border: 1px solid var(--trait-appuye);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23121c2e' stroke-width='1.4'/%3E%3C/svg%3E") center / 18px 10px no-repeat;
  transition: background-color 0.45s var(--ease), border-color 0.45s;
}
.passerelle:hover::after {
  background: var(--prusse-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E") center / 18px 10px no-repeat;
  border-color: var(--prusse-800);
}
@media (max-width: 719px) { .passerelle::after { display: none; } }

/* ---------- Photos posées par le bloc Image ---------- */
.wp-block-image.bandeau-photo img,
.wp-block-image.contact-fond img,
.wp-block-image.photo-large img,
.wp-block-image.photo-pleine img,
.wp-block-image.copro-photo img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.bandeau-photo { opacity: 0.24; filter: grayscale(1) contrast(1.1); }
.wp-block-image.bandeau-photo img { opacity: 1; filter: none; }
.wp-block-image.contact-fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  filter: grayscale(1);
}
.contact-panneau img { opacity: 1; filter: none; }
.plan-contenu > .photo-large { margin: clamp(64px, 8vw, 112px) 0; }

/* Défilé des logos : groupe d'images */
.defile-piste > * { flex: none; padding-right: clamp(48px, 5vw, 88px); }
.defile .wp-block-image img {
  width: auto;
  height: 72px;
  max-width: 170px;
  object-fit: contain;
}

/* ---------- Contact et Contact Form 7 ---------- */
.coordonnees > .wp-block-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--trait-sombre);
}
.coord-libelle { color: var(--clair-doux); font-size: 0.875rem; font-weight: 500; padding-top: 2px; }
.coordonnees a { text-decoration: none; background: linear-gradient(var(--calque), var(--calque)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.coordonnees a:hover { background-size: 100% 1px; }
@media (max-width: 719px) { .coordonnees > .wp-block-group { grid-template-columns: 1fr; gap: 2px; } }

.wpcf7 .champ .wpcf7-form-control-wrap { display: block; }
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--trait-appuye);
  border-radius: 0;
  background: transparent;
  color: var(--encre);
  font: inherit;
}
.wpcf7 textarea { resize: vertical; min-height: 140px; }
.wpcf7 input:not([type="submit"]):focus,
.wpcf7 textarea:focus { outline: none; border-bottom-color: var(--prusse-600); box-shadow: 0 1px 0 var(--prusse-600); }
.wpcf7 .wpcf7-not-valid { border-bottom-color: oklch(0.5 0.17 25); }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 0.875rem; color: oklch(0.5 0.17 25); }
.wpcf7 .formulaire-actions { position: relative; }
.wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 0;
  background: var(--calque-pale);
  font-size: 0.95rem;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { background: oklch(0.95 0.03 25); }
@media (max-width: 719px) {
  input.bouton-envoi { width: 100%; }
}

/* ---------- Pages intérieures ---------- */
.bloc-texte { color: var(--gris); }
.fond-prusse .bloc-texte { color: var(--clair-doux); }
.sommaire ol { list-style: none; }
.citation {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.citation .citation-etiquette {
  grid-column: 1 / 4;
  margin: 0.7em 0 0;
  max-width: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--calque);
}
.citation .citation-texte {
  grid-column: 4 / 13;
  max-width: 30ch;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (max-width: 1079px) {
  .citation .citation-etiquette, .citation .citation-texte { grid-column: 1 / -1; }
}
.conclusion-texte { margin: 0; }
h2.conclusion-texte { font-size: clamp(2rem, 1.25rem + 2.8vw, 3.8rem); }
.a-completer-titre { margin-bottom: 6px !important; }

/* ---------- Équipe ---------- */
p.monogramme {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--prusse-600);
}
.associe p.monogramme { font-size: 2.5rem; color: var(--blanc); }
.associe .monogramme::before, .associe .monogramme::after { border-color: var(--calque); }
.associe-lien a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.associe-lien a::before,
.pied-social a::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM3 9.75h4v11H3v-11Zm6.5 0h3.8v1.5h.06c.53-1 1.83-1.8 3.45-1.8 3.7 0 4.19 2.2 4.19 5.05v6.25h-4v-5.55c0-1.32-.03-3-1.83-3-1.84 0-2.12 1.43-2.12 2.9v5.65h-4v-11Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM3 9.75h4v11H3v-11Zm6.5 0h3.8v1.5h.06c.53-1 1.83-1.8 3.45-1.8 3.7 0 4.19 2.2 4.19 5.05v6.25h-4v-5.55c0-1.32-.03-3-1.83-3-1.84 0-2.12 1.43-2.12 2.9v5.65h-4v-11Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.annuaire { border-top: 1px solid var(--encre); }

/* ---------- Pied de page ---------- */
.pied-logo-lien { display: inline-block; color: var(--blanc); }
.pied-logo-lien:hover .carre-arriere { transform: translate(-12px, 12px); }
.pied-logo-lien:hover .carre-avant { transform: translate(12px, -12px); }
.pied-colonne ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pied-social a { display: inline-flex; align-items: center; gap: 10px; }
.pied-copyright { margin-right: auto !important; }
.pied-remonter a { display: inline-flex; align-items: center; gap: 10px; }
.pied-remonter a::after {
  content: "";
  width: 10px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 13V1M1 5l4-4 4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 13V1M1 5l4-4 4 4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.5s var(--ease);
}
.pied-remonter a:hover::after { transform: translateY(-4px); }

/* Mode capture (recette) */
.capture .wp-block-image.ouverture-photo img { animation: none !important; }

/* La maquette masque sa navigation sous 1080 px (elle a son propre menu) :
   le bloc Navigation, lui, porte le bouton du panneau mobile. */
@media (max-width: 1079px) {
  .nav-principale.wp-block-navigation { display: flex; }
}
.cartouche-haut a { text-decoration: none; }
.sommaire a, .appel-coord a, .ouverture-bas a { text-decoration: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rangs > .rang {
      animation: monte linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .defile-piste > [aria-hidden="true"] { display: none; }
}

/* --- Retouches après la première recette sur le site de test (1.0.1) --- */
@media (max-width: 1079px) {
  .entete .entete-appel, .entete .entete-tel { display: none; }
}
/* Indicateur d'envoi de Contact Form 7 : sous le bouton, sans décaler la mise en page */
.wpcf7 .formulaire-actions { position: relative; }
.wpcf7 .wpcf7-spinner { position: absolute; left: 0; top: calc(100% + 8px); margin: 0; }
.associe .associe-role { margin-top: 12px; }

/* ==========================================================================
   Version 2 — claire et dynamique (retours du cabinet, 28/09/2026)
   Plus de partie sombre en ouverture, immeubles de verre plutôt que grues,
   logos clients en couleurs, en-tête sans bouton de rendez-vous, et davantage
   de mouvement : titres mot à mot, apparitions, zooms, parallaxe.
   ========================================================================== */

:root {
  --rayon: 26px;
  --rayon-petit: 18px;
  --ombre-douce: 0 40px 80px -44px oklch(0.25 0.08 255 / 0.45);
  --verre: oklch(1 0 0 / 0.74);
}

/* ---------- En-tête : encre sur fond clair, verre dépoli au défilement ---------- */
.entete { color: var(--encre); }
/* Le verre dépoli est posé sur un calque (::before) et non sur l'en-tête lui-même :
   un backdrop-filter sur l'en-tête enfermerait le panneau du menu mobile
   (position fixed) dans ses 72 px de hauteur. */
.entete.est-defile { background: transparent; box-shadow: none; }
.entete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: oklch(1 0 0 / 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--trait);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.entete.est-defile::before { opacity: 1; }
.marque-nom { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.02em; }
.nav-principale.wp-block-navigation { font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.entete-tel { font-family: var(--serif); font-weight: 500; }

/* ---------- Ouverture de l'accueil ---------- */
.ouverture-v2 {
  position: relative;
  overflow: hidden;
  padding: calc(var(--h-entete) + clamp(20px, 3vw, 48px)) 0 clamp(56px, 7vw, 104px);
  background:
    radial-gradient(70% 80% at 92% 0%, var(--calque-pale) 0%, oklch(0.965 0.016 240 / 0) 70%),
    var(--blanc);
}
.ouverture-v2-grille {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  min-height: min(calc(100svh - var(--h-entete) - 72px), 760px);
}
.ouverture-v2-texte { grid-column: 1 / 7; position: relative; z-index: 2; padding-block: 24px; }
.ouverture-v2 .ouverture-lieu { color: var(--gris); }
.ouverture-v2 .h1-sur { color: var(--prusse-600); }
.ouverture-v2 .titre-1 {
  max-width: 13.5ch;
  color: var(--encre);
  font-size: clamp(2.6rem, 1.3rem + 4vw, 5.1rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
  animation: none;
}
.ouverture-v2 .titre-1 em { font-style: normal; font-weight: 400; color: var(--prusse-600); }
.ouverture-v2 .ouverture-texte { max-width: 38ch; color: var(--gris); }

.ouverture-v2-visuel {
  grid-column: 7 / 13;
  position: relative;
  align-self: stretch;
  min-height: 540px;
}
.wp-block-image.ouverture-v2-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
  animation: v2-cadre 1.7s var(--ease) 0.15s backwards;
}
.wp-block-image.ouverture-v2-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: v2-kenburns 26s ease-in-out 1.2s infinite alternate;
}
.ouverture-v2-visuel .ouverture-trace {
  top: 7%;
  right: 7%;
  z-index: 2;
  width: 46%;
}
.ouverture-v2 .trace-carre,
.ouverture-v2 .trace-reperes path { stroke: oklch(1 0 0 / 0.9); stroke-width: 1.4; }

.ouverture-v2-carte {
  position: absolute;
  left: -44px;
  bottom: 44px;
  z-index: 3;
  min-width: 270px;
  padding: 20px 26px 22px;
  border: 1px solid oklch(1 0 0 / 0.7);
  border-radius: var(--rayon-petit);
  background: var(--verre);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 26px 50px -26px oklch(0.25 0.08 255 / 0.4);
  animation: v2-carte 1.2s var(--ease) 1.2s backwards, v2-balance 7s ease-in-out 2.6s infinite alternate;
}
.ouverture-v2-carte p { margin: 0; }
.carte-libelle {
  margin-bottom: 6px !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--prusse-600);
}
.carte-tel a {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--encre);
  text-decoration: none;
}
.carte-tel a:hover { color: var(--prusse-600); }

/* ---------- Clients : logos en couleurs, juste sous l'ouverture ---------- */
.clients-v2 {
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--trait);
}
.clients-v2 h2 { font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.6rem); }
.defile img,
.defile .wp-block-image img {
  filter: none;
  opacity: 1;
  transition: scale 0.6s var(--ease);
}
.defile .wp-block-image:hover img { scale: 1.08; }
.defile-piste { animation-duration: 55s; }

/* ---------- Pôles : cartes photo (grande à gauche, deux à droite) ---------- */
.poles-cartes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.pole-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 8 / 13;
}
.pole-carte--grande { grid-column: 1 / 8; grid-row: 1 / 3; }
.wp-block-image.pole-carte-photo {
  margin: 0 0 8px;
  overflow: hidden;
  border-radius: var(--rayon);
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 60px -44px oklch(0.25 0.08 255 / 0.5);
}
.pole-carte--grande .wp-block-image.pole-carte-photo { flex: 1; aspect-ratio: auto; min-height: 420px; }
.wp-block-image.pole-carte-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.3s var(--ease), filter 0.8s var(--ease);
}
.pole-carte:hover .pole-carte-photo img { scale: 1.08; }
.pole-carte-titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.15rem + 0.9vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}
.pole-carte-titre a { color: inherit; text-decoration: none; }
.pole-carte-titre a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* toute la carte est cliquable */
.pole-carte-titre::after { /* pastille flèche */
  content: "";
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--trait-appuye);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23121c2e' stroke-width='1.4'/%3E%3C/svg%3E") center / 18px 10px no-repeat;
  transition: background-color 0.5s var(--ease), border-color 0.5s, rotate 0.6s var(--ease);
}
.pole-carte:hover .pole-carte-titre::after {
  background: var(--prusse-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E") center / 18px 10px no-repeat;
  border-color: var(--prusse-600);
  rotate: -45deg;
}
.pole-carte:hover .pole-carte-titre a { color: var(--prusse-600); }
.pole-carte-texte { margin: 0; max-width: 46ch; color: var(--gris); }
.pole-carte:has(a:focus-visible) { outline: 2px solid var(--prusse-600); outline-offset: 8px; border-radius: var(--rayon); }
.pole-carte-titre a:focus-visible { outline: none; }

/* ---------- Bandeau : façade de verre + panneau translucide ---------- */
.bandeau-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(110px, 14vw, 210px);
}
.wp-block-image.bandeau-v2-photo {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  margin: 0;
}
.wp-block-image.bandeau-v2-photo img { width: 100%; height: 100%; object-fit: cover; }
.bandeau-v2-panneau {
  max-width: 740px;
  padding: clamp(32px, 4vw, 60px);
  border: 1px solid oklch(1 0 0 / 0.7);
  border-radius: var(--rayon);
  background: oklch(1 0 0 / 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--ombre-douce);
}
.bandeau-v2 .bandeau-texte { max-width: 17ch; margin: 0; color: var(--encre); }
.bandeau-v2 .bandeau-domaines { margin-top: 36px; color: var(--gris); }
.bandeau-v2 .bandeau-domaines li::before {
  box-shadow: none;
  border-color: var(--prusse-600);
  border-radius: 2px;
}

/* ---------- Contact : clair ---------- */
.contact-v2 .contact-panneau {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 44px;
  min-height: 0;
  background: var(--calque-pale);
  color: var(--encre);
}
.contact-v2 .contact-panneau::after { content: none; }
.contact-v2 .wp-block-image.contact-fond {
  position: relative;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  overflow: hidden;
  border-radius: var(--rayon);
  aspect-ratio: 16 / 10;
  opacity: 1;
  filter: none;
  box-shadow: var(--ombre-douce);
}
.contact-v2 .contact-panneau img { position: static; width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: none; }
.contact-v2 .coordonnees > .wp-block-group { border-top-color: oklch(0.21 0.035 256 / 0.14); }
.contact-v2 .coord-libelle { color: var(--gris); }
.contact-v2 .coordonnees a { color: var(--encre); background-image: linear-gradient(var(--prusse-600), var(--prusse-600)); }
.contact-v2 .contact-panneau :focus-visible { outline-color: var(--prusse-600); }

/* ---------- Pages intérieures : titre sur fond clair, photo arrondie dessous ---------- */
.ouverture.ouverture-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding-top: calc(var(--h-entete) + clamp(24px, 4vw, 56px));
  padding-bottom: 0;
  background:
    radial-gradient(60% 90% at 95% 0%, var(--calque-pale) 0%, oklch(0.965 0.016 240 / 0) 70%),
    var(--blanc);
  color: var(--encre);
}
.ouverture.ouverture-page::before { content: none; }
.ouverture-page > .conteneur { order: 1; }
.ouverture-page .wp-block-image.ouverture-photo {
  position: relative;
  inset: auto;
  z-index: auto;
  order: 2;
  width: min(100% - 2 * var(--gouttiere), var(--max));
  height: clamp(300px, 50vh, 580px);
  margin: clamp(32px, 4vw, 56px) auto 0;
  overflow: hidden;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
  animation: v2-cadre 1.6s var(--ease) 0.35s backwards;
}
.ouverture-page .wp-block-image.ouverture-photo img { animation: v2-dezoom 2.2s var(--ease) 0.35s backwards; }
.ouverture-page .cartouche { max-width: none; background: transparent; animation: none; }
.ouverture-page .cartouche::before { border-color: var(--trait); }
.ouverture-page .cartouche-haut { border-bottom-color: var(--trait); }
.ouverture-page .cartouche-haut > * { color: var(--gris); border-right-color: var(--trait); }
.ouverture-page .cartouche-haut a:hover { color: var(--prusse-600); }
.ouverture-page .cartouche-titre {
  max-width: 20ch;
  color: var(--encre);
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5.4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  animation: none;
}
.ouverture-page.ouverture-sobre { padding-bottom: clamp(24px, 3vw, 40px); }
.ouverture-page :focus-visible { outline-color: var(--prusse-600); }

/* Bandeau d'appel en fin de page : clair */
.appel { background: var(--calque-pale); color: var(--encre); }
.appel-coord { color: var(--gris); }
.appel-coord a { color: var(--encre); }
.appel :focus-visible { outline-color: var(--prusse-600); }

/* Photos des pages intérieures : coins arrondis, comme sur l'accueil */
.wp-block-image.photo-large,
.wp-block-image.copro-photo { border-radius: var(--rayon); overflow: hidden; }

/* ---------- Titres découpés mot à mot ---------- */
.mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.mot > span { display: inline-block; }

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .titre-anime:not(.decoupe) { opacity: 0; animation: v2-secours 0s linear 2.5s forwards; }
  .js .titre-anime .mot > span { animation: v2-mot 1.1s var(--ease) calc(0.2s + var(--i, 0) * 65ms) backwards; }

  .js .v2-revele:not(.est-visible) { opacity: 0; transform: translateY(46px); }
  .js .v2-revele.est-visible { animation: v2-monte 1.1s var(--ease) var(--delai, 0s) backwards; }

  /* État d'attente sans clip-path : un élément entièrement découpé est « invisible »
     pour l'IntersectionObserver, qui ne le révélerait jamais. */
  .js .v2-titre:not(.est-visible) { opacity: 0; transform: translateY(0.4em); }
  .js .v2-titre.est-visible { animation: v2-titre 1.15s var(--ease) var(--delai, 0s) backwards; }

  .js .v2-image:not(.est-visible) { clip-path: inset(12% 9% 12% 9% round var(--rayon)); }
  .js .v2-image:not(.est-visible) img { scale: 1.3; }
  .js .v2-image.est-visible { animation: v2-cadre 1.5s var(--ease) var(--delai, 0s) backwards; }
  .js .v2-image.est-visible img { animation: v2-dezoom 2s var(--ease) var(--delai, 0s) backwards; }

  .v2-parallaxe img { scale: 1.16; will-change: translate; }
}

@keyframes v2-mot { from { transform: translateY(112%); } }
@keyframes v2-secours { to { opacity: 1; } }
@keyframes v2-monte { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes v2-titre { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(0.4em); } 1% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 -25% 0); transform: none; } }
@keyframes v2-cadre { from { clip-path: inset(12% 9% 12% 9% round var(--rayon)); } to { clip-path: inset(0 0 0 0 round var(--rayon)); } }
@keyframes v2-dezoom { from { scale: 1.3; } to { scale: 1; } }
@keyframes v2-kenburns { from { scale: 1; } to { scale: 1.13; } }
@keyframes v2-carte { from { opacity: 0; transform: translate(-24px, 24px); } }
@keyframes v2-balance { from { translate: 0 0; } to { translate: 0 -12px; } }
@keyframes v2-flotte { from { translate: 0 0; rotate: 0deg; } to { translate: 40px -30px; rotate: 3deg; } }

/* ---------- Adaptations ---------- */
@media (max-width: 1079px) {
  .ouverture-v2-grille { min-height: 0; }
  .ouverture-v2-texte, .ouverture-v2-visuel { grid-column: 1 / -1; }
  .ouverture-v2-visuel { min-height: 460px; margin-top: 8px; }
  .ouverture-v2-carte { left: 20px; bottom: 20px; }
  .pole-carte, .pole-carte--grande { grid-column: 1 / -1; grid-row: auto; }
  .pole-carte--grande .wp-block-image.pole-carte-photo { min-height: 320px; }
  .poles-cartes { grid-template-columns: 1fr; }
}
@media (min-width: 720px) and (max-width: 1079px) {
  .poles-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pole-carte--grande { grid-column: 1 / -1; }
  .pole-carte { grid-column: auto; }
}
@media (max-width: 719px) {
  .ouverture-v2-visuel { min-height: 380px; }
  .ouverture-v2-carte { min-width: 0; right: 20px; padding: 16px 18px; }
  .ouverture-page .wp-block-image.ouverture-photo { height: 260px; border-radius: var(--rayon-petit); }
  .bandeau-v2-panneau { padding: 28px 24px; }
}

/* Recette : tout est visible, sans mouvement */
.capture .v2-revele, .capture .v2-titre, .capture .v2-image, .capture .titre-anime { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.capture .v2-image img, .capture .v2-parallaxe img, .capture .ouverture-v2-photo img { scale: 1 !important; translate: none !important; }
