/*
Theme Name: Les racines de l'aube
Theme URI: https://lesracinesdelaube.fr
Author: Les racines de l'aube
Description: Thème bloc sur mesure du paysagiste Les racines de l'aube (Cagnes-sur-Mer), construit depuis la maquette validée. Tout le contenu se modifie dans l'éditeur de blocs.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: les-racines-de-l-aube
Tags: block-theme, full-site-editing, one-column
*/

/* =========================================================
   Les racines de l'aube — feuille du thème
   Registre relevé sur la référence : une famille sans-serif,
   un seul vert, blanc froid, photos arrondies, titres centrés.
   La mise en page vit ici ; les blocs portent les classes
   (className) et restent en layout « default ».
   ========================================================= */

:root {
  --vert: #2a362b;          /* titres */
  --vert-bouton: #384937;   /* boutons */
  --blanc: #ffffff;
  --texte: #4f4f4f;
  --gris: #939393;
  --trait: #e5e5e5;
  --ligne: #8f9190;

  --police: "Plus Jakarta Sans", system-ui, sans-serif;
  --rayon: 12px;
  --largeur: 1280px;

  /* pictogrammes dessinés en CSS (masques) */
  --marque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='19'/%3E%3Cpath d='M8 20.5h24'/%3E%3Cpath d='M13.5 20.5a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M20 20.5v11M20 24.5l-4 4M20 24.5l4 4M20 27.5l-2.2 3.2M20 27.5l2.2 3.2'/%3E%3Cpath d='M20 9.5v2.5M12.3 12.8l1.7 1.7M27.7 12.8l-1.7 1.7'/%3E%3C/svg%3E");
  --telephone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
  --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='1.4'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; } /* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte */
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0),
   filet de sécurité ici À 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; }

.enveloppe {
  width: min(var(--largeur), calc(100% - 64px));
  margin-inline: auto;
}

/* Images « cadre » : la classe est sur la figure, l'image la remplit */
.wp-block-image.hero-photo img,
.wp-block-image.carte-photo img,
.wp-block-image.duo-grande img,
.wp-block-image.duo-petite img,
.wp-block-image.projet-photo img,
.wp-block-image.projet-apercu img,
.wp-block-image.galerie-photo img,
.wp-block-image.prestation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Typographie commune ---------- */

.titre-section {
  color: var(--vert);
  font-size: clamp(32px, 3.75vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  hyphens: none;
}

.titre-etroit { max-width: 800px; margin-inline: auto; }

/* ---------- Boutons (core/button : la classe est sur le conteneur) ---------- */

.wp-block-button.bouton { display: inline-block; }

.wp-block-button.bouton .wp-block-button__link,
.wpcf7 .bouton-formulaire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 28px;
  border: 0;
  border-radius: 5px;
  background: var(--vert-bouton);
  color: #fff;
  font: 600 13px/1 var(--police);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.wp-block-button.bouton .wp-block-button__link:hover,
.wpcf7 .bouton-formulaire:hover { background: var(--vert); }

.wp-block-button.bouton-clair .wp-block-button__link { background: #fff; color: var(--vert); }
.wp-block-button.bouton-clair .wp-block-button__link:hover { background: #eef0ec; }

.wp-block-button.lien-clair .wp-block-button__link {
  display: block;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #fff;
  font: 600 13px/1.7 var(--police);
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.wp-block-button.lien-clair .wp-block-button__link:hover { border-color: #fff; background: none; }

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

.entete {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
}
.admin-bar .entete { top: 32px; }

.entete-barre {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

/* Logo : la marque est dessinée en CSS, le nom et le sous-titre sont éditables */
.logo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 36px;
  padding-left: 48px;
  line-height: 1.25;
}
.logo::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 36px; height: 36px;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: var(--marque) center / contain no-repeat;
  mask: var(--marque) center / contain no-repeat;
}
.logo-nom { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.logo-nom a::after { content: ""; position: absolute; inset: 0; } /* tout le logo est cliquable */
.logo-sous { font-size: 10.5px; font-weight: 400; opacity: .72; letter-spacing: 0.02em; }

/* Menu (core/navigation) — « nav » : WordPress recopie la classe « menu » sur la liste intérieure */
nav.wp-block-navigation.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.wp-block-navigation.menu .wp-block-navigation__container { gap: 46px; }
.wp-block-navigation.menu .wp-block-navigation-item__content {
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: .92;
  transition: opacity .2s;
}
.wp-block-navigation.menu .wp-block-navigation-item__content:hover { opacity: 1; }
.wp-block-navigation.menu .current-menu-item > .wp-block-navigation-item__content {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
/* panneau mobile : le CSS du bloc est imprimé après cette feuille, d'où le nav qualifié et !important */
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--vert) !important;
  color: #fff !important;
}
/* panneau ouvert, comme la maquette : liens au milieu de l'écran, logo visible, croix à la place du bouton */
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-dialog { height: 100%; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  height: 100%;
  padding-top: 0;
  flex-direction: column;
  justify-content: center;
}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-close {
  top: 20px; right: 20px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
}
.entete .logo { z-index: 100001; }
body:has(.is-menu-open) .entete { color: #fff; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 26px; justify-content: center; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 20px; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open,
.wp-block-navigation.menu .wp-block-navigation__responsive-container-close { color: #fff; }

/* Téléphone */
.entete-tel {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.02em;
}
.entete-tel::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--telephone) center / contain no-repeat;
  mask: var(--telephone) center / contain no-repeat;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 780px;
  min-height: 600px;
  overflow: hidden;
  background: #1c251d;
  color: #fff;
}

.hero-photos { position: absolute; inset: 0; }
.hero-photos::after {           /* le voile : une couche décorative, pas un bloc */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 12, .7) 0%, rgba(12, 18, 12, 0) 30%),
    linear-gradient(90deg, rgba(12, 18, 12, .6) 0%, rgba(12, 18, 12, .12) 62%),
    linear-gradient(0deg, rgba(12, 18, 12, .5) 0%, rgba(12, 18, 12, 0) 42%),
    rgba(12, 18, 12, .22);
}
.wp-block-image.hero-photo {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.wp-block-image.hero-photo.est-active,
.wp-block-image.hero-photo:only-child { opacity: 1; transform: scale(1); }

.hero-contenu {
  position: absolute;
  left: 0; right: 0;
  bottom: 114px;
}

.hero-titre {
  font-size: clamp(42px, 7vw, 100px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  hyphens: none;
}
.hero-titre strong { font-weight: 600; }

.hero-texte {
  max-width: 600px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .84);
}

.wp-block-buttons.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 34px;
  margin-top: 34px;
}

/* Compteur du diaporama : « 01 … 03 » + piste ; le script bascule diapo-1/2/3 et --i */
.hero-compteur {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 330px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, .88);
}
.hero-compteur::before { content: "01"; }
.hero.diapo-2 .hero-compteur::before { content: "02"; }
.hero.diapo-3 .hero-compteur::before { content: "03"; }
.hero-compteur::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, .28);
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-size: 33.334% 100%;
  background-position: calc(var(--i, 0) * 50%) 0;
  transition: background-position .9s cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Bienvenue + services ---------- */

.bienvenue { padding-top: 142px; }

.chapeau {
  max-width: 660px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  color: #525152;
}

.grille-services {
  display: grid;
  grid-template-columns: 625fr 297fr 300fr;
  gap: 30px;
  height: 740px;
  margin-top: 92px;
}

.carte-service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--rayon);
  color: #fff;
}
.wp-block-image.carte-photo {
  position: absolute; inset: 0;
  z-index: -2;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.carte-service:hover .carte-photo { transform: scale(1.04); }
.carte-service::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 16, 10, .18) 0%, rgba(10, 16, 10, 0) 30%, rgba(10, 16, 10, 0) 48%, rgba(10, 16, 10, .72) 100%);
}

.etiquettes {
  position: absolute;
  top: 38px; left: 38px;
  display: flex; flex-wrap: wrap;
  gap: 10px;
  max-width: 380px;
}
.etiquettes li, .pilules li {
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.pilules { display: flex; flex-wrap: wrap; gap: 10px; }
.pilules-sombres li { border-color: var(--ligne); color: var(--texte); }

/* Pastille flèche : un paragraphe-lien, la flèche est dessinée en CSS */
.carte-fleche {
  position: absolute;
  top: 34px; right: 34px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--vert);
  transition: background .25s, transform .25s;
}
.carte-fleche::before {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: var(--fleche) center / contain no-repeat;
  mask: var(--fleche) center / contain no-repeat;
  pointer-events: none;
}
.carte-fleche a { position: absolute; inset: 0; border-radius: 50%; font-size: 0; color: transparent; }
.carte-fleche:hover { background: #fff; transform: rotate(45deg); }

.carte-corps { position: absolute; left: 24px; right: 24px; bottom: 56px; }
.carte-titre {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.carte-corps p { max-width: 190px; margin-top: 12px; font-size: 13px; line-height: 1.6; opacity: .9; }

.carte-large .carte-corps { left: 40px; right: 40px; bottom: 40px; }
.carte-large .carte-titre { font-size: 72px; font-weight: 400; line-height: .98; letter-spacing: -0.03em; }
.carte-large .carte-corps p { max-width: 500px; margin-top: 20px; font-size: 15px; }

/* ---------- Étapes ---------- */

.etapes { padding-top: 205px; }

.grille-etapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.etape-num {
  display: block;
  font-size: 164px;
  font-weight: 200;
  line-height: .78;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #d6d6d6;
  user-select: none;
}
.etape-titre {
  position: relative;
  margin-top: -14px;
  color: var(--vert);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.etape .etape-texte {
  max-width: 360px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--gris);
}

/* ---------- Duo photos + texte ---------- */

.duo { padding-top: 195px; }

.duo-grille {
  display: grid;
  grid-template-columns: 572px 1fr;
  column-gap: 188px;
  align-items: center;
}

.duo-photos { position: relative; aspect-ratio: 572 / 604; }
.wp-block-image.duo-grande, .wp-block-image.duo-petite { position: absolute; overflow: hidden; border-radius: var(--rayon); }
.wp-block-image.duo-grande { left: 0; top: 0; width: 89.5%; height: 100%; }
.wp-block-image.duo-petite { left: 51.6%; top: 36.9%; width: 48.4%; height: 53.5%; }

.duo-texte .titre-section { text-align: left; max-width: 520px; }
.duo-texte p { max-width: 520px; margin-top: 26px; font-size: 16px; line-height: 1.75; color: #4d4d4d; }
.duo-texte .wp-block-buttons { margin-top: 30px; }

/* ---------- Réalisations ---------- */

.realisations { padding-top: 175px; }

.projets { display: grid; margin-top: 82px; }
.projet {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.projet.est-actif { opacity: 1; visibility: visible; transition: opacity .7s ease; }

.projet-visuels {
  display: grid;
  grid-template-columns: 1002fr 233fr;
  grid-template-rows: 482px;
  gap: 31px;
}
.wp-block-image.projet-photo { height: 100%; overflow: hidden; border-radius: var(--rayon); }

.projet-suivant { position: relative; overflow: hidden; border-radius: var(--rayon); }
.wp-block-image.projet-apercu { height: 100%; }
.wp-block-image.projet-apercu img { filter: brightness(.72); }
.bouton-suivant {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 500 11px/1 var(--police);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: background .25s, color .25s;
}
.bouton-suivant:hover { background: #fff; color: var(--vert); }

.projet-legende {
  display: grid;
  grid-template-columns: 592px 1fr;
  margin-top: 40px;
}
.legende-infos { display: grid; grid-template-columns: 218px auto; }
.legende-etiquette {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #585b58;
}
.legende-valeur {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #343935;
}
.projet-legende .legende-texte { max-width: 420px; font-size: 13px; line-height: 1.75; color: #6a6a6a; }

/* ---------- Appel ---------- */

.appel { padding-top: 205px; text-align: center; }
.appel .wp-block-buttons { justify-content: center; margin-top: 36px; }

/* ---------- Formulaire au-dessus du pied de page (Accueil, Projets) ---------- */

.bloc-formulaire-pied { padding-top: 196px; }
.pied-rappel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.pied-rappel-texte p { font-size: 13px; line-height: 1.6; color: #4a4d4a; }
.pied-rappel-texte .pied-titre { font-size: 14px; font-weight: 600; color: #2f3330; }
.rappel-note { margin-top: 12px; font-size: 10.5px; color: #5a5a5a; }

/* ---------- Pied de page ---------- */

.pied { padding-top: 196px; padding-bottom: 56px; }
body:has(.bloc-formulaire-pied) .pied { padding-top: 52px; }

.pied-bas {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr .7fr;
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--ligne);
  font-size: 13px;
  line-height: 1.85;
}
.logo-sombre { color: var(--vert); justify-self: start; align-self: start; }
.pied-etiquette {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gris);
}
.pied-bas a:hover { color: var(--vert); }
.pied-copyright { margin-top: 56px; font-size: 12px; color: var(--gris); }

/* =========================================================
   Pages intérieures — mêmes briques que l'accueil
   ========================================================= */

/* Hero de page : le hero de l'accueil, plus court, sans diaporama */
.hero-page { height: 560px; min-height: 0; }
.hero-page .hero-contenu { bottom: 92px; }
.hero-page .hero-titre { font-size: clamp(40px, 6vw, 84px); }
.hero-page .hero-texte { max-width: 560px; }
.fil { margin-bottom: 30px; }
.fil a { transition: opacity .2s; }
.fil a:hover { opacity: .75; }

/* Introduction centrée */
.intro { padding-top: 142px; }

/* Titre de taille intermédiaire, aligné à gauche */
.titre-moyen { font-size: clamp(30px, 3vw, 44px); text-align: left; }

/* Services : rangées photo + texte, en alternance */
.prestations { display: grid; gap: 170px; padding-top: 120px; }
.prestation {
  display: grid;
  grid-template-columns: 620px 1fr;
  column-gap: 120px;
  align-items: center;
}
.wp-block-image.prestation-photo { height: 560px; overflow: hidden; border-radius: var(--rayon); }
.prestation:nth-child(even) { grid-template-columns: 1fr 620px; }
.prestation:nth-child(even) .prestation-photo { order: 2; }
.prestation .etape-num { font-size: 140px; text-align: left; }
.prestation .titre-moyen { position: relative; margin-top: -16px; }
.prestation-texte .prestation-desc { max-width: 520px; margin-top: 22px; font-size: 16px; line-height: 1.75; color: #4d4d4d; }
.prestation-texte .pilules { max-width: 520px; margin-top: 26px; }
.prestation-texte .wp-block-buttons { margin-top: 34px; }

/* Duo inversé : photos à droite */
.duo-inverse .duo-grille { grid-template-columns: 1fr 572px; }
.duo-inverse .duo-photos { order: 2; }
.duo-inverse .wp-block-image.duo-grande { left: auto; right: 0; }
.duo-inverse .wp-block-image.duo-petite { left: 0; }

/* Étapes précédées d'un titre (qualifié : WordPress annule la marge basse du dernier bloc d'un groupe) */
.etapes .etapes-titre { margin-bottom: 100px; }

/* Zone d'intervention */
.zone { padding-top: 190px; }
.zone .pilules { justify-content: center; max-width: 920px; margin: 44px auto 0; }

/* Projets : galerie asymétrique */
.galerie { display: grid; gap: 96px; margin-top: 92px; }
.galerie-rangee { display: grid; grid-template-columns: 7fr 5fr; gap: 30px; }
.galerie-rangee.inverse { grid-template-columns: 5fr 7fr; }
.wp-block-image.galerie-photo { height: 540px; overflow: hidden; border-radius: var(--rayon); }
.galerie-legende { margin-top: 26px; }
.galerie-legende .legende-texte { max-width: 460px; margin-top: 14px; font-size: 13px; line-height: 1.75; color: #6a6a6a; }

/* Contact */
.contact { padding-top: 142px; }
.contact-grille {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: 110px;
  align-items: start;
}
.contact-infos { display: grid; gap: 34px; margin-top: 40px; }
.contact-etiquette {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gris);
}
.contact-valeur { margin-top: 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--vert); }
.contact-valeur a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-info > .pilules { margin-top: 12px; letter-spacing: -0.22px; } /* maquette : liste dans la valeur (marges fusionnées, espacement -0.01em de 22 px) */

/* Formulaires (Contact Form 7 : le gabarit du formulaire porte ces classes) */
.formulaire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  margin-top: 40px;
}
.champ { display: grid; gap: 8px; }
.champ-large { grid-column: 1 / -1; }
.champ-nom {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #585b58;
}
.champ .wpcf7-form-control-wrap { display: block; }
.champ input, .champ select, .champ textarea {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ligne);
  border-radius: 5px;
  background: #fff;
  color: var(--texte);
  font: 400 14px var(--police);
}
.champ select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a362b' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.champ textarea { height: 160px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--vert-bouton); outline-offset: 1px; }
.formulaire-pied {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 6px;
}
.formulaire-pied .rappel-note { max-width: 380px; margin: 0; }
.formulaire-pied .wpcf7-spinner { display: none; }

.formulaire.formulaire-compact {
  width: min(680px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 16px;
  margin-top: 0;
}
.formulaire-compact .champ input { height: 42px; font-size: 13px; }
.formulaire-compact .champ textarea { height: 110px; font-size: 13px; }
.champ textarea::placeholder { color: #8a8a8a; }

.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: #a3412e; }
.wpcf7 .champ .wpcf7-not-valid { border-color: #a3412e; }
.wpcf7 form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--ligne);
  border-radius: 5px;
  font-size: 13px;
  color: var(--texte);
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--vert-bouton); color: var(--vert); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #c79a3b; }
.bloc-formulaire-pied .wpcf7 { width: min(680px, 100%); }

/* Pages sans photo d'en-tête (articles, 404) : l'en-tête reprend sa place, en vert */
body:not(:has(.hero)) .entete { position: relative; top: auto; color: var(--vert); }
body:not(:has(.hero)) .wp-block-navigation.menu .wp-block-navigation__responsive-container-open { color: var(--vert); }
.page-simple { padding-top: 90px; }
.page-simple .wp-block-post-title {
  color: var(--vert);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.page-simple .wp-block-post-title a:hover { color: var(--vert-bouton); }
.page-simple .wp-block-post-template { display: grid; gap: 64px; }
.page-simple .wp-block-post-excerpt { margin-top: 14px; }
.page-simple .wp-block-post-content { margin-top: 32px; max-width: 760px; }
.page-simple .wp-block-post-content > * + * { margin-top: 1em; }
.page-404 { text-align: center; }
.page-404 .wp-block-buttons { justify-content: center; margin-top: 36px; }

/* Focus clavier visible */
:where(a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--vert-bouton); outline-offset: 3px; }

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

@media (max-width: 1240px) {
  .duo-grille { grid-template-columns: 1fr 1fr; column-gap: 72px; }
  .projet-legende { grid-template-columns: 1fr 1fr; gap: 24px; }
  .projet-legende .legende-infos { grid-template-columns: 1fr 1fr; }
  .grille-services { height: 640px; }
  .carte-large .carte-titre { font-size: 60px; }
  .prestation, .prestation:nth-child(even) { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .contact-grille { column-gap: 64px; }
  .duo-inverse .duo-grille { grid-template-columns: 1fr 1fr; column-gap: 72px; }
}

@media (max-width: 960px) {
  .entete-tel { display: none; }
  nav.wp-block-navigation.menu { position: static; transform: none; margin-left: auto; }
  /* le menu passe en panneau jusqu'à 960 px (le bloc ne le fait qu'en dessous de 600 px) */
  .wp-block-navigation.menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  /* bouton du menu : deux traits de 26 px dans une zone de 44 px, comme la maquette */
  .wp-block-navigation.menu .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0;
  }
  .wp-block-navigation.menu .wp-block-navigation__responsive-container-open svg { display: none; }
  .wp-block-navigation.menu .wp-block-navigation__responsive-container-open::before,
  .wp-block-navigation.menu .wp-block-navigation__responsive-container-open::after {
    content: ""; display: block; width: 26px; height: 1.5px; background: currentColor;
  }

  .hero { height: 720px; }
  .hero-contenu { bottom: 120px; }
  .hero-compteur { bottom: -64px; left: 0; right: auto; width: 200px; }

  .grille-services { grid-template-columns: 1fr 1fr; height: auto; }
  .carte-large { grid-column: 1 / -1; height: 560px; }
  .carte-service:not(.carte-large) { height: 440px; }

  .grille-etapes { grid-template-columns: 1fr; gap: 64px; }

  .duo-grille { grid-template-columns: 1fr; row-gap: 56px; }
  .duo-photos { width: min(572px, 100%); }

  .projet-visuels { grid-template-columns: 3fr 1fr; grid-template-rows: 380px; gap: 16px; }

  .pied-rappel { flex-direction: column; }
  .pied-bas { grid-template-columns: 1fr 1fr; }

  .hero.hero-page { height: 540px; }
  .prestations { gap: 120px; }
  .prestation, .prestation:nth-child(even) { grid-template-columns: 1fr; row-gap: 36px; }
  .prestation:nth-child(even) .prestation-photo { order: 0; }
  .wp-block-image.prestation-photo { height: 440px; }
  .duo-inverse .duo-grille { grid-template-columns: 1fr; }
  .duo-inverse .duo-photos { order: 0; }
  .galerie { gap: 64px; }
  .galerie-rangee, .galerie-rangee.inverse { grid-template-columns: 1fr; gap: 64px; }
  .wp-block-image.galerie-photo { height: 440px; }
  .contact-grille { grid-template-columns: 1fr; row-gap: 80px; }
}

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

@media (max-width: 640px) {
  .enveloppe { width: calc(100% - 40px); }
  .entete-barre { height: 84px; }

  .hero { height: 640px; min-height: 0; }
  .hero-contenu { bottom: 104px; }
  .hero-texte { font-size: 15px; }
  .wp-block-buttons.hero-actions { flex-wrap: wrap; gap: 20px 28px; }

  .bienvenue { padding-top: 88px; }
  .grille-services { grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
  .carte-large { height: 520px; }
  .carte-large .carte-titre { font-size: 44px; }
  .carte-large .carte-corps { left: 24px; right: 24px; bottom: 28px; }
  .carte-service:not(.carte-large) { height: 360px; }
  .carte-corps { bottom: 32px; }
  .etiquettes { top: 24px; left: 24px; max-width: 240px; gap: 8px; }
  .etiquettes li { padding: 6px 16px; }
  .carte-fleche { top: 22px; right: 22px; width: 48px; height: 48px; }

  .etapes, .duo, .realisations, .appel { padding-top: 110px; }
  .etape-num { font-size: 124px; }

  .projets { margin-top: 48px; }
  .projet-visuels { grid-template-columns: 1fr; grid-template-rows: 280px 120px; }
  .projet-legende { grid-template-columns: 1fr; }
  .bouton-suivant { width: 76px; height: 76px; }

  .bloc-formulaire-pied { padding-top: 110px; }
  .pied { padding-top: 110px; }
  .pied-bas { grid-template-columns: 1fr; gap: 28px; }
  .pied-bas > .logo-sombre { margin-bottom: 7px; } /* la maquette réservait la hauteur d'une ligne sous le logo */

  .hero.hero-page { height: 520px; }
  .hero-page .hero-contenu { bottom: 56px; }
  .fil { margin-bottom: 22px; }
  .fil li, .pilules li { padding: 6px 16px; }
  .intro, .contact { padding-top: 88px; }
  .zone { padding-top: 110px; }
  .etapes .etapes-titre { margin-bottom: 64px; }
  .prestations { gap: 96px; padding-top: 72px; }
  .wp-block-image.prestation-photo, .wp-block-image.galerie-photo { height: 300px; }
  .prestation .etape-num { font-size: 110px; }
  .galerie { margin-top: 56px; }
  .galerie-legende .legende-infos { grid-template-columns: 1fr 1fr; }
  .contact-valeur { font-size: 19px; }
  .formulaire, .formulaire.formulaire-compact { grid-template-columns: 1fr; }
  .formulaire-pied { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-image.hero-photo, .projet, .carte-photo { transition: none; }
}


/* =========================================================
   Carte de la zone d'intervention (page Contact)
   Le dessin est inséré par le code court [carte_zone]
   (assets/carte-zone.svg) ; les trois zones de la liste
   sont des groupes .zone-item.zone-06 / zone-mc / zone-83.
   ========================================================= */

.carte-zone { padding-top: 190px; }
.carte-zone-grille {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: 72px;
  align-items: center;
}
.carte-zone-intro { max-width: 400px; margin-top: 22px; font-size: 16px; line-height: 1.75; color: #4d4d4d; }
.carte-zone-liste { margin-top: 36px; border-top: 1px solid var(--trait); }
.zone-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--trait);
  outline: none;
  transition: opacity .3s;
}
.zone-item .zone-titre { color: var(--vert); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.7; }
.zone-item p { max-width: 400px; margin-top: 6px; font-size: 14px; line-height: 1.65; color: var(--gris); }
.carte-zone[class*="actif-"] .zone-item:not(.est-actif) { opacity: .45; }

.carte-svg { display: block; width: 100%; height: auto; overflow: hidden; font-family: var(--police); }
.carte-relief { border-radius: var(--rayon); }

/* Contours (version trait) */
.dep { fill: none; stroke: #b3b8b2; stroke-width: 1.1; stroke-linejoin: round; }
.dep-mc { fill: #fff; }

/* Contours (version relief) */
.carte-relief .dep { stroke: var(--cote, rgba(70, 85, 70, .5)); stroke-width: .9; }
.carte-relief .dep-mc { fill: none; }
.carte-ombrage { mix-blend-mode: multiply; opacity: .6; }
.carte-horszone { fill: var(--horszone, #eceee7); }

.carte-region { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; fill: #a9ada8; }
.carte-relief .carte-region { fill: #6f7d6e; }
.carte-relief .carte-mer-nom { fill: #6f8c8f; }

.liaison {
  fill: none;
  stroke: var(--vert-bouton);
  stroke-width: 1.2;
  stroke-dasharray: 5 6;
  opacity: .6;
  animation: liaison 1.6s linear infinite;
  transition: opacity .3s;
}
@keyframes liaison { to { stroke-dashoffset: -11; } }
/* lignes vers l'arrière-pays : un peu plus fines, mais assez soutenues pour rester visibles sur les terres */
.liaison-secondaire { stroke: var(--vert); stroke-width: 1; opacity: .62; }

.carte-lignes-points .liaison {
  stroke-dasharray: 0 7;
  stroke-linecap: round;
  stroke-width: 2.6;
  opacity: .6;
  animation: liaison-points 1.4s linear infinite;
}
.carte-lignes-points .liaison-secondaire { stroke-width: 2.2; opacity: .62; }
@keyframes liaison-points { to { stroke-dashoffset: -7; } }
.rappel-nom { stroke: #4d554e; stroke-width: .7; opacity: .7; transition: opacity .3s; }
.carte-zone.actif-06 .rappel-nom:not(.z-06),
.carte-zone.actif-mc .rappel-nom:not(.z-mc),
.carte-zone.actif-83 .rappel-nom:not(.z-83) { opacity: .1; }

.ville { transition: opacity .3s; }
.ville-anneau { fill: #fff; stroke: #aeb3ad; stroke-width: 1.1; transition: stroke .3s; }
.ville-point { fill: #6f7470; }
/* Seul le nom de Cagnes-sur-Mer garde un contour blanc */
.ville-centre text {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.ville text { font-size: 14.5px; fill: #555a56; }
.carte-relief .ville text { fill: #2f3530; }
.ville-secondaire text { font-size: 12.5px; fill: #7b807c; }
.carte-relief .ville-secondaire text { fill: #4d554e; }
.ville-secondaire .ville-anneau { stroke-width: 1; }
.carte-massif { font-size: 10px; letter-spacing: .22em; fill: #b9bdb7; }
.carte-relief .carte-massif { fill: #7d8a78; }

.centre-halo {
  fill: var(--vert-bouton);
  opacity: .1;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2.6s ease-out infinite;
}
@keyframes halo { 0% { transform: scale(.55); opacity: .25; } 100% { transform: scale(1.4); opacity: 0; } }
.centre-disque { fill: var(--vert-bouton); stroke: #fff; stroke-width: 2; }
.centre-point { fill: #fff; }
.ville-centre text { font-size: 16.5px; font-weight: 600; fill: var(--vert); }

/* Survol d'une zone dans la liste : ses villes restent, les autres s'effacent */
.carte-zone.actif-06 :is(.ville, .liaison):not(.z-06),
.carte-zone.actif-mc :is(.ville, .liaison):not(.z-mc),
.carte-zone.actif-83 :is(.ville, .liaison):not(.z-83) { opacity: .12; }
.carte-zone.actif-06 .z-06 .ville-anneau,
.carte-zone.actif-mc .z-mc .ville-anneau,
.carte-zone.actif-83 .z-83 .ville-anneau { stroke: var(--vert-bouton); stroke-width: 2; }

/* Masque « sous les noms » : copies des noms (mêmes tailles) qui effacent les lignes juste sous chaque nom */
.mn { font-size: 14.5px; }
.mn-sec { font-size: 12.5px; }
.mn-centre { font-size: 16.5px; font-weight: 600; }
.mn-region { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.mn-massif { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.mn-mob, .mn-mob-centre { display: none; }
.mn-mob { font-size: 27px; }
.mn-mob-centre { font-size: 31px; font-weight: 600; }

/* Noms pour téléphone : une sélection placée pour le petit écran, masquée sur ordinateur */
.noms-mobile { display: none; }
.noms-mobile text { font-size: 27px; fill: #2f3530; }
.carte-trait .noms-mobile text { fill: #555a56; }
.noms-mobile .nom-centre {
  font-size: 31px;
  font-weight: 600;
  fill: var(--vert);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 6px;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .liaison, .centre-halo { animation: none; }
}

@media (max-width: 960px) {
  .carte-zone-grille { grid-template-columns: 1fr; row-gap: 56px; }
}

@media (max-width: 640px) {
  .carte-zone { padding-top: 110px; }
  .ville text, .ville-centre text, .rappel-nom { display: none; }
  .noms-mobile { display: inline; }
  .carte-region { font-size: 16px; }
  .carte-massif { font-size: 14px; }
  .mn, .mn-sec, .mn-centre { display: none; }
  .mn-mob, .mn-mob-centre { display: inline; }
  .mn-region { font-size: 16px; }
  .mn-massif { font-size: 14px; }
}
