/*
Theme Name: Véro Webdesign
Theme URI: https://vero-webdesign.fr
Author: Véronique PAUCHARD
Author URI: https://vero-webdesign.fr
Description: Thème bloc sur mesure de Véro Webdesign, web designer WordPress. Tout le contenu est en blocs natifs, modifiable dans l'éditeur.
Version: 1.0.9
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vero-webdesign
Tags: block-theme, full-site-editing, one-column
*/

/* ==========================================================================
   Jetons
   ========================================================================== */

:root {
  --vert: #042A1F;
  --jaune: #F5AF23;
  --creme: #FCF1DF;
  --carte: #FFFDF8;
  --encre: #1B2B24;
  --gris: #5E6B64;
  --filet: #CDBB94;

  --titre: Poppins, system-ui, sans-serif;
  --texte: Inter, system-ui, sans-serif;
  --main: Satisfy, cursive;

  --gouttiere: clamp(16px, 5vw, 72px);
  --largeur: 1240px;
  --ombre: 0 18px 40px -18px rgba(4, 42, 31, .35);
  --ombre-carte: 0 10px 30px -12px rgba(4, 42, 31, .22);
  --ombre-panneau: 0 30px 50px -24px rgba(4, 42, 31, .55);
}

/* ==========================================================================
   Base et neutralisation de l'espacement de Gutenberg
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 400 16px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; } /* height:auto : sinon l'attribut height des blocs image l'emporte sur aspect-ratio */
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Gutenberg : blockGap coupé dans theme.json ; filet de sécurité à spécificité nulle uniquement */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; }

.wp-site-blocks { position: relative; overflow-x: clip; }
.contenu { position: relative; }
.conteneur { width: min(var(--largeur), 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }

/* ==========================================================================
   Matière : ombres et feuillages (décors, jamais des blocs)
   ========================================================================== */

.wp-site-blocks::before,
.wp-site-blocks::after,
.contenu::after,
.pied::before,
.pied::after {
  content: ''; position: absolute; pointer-events: none;
  background: center / contain no-repeat;
}
.wp-site-blocks::before {
  top: -40px; left: -60px; width: 980px; height: 1307px;
  background-image: url(assets/deco/ombre-feuilles.jpg);
  mix-blend-mode: multiply; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 20%, #000 40%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 70% at 30% 20%, #000 40%, transparent 80%);
}
.wp-site-blocks::after {
  top: -150px; left: -150px; width: 330px; height: 350px; z-index: 1;
  background-image: url(assets/deco/feuille-branche.png);
  transform: rotate(168deg) scaleX(-1);
  filter: blur(2px) saturate(.9) brightness(.8);
}
.contenu::after {
  top: 340px; right: -190px; width: 400px; height: 405px; z-index: 4;
  background-image: url(assets/deco/feuille-floue.png);
  filter: blur(3px) brightness(.85);
}
.vw-page-projets .contenu::after { top: 800px; right: -300px; }
.vw-page-services .contenu::after { top: 1080px; right: -300px; }
.vw-page-tarifs .contenu::after { top: 1230px; right: -300px; }
.vw-page-contact .contenu::after { top: 1350px; right: -240px; }
.vw-page-mentions-legales .contenu::after,
.vw-page-cgv .contenu::after,
.vw-page-confidentialite .contenu::after { display: none; }

/* ==========================================================================
   Boutons : la classe est sur div.wp-block-button, le style sur le lien
   ========================================================================== */

.wp-block-button.bouton-vert .wp-block-button__link,
.wp-block-button.bouton-jaune .wp-block-button__link,
.wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.5em; border: 0; border-radius: 999px;
  font: 600 15px/1 var(--titre);
  transition: transform .2s, box-shadow .2s;
}
.wp-block-button.bouton-vert .wp-block-button__link::after,
.wp-block-button.bouton-jaune .wp-block-button__link::after,
.wpcf7-submit::after {
  content: ''; flex: none; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url(assets/icones/fleche-noir.svg) center / contain no-repeat;
          mask: url(assets/icones/fleche-noir.svg) center / contain no-repeat;
}
.wp-block-button.bouton-vert .wp-block-button__link:hover,
.wp-block-button.bouton-jaune .wp-block-button__link:hover,
.wpcf7-submit:hover { transform: translateY(-2px); box-shadow: var(--ombre-carte); }
.wp-block-button.bouton-vert .wp-block-button__link { background: var(--vert); color: #fff; }
.wp-block-button.bouton-jaune .wp-block-button__link { background: var(--jaune); color: var(--vert); }

/* ==========================================================================
   Icônes : chaque classe ico-* fournit ses trois couleurs, utilisées par les composants
   ========================================================================== */

.ico-avion { --ico-v: url(assets/icones/avion-vert.svg); --ico-j: url(assets/icones/avion-jaune.svg); --ico-b: url(assets/icones/avion-blanc.svg); }
.ico-bouclier { --ico-v: url(assets/icones/bouclier-vert.svg); --ico-j: url(assets/icones/bouclier-jaune.svg); --ico-b: url(assets/icones/bouclier-blanc.svg); }
.ico-bulle { --ico-v: url(assets/icones/bulle-vert.svg); --ico-j: url(assets/icones/bulle-jaune.svg); --ico-b: url(assets/icones/bulle-blanc.svg); }
.ico-casque { --ico-v: url(assets/icones/casque-vert.svg); --ico-j: url(assets/icones/casque-jaune.svg); --ico-b: url(assets/icones/casque-blanc.svg); }
.ico-chevron { --ico-v: url(assets/icones/chevron-vert.svg); --ico-j: url(assets/icones/chevron-jaune.svg); --ico-b: url(assets/icones/chevron-blanc.svg); }
.ico-cible { --ico-v: url(assets/icones/cible-vert.svg); --ico-j: url(assets/icones/cible-jaune.svg); --ico-b: url(assets/icones/cible-blanc.svg); }
.ico-coche { --ico-v: url(assets/icones/coche-vert.svg); --ico-j: url(assets/icones/coche-jaune.svg); --ico-b: url(assets/icones/coche-blanc.svg); }
.ico-code { --ico-v: url(assets/icones/code-vert.svg); --ico-j: url(assets/icones/code-jaune.svg); --ico-b: url(assets/icones/code-blanc.svg); }
.ico-coeur { --ico-v: url(assets/icones/coeur-vert.svg); --ico-j: url(assets/icones/coeur-jaune.svg); --ico-b: url(assets/icones/coeur-blanc.svg); }
.ico-crayon { --ico-v: url(assets/icones/crayon-vert.svg); --ico-j: url(assets/icones/crayon-jaune.svg); --ico-b: url(assets/icones/crayon-blanc.svg); }
.ico-ecran { --ico-v: url(assets/icones/ecran-vert.svg); --ico-j: url(assets/icones/ecran-jaune.svg); --ico-b: url(assets/icones/ecran-blanc.svg); }
.ico-enveloppe { --ico-v: url(assets/icones/enveloppe-vert.svg); --ico-j: url(assets/icones/enveloppe-jaune.svg); --ico-b: url(assets/icones/enveloppe-blanc.svg); }
.ico-etoile { --ico-v: url(assets/icones/etoile-vert.svg); --ico-j: url(assets/icones/etoile-jaune.svg); --ico-b: url(assets/icones/etoile-blanc.svg); }
.ico-fleche { --ico-v: url(assets/icones/fleche-vert.svg); --ico-j: url(assets/icones/fleche-jaune.svg); --ico-b: url(assets/icones/fleche-blanc.svg); }
.ico-fusee { --ico-v: url(assets/icones/fusee-vert.svg); --ico-j: url(assets/icones/fusee-jaune.svg); --ico-b: url(assets/icones/fusee-blanc.svg); }
.ico-graphique { --ico-v: url(assets/icones/graphique-vert.svg); --ico-j: url(assets/icones/graphique-jaune.svg); --ico-b: url(assets/icones/graphique-blanc.svg); }
.ico-guillemet { --ico-v: url(assets/icones/guillemet-vert.svg); --ico-j: url(assets/icones/guillemet-jaune.svg); --ico-b: url(assets/icones/guillemet-blanc.svg); }
.ico-horloge { --ico-v: url(assets/icones/horloge-vert.svg); --ico-j: url(assets/icones/horloge-jaune.svg); --ico-b: url(assets/icones/horloge-blanc.svg); }
.ico-jauge { --ico-v: url(assets/icones/jauge-vert.svg); --ico-j: url(assets/icones/jauge-jaune.svg); --ico-b: url(assets/icones/jauge-blanc.svg); }
.ico-lieu { --ico-v: url(assets/icones/lieu-vert.svg); --ico-j: url(assets/icones/lieu-jaune.svg); --ico-b: url(assets/icones/lieu-blanc.svg); }
.ico-liste { --ico-v: url(assets/icones/liste-vert.svg); --ico-j: url(assets/icones/liste-jaune.svg); --ico-b: url(assets/icones/liste-blanc.svg); }
.ico-loupe { --ico-v: url(assets/icones/loupe-vert.svg); --ico-j: url(assets/icones/loupe-jaune.svg); --ico-b: url(assets/icones/loupe-blanc.svg); }
.ico-mallette { --ico-v: url(assets/icones/mallette-vert.svg); --ico-j: url(assets/icones/mallette-jaune.svg); --ico-b: url(assets/icones/mallette-blanc.svg); }
.ico-maquette { --ico-v: url(assets/icones/maquette-vert.svg); --ico-j: url(assets/icones/maquette-jaune.svg); --ico-b: url(assets/icones/maquette-blanc.svg); }
.ico-page { --ico-v: url(assets/icones/page-vert.svg); --ico-j: url(assets/icones/page-jaune.svg); --ico-b: url(assets/icones/page-blanc.svg); }
.ico-paiement { --ico-v: url(assets/icones/paiement-vert.svg); --ico-j: url(assets/icones/paiement-jaune.svg); --ico-b: url(assets/icones/paiement-blanc.svg); }
.ico-panier { --ico-v: url(assets/icones/panier-vert.svg); --ico-j: url(assets/icones/panier-jaune.svg); --ico-b: url(assets/icones/panier-blanc.svg); }
.ico-personnes { --ico-v: url(assets/icones/personnes-vert.svg); --ico-j: url(assets/icones/personnes-jaune.svg); --ico-b: url(assets/icones/personnes-blanc.svg); }
.ico-plume { --ico-v: url(assets/icones/plume-vert.svg); --ico-j: url(assets/icones/plume-jaune.svg); --ico-b: url(assets/icones/plume-blanc.svg); }
.ico-question { --ico-v: url(assets/icones/question-vert.svg); --ico-j: url(assets/icones/question-jaune.svg); --ico-b: url(assets/icones/question-blanc.svg); }
.ico-rouage { --ico-v: url(assets/icones/rouage-vert.svg); --ico-j: url(assets/icones/rouage-jaune.svg); --ico-b: url(assets/icones/rouage-blanc.svg); }
.ico-tel { --ico-v: url(assets/icones/tel-vert.svg); --ico-j: url(assets/icones/tel-jaune.svg); --ico-b: url(assets/icones/tel-blanc.svg); }
.ico-utilisateur { --ico-v: url(assets/icones/utilisateur-vert.svg); --ico-j: url(assets/icones/utilisateur-jaune.svg); --ico-b: url(assets/icones/utilisateur-blanc.svg); }
.ico-web { --ico-v: url(assets/icones/web-vert.svg); --ico-j: url(assets/icones/web-jaune.svg); --ico-b: url(assets/icones/web-blanc.svg); }

/* ==========================================================================
   En-tête
   ========================================================================== */

.entete {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 34px;
}
.logo {
  position: relative; display: inline-block; margin: 0;
  font: 400 40px/1 var(--main); color: var(--vert);
  padding: 14px 6px 10px 0;
}
.logo a { color: inherit; }
.logo a::after { content: '.'; color: var(--jaune); }
.logo::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 12px;
  background: url(assets/deco/trait-logo.svg) center / 100% 100% no-repeat;
}

.wp-block-navigation.menu { font-size: inherit; }
.wp-block-navigation.menu .wp-block-navigation__container {
  gap: 0;
  border: 1px solid var(--filet);
  background: rgba(252, 241, 223, .6);
}
.wp-block-navigation.menu .wp-block-navigation-item { border-left: 1px solid var(--filet); }
.wp-block-navigation.menu .wp-block-navigation-item:first-child { border-left: 0; }
.wp-block-navigation.menu .wp-block-navigation-item__content {
  display: block; padding: 13px 22px;
  font: 700 12px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase;
  color: var(--vert);
  transition: background .2s;
}
.wp-block-navigation.menu .wp-block-navigation-item__content:hover { background: rgba(245, 175, 35, .18); }
.wp-block-navigation.menu .wp-block-navigation-item__content[aria-current="page"] { background: var(--vert); color: var(--jaune); }

/* ==========================================================================
   Accueil : héros
   ========================================================================== */

.hero {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr 1fr; align-items: start;
  padding-bottom: 52px;
}
.hero-texte { padding-top: 34px; position: relative; z-index: 3; }
.hero-titre {
  font: 800 clamp(52px, 7.9vw, 114px)/.93 var(--titre);
  letter-spacing: -.035em;
  color: var(--vert);
}
.hero-titre em, .titre-page em { font-style: normal; color: var(--jaune); }

.accroche {
  display: flex; align-items: center; gap: 12px;
  margin-top: 34px;
  font: 400 clamp(22px, 2.2vw, 30px)/1.2 var(--main); color: var(--vert);
}
.accroche::before { content: ''; flex: none; width: 30px; height: 2px; background: var(--jaune); }
.accroche::after {
  content: ''; flex: none; width: 30px; height: 27px; margin-left: 4px;
  background: url(assets/icones/coeur-jaune.svg) center / contain no-repeat;
  transform: rotate(-6deg);
}

.etiquette {
  display: inline-block; margin-top: 34px;
  padding: .7em 1.4em; border-radius: 999px;
  background: var(--vert); color: var(--jaune);
  font: 600 17px/1 var(--titre);
}
.hero-intro { margin-top: 22px; max-width: 470px; font-size: 18px; line-height: 1.6; color: var(--encre); }
.hero-intro strong { font-weight: 600; color: var(--vert); }

.hero-visuel { position: relative; align-self: stretch; min-height: 480px; }
.hero-visuel::before {
  content: ''; position: absolute; width: 540px; height: 540px;
  top: 70px; right: -100px;
  background: url(assets/deco/soleil.svg) center / contain no-repeat;
}
.hero-visuel::after {
  content: ''; position: absolute; z-index: 2; width: 92px; height: 130px; top: 380px; left: 70px;
  background: url(assets/deco/fleche-bouclee.svg) center / contain no-repeat;
}
.hero-photo {
  position: absolute; z-index: 1;
  height: calc(100% + 96px);
  top: 30px; right: -6px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 90%, transparent 100%);
}
.hero-photo img { height: 100%; width: auto; max-width: none; }
.hero-photo::before {
  content: ''; position: absolute; z-index: 2; width: 54px; height: 54px; top: 34px; left: 18%;
  background: url(assets/deco/eclats-vert.svg) center / contain no-repeat;
}

/* ==========================================================================
   Panneau vert : contact et logiciels
   ========================================================================== */

.panneau {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: auto 1fr;
  background: var(--vert); color: #fff;
  border-radius: 22px;
  padding: 40px 0;
  box-shadow: var(--ombre-panneau);
}
.panneau > * { padding: 0 44px; }
.panneau-outils { border-left: 1px solid rgba(255, 255, 255, .16); }
.panneau-titre { font: 600 20px/1.2 var(--titre); color: var(--jaune); margin-bottom: 24px; }

.coordonnees { display: grid; gap: 14px; }
.coordonnees li { display: flex; align-items: center; gap: 14px; font-size: 15px; white-space: nowrap; }
.coordonnees li::before {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--jaune) var(--ico-v) center / 16px no-repeat;
}
.coordonnees a:hover { color: var(--jaune); }

.outils { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.outil { display: grid; justify-items: center; gap: 12px; font-size: 14px; text-align: center; }
.tuile {
  display: grid; place-items: center;
  width: 100%; max-width: 108px; aspect-ratio: 1 / 1.08;
  background: var(--carte); border-radius: 16px;
  box-shadow: 0 8px 0 -2px rgba(0, 0, 0, .18);
}
.tuile img { width: 56%; height: 56%; object-fit: contain; }

/* ==========================================================================
   Titres de section : pastille, titre, pointillés, bouton
   ========================================================================== */

.titre-section { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.titre-section::before {
  content: ''; order: 0; flex: none;
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--jaune) var(--ico-v) center / 30px no-repeat;
  box-shadow: 0 6px 0 -1px rgba(4, 42, 31, .12);
}
.titre-section.puce::before { width: 14px; height: 14px; border-radius: 50%; background: var(--jaune); box-shadow: none; }
.titre-section.rond::before { width: 34px; height: 34px; border-radius: 0; background: var(--ico-v) center / contain no-repeat; box-shadow: none; }
.titre-section h2 { order: 1; font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--titre); color: var(--vert); white-space: nowrap; }
.titre-section::after {
  content: ''; order: 2; flex: 1; height: 12px; margin-right: 8px;
  background:
    radial-gradient(circle 6px at calc(100% - 6px) 50%, var(--jaune) 95%, transparent) no-repeat,
    repeating-linear-gradient(90deg, rgba(4, 42, 31, .55) 0 6px, transparent 6px 11px) left center / calc(100% - 16px) 2px no-repeat;
}
.titre-section .wp-block-buttons { order: 3; }

.section { position: relative; z-index: 2; padding: 30px 0 56px; }
.etude-section { position: relative; z-index: 2; padding-bottom: 90px; }
.bande-section { position: relative; z-index: 2; padding: 10px 0 40px; }
.appel-section { padding-top: 20px; }

/* ==========================================================================
   Accueil : projets
   ========================================================================== */

.projets { position: relative; z-index: 2; padding: 64px 0 80px; }
.grille-projets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.carte-projet {
  position: relative;
  padding: 10px; border-radius: 16px;
  background: var(--carte); box-shadow: var(--ombre-carte);
  transition: transform .25s, box-shadow .25s;
}
.carte-projet:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.carte-badge {
  position: absolute; z-index: 1; top: 2px; left: 2px;
  padding: .5em .9em; border-radius: 999px;
  background: var(--vert); color: var(--jaune);
  font: 600 12px/1 var(--titre); letter-spacing: .02em;
  box-shadow: 0 0 0 3px var(--carte);
}
.carte-badge-ligne::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px;
  border-radius: 50%; background: var(--jaune); vertical-align: 1px;
}
.carte-image img { width: 100%; aspect-ratio: 1.36; object-fit: cover; object-position: top; border-radius: 9px; }
.carte-pied { padding: 16px 40px 8px 8px; }
.carte-pied::after {
  content: ''; position: absolute; right: 18px; bottom: 18px; width: 24px; height: 24px;
  background: url(assets/icones/fleche-jaune.svg) center / contain no-repeat;
}
.carte-nom { font: 600 17px/1.3 var(--titre); color: var(--vert); }
.carte-nom a::after { content: ''; position: absolute; inset: 0; z-index: 2; } /* le lien du nom couvre toute la carte */
.carte-metier { font-size: 14px; color: var(--gris); }

/* ==========================================================================
   Pied de page
   ========================================================================== */

.pied { position: relative; background: var(--vert); color: #fff; }
.pied::before {
  left: -150px; top: -95px; width: 300px; height: 171px; z-index: 1;
  background-image: url(assets/deco/feuille-brin.png);
  transform: rotate(-24deg); filter: blur(1.5px) brightness(.85);
}
.pied::after {
  right: -90px; bottom: 90px; width: 210px; height: 223px; z-index: 2;
  background-image: url(assets/deco/feuille-branche.png);
  transform: rotate(-8deg); filter: brightness(.95);
}

.pied-grille {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
  padding: 64px 0 52px;
}
.pied-grille > * { padding: 0 34px; border-left: 1px solid rgba(255, 255, 255, .16); }
.pied-grille > :first-child { padding-left: 0; border-left: 0; }

.pied-monogramme {
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .03em;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--jaune); color: var(--vert);
  font: 400 31px/1 var(--main); padding-right: 2px;
}
.pied-nom { margin-top: 18px; font: 600 22px/1.2 var(--titre); }
.pied-metier { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .78); }

.pied-titre { font: 600 18px/1.2 var(--titre); margin-bottom: 18px; }
.puces { display: grid; gap: 9px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.puces li { position: relative; padding-left: 16px; }
.puces li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--jaune); }
.puces a:hover { color: var(--jaune); }

.pied-appel p:not(.pied-titre) { font-size: 15px; color: rgba(255, 255, 255, .88); margin-bottom: 22px; max-width: 240px; }

.pied-legal {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 26px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px; color: rgba(255, 255, 255, .85);
}
.pied-copyright { display: flex; align-items: center; gap: 10px; }
.pied-copyright::after { content: ''; width: 22px; height: 20px; background: url(assets/icones/coeur-jaune.svg) center / contain no-repeat; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pied-liens a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-decoration-color: rgba(245, 175, 35, .6); text-underline-offset: 3px; }
.pied-liens a:hover { color: var(--jaune); }

/* ==========================================================================
   Pages internes : héros, médaillons, cartes profil, bandeau d'infos
   ========================================================================== */

.hero-page {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: center;
  padding: 26px 0 56px;
}
.hero-page-texte { position: relative; z-index: 2; }
.titre-page {
  font: 800 clamp(48px, 7.2vw, 104px)/.95 var(--titre);
  letter-spacing: -.035em; color: var(--vert);
}
.titre-long { font-size: clamp(40px, 6.3vw, 90px); }
.hero-page .accroche { margin-top: 26px; }
.hero-page .hero-intro { margin-top: 18px; max-width: 520px; }

/* Médaillon : portrait détouré dans un cercle jaune, la tête déborde vers le haut */
.medaillon {
  --d: 170px;
  position: relative; flex: none;
  width: var(--d); height: calc(var(--d) * 1.16);
  border-radius: 0 0 50% 50% / 0 0 43% 43%;
  overflow: hidden;
}
.medaillon-140 { --d: 140px; }
.medaillon-250 { --d: 250px; }
.medaillon::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--d); border-radius: 50%; background: var(--jaune);
}
.medaillon img {
  position: absolute; left: 50%; top: 2%;
  width: 104%; max-width: none; transform: translateX(-46%);
}
.medaillon-rond { height: var(--d); border-radius: 50%; }
.medaillon-rond img { top: -4%; }

.profil-nom { font: 600 24px/1.2 var(--titre); }
.profil-metier { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .78); }

/* Carte profil horizontale (projets) */
.carte-profil {
  position: relative;
  display: flex; align-items: center; gap: 26px;
  background: var(--vert); color: #fff;
  border-radius: 24px; padding: 30px 34px;
  box-shadow: var(--ombre-panneau);
}
.carte-profil::before {
  content: ''; position: absolute; width: 46px; height: 46px; top: -30px; right: -14px;
  background: url(assets/deco/eclats-vert.svg) center / contain no-repeat;
}

/* Médaillon et identité (services) */
.profil-services { position: relative; display: flex; align-items: center; gap: 30px; justify-self: end; }
.profil-services::before {
  content: ''; position: absolute; z-index: 1; width: 44px; height: 44px; top: -8px; left: -14px;
  background: url(assets/deco/eclats-vert.svg) center / contain no-repeat;
}
.profil-services::after {
  content: ''; position: absolute; width: 64px; height: 90px; left: -54px; top: 150px;
  background: url(assets/deco/fleche-bouclee.svg) center / contain no-repeat;
}
.profil-services .profil-nom { color: var(--vert); font-size: 26px; }
.profil-services .profil-metier { color: var(--gris); }

/* Carte profil haute (tarifs, contact) */
.carte-profil-haute {
  position: relative; overflow: hidden;
  background: var(--vert); color: #fff;
  border-radius: 26px; padding: 34px 34px 30px;
  box-shadow: var(--ombre-panneau);
}
.portrait-carte { position: relative; height: 318px; margin: -34px -34px 14px; overflow: hidden; }
/* premier enfant du groupe : la règle :first-child de WordPress (0,2,0) l'écraserait */
.carte-profil-haute > div.portrait-carte { margin-top: -34px; }
.portrait-carte::before {
  content: ''; position: absolute; width: 290px; height: 290px; top: 44px; left: 50%; transform: translateX(-50%);
  background: url(assets/deco/soleil.svg) center / contain no-repeat;
}
.portrait-carte::after {
  content: ''; position: absolute; z-index: 2; width: 40px; height: 40px; top: 34px; left: 22%;
  background: url(assets/deco/eclats-blanc.svg) center / contain no-repeat;
}
.portrait-photo {
  position: absolute; z-index: 1; height: 360px; top: 8px; left: 50%; transform: translateX(-46%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 86%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 86%);
}
.portrait-photo img { height: 100%; width: auto; max-width: none; }
.profil-identite { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.profil-identite .pied-monogramme { width: 58px; height: 58px; font-size: 25px; flex: none; }

/* Bandeau d'informations (tarifs, contact) */
.bandeau-infos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 30px; padding: 22px 0;
  background: var(--vert); color: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 40px -22px rgba(4, 42, 31, .55);
}
.bandeau-infos li {
  display: grid; justify-items: center; padding: 0 12px;
  text-align: center; font-size: 14px; line-height: 1.35;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.bandeau-infos li:first-child { border-left: 0; }
/* pas de gap : le texte nu après <strong> ferait une rangée de grille de plus */
.bandeau-infos li::before { content: ''; width: 36px; height: 36px; margin-bottom: 10px; background: var(--ico-j) center / contain no-repeat; }
.bandeau-infos strong { display: block; font: 600 16px/1.3 var(--titre); }

/* ==========================================================================
   Projets
   ========================================================================== */

.chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--carte); border-radius: 22px; padding: 26px 0;
  box-shadow: var(--ombre-carte);
}
.chiffres li {
  display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; align-items: center;
  padding: 0 30px; border-left: 1px solid rgba(4, 42, 31, .12);
  font-size: 15px; color: var(--gris); line-height: 1.6;
}
.chiffres li:first-child { border-left: 0; }
.chiffres li::before {
  content: ''; grid-row: span 2; width: 54px; height: 54px; border-radius: 50%;
  background: var(--jaune) var(--ico-v) center / 28px no-repeat;
}
.chiffres strong { align-self: end; font: 700 30px/1.1 var(--titre); color: var(--vert); }

.carte-numero {
  position: absolute; z-index: 3; top: -10px; left: -10px;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--vert); color: #fff; font: 600 15px/1 var(--titre);
  box-shadow: 0 0 0 4px var(--creme);
}
.carte-categorie { font: 600 14px/1.4 var(--titre); color: var(--jaune); }
.carte-points { display: grid; gap: 5px; font-size: 14px; line-height: 1.4; }
.carte-points li { position: relative; padding-left: 14px; }
.carte-points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--jaune); }

/* Filtres par univers : des paragraphes, le script ajoute rôle et clavier */
.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filtre {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75em 1.15em; border-radius: 999px; cursor: pointer; user-select: none;
  font: 600 14px/1.2 var(--titre); color: var(--vert);
  background: var(--carte); border: 1.5px solid rgba(4, 42, 31, .2);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.filtre strong {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: rgba(4, 42, 31, .08); font-size: 12px; font-weight: 600;
}
.filtre:hover { border-color: var(--vert); transform: translateY(-2px); }
.filtre.est-actif, .filtre[aria-pressed="true"] { background: var(--vert); color: var(--jaune); border-color: var(--vert); }
.filtre.est-actif strong, .filtre[aria-pressed="true"] strong { background: var(--jaune); color: var(--vert); }

/* Vignettes : l'image seule, les textes apparaissent au survol */
.grille-vignettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vignette {
  position: relative; padding: 10px; border-radius: 18px;
  background: var(--carte); box-shadow: var(--ombre-carte);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, opacity .7s;
}
.vignette.masquee { display: none; }
.vignette .carte-badge { z-index: 3; top: 22px; left: auto; right: 22px; box-shadow: none; transition: opacity .3s; }
.vignette-cadre { position: relative; overflow: hidden; border-radius: 10px; }
.vignette-image img {
  width: 100%; aspect-ratio: 1.42; object-fit: cover; object-position: top;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.vignette-voile {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 24px 22px;
  background: linear-gradient(to top, rgba(4, 42, 31, .97) 0%, rgba(4, 42, 31, .9) 55%, rgba(4, 42, 31, .62) 100%);
  color: #fff; opacity: 0; transition: opacity .45s;
}
.vignette-voile > * { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.vignette-voile > :nth-child(2) { transition-delay: 70ms; }
.vignette-voile > :nth-child(3) { transition-delay: 140ms; }
.vignette-voile > :nth-child(4) { transition-delay: 210ms; }
.vignette-voile h3 { margin: 2px 0 10px; font: 600 22px/1.2 var(--titre); color: #fff; }
.vignette-voile .carte-points { margin: 0 0 16px; color: rgba(255, 255, 255, .9); }
/* .wp-block-button en plus : il faut passer la règle générale des boutons (0,3,0) */
.vignette-voile .wp-block-button .wp-block-button__link { padding: .75em 1.25em; font-size: 14px; }

.vignette:hover, .vignette:focus-within { transform: translateY(-6px); box-shadow: var(--ombre); }
.vignette:hover .vignette-image img, .vignette:focus-within .vignette-image img { transform: scale(1.07); }
.vignette:hover .vignette-voile, .vignette:focus-within .vignette-voile { opacity: 1; }
.vignette:hover .vignette-voile > *, .vignette:focus-within .vignette-voile > * { opacity: 1; transform: none; }
.vignette:hover .carte-badge, .vignette:focus-within .carte-badge { opacity: 0; }

/* Apparition au défilement et au filtrage (seulement si le script tourne) */
.js .vignette:not(.revele) { opacity: 0; transform: translateY(30px); }
.js .vignette.revele { transition-delay: calc(var(--i, 0) * 90ms); }
.vignette.apparait { animation: apparition .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes apparition { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* Écrans tactiles : pas de survol, les textes restent visibles sous l'image */
@media (hover: none) {
  .vignette-voile { position: static; opacity: 1; background: none; color: var(--encre); padding: 16px 8px 8px; }
  .vignette-voile > * { opacity: 1; transform: none; }
  .vignette-voile h3 { color: var(--vert); }
  .vignette-voile .carte-points { color: var(--encre); }
  .vignette-voile .carte-points li::before { background: var(--vert); }
  .vignette .carte-badge { opacity: 1 !important; }
}

/* Étude de cas */
.etude {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.25fr .95fr; gap: 40px; align-items: center;
  background: var(--vert); color: #fff;
  border-radius: 26px; padding: 44px 46px;
  box-shadow: var(--ombre-panneau);
}
.etude-script { display: flex; align-items: center; gap: 8px; font: 400 30px/1.2 var(--main); color: var(--jaune); }
.etude-script::after { content: ''; width: 26px; height: 24px; background: url(assets/icones/coeur-jaune.svg) center / contain no-repeat; }
.etude h2 { margin-top: 14px; font: 700 30px/1.15 var(--titre); color: #fff; }
.etude-categorie { margin-top: 4px; font: 600 17px/1.4 var(--titre); color: var(--jaune); }
.etude-texte { margin: 16px 0 26px; font-size: 15.5px; color: rgba(255, 255, 255, .85); }
.etude-visuels { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: end; }
.etude-visuels figure { position: relative; }
.etude-visuels img { width: 100%; border-radius: 10px; box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .5); background: #fff; }
.vue-ordi img { aspect-ratio: 1.42; object-fit: cover; object-position: top; }
.vue-mobile img { aspect-ratio: .5; object-fit: cover; object-position: top; border-radius: 16px; border: 5px solid #0d1512; }
.etude-visuels figcaption {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); margin: 0;
  padding: .45em 1em; border-radius: 999px;
  background: var(--creme); color: var(--vert); font: 600 13px/1 var(--titre); white-space: nowrap;
}
.vue-mobile figcaption { background: var(--jaune); }
.etude-visuels::after {
  content: ''; position: absolute; z-index: 1; left: 61.5%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--jaune) url(assets/icones/fleche-vert.svg) center / 24px no-repeat;
  box-shadow: 0 0 0 5px var(--vert);
}
.etude-points { display: grid; gap: 22px; }
.etude-points li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.etude-points li::before { content: ''; grid-row: span 2; width: 24px; height: 24px; background: var(--ico-j) center / contain no-repeat; }
.etude-points strong { font: 600 18px/1.3 var(--titre); color: var(--jaune); }

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

.hero-services { grid-template-columns: 1.3fr 1fr; }

.grille-services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.carte-service {
  position: relative; grid-column: span 4;
  padding: 26px 24px 54px; border-radius: 18px;
  background: var(--carte); box-shadow: var(--ombre-carte);
}
.carte-service::after {
  content: ''; position: absolute; right: 22px; bottom: 20px; width: 24px; height: 24px;
  background: url(assets/icones/fleche-jaune.svg) center / contain no-repeat;
}
.carte-service h3 { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; font: 600 19px/1.25 var(--titre); color: var(--vert); }
.carte-service h3::before {
  content: ''; flex: none; width: 58px; height: 58px; border-radius: 14px;
  background: var(--vert) var(--ico-j) center / 30px no-repeat;
  box-shadow: 0 6px 0 -1px rgba(4, 42, 31, .12);
}
.carte-service p { font-size: 15px; line-height: 1.55; color: var(--encre); }

.offres { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.offre { padding: 32px 34px; border-radius: 22px; background: var(--carte); box-shadow: var(--ombre-carte); }
.offre::before {
  content: ''; display: block; width: 54px; height: 54px; border-radius: 50%;
  background: var(--jaune) var(--ico-v) center / 26px no-repeat;
}
.offre > h3.wp-block-heading { margin-top: 18px; }
.offre h3 { font: 700 23px/1.2 var(--titre); color: var(--vert); }
.offre-intro { margin: 6px 0 18px; font-size: 15.5px; color: var(--gris); }
.offre-sombre { background: var(--vert); color: #fff; box-shadow: var(--ombre-panneau); }
.offre-sombre h3 { color: #fff; }
.offre-sombre .offre-intro { color: rgba(255, 255, 255, .8); }
.offres-bouton { margin-top: 28px; justify-content: center; }

/* padding : la marge basse et le retrait gauche par défaut de la liste <ol> de la maquette, gardés tels quels */
.methode { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; padding: 0 0 16px 40px; text-align: center; }
.etape { position: relative; display: grid; justify-items: center; align-content: start; }
.etape::before {
  content: ''; width: 76px; height: 76px; border-radius: 50%;
  background: var(--vert) var(--ico-j) center / 34px no-repeat;
  box-shadow: 0 0 0 5px var(--creme), 0 0 0 6px rgba(4, 42, 31, .15);
}
.etape:not(:last-child)::after {
  content: ''; position: absolute; top: 38px; left: calc(50% + 46px); right: calc(-50% + 46px);
  border-top: 2px dotted var(--jaune);
}
.etape > p.methode-num { margin-top: 16px; }
.methode-num { font: 700 18px/1 var(--titre); color: var(--vert); }
.etape h3 { margin-top: 6px; font: 600 17px/1.2 var(--titre); color: var(--vert); }
.etape p:last-child { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--gris); }

.duo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: stretch; }
.duo-outils { background: var(--vert); color: #fff; border-radius: 24px; padding: 34px 34px 30px; box-shadow: var(--ombre-panneau); }
.duo-outils .outils { grid-template-columns: repeat(4, 1fr); gap: 22px 16px; }
.duo-titre { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font: 600 22px/1.2 var(--titre); }
.duo-titre::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--jaune); }
.duo-outils .duo-titre { color: var(--jaune); }
.engagements { display: flex; flex-direction: column; background: var(--carte); border-radius: 24px; padding: 34px; box-shadow: var(--ombre-carte); }
.engagements .duo-titre { color: var(--vert); }
.engagements-liste { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.engagement { display: flex; flex-direction: column; padding: 22px 20px; border-radius: 16px; background: var(--creme); }
.engagement::before { content: ''; width: 26px; height: 26px; background: url(assets/icones/guillemet-jaune.svg) center / contain no-repeat; }
.engagement > p.engagement-texte { margin-top: 12px; }
.engagement-texte { margin: 12px 0 18px; font-size: 14.5px; line-height: 1.55; }
.engagement-nom { margin-top: auto; display: flex; align-items: center; gap: 10px; font: 600 15px/1.3 var(--titre); color: var(--vert); }
.engagement-nom::before { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--vert) var(--ico-j) center / 18px no-repeat; }

.bande-chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--vert); color: #fff; border-radius: 24px; padding: 38px 0;
  box-shadow: var(--ombre-panneau);
}
.chiffre { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; align-content: start; padding: 0 30px; border-left: 1px solid rgba(255, 255, 255, .16); }
.chiffre:first-child { border-left: 0; }
.chiffre::before { content: ''; grid-row: span 3; width: 48px; height: 48px; background: var(--ico-j) center / contain no-repeat; }
.chiffre-valeur { font: 700 34px/1 var(--titre); }
.chiffre-label { margin-top: 6px; font: 600 15px/1.3 var(--titre); color: var(--jaune); }
.chiffre-detail { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* Bandeau d'appel */
.appel {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 26px;
  padding: 30px 40px;
  background: var(--vert); color: #fff; border-radius: 24px;
  box-shadow: var(--ombre-panneau);
}
/* dernier enfant de son conteneur : même parade contre :last-child */
.conteneur > div.appel { margin-bottom: 80px; }
.appel::before {
  content: ''; flex: none; width: 74px; height: 74px; border-radius: 50%;
  background: var(--jaune) var(--ico-v) center / 36px no-repeat;
}
.appel::after {
  content: ''; order: 3; flex: none; width: 52px; height: 74px;
  background: url(assets/deco/fleche-bouclee.svg) center / contain no-repeat;
  transform: scaleX(-1) rotate(-20deg);
}
.appel-texte { flex: 1; }
.appel-texte p:first-child { font: 500 20px/1.3 var(--titre); color: rgba(255, 255, 255, .9); }
.appel-texte p:last-child { font: 700 clamp(22px, 2.4vw, 30px)/1.2 var(--titre); }
.appel .wp-block-button .wp-block-button__link { padding: 1em 1.8em; font-size: 16px; }

/* ==========================================================================
   Tarifs
   ========================================================================== */

/* Achat ou abonnement : les deux variantes sont dans la page, le script bascule la classe est-abo */
.tarifs:not(.est-abo) .mode-abo, .tarifs.est-abo .mode-achat { display: none !important; }
.bascule {
  display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px;
  background: var(--carte); box-shadow: inset 0 0 0 1.5px rgba(4, 42, 31, .15);
}
.bascule-choix {
  padding: .7em 1.4em; border: 0; border-radius: 999px; cursor: pointer; user-select: none;
  font: 600 15px/1 var(--titre); color: var(--vert); background: none;
  transition: background .25s, color .25s;
}
.bascule-choix.est-actif, .bascule-choix[aria-pressed="true"] { background: var(--vert); color: var(--jaune); }
.tarifs-tete { text-align: center; margin-bottom: 40px; }
.mode-explication { max-width: 640px; margin: 14px auto 0; text-align: center; font-size: 15.5px; color: var(--encre); }
.sur-mesure { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: .55em 1.1em; border-radius: 999px; background: rgba(245, 175, 35, .18); font: 600 14px/1.3 var(--titre); color: var(--vert); }
.sur-mesure::before { content: ''; flex: none; width: 18px; height: 18px; background: url(assets/icones/plume-vert.svg) center / contain no-repeat; }

/* Offre de lancement */
.offre-lancement {
  display: flex; align-items: center; gap: 22px;
  margin-bottom: 34px; padding: 22px 26px;
  border-radius: 22px; background: var(--vert); color: #fff;
  box-shadow: var(--ombre-panneau);
}
.offre-lancement::before {
  content: ''; flex: none; width: 60px; height: 60px; border-radius: 50%;
  background: var(--jaune) url(assets/icones/etoile-vert.svg) center / 30px no-repeat;
}
.offre-lancement-texte { flex: 1; font-size: 14.5px; color: rgba(255, 255, 255, .85); }
.offre-lancement-titre { margin-bottom: 4px; font: 700 19px/1.3 var(--titre); color: var(--jaune); }
.offre-lancement-places { flex: none; padding: .55em 1em; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 600 14px/1 var(--titre); white-space: nowrap; }
.offre-lancement-places strong { color: var(--jaune); font-size: 17px; }

/* Cartes formules : le prix d'abord, le détail au survol */
.formules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.formule {
  position: relative; overflow: hidden; min-height: 380px;
  display: flex; flex-direction: column;
  padding: 32px 26px 26px; border-radius: 22px;
  background: var(--carte); box-shadow: var(--ombre-carte);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.formule::before {
  content: ''; flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: var(--jaune) var(--ico-v) center / 26px no-repeat;
}
.formule-vedette { box-shadow: inset 0 0 0 2px var(--jaune), var(--ombre-carte); }
.formule-ruban {
  position: absolute; top: 18px; right: 18px;
  padding: .5em 1em; border-radius: 999px;
  background: var(--jaune); color: var(--vert); font: 600 12.5px/1 var(--titre); white-space: nowrap;
}
.formule > h3.wp-block-heading { margin-top: 20px; }
.formule h3 { font: 700 24px/1.2 var(--titre); color: var(--vert); }
.formule-sous { margin-top: 4px; font-size: 15px; color: var(--gris); }
.formule-prix { margin-top: 24px; font: 800 42px/1 var(--titre); letter-spacing: -.02em; color: var(--vert); }
.formule-note { margin-top: 10px; font: 500 14px/1.4 var(--texte); color: var(--gris); }
.formule-indice { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--titre); color: var(--jaune); }
.formule-indice::after { content: ''; width: 18px; height: 18px; background: url(assets/icones/fleche-jaune.svg) center / contain no-repeat; }

.formule-voile {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 26px; background: var(--vert); color: #fff;
  opacity: 0; transition: opacity .45s;
}
.formule-voile > * { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.formule-voile > :nth-child(2) { transition-delay: 70ms; }
.formule-voile > :nth-child(3) { transition-delay: 140ms; }
.formule-voile-titre { font: 600 18px/1.2 var(--titre); color: var(--jaune); margin-bottom: 16px; }
.formule-liste { display: grid; gap: 9px; margin-bottom: 22px; font-size: 14.5px; }
.formule-liste li { display: flex; gap: 10px; align-items: flex-start; }
.formule-liste li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 1px; background: url(assets/icones/coche-jaune.svg) center / contain no-repeat; }
.offre:not(.offre-sombre) .formule-liste li::before { background-image: url(assets/icones/coche-vert.svg); }
.offre .formule-liste { margin: 0; }
.formule-voile .wp-block-buttons, .formule-voile .wp-block-button, .formule-voile .wp-block-button__link { width: 100%; }
.formule-voile .wp-block-button .wp-block-button__link { border-radius: 10px; }

.formule:hover, .formule:focus-within { transform: translateY(-6px); box-shadow: var(--ombre); }
.formule:hover .formule-voile, .formule:focus-within .formule-voile { opacity: 1; }
.formule:hover .formule-voile > *, .formule:focus-within .formule-voile > * { opacity: 1; transform: none; }

@media (hover: none) {
  .formule { overflow: visible; }
  .formule-voile { position: static; opacity: 1; margin: 22px -26px -26px; border-radius: 0 0 22px 22px; }
  .formule > div.formule-voile { margin-bottom: -26px; } /* dernier enfant : parade contre :last-child */
  .formule-voile > * { opacity: 1; transform: none; }
  .formule-indice { display: none; }
}

/* Simulateur de devis (shortcode [vero_simulateur]) */
.simulateur { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: start; }
.simulateur > *, .simu-groupe { min-width: 0; } /* un fieldset garde sinon la largeur de son contenu */
.simu-options { display: grid; gap: 18px; }
.simu-groupe {
  margin: 0; padding: 24px 26px; border: 0; border-radius: 20px;
  background: var(--carte); box-shadow: var(--ombre-carte);
}
.simu-groupe legend { float: left; width: 100%; margin-bottom: 16px; padding: 0; font: 600 18px/1.2 var(--titre); color: var(--vert); }
.simu-groupe legend + * { clear: both; }
.simu-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.simu-ligne {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 16px; border-radius: 12px; background: var(--creme);
  font-size: 15px; cursor: pointer;
}
.simu-ligne[hidden] { display: none; }
.simu-ligne + .simu-ligne { margin-top: 8px; }
.simu-ligne > span:first-child { display: flex; align-items: center; gap: 12px; }
.simu-ligne > span:first-child, .simu-ligne > span:first-child > span { min-width: 0; }
.simu-ligne input[type="checkbox"], .simu-ligne input[type="radio"] { width: 19px; height: 19px; margin: 0; accent-color: var(--vert); flex: none; }
.simu-ligne small { display: block; font-size: 13px; color: var(--gris); }
.simu-prix { flex: none; font: 600 15px/1 var(--titre); color: var(--vert); white-space: nowrap; }
.simu-ligne[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.simu-sous { margin: 8px 0 0 31px; }
.simu-ligne-lancement { background: rgba(245, 175, 35, .2); }

/* Bulles d'aide sur les libellés */
.info { position: relative; }
.info::after {
  content: 'i'; display: inline-grid; place-items: center; margin-left: 7px; vertical-align: 1px;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(4, 42, 31, .1); color: var(--vert); font: 700 11px/1 var(--titre);
}
.bulle {
  position: absolute; left: -6px; bottom: calc(100% + 12px); z-index: 30;
  width: max-content; max-width: 290px; padding: 11px 14px; border-radius: 12px;
  background: var(--vert); color: #fff; font: 400 13.5px/1.5 var(--texte);
  box-shadow: 0 14px 30px -10px rgba(4, 42, 31, .5);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none;
}
.bulle::after { content: ''; position: absolute; left: 22px; top: 100%; border: 7px solid transparent; border-top-color: var(--vert); }
.info:hover .bulle, .info:focus .bulle { opacity: 1; visibility: visible; transform: none; }
.info:focus { outline: none; }
.info:focus-visible::after { box-shadow: 0 0 0 2px var(--jaune); }
@media (hover: none) {
  .info { display: inline; }
  .info::after { display: none; }
  .bulle { position: static; display: block; width: auto; max-width: none; margin-top: 3px; padding: 0; background: none; color: var(--gris); font-size: 13px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .bulle::after { display: none; }
}

.compteur { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(4, 42, 31, .15); }
.compteur button {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--vert); color: var(--jaune); font: 700 18px/1 var(--titre);
}
.compteur output { min-width: 34px; text-align: center; font: 700 17px/1 var(--titre); color: var(--vert); }

.simu-recap {
  position: sticky; top: 24px;
  padding: 30px 28px; border-radius: 24px;
  background: var(--vert); color: #fff;
  box-shadow: var(--ombre-panneau);
}
.simu-recap .bascule { background: rgba(255, 255, 255, .08); box-shadow: none; margin: 14px 0 22px; }
.simu-recap .bascule-choix { color: #fff; }
.simu-recap .bascule-choix[aria-pressed="true"] { background: var(--jaune); color: var(--vert); }
.simu-titre { font: 600 22px/1.2 var(--titre); color: var(--jaune); }
.simu-lignes { display: grid; gap: 9px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 14.5px; }
.simu-lignes li { display: flex; justify-content: space-between; gap: 14px; }
.simu-lignes li[hidden] { display: none; }
.simu-lignes b { font: 600 14.5px/1.4 var(--titre); white-space: nowrap; }
.simu-total { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.simu-total-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.simu-total-ligne span { font: 600 16px/1.3 var(--titre); }
.simu-total-ligne strong { font: 800 34px/1 var(--titre); color: var(--jaune); white-space: nowrap; }
.simu-detail { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.simu-detail li { display: flex; justify-content: space-between; gap: 12px; }
.simu-detail li[hidden] { display: none; }
.simu-detail b { white-space: nowrap; }
.simu-mention { margin: 16px 0 18px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   FAQ et contact
   ========================================================================== */

.faq-contact { display: grid; grid-template-columns: 1fr 1.08fr; gap: 34px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq .wp-block-details { margin: 0; background: var(--carte); border-radius: 14px; box-shadow: var(--ombre-carte); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font: 600 16px/1.35 var(--titre); color: var(--vert);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 22px; height: 22px; background: currentColor; transition: transform .2s;
  -webkit-mask: url(assets/icones/chevron-noir.svg) center / contain no-repeat;
          mask: url(assets/icones/chevron-noir.svg) center / contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; margin-top: -6px; font-size: 14.5px; line-height: 1.6; color: var(--encre); }

.contact-bloc { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--carte); border-radius: 22px; box-shadow: var(--ombre-carte); overflow: hidden; }
.contact-infos { background: var(--vert); color: #fff; padding: 30px 28px; }
.contact-infos .panneau-titre { margin-bottom: 22px; }
.contact-infos .coordonnees { gap: 18px; }
.contact-infos .coordonnees li { white-space: normal; align-items: flex-start; font-size: 14.5px; display: grid; grid-template-columns: 30px 1fr; gap: 0 14px; }
.contact-infos .coordonnees li::before { grid-row: span 2; }
.contact-infos .coordonnees a { white-space: nowrap; }
.contact-infos .coordonnees strong { display: block; font: 600 13px/1.3 var(--titre); color: rgba(255, 255, 255, .7); }

/* Formulaires Contact Form 7 */
.formulaire-bloc { padding: 28px; }
.wpcf7-form { display: grid; gap: 14px; align-content: start; }
.wpcf7 .champ { position: relative; display: block; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 .champ input, .wpcf7 .champ textarea {
  display: block; width: 100%; padding: 14px 44px 14px 16px;
  font: 400 15px/1.4 var(--texte); color: var(--encre);
  background: #fff; border: 1px solid rgba(4, 42, 31, .16); border-radius: 10px;
}
/* margin-bottom : l'espace sous la ligne de base qu'a le textarea en ligne de la maquette */
.wpcf7 .champ textarea { min-height: 130px; margin-bottom: 8px; resize: vertical; }
.wpcf7 .champ input:focus, .wpcf7 .champ textarea:focus { outline: 2px solid var(--jaune); border-color: transparent; }
.wpcf7 .champ::after {
  content: ''; position: absolute; right: 14px; top: 14px; width: 20px; height: 20px; opacity: .55; pointer-events: none;
  background: var(--ico-v) center / contain no-repeat;
}
.wpcf7-submit { width: 100%; padding: 1em; border-radius: 10px; cursor: pointer; background: var(--jaune); color: var(--vert); }
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #B3261E; }
.wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--jaune); font-size: 14px; }
.simu-recap .wpcf7 form .wpcf7-response-output { color: #fff; }
.simu-estimation, .wpcf7-form-control-wrap[data-name="estimation"] { display: none !important; }
.simu-demande .champ input { padding: 12px 40px 12px 14px; }

.mention-formulaire { font-size: 12.5px; line-height: 1.5; color: var(--gris); }
.mention-formulaire a { color: var(--vert); text-decoration: underline; }
.mention-claire { color: rgba(255, 255, 255, .7); }
.mention-claire a { color: var(--jaune); }

/* ==========================================================================
   Pages légales
   ========================================================================== */

.hero-legal { position: relative; z-index: 2; padding: 30px 0 10px; }
.titre-legal { font-size: clamp(42px, 6vw, 84px); }
.hero-legal .accroche { margin-top: 22px; }
.texte-legal {
  position: relative; z-index: 2;
  max-width: 900px; padding: 46px 54px 50px;
  background: var(--carte); border-radius: 24px; box-shadow: var(--ombre-carte);
  font-size: 16px; line-height: 1.7;
}
.texte-legal h2 { margin: 36px 0 12px; font: 700 23px/1.25 var(--titre); color: var(--vert); }
.texte-legal h2:first-child, .legal-version + h2 { margin-top: 0; }
.texte-legal h3 { margin: 22px 0 6px; font: 600 17px/1.3 var(--titre); color: var(--vert); }
.texte-legal p + p, .texte-legal p + ul, .texte-legal ul + p { margin-top: 12px; }
.texte-legal ul { display: grid; gap: 6px; }
.texte-legal li { position: relative; padding-left: 18px; }
.texte-legal li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--jaune); }
.texte-legal a { color: var(--vert); text-decoration: underline; text-decoration-color: var(--jaune); text-underline-offset: 3px; }
.legal-version { margin-bottom: 26px; font: 600 14px/1 var(--titre); color: var(--gris); }

/* ==========================================================================
   Page introuvable
   ========================================================================== */

.page-404 { position: relative; z-index: 2; padding: 60px 0 100px; }
.page-404 .hero-intro { margin: 22px 0 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .outils { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tuile { max-width: 92px; }
  .grille-projets { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .pied-grille > :nth-child(3) { border-left: 0; padding-left: 0; }

  .chiffres, .bande-chiffres { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .chiffres li:nth-child(3), .chiffre:nth-child(3) { border-left: 0; }
  .grille-vignettes { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .etude { grid-template-columns: 1fr; }
  .etude-visuels { max-width: 620px; }
  .carte-service { grid-column: span 6; }
  .methode { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .etape::after { display: none; }
  .duo, .faq-contact, .offres { grid-template-columns: 1fr; }
  .formules { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .simulateur { grid-template-columns: 1fr; }
  .simu-recap { position: static; }
}

@media (max-width: 820px) {
  .entete { flex-direction: column; gap: 18px; }
  .wp-block-navigation.menu, .wp-block-navigation.menu .wp-block-navigation__container { width: 100%; }
  .wp-block-navigation.menu .wp-block-navigation-item { flex: 1; }
  .wp-block-navigation.menu .wp-block-navigation-item__content { text-align: center; padding: 12px 4px; font-size: 10.5px; letter-spacing: .04em; }

  .hero { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-visuel { height: min(118vw, 600px); min-height: 0; margin-top: 10px; }
  .hero-visuel::before { width: min(84vw, 440px); height: min(84vw, 440px); top: 14%; right: auto; left: 50%; transform: translateX(-46%); }
  .hero-photo {
    height: calc(100% + 30px); top: 0; right: auto; left: 50%; transform: translateX(-44%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .hero-visuel::after { top: 46%; left: 0; width: 64px; height: 90px; }
  .hero-photo::before { left: 16%; top: 4%; width: 44px; height: 44px; }

  .panneau { grid-template-columns: 1fr; padding: 32px 0; }
  .panneau > * { padding: 0 24px; }
  .panneau-outils { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 28px; padding-top: 28px !important; }
  .contenu::after { top: 760px; width: 230px; height: 233px; right: -130px; }
  body:not(.vw-page-accueil) .contenu::after { display: none; }

  .titre-section { flex-wrap: wrap; gap: 14px 16px; }
  .titre-section::after { display: none; }

  .hero-page, .hero-services { grid-template-columns: 1fr; padding-bottom: 40px; }
  .profil-services { justify-self: start; }
  .filtres { gap: 8px; }
  .filtre { padding: .65em 1em; font-size: 13.5px; }
  .contact-bloc { grid-template-columns: 1fr; }
  .engagements-liste { grid-template-columns: 1fr; }
  .appel { flex-wrap: wrap; padding: 28px; }
  .appel::after { display: none; }
  .methode { grid-template-columns: repeat(2, 1fr); }
  .carte-profil-haute { max-width: 420px; }
  .offre-lancement { flex-wrap: wrap; }
  .offre-lancement-texte { flex-basis: calc(100% - 82px); }
}

@media (max-width: 560px) {
  .outils { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; }
  .outil { width: calc((100% - 28px) / 3); font-size: 13px; }
  .grille-projets { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .pied-grille > * { border-left: 0; padding: 0; }
  .pied-legal { flex-direction: column; text-align: center; padding-inline: 10px; }
  .pied-liens { justify-content: center; }
  .texte-legal { padding: 30px 22px 34px; font-size: 15px; }
  .wp-site-blocks::after { width: 220px; height: 233px; top: -110px; left: -110px; }

  .chiffres, .bande-chiffres { grid-template-columns: 1fr; }
  .chiffres li, .chiffre { border-left: 0; }
  .bandeau-infos { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .bandeau-infos li:nth-child(3) { border-left: 0; }
  .grille-vignettes, .formules { grid-template-columns: 1fr; }
  .titre-section h2 { white-space: normal; }
  .carte-service { grid-column: span 12; }
  .profil-services { flex-direction: column; align-items: flex-start; gap: 18px; }
  .profil-services::after { display: none; }
  .etude { padding: 32px 22px; }
  .etude-visuels { gap: 18px; }
  .carte-profil { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .vignette, .vignette-image img, .vignette-voile, .vignette-voile > *, .formule, .formule-voile, .formule-voile > * { transition: none; animation: none; }
  .js .vignette:not(.revele) { opacity: 1; transform: none; }
}

/* Curseur au monogramme, seulement à la souris ; liens, boutons et champs gardent leurs curseurs habituels */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url(assets/deco/curseur.png) 16 16, auto;
    cursor: -webkit-image-set(url(assets/deco/curseur.png) 1x, url(assets/deco/curseur@2x.png) 2x) 16 16, auto;
    cursor: image-set(url(assets/deco/curseur.png) 1x, url(assets/deco/curseur@2x.png) 2x) 16 16, auto;
  }
  a, button, summary, label, .filtre, .bascule-choix { cursor: pointer; }
  input, textarea { cursor: text; }
  input[type="checkbox"], input[type="radio"] { cursor: pointer; }
}
