/*
Theme Name: Olfweb
Theme URI: https://olfweb.fr
Author: Olfweb
Author URI: https://olfweb.fr
Description: Thème bloc sur mesure d'Olfweb, agence web et SEO à Laval. À l'activation, il importe ses visuels dans la médiathèque et crée la page d'accueil et les pages légales, sans jamais écraser une page existante.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olfweb
Tags: block-theme, full-site-editing, one-column, custom-colors
*/

/* Jetons : charte Olfweb. Composition : référence Calendly (maquette validée le 28/10/2026). */
:root {
  --ink: #0B1F3A;
  --ink-muted: #4B5B70;
  --brand: #2563EB;
  --brand-hover: #1D4ED8;
  --on-brand: #FFFFFF;
  --brand-soft: #E8EFFD;
  --surface: #FFFFFF;
  --surface-alt: #F1F5FB;
  --surface-inverse: #0B1F3A;
  --on-inverse: #FFFFFF;
  --line: #DCE4F0;
  --line-strong: #8A9BB2;
  --success: #0E8A5F;
  --error: #C62828;

  --font-display: Manrope, "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px; --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(11,31,58,0.06);
  --shadow-md: 0 12px 32px rgba(11,31,58,0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --contenu: 1200px;
  --marge-page: 16px;
  --section: 96px;

  /* Icônes Lucide en masques CSS : un SVG inline n'est pas un bloc natif (blocs-gutenberg.md, substitution 1). */
  --i-ecran: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 8h18M8 21h8M12 18v3'/%3E%3C/svg%3E");
  --i-repere: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-5.5 10.2-7.4 11.8a1 1 0 0 1-1.2 0C9.5 20.2 4 15 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --i-loupe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M8 13l2-2 2 2 3-3'/%3E%3C/svg%3E");
  --i-recherche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  --i-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.9.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-9 5.7a2 2 0 0 1-2 0L2 7'/%3E%3C/svg%3E");
  --i-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-etoile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath fill='%23000' d='M11.5 2.3a.5.5 0 0 1 1 0l2.3 4.7a2 2 0 0 0 1.6 1.1l5.2.8a.5.5 0 0 1 .3.9l-3.8 3.6a2 2 0 0 0-.6 1.9l.9 5.1a.5.5 0 0 1-.8.6l-4.6-2.4a2 2 0 0 0-2 0L6.4 21a.5.5 0 0 1-.8-.6l.9-5.1a2 2 0 0 0-.6-1.9L2.2 9.8a.5.5 0 0 1 .3-.9l5.1-.8a2 2 0 0 0 1.6-1.1z'/%3E%3C/svg%3E");
  --i-bulle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3C/svg%3E");
  --i-courbe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 7 13.5 15.5 8.5 10.5 2 17M16 7h6v6'/%3E%3C/svg%3E");
  --i-chevron-bas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --i-chevron-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
  --i-chevron-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --i-itineraire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l19-9-9 19-2-8-8-2z'/%3E%3C/svg%3E");
  --i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20M2 12h20'/%3E%3C/svg%3E");
  --i-horloge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  --i-cadeau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E");
}

.ic-ecran { --ic: var(--i-ecran); }
.ic-repere { --ic: var(--i-repere); }
.ic-loupe { --ic: var(--i-loupe); }
.ic-recherche { --ic: var(--i-recherche); }
.ic-tel { --ic: var(--i-tel); }
.ic-mail { --ic: var(--i-mail); }
.ic-coche { --ic: var(--i-coche); }
.ic-fleche { --ic: var(--i-fleche); }
.ic-bulle { --ic: var(--i-bulle); }
.ic-courbe { --ic: var(--i-courbe); }
.ic-itineraire { --ic: var(--i-itineraire); }
.ic-globe { --ic: var(--i-globe); }
.ic-horloge { --ic: var(--i-horloge); }
.ic-cadeau { --ic: var(--i-cadeau); }
.ic-etoile { --ic: var(--i-etoile); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/26px var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; } /* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); hyphens: none; text-wrap: balance; }
p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[id] { scroll-margin-top: 104px; }

/* Gutenberg ajoute un écart entre blocs frères : coupé dans theme.json (blockGap 0px),
   et ici en filet de sécurité À SPÉCIFICITÉ NULLE — jamais .wp-block-group > *. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-block-post-content { margin: 0; }

.enveloppe { width: min(100% - 48px, var(--contenu)); margin-inline: auto; }

/* ---------- Styles de texte (charte) ---------- */
.display { font: 800 72px/76px var(--font-display); letter-spacing: -2.5px; }
.h1 { font: 800 56px/62px var(--font-display); letter-spacing: -1.8px; }
.h2 { font: 800 40px/48px var(--font-display); letter-spacing: -1.2px; }
.h3 { font: 700 26px/34px var(--font-display); letter-spacing: -0.6px; }
.h4 { font: 700 20px/28px var(--font-display); letter-spacing: -0.3px; }
p.lead { font: 400 20px/32px var(--font-text); color: var(--ink-muted); }
p.petit { font: 400 14px/22px var(--font-text); color: var(--ink-muted); }
p.surtitre { display: block; font: 600 13px/16px var(--font-text); letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-muted); }
.heros-titre em { font-style: normal; color: var(--brand); } /* accent : <em> nu, seul format inline valide (substitution 4) */

/* ---------- Logo (charte) ---------- */
.logo { margin: 0; font: 800 28px/1 var(--font-display); letter-spacing: -0.05em; white-space: nowrap; text-transform: lowercase; }
.logo a { color: var(--ink); text-decoration: none; }
.logo a::after { content: ""; display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%; margin-left: 0.065em; background: var(--brand); }
.logo-inverse a { color: var(--on-inverse); }

/* ---------- Boutons (charte) ----------
   La classe d'un core/button atterrit sur le conteneur div.wp-block-button :
   les styles visent le lien, plus spécifiques que :root :where(.wp-element-button). */
.wp-block-buttons.bloc-boutons, .wp-block-buttons.entete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wp-block-button:is(.btn-primaire, .btn-secondaire, .btn-clair, .btn-tel) .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-md); border: 1.5px solid transparent; box-shadow: none;
  font: 600 15px/20px var(--font-text); text-decoration: none; white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.wp-block-button.btn-primaire .wp-block-button__link { background: var(--brand); color: var(--on-brand); }
.wp-block-button.btn-primaire .wp-block-button__link:hover { background: var(--brand-hover); }
.wp-block-button.btn-secondaire .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.wp-block-button.btn-secondaire .wp-block-button__link:hover { background: var(--surface); }
.wp-block-button.btn-clair .wp-block-button__link { background: var(--surface); color: var(--ink); }
.wp-block-button.btn-clair .wp-block-button__link:hover { background: var(--brand-soft); }
.wp-block-button.btn-tel .wp-block-button__link { background: transparent; color: var(--ink); padding-inline: 14px; }
.wp-block-button.btn-tel .wp-block-button__link:hover { background: var(--surface-alt); }
.wp-block-button.btn-grand .wp-block-button__link { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.wp-block-button.ic-fleche .wp-block-button__link::after,
.wp-block-button.ic-tel .wp-block-button__link::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.lien-fleche a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--brand); font: 600 15px/20px var(--font-text); text-decoration: none; }
.lien-fleche a::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-fleche) center / contain no-repeat; mask: var(--i-fleche) center / contain no-repeat; transition: transform 200ms var(--ease); }
.lien-fleche a:hover { color: var(--brand-hover); }
.lien-fleche a:hover::after { transform: translateX(4px); }

/* Pastille : puce d'icône (::before) + icône masquée (::after) */
p.pastille {
  position: relative; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font: 600 14px/20px var(--font-text); color: var(--ink);
}
p.pastille::before { content: ""; width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); }
p.pastille::after { content: ""; position: absolute; left: 9px; top: calc(50% - 8px); width: 16px; height: 16px; background: var(--brand); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }

/* ---------- En-tête flottant ---------- */
.entete {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(100% - 32px, 1240px); height: 72px;
  padding: 0 12px 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow 250ms var(--ease);
}
.admin-bar .entete { top: 48px; }
.entete.est-defile { box-shadow: var(--shadow-sm); }
.wp-block-navigation.nav-principale { font: 500 15px/20px var(--font-text); }
.wp-block-navigation.nav-principale .wp-block-navigation__container { gap: 32px; }
.wp-block-navigation.nav-principale .wp-block-navigation-item__content { color: var(--ink); text-decoration: none; padding: 12px 0; }
.wp-block-navigation.nav-principale .wp-block-navigation-item__content:hover { color: var(--brand); }
.wp-block-navigation.nav-principale .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--surface) !important; color: var(--ink) !important; padding: 96px 24px 24px;
}
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; }
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item__content { font: 800 28px/36px var(--font-display); letter-spacing: -0.6px; padding: 16px 0; }
.wp-block-navigation.nav-principale .wp-block-navigation__responsive-container-open { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--surface-alt); justify-content: center; align-items: center; }

/* ---------- Panneaux encartés (découpe Calendly) ---------- */
.panneau { margin-inline: var(--marge-page); border-radius: var(--radius-xl); }
.panneau-gris { background: var(--surface-alt); }
.panneau-marine { background: var(--surface-inverse); color: var(--on-inverse); }
.wp-block-group.section { padding: var(--section) 0; }
.wp-block-group.intro { text-align: center; max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.intro p.lead { max-width: 640px; }
.intro .wp-block-buttons { margin-top: 16px; }

/* ---------- Héros ---------- */
.panneau.heros { margin-top: var(--marge-page); padding-top: 168px; }
.heros-texte { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.heros-titre { max-width: 900px; }
.heros p.lead { max-width: 660px; }
.heros-texte .bloc-boutons { justify-content: center; margin-top: 8px; }
ul.heros-reassurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 0; list-style: none; }
.heros-reassurance li { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/22px var(--font-text); color: var(--ink-muted); }
.heros-reassurance li::before { content: ""; width: 18px; height: 18px; background: var(--brand); -webkit-mask: var(--i-coche) center / contain no-repeat; mask: var(--i-coche) center / contain no-repeat; }

/* Vitrine à onglets pilotée par le défilement */
.heros .vitrine { margin-top: 64px; }
.vitrine-piste { height: 290vh; }
.vitrine-scene { position: sticky; top: 104px; height: calc(100vh - 120px); min-height: 620px; max-height: 820px; display: flex; justify-content: center; }
.vitrine-panneau {
  --p: 0;
  position: relative; isolation: isolate; overflow: hidden;
  width: calc(1100px + (100% - 1100px) * var(--p)); max-width: 100%; height: 100%;
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 32px;
  /* troisième ambiance (onglet SEO) : le fond lui-même ; les deux autres en pseudo-éléments */
  background-color: var(--brand-soft);
  background-image:
    radial-gradient(45% 50% at 90% 80%, rgba(37,99,235,0.8), transparent 70%),
    radial-gradient(35% 45% at 5% 10%, rgba(11,31,58,0.35), transparent 70%),
    radial-gradient(60% 60% at 40% 40%, #FFFFFF, transparent 75%),
    linear-gradient(#DCE6FB, #DCE6FB);
}
.vitrine-panneau::before, .vitrine-panneau::after { content: ""; position: absolute; inset: -20%; z-index: -1; filter: blur(40px); transition: opacity 700ms var(--ease); }
.vitrine-panneau::before { background:
  radial-gradient(45% 55% at 2% 18%, rgba(37,99,235,0.95), transparent 70%),
  radial-gradient(40% 50% at 100% 8%, rgba(37,99,235,0.7), transparent 70%),
  radial-gradient(50% 45% at 92% 100%, rgba(11,31,58,0.55), transparent 70%),
  radial-gradient(40% 40% at 8% 100%, rgba(37,99,235,0.5), transparent 70%),
  radial-gradient(50% 50% at 50% 50%, #FFFFFF, transparent 80%),
  #DCE6FB; }
.vitrine-panneau::after { opacity: 0; background:
  radial-gradient(45% 55% at 10% 85%, rgba(11,31,58,0.75), transparent 70%),
  radial-gradient(40% 50% at 92% 10%, rgba(37,99,235,0.9), transparent 70%),
  radial-gradient(40% 40% at 50% 0%, rgba(232,239,253,0.9), transparent 70%),
  #BFD2F8; }
.vitrine-panneau.onglet-1::before, .vitrine-panneau.onglet-2::before { opacity: 0; }
.vitrine-panneau.onglet-1::after { opacity: 1; }

.onglets { position: relative; display: flex; gap: 10px; padding: 6px; border-radius: 18px; background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.7); }
p.onglet {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 12px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.7); color: var(--ink); cursor: pointer; user-select: none;
  font: 600 14px/20px var(--font-text);
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
p.onglet::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
p.onglet:hover { background: var(--surface); }
p.onglet.est-actif { background: var(--ink); color: var(--on-inverse); }

.vitrine-carte {
  position: relative; width: min(100%, 1040px); flex: 1; max-height: 560px;
  background: var(--surface); border-radius: var(--radius-xl);
  border: 6px solid rgba(255,255,255,0.55); background-clip: padding-box;
}
.volet {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: center;
  padding: 40px 40px 40px 48px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease), visibility 0s linear 450ms;
}
.volet.est-actif { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.volet-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.volet-texte .h2 { font-size: 38px; line-height: 44px; }
/* WordPress 7 pose « wp-block-paragraph » sur chaque paragraphe : jamais de p:not([class]). */
.volet-texte > p:not(.pastille, .lien-fleche) { color: var(--ink-muted); max-width: 400px; }
.volet-visuel { position: relative; height: 100%; min-height: 340px; border-radius: var(--radius-lg); background: var(--brand-soft); }
.volet-visuel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 18px, rgba(255,255,255,0.55) 18px 20px); -webkit-mask: linear-gradient(90deg, #000 0 14%, transparent 22% 78%, #000 86%); mask: linear-gradient(90deg, #000 0 14%, transparent 22% 78%, #000 86%); }

/* Interface : navigateur (la barre et ses trois points sont dessinés en CSS) */
.ui-navigateur { position: absolute; left: 9%; right: 9%; top: 12%; bottom: 12%; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; padding-top: 30px; }
.ui-navigateur::before, .anatomie::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle 4px at 16px 15px, var(--line) 0 4px, transparent 4.5px),
  radial-gradient(circle 4px at 30px 15px, var(--line) 0 4px, transparent 4.5px),
  radial-gradient(circle 4px at 44px 15px, var(--line) 0 4px, transparent 4.5px),
  var(--surface-alt); }
p.ui-url { position: absolute; z-index: 1; top: 6px; left: 62px; width: min(220px, 50%); height: 18px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font: 500 10px/16px var(--font-text); color: var(--ink-muted); padding: 0 8px; overflow: hidden; white-space: nowrap; }
.ui-site { position: relative; flex: 1; overflow: hidden; }
.ui-site::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(11,31,58,0.82), rgba(11,31,58,0.15) 70%); }
figure.wp-block-image.ui-site-photo { position: absolute; inset: 0; }
.ui-site-photo img { width: 100%; height: 100%; object-fit: cover; }
.ui-site-nav { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: #fff; }
p.ui-site-marque { font: 800 14px/1 var(--font-display); letter-spacing: -0.3px; }
p.ui-site-liens { font: 600 10px/14px var(--font-text); opacity: 0.85; white-space: nowrap; }
.ui-site-texte { position: absolute; z-index: 2; left: 16px; bottom: 18px; max-width: 64%; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
p.ui-site-titre { font: 800 22px/26px var(--font-display); letter-spacing: -0.6px; }
p.ui-site-bouton { padding: 6px 12px; border-radius: 8px; background: var(--brand); font: 600 10px/14px var(--font-text); }
p.ui-site-bouton.clair { background: #fff; color: var(--ink); }
.ui-boutons { display: flex; gap: 6px; }

/* Interface : bulles flottantes (profondeur sans ombre au repos, comme le veut la charte) */
.bulle {
  position: absolute; z-index: 3;
  display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; justify-content: start;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  outline: 5px solid rgba(255,255,255,0.6);
  color: var(--ink); white-space: nowrap;
}
.bulle::before { content: ""; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); }
.bulle::after { content: ""; position: absolute; left: 18px; top: calc(50% - 9px); width: 18px; height: 18px; background: var(--brand); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.bulle.bulle-jauge::before, .bulle.bulle-jauge::after { content: none; }
.bulle > p { grid-column: 2; }
.bulle p.bulle-titre { font: 600 13px/18px var(--font-text); }
.bulle p.bulle-sous, p.bulle-sous { font: 400 12px/16px var(--font-text); color: var(--ink-muted); }
.bulle.bulle-marine { background: var(--ink); border-color: var(--ink); color: var(--on-inverse); }
.bulle-marine p.bulle-sous { color: #A3B3C8; }
.bulle-marine::before { background: rgba(255,255,255,0.12); }
.bulle-marine::after { background: #fff; }

/* Jauge : anneau en conic-gradient (substitution 2) */
.bulle > p.jauge { grid-column: 1; grid-row: 1 / span 2; }
p.jauge {
  position: relative; isolation: isolate; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font: 800 16px/1 var(--font-display); color: var(--ink);
  background: conic-gradient(var(--brand) 0 94%, var(--brand-soft) 0);
}
p.jauge::before { content: ""; position: absolute; z-index: -1; inset: 5px; border-radius: 50%; background: var(--surface); }

.volet-0 .bulle-jauge { top: 4%; right: -3%; }
.volet-0 .bulle-marine { bottom: 5%; left: -4%; }
.volet-1 .bulle { right: -3%; bottom: 8%; }
.volet-2 .bulle { left: -4%; bottom: 30%; }

/* Interface : carte Google (plan, repères et épingle en CSS) */
.volet-visuel.visuel-carte::before {
  -webkit-mask: none; mask: none;
  background:
    radial-gradient(circle 7px at 72% 22%, #fff 0 4px, var(--line-strong) 4.5px 7px, transparent 7.5px),
    radial-gradient(circle 7px at 84% 58%, #fff 0 4px, var(--line-strong) 4.5px 7px, transparent 7.5px),
    radial-gradient(circle 7px at 22% 88%, #fff 0 4px, var(--line-strong) 4.5px 7px, transparent 7.5px),
    linear-gradient(115deg, transparent 0 46%, #fff 46% 48.5%, transparent 48.5%),
    linear-gradient(25deg, transparent 0 62%, #fff 62% 64%, transparent 64%),
    linear-gradient(170deg, transparent 0 30%, rgba(255,255,255,0.8) 30% 31.5%, transparent 31.5%),
    linear-gradient(80deg, transparent 0 78%, rgba(255,255,255,0.8) 78% 79.5%, transparent 79.5%),
    radial-gradient(30% 25% at 20% 75%, rgba(191,210,248,0.9), transparent 70%),
    #DCE6FB;
}
.volet-visuel.visuel-carte::after { content: ""; position: absolute; left: calc(74% - 20px); top: calc(36% - 20px); width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle 7px at 50% 50%, #fff 0 7px, transparent 7.5px), var(--brand); }
.ui-fiche { position: absolute; z-index: 2; left: 8%; top: 9%; width: 58%; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ui-fiche-photo img { width: 100%; height: 104px; object-fit: cover; }
.ui-fiche-corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
p.ui-fiche-nom { font: 800 16px/20px var(--font-display); letter-spacing: -0.3px; }
p.ui-etoiles { display: flex; align-items: center; gap: 6px; font: 600 12px/16px var(--font-text); color: var(--ink); }
p.ui-etoiles::before { content: ""; width: 70px; height: 13px; flex: none; background: var(--brand); -webkit-mask: var(--i-etoile) left center / 14px 13px repeat-x; mask: var(--i-etoile) left center / 14px 13px repeat-x; }
p.ui-meta { font: 400 12px/16px var(--font-text); color: var(--ink-muted); }
p.ui-meta strong { color: var(--ink); font-weight: 600; }
.ui-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.ui-actions p { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font: 600 11px/14px var(--font-text); }
.ui-actions p::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }

/* Interface : résultats de recherche (les résultats concurrents sont des silhouettes CSS) */
.ui-recherche { position: absolute; z-index: 1; left: 8%; right: 8%; top: 10%; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ui-recherche::after { content: ""; display: block; height: 76px; margin: 0 10px; background:
  linear-gradient(var(--line), var(--line)) 0 2px / 26px 26px no-repeat,
  linear-gradient(var(--surface-alt), var(--surface-alt)) 36px 2px / 40% 8px no-repeat,
  linear-gradient(var(--surface-alt), var(--surface-alt)) 36px 16px / 70% 8px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 46px / 26px 26px no-repeat,
  linear-gradient(var(--surface-alt), var(--surface-alt)) 36px 46px / 35% 8px no-repeat,
  linear-gradient(var(--surface-alt), var(--surface-alt)) 36px 60px / 65% 8px no-repeat; }
p.ui-champ { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px/1 var(--font-text); }
p.ui-champ::before { content: ""; width: 16px; height: 16px; background: var(--ink-muted); -webkit-mask: var(--i-recherche) center / contain no-repeat; mask: var(--i-recherche) center / contain no-repeat; }
.ui-resultat { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 10px 46px; border-radius: 12px; background: var(--brand-soft); }
.ui-resultat::before { content: "o"; position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 800 13px/1 var(--font-display); }
p.ui-resultat-url { font: 400 11px/14px var(--font-text); color: var(--ink-muted); }
p.ui-resultat-titre { font: 700 14px/18px var(--font-display); color: var(--brand); letter-spacing: -0.2px; }
p.ui-resultat-texte { font: 400 11px/15px var(--font-text); color: var(--ink-muted); }
.ui-graphique { position: absolute; z-index: 2; right: -4%; bottom: 7%; width: 54%; padding: 14px 16px 12px; border-radius: 16px; background: var(--ink); color: #fff; outline: 5px solid rgba(255,255,255,0.6); }
p.ui-graphique-titre { font: 600 12px/16px var(--font-text); }
.ui-graphique p.bulle-sous { font-size: 11px; line-height: 14px; color: #A3B3C8; }
.ui-graphique::after { content: ""; display: block; height: 64px; margin-top: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 64' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232563EB' stop-opacity='.6'/%3E%3Cstop offset='1' stop-color='%232563EB' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 58 C30 56 45 52 70 46 S110 40 130 30 170 14 200 6 L200 64 L0 64Z' fill='url(%23a)'/%3E%3Cpath d='M0 58 C30 56 45 52 70 46 S110 40 130 30 170 14 200 6' fill='none' stroke='white' stroke-width='2.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---------- Chiffres clés ---------- */
.wp-block-group.chiffres { padding: 88px 0; }
.chiffres-grille { display: grid; grid-template-columns: repeat(3, 1fr); }
.chiffre { text-align: center; padding: 8px 24px; display: flex; flex-direction: column; gap: 8px; }
.chiffre + .chiffre { border-left: 1px solid var(--line); }
p.chiffre-valeur { font: 800 64px/68px var(--font-display); letter-spacing: -2px; color: var(--brand); }
p.chiffre-texte { color: var(--ink-muted); }

/* ---------- Services : cartes extensibles ---------- */
.wp-block-group.services { padding: var(--section) 0; }
.cartes-services { display: flex; gap: 16px; margin-top: 64px; height: 560px; }
.carte-service {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: flex-grow 600ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
  cursor: pointer;
}
.carte-service.est-ouverte { flex-grow: 2.1; cursor: default; }
.carte-service:not(.est-ouverte):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.carte-service-tete { position: relative; padding: 32px 32px 0; display: flex; flex-direction: column; gap: 12px; }
.carte-service-tete::before { content: ""; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--brand-soft); }
.carte-service-tete::after { content: ""; position: absolute; left: 44px; top: 44px; width: 24px; height: 24px; background: var(--brand); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.carte-service-tete > p { color: var(--ink-muted); }
.carte-service-detail { padding: 8px 32px 0; display: flex; flex-direction: column; gap: 16px; opacity: 0; max-height: 0; transition: opacity 400ms var(--ease); }
.carte-service.est-ouverte .carte-service-detail { opacity: 1; max-height: none; transition-delay: 200ms; }
ul.liste-coche { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.liste-coche li { display: flex; align-items: flex-start; gap: 10px; font: 500 15px/22px var(--font-text); }
.liste-coche li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; flex: none; background: var(--brand); -webkit-mask: var(--i-coche) center / contain no-repeat; mask: var(--i-coche) center / contain no-repeat; }
.carte-service-pied { position: relative; margin-top: auto; height: 190px; flex: none; }
.carte-service-pied::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(70% 100% at 12% 100%, rgba(37,99,235,0.75), transparent 70%),
  radial-gradient(55% 80% at 95% 100%, rgba(37,99,235,0.35), transparent 70%),
  linear-gradient(180deg, rgba(232,239,253,0), #E8EFFD 55%); }
.carte-service-pied::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,0.5) 13px 14px); -webkit-mask: linear-gradient(180deg, transparent 10%, #000 75%); mask: linear-gradient(180deg, transparent 10%, #000 75%); }
.carte-service-pied .bulle { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.carte-service-pied .bulle:first-child { left: 32px; bottom: 32px; }
.carte-service-pied .bulle:last-child { right: 32px; bottom: 96px; }
.carte-service.est-ouverte .carte-service-pied .bulle { opacity: 1; transform: none; transition-delay: 300ms; }

/* ---------- Sections partagées texte / visuel ---------- */
.partage { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.partage-texte { display: flex; flex-direction: column; gap: 20px; }
.partage-visuel { position: sticky; top: 120px; }
.cadre-degrade {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 1 / 1.02; border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #2563EB 0%, #6F97F0 38%, #E8EFFD 62%, #2B5BC9 100%);
}
.cadre-degrade::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,0.35) 26px 30px); -webkit-mask: linear-gradient(180deg, transparent 30%, #000 50%, transparent 72%); mask: linear-gradient(180deg, transparent 30%, #000 50%, transparent 72%); }
.cadre-degrade.cadre-degrade-sombre { background: linear-gradient(200deg, #0B1F3A 0%, #1D4ED8 45%, #BFD2F8 80%, #E8EFFD 100%); }

/* Étapes : celle qui passe à hauteur de lecture s'active, et pilote le visuel */
.etapes { margin-top: 16px; padding-left: 40px; border-top: 1px solid var(--line); } /* retrait de la liste numérotée de la maquette validée */
.etape {
  border-bottom: 1px solid var(--line); padding: 40px 0;
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px;
  transition: opacity 400ms var(--ease);
}
.etape:not(.est-active) { opacity: 0.42; }
p.etape-num { grid-row: span 2; width: 40px; height: 40px; border-radius: var(--radius-full); border: 1.5px solid var(--ink); display: grid; place-items: center; font: 800 15px/1 var(--font-display); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.etape.est-active p.etape-num { background: var(--ink); color: #fff; }
.etape > h3 { align-self: center; }
.etape > p:not(.etape-num) { color: var(--ink-muted); max-width: 440px; }
.etape::after { content: ""; grid-column: 2; height: 2px; margin-top: 12px; border-radius: 2px; background: linear-gradient(var(--brand), var(--brand)) 0 0 / 0% 100% no-repeat, var(--line); }
.etape.est-active::after { background-size: 100% 100%, auto; transition: background-size 1.2s var(--ease); }

.calque { position: absolute; inset: 0; display: grid; place-items: center; padding: 12%; opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.calque.est-actif { opacity: 1; transform: none; }
.ui-panneau { width: 100%; max-width: 380px; border-radius: 18px; background: var(--surface); border: 6px solid rgba(255,255,255,0.55); background-clip: padding-box; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
p.ui-panneau-titre { font: 800 20px/24px var(--font-display); letter-spacing: -0.4px; }
p.ui-rang { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font: 500 14px/20px var(--font-text); }
p.ui-rang::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--brand); }
p.ui-rang::after { content: ""; position: absolute; left: 17px; top: calc(50% - 8px); width: 16px; height: 16px; background: #fff; -webkit-mask: var(--ic, var(--i-coche)) center / contain no-repeat; mask: var(--ic, var(--i-coche)) center / contain no-repeat; }
p.ui-rang em { margin-left: auto; font-style: normal; font: 600 12px/16px var(--font-text); color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; }
p.ui-statut { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/18px var(--font-text); color: var(--brand); }
p.ui-statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); outline: 4px solid var(--brand-soft); }
.calque-maquette p.ui-panneau-titre::after { content: ""; display: block; height: 146px; margin-top: 14px; background:
  linear-gradient(var(--brand-soft), var(--brand-soft)) 0 0 / 100% 84px no-repeat,
  linear-gradient(var(--surface-alt), var(--surface-alt)) 0 92px / calc(50% - 4px) 54px no-repeat,
  linear-gradient(var(--surface-alt), var(--surface-alt)) 100% 92px / calc(50% - 4px) 54px no-repeat; }
.calque-bilan p.ui-panneau-titre::after { content: ""; display: block; height: 110px; margin-top: 14px; border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--brand-soft), var(--brand-soft)) 0% 100% / 12% 28% no-repeat,
  linear-gradient(var(--brand-soft), var(--brand-soft)) 16.66% 100% / 12% 36% no-repeat,
  linear-gradient(var(--brand-soft), var(--brand-soft)) 33.33% 100% / 12% 34% no-repeat,
  linear-gradient(var(--brand-soft), var(--brand-soft)) 50% 100% / 12% 48% no-repeat,
  linear-gradient(var(--brand-soft), var(--brand-soft)) 66.66% 100% / 12% 62% no-repeat,
  linear-gradient(var(--brand), var(--brand)) 83.33% 100% / 12% 80% no-repeat,
  linear-gradient(var(--brand), var(--brand)) 100% 100% / 12% 94% no-repeat; }

/* Un site qui rapporte : anatomie annotée */
.anatomie { position: absolute; left: 9%; right: 9%; top: 15%; bottom: 9%; border-radius: 16px; background: var(--surface); border: 6px solid rgba(255,255,255,0.55); background-clip: padding-box; overflow: hidden; display: flex; flex-direction: column; padding-top: 30px; }
.anatomie .ui-site { flex: 0 0 56%; }
.anatomie-bas { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.anatomie-avis, .anatomie-form { border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.anatomie-avis { background: var(--surface-alt); }
.anatomie-avis::after { content: ""; display: block; height: 22px; background: linear-gradient(var(--surface), var(--surface)) 0 0 / 90% 8px no-repeat, linear-gradient(var(--surface), var(--surface)) 0 14px / 70% 8px no-repeat; }
.anatomie-form { border: 1px solid var(--line); }
.anatomie-form p:first-child { font: 700 12px/16px var(--font-display); }
.anatomie-form p:first-child::after { content: ""; display: block; height: 44px; margin-top: 7px; background: linear-gradient(var(--surface-alt), var(--surface-alt)) 0 0 / 100% 18px no-repeat, linear-gradient(var(--surface-alt), var(--surface-alt)) 0 26px / 100% 18px no-repeat; }
p.anatomie-envoyer { height: 24px; border-radius: 6px; background: var(--brand); color: #fff; font: 600 11px/24px var(--font-text); text-align: center; }
.inclus .bulle-jauge { top: 3%; right: 3%; }
p.point {
  position: absolute; z-index: 4; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: var(--radius-full); background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink);
  display: grid; place-items: center; font: 800 14px/1 var(--font-display);
  outline: 6px solid transparent;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), outline-color 300ms var(--ease), transform 300ms var(--ease);
}
p.point.est-actif { background: var(--brand); border-color: #fff; color: #fff; outline-color: rgba(255,255,255,0.45); transform: scale(1.12); }
p.point-1 { left: 6%; top: 36%; }
p.point-2 { left: 6%; top: 56%; }
p.point-3 { left: 6%; top: 72%; }
p.point-4 { left: 89%; top: 70%; }
p.point-5 { left: 53%; top: 7%; }

/* ---------- Pourquoi Olfweb : engagements ---------- */
.panneau.engagements { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section); padding: 112px 0; }
.engagements::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(40% 60% at 0% 0%, rgba(37,99,235,0.65), transparent 70%),
  radial-gradient(40% 60% at 100% 100%, rgba(37,99,235,0.45), transparent 70%),
  var(--surface-inverse); }
.engagements p.surtitre { color: #A3B3C8; }
.engagements h2 { color: var(--on-inverse); }
.engagements p.lead { color: #C9D4E3; }
.engagements-piste { margin-top: 56px; display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 82vw); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(24px, (100% - 1200px) / 2 + 80px); scrollbar-width: none; }
.engagements-piste::-webkit-scrollbar { display: none; }
.carte-engagement { position: relative; scroll-snap-align: center; background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 16px; min-height: 340px; }
.carte-engagement::before { content: ""; width: 52px; height: 52px; margin-bottom: 8px; border-radius: var(--radius-md); background: var(--brand-soft); }
.carte-engagement::after { content: ""; position: absolute; left: 50px; top: 50px; width: 24px; height: 24px; background: var(--brand); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
p.carte-engagement-titre { font: 800 30px/36px var(--font-display); letter-spacing: -1px; }
.carte-engagement > p:not(.carte-engagement-titre, .carte-engagement-pied) { font: 400 17px/28px var(--font-text); color: var(--ink-muted); }
p.carte-engagement-pied { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/16px var(--font-text); letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-muted); }
p.carte-engagement-pied::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.engagements-commandes { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 16px; }
p.rond { width: 48px; height: 48px; border-radius: var(--radius-full); border: 1.5px solid rgba(255,255,255,0.4); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 0; user-select: none; }
p.rond::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--i-chevron-d) center / contain no-repeat; mask: var(--i-chevron-d) center / contain no-repeat; }
p.rond.rond-precedent::before { -webkit-mask-image: var(--i-chevron-g); mask-image: var(--i-chevron-g); }
p.rond:hover { border-color: #fff; }

/* ---------- FAQ (core/details) ---------- */
.faq-liste { max-width: 820px; margin: 56px auto 0; border-top: 1px solid var(--line); }
details.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font: 700 20px/28px var(--font-display); letter-spacing: -0.3px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 24px; height: 24px; flex: none; background: var(--ink-muted); -webkit-mask: var(--i-chevron-bas) center / contain no-repeat; mask: var(--i-chevron-bas) center / contain no-repeat; transition: transform 300ms var(--ease); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item > p { padding: 0 48px 28px 0; color: var(--ink-muted); }
.faq-relance { margin-top: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.faq-relance .bloc-boutons { justify-content: center; }

/* ---------- Contact (enchaîné au pied de page, même panneau marine) ---------- */
.panneau.contact { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.contact::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: -300px; top: -420px; background: radial-gradient(closest-side, rgba(37,99,235,0.55), transparent); }
.contact-grille { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.contact-texte { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }
.contact-texte p.surtitre { color: #A3B3C8; }
.contact-texte h2 { color: #fff; font-size: 56px; line-height: 62px; letter-spacing: -1.8px; }
.contact-texte p.lead { color: #C9D4E3; }
ul.contact-promesses { display: flex; flex-direction: column; gap: 14px; padding: 0; list-style: none; }
.contact-promesses li { position: relative; display: flex; align-items: center; gap: 12px; font: 500 16px/24px var(--font-text); }
.contact-promesses li::before { content: ""; width: 28px; height: 28px; flex: none; border-radius: 8px; background: rgba(255,255,255,0.12); }
.contact-promesses li::after { content: ""; position: absolute; left: 6px; top: calc(50% - 8px); width: 16px; height: 16px; background: #fff; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.coordonnees { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); }
.coordonnees p { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 500 16px/24px var(--font-text); }
.coordonnees p::before { content: ""; width: 20px; height: 20px; flex: none; background: #A3B3C8; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.coordonnees a { color: #fff; text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; text-underline-offset: 4px; }

.formulaire-carte { background: var(--surface); color: var(--ink); border-radius: var(--radius-xl); padding: 40px; display: flex; flex-direction: column; gap: 6px; }
.formulaire-carte > p.petit { margin-bottom: 18px; }

/* Contact Form 7 : gabarit aux classes de la maquette (inc/formulaire.php) */
.formulaire-cf7 .formulaire-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.formulaire-cf7 .champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.formulaire-cf7 fieldset.champ { border: 0; margin: 0; padding: 0; }
.formulaire-cf7 legend.legende { padding: 0; margin-bottom: 8px; }
.formulaire-cf7 .champ-large, .formulaire-cf7 .consentement, .formulaire-cf7 .formulaire-envoi { grid-column: 1 / -1; }
.formulaire-cf7 label, .formulaire-cf7 .legende { font: 600 14px/20px var(--font-text); color: var(--ink); }
.formulaire-cf7 .wpcf7-form-control-wrap { display: block; }
.formulaire-cf7 input:is([type="text"], [type="email"], [type="tel"]), .formulaire-cf7 textarea {
  display: block; width: 100%; height: 48px; padding: 0 16px; margin: 0;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  font: 400 16px/26px var(--font-text);
  transition: border-color 150ms, box-shadow 150ms;
}
.formulaire-cf7 textarea { height: 120px; padding: 12px 16px; resize: vertical; }
.formulaire-cf7 input::placeholder, .formulaire-cf7 textarea::placeholder { color: var(--ink-muted); }
.formulaire-cf7 input:focus, .formulaire-cf7 textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.formulaire-cf7 .wpcf7-not-valid { border-color: var(--error); }
.formulaire-cf7 .wpcf7-not-valid-tip { margin-top: 6px; font: 400 14px/22px var(--font-text); color: var(--error); }
.formulaire-cf7 .besoins { display: flex; flex-wrap: wrap; gap: 8px; }
.formulaire-cf7 .besoins .wpcf7-list-item { margin: 0; }
.formulaire-cf7 .besoins label { position: relative; cursor: pointer; font-weight: 500; }
.formulaire-cf7 .besoins input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.formulaire-cf7 .besoins .wpcf7-list-item-label { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--line); font: 500 15px/20px var(--font-text); transition: border-color 150ms, background-color 150ms; }
.formulaire-cf7 .besoins label:hover .wpcf7-list-item-label { border-color: var(--line-strong); }
.formulaire-cf7 .besoins input:checked + .wpcf7-list-item-label { border-color: var(--brand); background: var(--brand-soft); }
.formulaire-cf7 .besoins input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--brand); outline-offset: 2px; }
.formulaire-cf7 .consentement .wpcf7-list-item { margin: 0; }
.formulaire-cf7 .consentement label { display: flex; align-items: flex-start; gap: 12px; font: 400 14px/22px var(--font-text); color: var(--ink-muted); cursor: pointer; }
.formulaire-cf7 .consentement input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.formulaire-cf7 .consentement a { color: var(--brand); }
.formulaire-cf7 .formulaire-envoi { display: flex; flex-direction: column; gap: 12px; }
.formulaire-cf7 .btn-envoyer {
  width: 100%; min-height: 56px; padding: 16px 28px; border: 0; border-radius: var(--radius-md); cursor: pointer;
  background: var(--brand); color: var(--on-brand); font: 600 16px/20px var(--font-text);
  transition: background-color 200ms var(--ease);
}
.formulaire-cf7 .btn-envoyer:hover { background: var(--brand-hover); }
.formulaire-cf7 .btn-envoyer:disabled { opacity: 0.55; cursor: not-allowed; }
.formulaire-cf7 .formulaire-envoi p { text-align: center; font: 400 14px/22px var(--font-text); color: var(--ink-muted); }
.formulaire-cf7 .wpcf7-spinner { position: absolute; margin: 18px 0 0 12px; }
.formulaire-cf7 .wpcf7-response-output { margin: 16px 0 0 !important; padding: 16px !important; border: 0 !important; border-radius: var(--radius-md); font: 600 15px/22px var(--font-text); }
.formulaire-cf7.sent .wpcf7-response-output { background: #E7F5EF; color: var(--success); }
.formulaire-cf7:is(.invalid, .unaccepted, .failed, .spam, .aborted, .payment-required) .wpcf7-response-output { background: #FDECEC; color: var(--error); }
p.formulaire-indisponible { font: 500 16px/26px var(--font-text); color: var(--ink-muted); }
p.formulaire-indisponible a { color: var(--brand); }

/* ---------- Pied de page ---------- */
.pied-panneau { margin: 0 var(--marge-page) var(--marge-page); padding: 72px 0 40px; border-radius: var(--radius-xl); background: var(--surface-inverse); color: var(--on-inverse); }
/* Enchaîné au contact : un padding et non une marge, qui s'effondrerait hors du fond marine. */
body:has(.panneau.contact) .pied-panneau { margin-top: 0; padding-top: 112px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.pied { padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.14); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
body:not(:has(.panneau.contact)) .pied { padding-top: 0; border-top: 0; }
.pied .logo { font-size: 40px; }
.pied-marque > p:not(.logo) { margin-top: 16px; color: #A3B3C8; max-width: 280px; }
.pied h3 { font: 600 13px/16px var(--font-text); letter-spacing: 1.6px; text-transform: uppercase; color: #A3B3C8; margin-bottom: 16px; }
ul.pied-liste { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; font: 400 15px/22px var(--font-text); }
.pied-liste a { color: #fff; text-decoration: none; }
.pied-liste a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied-bas { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font: 400 14px/22px var(--font-text); color: #A3B3C8; }
.pied-bas a { color: #A3B3C8; margin-left: 24px; }
.pied-bas a:first-child { margin-left: 0; }

/* Barre d'appel mobile */
.wp-block-buttons.barre-mobile { display: none; }

/* ---------- Pages légales ---------- */
.panneau.page-entete { margin-top: var(--marge-page); padding: 168px 0 72px; }
.page-entete .enveloppe { display: flex; flex-direction: column; gap: 16px; }
.texte-legal { max-width: 760px; }
.texte-legal h2 { font: 700 26px/34px var(--font-display); letter-spacing: -0.6px; margin: 48px 0 12px; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal p, .texte-legal li { color: var(--ink-muted); }
.texte-legal p + p { margin-top: 12px; }
.texte-legal ul { margin: 12px 0 0; padding-left: 22px; }
.texte-legal a { color: var(--brand); }

/* ---------- Apparition au défilement (charte : fondu + 24 px, 0,6 s) ---------- */
.olfweb-js .apparait { opacity: 0; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .vitrine-panneau { width: 100%; }
  .volet { grid-template-columns: 1fr 1fr; padding: 32px; gap: 28px; }
  .volet-texte .h2 { font-size: 32px; line-height: 38px; }
}

@media (max-width: 1023px) {
  .entete-actions .btn-tel { display: none; }
  .wp-block-navigation.nav-principale .wp-block-navigation__container { gap: 20px; }

  .vitrine-piste { height: auto; }
  .vitrine-scene { position: relative; top: 0; height: auto; min-height: 0; max-height: none; }
  .vitrine-panneau { height: auto; padding: 20px; }
  .vitrine-carte { flex: none; max-height: none; }
  .volet { position: relative; inset: auto; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; }
  .volet.est-actif { display: grid; }
  .volet-visuel { min-height: 320px; }

  .cartes-services { flex-direction: column; height: auto; }
  .carte-service, .carte-service.est-ouverte { flex: none; cursor: default; }
  .carte-service-detail { opacity: 1; max-height: none; }
  .carte-service-pied .bulle { opacity: 1; transform: none; }

  .partage, .contact-grille { grid-template-columns: 1fr; gap: 48px; }
  .partage-visuel, .contact-texte { position: relative; top: 0; }
  .partage-inverse .partage-visuel { order: 2; }
  .etape:not(.est-active) { opacity: 1; }
  .pied { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}

@media (max-width: 819px) {
  .entete .entete-actions { display: none; }
}

@media (max-width: 782px) {
  .admin-bar .entete { top: 62px; }
}

@media (max-width: 640px) {
  :root { --section: 64px; --marge-page: 8px; }
  .enveloppe { width: calc(100% - 32px); }
  .display { font-size: 44px; line-height: 48px; letter-spacing: -1.4px; }
  .h1 { font-size: 36px; line-height: 42px; }
  .h2, .contact-texte h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.8px; }
  p.lead { font-size: 18px; line-height: 28px; }
  .entete { top: 8px; width: calc(100% - 16px); height: 64px; padding: 0 8px 0 18px; }
  .panneau.heros { padding-top: 120px; }
  .heros-texte .bloc-boutons { flex-direction: column; align-items: stretch; width: 100%; }
  .heros-texte .bloc-boutons .wp-block-button, .heros-texte .bloc-boutons .wp-block-button__link { width: 100%; }
  .heros .vitrine { margin-top: 40px; }
  .vitrine-panneau { padding: 12px; border-radius: var(--radius-lg); }
  .onglets { width: 100%; }
  p.onglet { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; }
  p.onglet::before { display: none; }
  .volet { padding: 24px 20px; }
  .volet-texte .h2 { font-size: 28px; line-height: 34px; }
  .volet-visuel { min-height: 280px; }
  .ui-navigateur { left: 5%; right: 5%; }
  .ui-fiche { width: 74%; }
  .bulle p.bulle-titre { font-size: 12px; }
  .wp-block-group.chiffres { padding: 64px 0; }
  .chiffres-grille { grid-template-columns: 1fr; gap: 32px; }
  .chiffre + .chiffre { border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .carte-service-tete, .carte-service-detail { padding-left: 24px; padding-right: 24px; }
  .carte-service-tete::after { left: 36px; }
  .carte-service-pied .bulle:first-child { left: 24px; }
  .carte-service-pied .bulle:last-child { display: none; }
  .panneau.engagements { padding: 72px 0; }
  .carte-engagement { padding: 28px; min-height: 0; }
  .carte-engagement::after { left: 42px; top: 42px; }
  p.carte-engagement-titre { font-size: 26px; line-height: 32px; }
  .anatomie { left: 5%; right: 5%; }
  .anatomie p.ui-site-titre { font-size: 17px; line-height: 21px; }
  .formulaire-carte { padding: 24px; }
  .formulaire-cf7 .formulaire-grille { grid-template-columns: 1fr; }
  .panneau.contact { padding-top: 72px; }
  body:has(.panneau.contact) .pied-panneau { padding-top: 72px; }
  .pied-panneau { padding-bottom: 104px; }
  .pied { grid-template-columns: 1fr; }
  .faq-item > p { padding-right: 0; }
  .panneau.page-entete { padding: 120px 0 48px; }

  .wp-block-buttons.barre-mobile {
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    position: fixed; z-index: 60; left: 8px; right: 8px; bottom: 8px;
    padding: 8px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
    transform: translateY(140%); transition: transform 300ms var(--ease);
  }
  .wp-block-buttons.barre-mobile.est-visible { transform: none; }
  .barre-mobile .wp-block-button__link { width: 100%; }
  .barre-mobile .btn-secondaire .wp-block-button__link { font-size: 0; gap: 0; padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .olfweb-js .apparait { opacity: 1; transform: none; }
}
