/*
Theme Name: QuickInterService
Theme URI: https://quickinterservice.com
Author: QuickInterService
Description: Thème bloc sur mesure pour QuickInterService — prêts en ligne en Italie.
Version: 1.1.0
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: quickinterservice
Tags: block-theme, full-site-editing, business
*/

/* Registre relevé sur la référence : serif de titrage + sans-serif de texte,
   un seul accent (vert pétrole), fonds clairs froids bleu-menthe,
   bandes pleine largeur, angles quasi droits, boutons en pilule.
   Les classes sont celles de la maquette, posées sur les blocs via className.
   Le CSS des blocs est imprimé APRÈS cette feuille : toute surcharge d'un style
   de bloc est écrite plus spécifique (figure.wp-block-image.x img, etc.). */

:root {
  --petrole: #0e7a6c;
  --petrole-fonce: #0a5f54;
  --encre: #13222a;
  --gris: #5f6d74;
  --ciel: #e7f2f6;
  --menthe: #dcefee;
  --blanc: #ffffff;
  --trait: #d5e3e7;
  --serif: "Gilda Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --conteneur: 1180px;

  /* icônes (masques CSS : un SVG inline n'est pas un bloc) */
  --i-embleme: 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.6' stroke-linecap='round'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Cpath d='M11 25c3-6 6-9 9-9s6 3 9 9M20 9v7M14 12l3 4M26 12l-3 4'/%3E%3C/svg%3E");
  --i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='50' cy='50' r='46'/%3E%3Cellipse cx='50' cy='50' rx='20' ry='46'/%3E%3Cpath d='M6 50h88M12 28h76M12 72h76'/%3E%3Cpath d='M22 14 78 86M78 14 22 86' opacity='.55'/%3E%3C/svg%3E");
  --i-gribouillis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 40c10-14 22-20 30-12s-4 20-10 10 14-28 34-30M58 6l8-4M64 16l10-2M60 24l9 4'/%3E%3C/svg%3E");
  --i-personne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='11' r='5'/%3E%3Cpath d='M6 27c1-6 5-9 10-9s9 3 10 9'/%3E%3C/svg%3E");
  --i-maison: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15 16 5l12 10M8 13v14h16V13M13 27v-7h6v7'/%3E%3C/svg%3E");
  --i-auto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20l2-7c.5-1.5 1.5-2 3-2h12c1.5 0 2.5.5 3 2l2 7v5H5z'/%3E%3Ccircle cx='10' cy='22' r='1.5'/%3E%3Ccircle cx='22' cy='22' r='1.5'/%3E%3C/svg%3E");
  --i-consolide: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10h20M6 16h20M6 22h12M22 20l3 3 5-6'/%3E%3C/svg%3E");
  --i-pro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='9' width='22' height='16' rx='1'/%3E%3Cpath d='M12 9V6h8v3M5 16h22'/%3E%3C/svg%3E");
  --i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='4' width='18' height='24' rx='1'/%3E%3Cpath d='M11 11h10M11 16h10M11 21h6'/%3E%3C/svg%3E");
  --i-banque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12 16 5l12 7M7 13v11M12.5 13v11M19.5 13v11M25 13v11M4 27h24'/%3E%3C/svg%3E");
  --i-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17l7 7L27 8'/%3E%3C/svg%3E");
  --i-cible: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='16' cy='16' r='11'/%3E%3Ccircle cx='16' cy='16' r='4'/%3E%3C/svg%3E");
  --i-bouclier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4 6 8v8c0 6 4 10 10 12 6-2 10-6 10-12V8z'/%3E%3Cpath d='m11 16 4 4 6-7'/%3E%3C/svg%3E");
  --i-personnes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='4'/%3E%3Ccircle cx='22' cy='11' r='4'/%3E%3Cpath d='M3 26c1-5 4-8 8-8s7 3 8 8M17 19c1-1 3-1 5-1 4 0 7 3 8 8'/%3E%3C/svg%3E");
  --i-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  --i-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Crect x='2' y='3' width='12' height='11'/%3E%3Cpath d='M2 7h12M5 1v3M11 1v3'/%3E%3C/svg%3E");
  --i-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5h12M9 1l4 4-4 4'/%3E%3C/svg%3E");
  --i-guillemets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath fill='%23E7F2F6' stroke='%230E7A6C' d='M2 30V18C2 9 7 3 16 2l1 4c-5 1-8 5-8 10h7v14zm22 0V18c0-9 5-15 14-16l1 4c-5 1-8 5-8 10h7v14z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.65 var(--sans);
  color: var(--encre);
  background: var(--blanc);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; } /* height:auto : sinon l'attribut height des blocs image l'emporte */
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; hyphens: none; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 42px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0; }

/* Neutralisation de l'espacement Gutenberg : blockGap à 0 dans theme.json,
   et ici seulement à spécificité nulle — jamais .wp-block-group > * */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-block-post-content, main.wp-block-group { margin: 0; }

.conteneur { width: min(var(--conteneur), 100% - 32px); margin-inline: auto; }
.centre { text-align: center; }

/* flèche des boutons et liens */
.wp-block-button__link::after, .lien a::after {
  content: ""; display: inline-block; width: 14px; height: 10px; margin-left: 10px;
  background: currentColor; -webkit-mask: var(--i-fleche) center / contain no-repeat; mask: var(--i-fleche) center / contain no-repeat;
}

/* ---------- Primitives ---------- */
.etiquette {
  width: fit-content;
  padding: 3px 10px;
  margin-bottom: 16px !important; /* 14px + les 2px de ligne qu'ajoutait le span en ligne de la maquette */
  font-size: 11.5px; font-weight: 500;
  color: var(--petrole);
  background: rgba(14, 122, 108, .09);
  border-radius: 3px;
}
.centre .etiquette { margin-inline: auto; }

.wp-block-buttons.boutons, .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.boutons { margin-top: 26px !important; }
.boutons--centre { justify-content: center; }
.wp-block-button { display: inline-block; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center;
  padding: 12px 22px;
  font: 600 13.5px/1.65 var(--sans);
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.btn--petit .wp-block-button__link { padding: 9px 18px; font-size: 12.5px; }
.wp-block-button.btn--plein .wp-block-button__link { background: var(--petrole); color: var(--blanc); }
.wp-block-button.btn--plein .wp-block-button__link:hover { background: var(--petrole-fonce); }
.wp-block-button.btn--contour .wp-block-button__link { background: transparent; border-color: var(--petrole); color: var(--petrole); }
.wp-block-button.btn--blanc .wp-block-button__link { background: var(--blanc); color: var(--petrole); }
.wp-block-button.btn--sombre .wp-block-button__link { background: var(--encre); color: var(--blanc); }

.lien { font-size: 13px; font-weight: 600; }
.lien a { display: inline-flex; align-items: center; }
.lien a::after { margin-left: 8px; color: var(--petrole); }

.fleches { display: flex; gap: 10px; }
.fleche {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--petrole); border-radius: 2px;
  font-size: 0; color: var(--petrole);
}
.fleche::after {
  content: ""; width: 14px; height: 10px; background: currentColor;
  -webkit-mask: var(--i-fleche) center / contain no-repeat; mask: var(--i-fleche) center / contain no-repeat;
}
.fleche--prec::after { transform: scaleX(-1); }
.fleche--pleine { background: var(--petrole); color: var(--blanc); }

/* ---------- En-tête ---------- */
.wp-block-template-part:has(> .entete), header.wp-block-template-part { position: absolute; inset: 0 0 auto; z-index: 10; margin: 0; }
.entete__in { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
.logo a { display: flex; align-items: center; } /* pas de gap : le <strong> du nom est un élément flex */
.logo a::before {
  content: ""; width: 38px; height: 38px; flex: none; margin-right: 10px; background: var(--petrole);
  -webkit-mask: var(--i-embleme) center / contain no-repeat; mask: var(--i-embleme) center / contain no-repeat;
}
.logo strong { font-weight: 400; color: var(--petrole); }
.wp-block-navigation.menu { gap: 30px; font-size: 13px; font-weight: 500; }
.wp-block-navigation.menu .wp-block-navigation-item__content { position: relative; padding: 4px 0; }
.wp-block-navigation.menu .current-menu-item > .wp-block-navigation-item__content::after,
.wp-block-navigation.menu .wp-block-navigation-item__content:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--petrole);
}
/* panneau mobile : sinon blanc sur blanc (le CSS du bloc est imprimé après cette feuille) */
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--blanc) !important; color: var(--encre) !important; padding: 28px 24px !important;
}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-content { gap: 0 !important; align-items: stretch !important; padding-top: 50px; }
.wp-block-navigation.menu .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--trait); width: 100%; }
.wp-block-navigation.menu .is-menu-open .wp-block-navigation-item__content { display: block; padding: 14px 0 !important; font-size: 17px; text-align: left; }
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__container { align-items: stretch !important; }
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

/* ---------- Héros ---------- */
.heros {
  position: relative;
  padding: 150px 0 110px;
  background:
    radial-gradient(60% 50% at 85% 8%, #d3e9f1 0%, transparent 70%),
    linear-gradient(180deg, #edf6f9 0%, var(--ciel) 100%);
}
.heros > .conteneur { position: relative; }
.heros > .conteneur::before {     /* globe décoratif */
  content: ""; position: absolute; right: 0; top: 6px; width: 104px; height: 104px; background: var(--petrole);
  -webkit-mask: var(--i-globe) center / contain no-repeat; mask: var(--i-globe) center / contain no-repeat;
}
.heros__titre { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.12; max-width: 900px; }
.heros__titre img {
  display: inline-block; vertical-align: middle;
  width: 1.75em !important; height: .78em; margin: -.1em .08em 0;
  border-radius: 999px; object-fit: cover;
  box-shadow: 0 8px 22px rgba(14, 60, 70, .22);
}
.heros__bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 26px; }
.heros__texte { max-width: 470px; font-size: 14px; color: var(--gris); }
.equipe-mini { text-align: right; font-size: 13px; }
.equipe-mini strong { font-weight: 600; }
.avatars { display: flex; justify-content: flex-end; margin-top: 10px; padding-left: 10px; }
.avatars::after {
  content: "+"; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ciel); margin-left: -10px; background: var(--petrole); color: var(--blanc); font-size: 20px;
}
.avatars figure.wp-block-image { margin-left: -10px; }
.avatars figure.wp-block-image img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ciel); }

/* bande de photos décalées */
.bandeau-photos {
  display: grid; grid-template-columns: 1.15fr .95fr 1fr 1.05fr; gap: 26px;
  align-items: start; margin-top: 64px;
}
figure.wp-block-image.bp { overflow: hidden; box-shadow: 0 18px 40px rgba(16, 52, 62, .12); }
figure.wp-block-image.bp img { width: 100%; height: 100%; object-fit: cover; }
figure.wp-block-image.bp--1 { height: 230px; margin-top: 50px; }
figure.wp-block-image.bp--2 { height: 250px; margin-top: 90px; }
figure.wp-block-image.bp--3 { height: 270px; margin-top: 0; }
figure.wp-block-image.bp--4 { height: 250px; margin-top: 40px; clip-path: polygon(0 0, 78% 0, 100% 14%, 100% 100%, 0 100%); }

/* atouts */
.atouts { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 100px; }
.atouts__liste { position: relative; display: grid; gap: 18px; padding-left: 40px; }
.atouts__liste::before, .carte-conseil::before, .mission__photos::after {
  content: ""; position: absolute; left: -26px; top: -54px; width: 90px; height: 60px; background: var(--petrole);
  -webkit-mask: var(--i-gribouillis) center / contain no-repeat; mask: var(--i-gribouillis) center / contain no-repeat;
}
.atout {
  position: relative;
  padding: 22px 26px 22px 74px; background: var(--blanc);
  border: 1px solid var(--trait); border-radius: 3px;
}
.atout::before {
  content: ""; position: absolute; left: 26px; top: 24px; width: 30px; height: 30px; border-radius: 50%; background: var(--petrole);
}
.atout::after {
  content: ""; position: absolute; left: 36px; top: 32px; width: 6px; height: 11px;
  border: solid var(--blanc); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.atout h3 { font-size: 17px; margin-bottom: 6px !important; }
.atout p { font-size: 13px; color: var(--gris); }
.atout--actif { background: var(--petrole); border-color: var(--petrole); color: var(--blanc); margin-left: -40px !important; margin-right: 40px !important; box-shadow: 0 20px 40px rgba(14, 122, 108, .25); }
.atout--actif p { color: rgba(255,255,255,.8); }
.atout--actif::before { background: var(--blanc); }
.atout--actif::after { border-color: var(--petrole); }
.atouts__texte h2 { margin-bottom: 18px !important; }
.atouts__texte p:not(.etiquette) { font-size: 13.5px; color: var(--gris); margin-bottom: 14px !important; }
.atouts__texte .boutons { margin-top: 0 !important; padding-top: 10px; } /* une marge fusionnerait avec celle du paragraphe */

/* ---------- Services ---------- */
.services { padding: 110px 0; background: var(--blanc); }
.entete-section { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px !important; }
.carrousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 52px) / 3); gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carrousel::-webkit-scrollbar { display: none; }
.carte-service { position: relative; height: 380px; scroll-snap-align: start; overflow: hidden; }
figure.wp-block-image.carte-service__photo { height: 100%; }
figure.wp-block-image.carte-service__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carte-service:hover figure.wp-block-image.carte-service__photo img { transform: scale(1.04); }
.carte-service__boite {
  position: absolute !important; left: 22px; right: 22px; bottom: 22px;
  background: var(--blanc); padding: 18px 20px 18px 70px;
  display: grid; align-content: center; min-height: 72px;
  transition: all .35s;
}
.carte-service__boite::before {
  content: ""; position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; background: var(--petrole);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.ico-personne { --ico: var(--i-personne); } .ico-maison { --ico: var(--i-maison); } .ico-auto { --ico: var(--i-auto); }
.ico-consolide { --ico: var(--i-consolide); } .ico-pro { --ico: var(--i-pro); }
.ico-doc { --ico: var(--i-doc); } .ico-banque { --ico: var(--i-banque); } .ico-coche { --ico: var(--i-coche); }
.ico-cible { --ico: var(--i-cible); } .ico-bouclier { --ico: var(--i-bouclier); } .ico-personnes { --ico: var(--i-personnes); }
.carte-service__boite p { display: none; }
.carte-service--ouverte .carte-service__boite,
.carte-service:hover .carte-service__boite {
  top: 22px; padding: 30px; row-gap: 12px;
}
.carte-service--ouverte .carte-service__boite::before,
.carte-service:hover .carte-service__boite::before { position: static; display: block; }
.carte-service--ouverte .carte-service__boite p, .carte-service:hover .carte-service__boite p { display: block; font-size: 13px; color: var(--gris); }
.carte-service--ouverte .carte-service__boite .lien, .carte-service:hover .carte-service__boite .lien { display: block; color: var(--encre); }
:is(.carrousel, .grille-services):has(.carte-service:not(.carte-service--ouverte):hover) .carte-service--ouverte .carte-service__boite { top: auto; padding: 18px 20px 18px 70px; row-gap: 0; }
:is(.carrousel, .grille-services):has(.carte-service:not(.carte-service--ouverte):hover) .carte-service--ouverte .carte-service__boite::before { position: absolute; }
:is(.carrousel, .grille-services):has(.carte-service:not(.carte-service--ouverte):hover) .carte-service--ouverte .carte-service__boite p { display: none; }

/* ---------- Étapes ---------- */
.etapes { padding: 100px 0 110px; background: var(--menthe); }
.etapes__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px !important; }
.etape { position: relative; background: var(--blanc); padding: 88px 30px 34px; border-radius: 3px; }
.etape::before {     /* onglet d'icône */
  content: ""; position: absolute; left: 30px; top: 0; width: 64px; height: 60px;
  background: var(--petrole); border-radius: 0 0 22px 0;
}
.etape::after {
  content: ""; position: absolute; left: 47px; top: 15px; width: 30px; height: 30px; background: var(--blanc);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.etape__num {
  position: absolute; right: 26px; top: 14px;
  font-family: var(--serif); font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px #c3d6d9;
}
.etape h3 { margin-bottom: 10px !important; }
.etape p:not(.etape__num) { font-size: 13px; color: var(--gris); }
.etape--active { background: var(--petrole); color: var(--blanc); transform: translateY(-14px); box-shadow: 0 24px 44px rgba(14, 122, 108, .28); }
.etape--active::before { background: var(--blanc); }
.etape--active::after { background: var(--petrole); }
.etape--active .etape__num { color: var(--blanc); -webkit-text-stroke: 0; }
.etape--active p:not(.etape__num) { color: rgba(255,255,255,.8); }

/* ---------- Engagement ---------- */
.engagement { padding: 110px 0 120px; background: var(--blanc); }
.engagement__scene { position: relative; margin-top: 54px !important; }
.engagement__scene::before { content: ""; position: absolute; left: 0; width: 68%; top: -36px; height: 70%; background: var(--ciel); }
figure.wp-block-image.engagement__photo { position: relative; width: 62%; height: 460px; overflow: hidden; }
figure.wp-block-image.engagement__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.engagement__in { position: absolute !important; inset: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: flex-end; gap: 50px; }
.citation {
  position: relative; margin: 0; width: min(600px, 100%);
  background: var(--blanc); padding: 40px 42px 32px;
  box-shadow: 0 30px 60px rgba(16, 52, 62, .14);
}
.citation::before { content: ""; position: absolute; right: 30px; top: -18px; width: 44px; height: 36px; background: var(--i-guillemets) center / contain no-repeat; }
.citation__texte { font-size: 17px; line-height: 1.6; }
.citation__pied { display: flex; align-items: center; gap: 14px; margin-top: 26px !important; padding-top: 22px; border-top: 1px solid var(--trait); }
figure.wp-block-image.citation__avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.citation__nom { font-family: var(--serif); font-size: 17px; }
.citation__role { font-size: 12px; line-height: 25px; color: var(--gris); }
.pile-avatars { display: grid; gap: 18px; }
figure.wp-block-image.avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
figure.wp-block-image.avatar--actif img { outline: 2px solid var(--petrole); outline-offset: 4px; }

/* ---------- Guides ---------- */
.guides { padding: 100px 0 110px; background: var(--menthe); }
.guides__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.article { background: var(--blanc); }
.article > figure.wp-block-image img { width: 100%; height: 300px; object-fit: cover; }
.article__corps { padding: 24px 28px 30px; }
.date { display: flex; align-items: center; gap: 8px; min-height: 25px; font-size: 12px; color: var(--gris); }
.article__corps .lien { line-height: 25px; }
.date::before {
  content: ""; width: 14px; height: 14px; background: var(--petrole);
  -webkit-mask: var(--i-date) center / contain no-repeat; mask: var(--i-date) center / contain no-repeat;
}
.article h3 { margin: 10px 0 8px !important; font-size: 21px; }
.article__corps p:not(.date):not(.lien) { font-size: 13px; color: var(--gris); margin-bottom: 14px !important; }

/* ---------- Contact + Contact Form 7 ---------- */
.contact { padding: 110px 0; background: var(--blanc); }
.contact__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.formulaire { padding: 36px; background: var(--blanc); box-shadow: 0 24px 60px rgba(16, 52, 62, .12); }
.formulaire h3 { font-size: 22px; margin-bottom: 8px !important; }
.formulaire__intro { font-size: 13px; color: var(--gris); margin-bottom: 22px !important; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.champs .large { grid-column: 1 / -1; }
.champ { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--gris); }
.champs .wpcf7-form-control-wrap { display: block; }
.champs input:not([type=checkbox]), .champs select, .champs textarea {
  display: block; width: 100%;
  font: 13px/1.5 var(--sans); padding: 12px 14px; border: 0; border-radius: 2px;
  background: #f1f6f8; color: var(--encre);
}
.champs textarea { resize: vertical; }
.consentement { font-size: 12px; color: var(--gris); line-height: 1.5; }
.consentement .wpcf7-list-item { margin: 0; }
.consentement label { display: flex; align-items: flex-start; gap: 10px; }
.consentement input { margin-top: 2px; accent-color: var(--petrole); }
.envoi { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.formulaire--demande .envoi { justify-content: flex-start; }
.btn-envoi {
  padding: 10px 40px 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 12.5px/1.4 var(--sans); color: var(--blanc);
  background: var(--petrole) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5h12M9 1l4 4-4 4'/%3E%3C/svg%3E") right 16px center / 14px 10px no-repeat;
}
.btn-envoi:hover { background-color: var(--petrole-fonce); }
.wpcf7-not-valid-tip { font-size: 11.5px; color: #b4541b; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 10px 14px; border: 1px solid var(--petrole); border-radius: 3px; font-size: 13px; }
.wpcf7-spinner { display: none; }
.contact__texte h2 { margin-bottom: 16px !important; }
.contact__intro { font-size: 13.5px; color: var(--gris); margin-bottom: 28px !important; max-width: 440px; }
.info {
  position: relative; display: grid; align-content: center; min-height: 90px;
  padding: 20px 24px 20px 92px; margin-bottom: 16px !important;
  background: var(--ciel); border-radius: 3px; max-width: 440px;
}
.info::before { content: ""; position: absolute; left: 24px; top: 50%; translate: 0 -50%; width: 50px; height: 50px; border-radius: 50%; background: var(--petrole); }
.info::after {
  content: ""; position: absolute; left: 37px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; background: var(--blanc);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.info--tel { --ico: var(--i-tel); } .info--mail { --ico: var(--i-mail); }
.info__label { font-size: 11.5px; color: var(--gris); }
.info__valeur { font-family: var(--serif); font-size: 20px; word-break: break-word; }

/* ---------- Appel à l'action ---------- */
.appel { padding: 80px 0; background: var(--petrole); color: var(--blanc); }
.appel h2 { color: var(--blanc); }
.appel p { max-width: 560px; margin: 14px auto 0 !important; font-size: 14px; color: rgba(255,255,255,.82); }

/* ---------- Pied ---------- */
.pied { padding: 80px 0 0; background: var(--ciel); font-size: 13px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr 1.3fr; gap: 50px; padding-bottom: 50px; }
.pied__texte { color: var(--gris); margin-top: 16px !important; max-width: 300px; }
.pied h4 { margin-bottom: 18px !important; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--gris); }
.pied__contacts li { display: flex; gap: 10px; align-items: center; }
.pied__contacts li::before {
  content: ""; width: 16px; height: 16px; flex: none; background: var(--petrole);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.pied__contacts .c-mail { --ico: var(--i-mail); } .pied__contacts .c-tel { --ico: var(--i-tel); }
.pied .wp-block-buttons { margin-top: 18px !important; }
.wp-block-social-links.reseaux { display: flex; gap: 8px; margin-top: 20px; padding: 0; }
.wp-block-social-links.reseaux .wp-social-link { width: 30px; height: 30px; margin: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--petrole); background: transparent; color: var(--petrole); }
.wp-block-social-links.reseaux .wp-social-link a { padding: 0; }
.wp-block-social-links.reseaux .wp-social-link svg { width: 15px; height: 15px; }
.wp-block-social-links.reseaux .wp-social-link:hover { background: var(--petrole); color: var(--blanc); transform: none; }
.pied__legal { border-top: 1px solid var(--trait); padding: 22px 0 28px; text-align: center; }
.pied__legal p { margin: 6px auto 0 !important; font-size: 11.5px; color: var(--gris); }
.pied__legal a { text-decoration: underline; }
.a-completer { color: #b4541b !important; font-weight: 600; }

/* =================== PAGES INTÉRIEURES =================== */
.bandeau-titre {
  padding: 150px 0 90px;
  background:
    radial-gradient(60% 60% at 85% 10%, #d3e9f1 0%, transparent 70%),
    linear-gradient(180deg, #edf6f9 0%, var(--ciel) 100%);
}
.bandeau-titre > .conteneur { position: relative; }
.bandeau-titre > .conteneur::before {
  content: ""; position: absolute; right: 0; top: 0; width: 104px; height: 104px; background: var(--petrole);
  -webkit-mask: var(--i-globe) center / contain no-repeat; mask: var(--i-globe) center / contain no-repeat;
}
.bandeau-titre h1 { font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 18px !important; }
.bandeau-titre__texte { max-width: 560px; font-size: 14px; color: var(--gris); }
.ariane { font-size: 12.5px; color: var(--gris); margin-bottom: 22px !important; word-spacing: 4px; }
.ariane a { color: var(--petrole); font-weight: 500; }

.liste-coches { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.liste-coches li { position: relative; padding-left: 30px; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--petrole); }
.liste-coches li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 4px; height: 8px; border: solid var(--blanc); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

.services--grille { padding-bottom: 60px; }
.grille-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grille-services .carte-service { height: 360px; }
.carte-conseil {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 34px; background: var(--petrole); color: var(--blanc);
}
.carte-conseil h3 { font-size: 26px; }
.carte-conseil p { font-size: 13.5px; color: rgba(255,255,255,.82); }
.carte-conseil .wp-block-buttons { margin-top: 6px !important; }
.carte-conseil::before { left: auto; right: 26px; top: 26px; background: var(--blanc); opacity: .7; }

.details { padding: 60px 0 110px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 50px 0; scroll-margin-top: 30px; }
.detail + .detail { border-top: 1px solid var(--trait); }
figure.wp-block-image.detail__photo { position: relative; height: 400px; isolation: isolate; }
figure.wp-block-image.detail__photo::before { content: ""; position: absolute; inset: 30px -30px -30px 30px; background: var(--ciel); z-index: -1; }
figure.wp-block-image.detail__photo img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 18px 40px rgba(16, 52, 62, .12); }
.detail--inverse figure.wp-block-image.detail__photo { order: 2; }
.detail--inverse figure.wp-block-image.detail__photo::before { inset: 30px 30px -30px -30px; }
.detail__texte h2 { margin-bottom: 16px !important; }
.detail__texte > p:not(.etiquette) { font-size: 13.5px; color: var(--gris); }
.detail__texte .boutons { margin-top: 0 !important; }

.mission { padding: 120px 0; }
.mission__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.mission__photos { position: relative; height: 520px; }
figure.wp-block-image.mp { position: absolute; overflow: hidden; box-shadow: 0 24px 50px rgba(16, 52, 62, .16); }
figure.wp-block-image.mp img { width: 100%; height: 100%; object-fit: cover; }
figure.wp-block-image.mp--1 { left: 0; top: 0; width: 72%; height: 380px; }
figure.wp-block-image.mp--2 { right: 0; bottom: 0; width: 52%; height: 280px; border: 8px solid var(--blanc); clip-path: polygon(0 0, 80% 0, 100% 16%, 100% 100%, 0 100%); }
.mission__photos::after { left: auto; right: 4%; top: 30px; }
.mission__texte h2 { margin-bottom: 18px !important; }
.mission__texte > p:not(.etiquette) { font-size: 13.5px; color: var(--gris); margin-bottom: 14px !important; }

.faq { padding: 100px 0 110px; background: var(--menthe); }
.faq__liste { display: grid; gap: 14px; max-width: 820px; margin: 46px auto 0 !important; }
.faq .wp-block-details { background: var(--blanc); border-radius: 3px; padding: 0 28px; }
.faq .wp-block-details summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 19px;
}
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--petrole); color: var(--blanc); font-family: var(--sans); font-size: 18px;
}
.faq .wp-block-details[open] summary::after { content: "−"; }
.faq .wp-block-details p { padding-bottom: 24px; font-size: 13.5px; color: var(--gris); max-width: 680px; }

.demande { padding: 100px 0 120px; }
.demande__grille { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: start; }
.formulaire--demande h3 { margin: 6px 0 18px !important; }
.demande__aside { display: grid; gap: 22px; position: sticky; top: 30px; }
.encart { padding: 30px; background: var(--ciel); border-radius: 3px; }
.encart h3 { margin-bottom: 14px !important; }
.encart .liste-coches { margin: 0; }
.encart--petrole { background: var(--petrole); color: var(--blanc); box-shadow: 0 24px 44px rgba(14, 122, 108, .25); }
.mini-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 13.5px; }
.mini-etapes li { display: flex; gap: 14px; align-items: baseline; }
.mini-etapes strong { font-family: var(--serif); font-weight: 400; font-size: 22px; opacity: .7; min-width: 28px; }
.encart--alerte { background: var(--blanc); border: 1px solid var(--petrole); }
.encart--alerte p { font-size: 13px; color: var(--gris); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--petrole); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .entete__cta { display: none !important; }
  .heros__bas, .entete-section { flex-direction: column; align-items: flex-start; }
  .equipe-mini { text-align: left; }
  .avatars { justify-content: flex-start; }
  .atouts, .contact__grille { grid-template-columns: 1fr; gap: 60px; }
  .carrousel { grid-auto-columns: 70%; }
  .etapes__grille, .guides__grille { grid-template-columns: 1fr; }
  .etape--active { transform: none; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .engagement__scene::before { width: 100%; }
  figure.wp-block-image.engagement__photo { width: 100%; height: 360px; }
  .engagement__in { position: relative !important; transform: none; left: auto; margin-top: -90px !important; justify-content: center; }
  .pile-avatars { display: none; }
  .heros > .conteneur::before, .bandeau-titre > .conteneur::before { display: none; }
  .grille-services { grid-template-columns: 1fr 1fr; }
  .detail, .mission__grille, .demande__grille { grid-template-columns: 1fr; gap: 50px; }
  .detail--inverse figure.wp-block-image.detail__photo { order: 0; }
  .demande__aside { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .heros { padding-top: 120px; }
  .bandeau-photos { grid-template-columns: 1fr 1fr; gap: 14px; }
  figure.wp-block-image.bp--1, figure.wp-block-image.bp--2, figure.wp-block-image.bp--3, figure.wp-block-image.bp--4 { height: 180px; margin-top: 0; }
  figure.wp-block-image.bp--2, figure.wp-block-image.bp--4 { margin-top: 30px; }
  .atouts__liste { padding-left: 0; }
  .atout--actif { margin: 0 !important; }
  .carrousel { grid-auto-columns: 86%; }
  .carte-service { height: 340px; }
  .champs { grid-template-columns: 1fr; }
  .citation { padding: 32px 24px 24px; }
  .citation__texte { font-size: 15px; }
  .pied__grille { grid-template-columns: 1fr; gap: 34px; }
  .info__valeur { font-size: 17px; }
  .bandeau-titre { padding: 120px 0 60px; }
  .grille-services { grid-template-columns: 1fr; }
  .grille-services .carte-service { height: 320px; }
  .detail { gap: 44px; padding: 40px 0; }
  figure.wp-block-image.detail__photo { height: 260px; margin-right: 20px; }
  .detail--inverse figure.wp-block-image.detail__photo { margin: 0 0 0 20px; }
  figure.wp-block-image.detail__photo::before { inset: 20px -20px -20px 20px; }
  .detail--inverse figure.wp-block-image.detail__photo::before { inset: 20px 20px -20px -20px; }
  .mission { padding: 80px 0; }
  .mission__photos { height: 380px; }
  figure.wp-block-image.mp--1 { height: 260px; width: 80%; }
  figure.wp-block-image.mp--2 { height: 190px; width: 60%; }
  .formulaire, .encart { padding: 26px 20px; }
  .faq .wp-block-details { padding: 0 18px; }
  .faq .wp-block-details summary { font-size: 17px; }
}
