/*
Theme Name: Saphir Conciergerie
Theme URI: https://saphir-conciergerie.com
Author: NUMERICVERSE
Description: Thème bloc sur mesure de Saphir Conciergerie — conciergerie, intendance et entretien en Guadeloupe.
Version: 1.0.5
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: saphir
Tags: block-theme, full-site-editing, business
*/

/* Saphir Conciergerie — maquette
   Palette prélevée sur la référence */
:root {
  --marine: #082a4c;      /* boutons, unique couleur non neutre */
  --encre: #0f2340;       /* titres */
  --ardoise: #3b475a;     /* texte courant */
  --creme: #f8f4ee;       /* fond clair */
  --lin: #d8d3c9;         /* filets */
  --blanc: #ffffff;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --marge: 80px;
  --large: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--ardoise);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }

.enveloppe { width: min(var(--large), 100% - 2 * var(--marge)); margin-inline: auto; }

/* ---------- Typographie commune ---------- */
.surtitre {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: 18px;
}
.surtitre-clair { color: var(--blanc); }

.titre-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.1vw, 60px);
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--encre);
  text-wrap: balance;
  hyphens: none;
}
.titre-clair { color: var(--blanc); }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 30px; }
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--marine);
  border-radius: 3px;
  transition: background-color .25s, color .25s;
}
.bouton-plein { background: var(--marine); color: var(--blanc); }
.bouton-plein:hover { background: var(--encre); }
.bouton-contour { color: var(--marine); background: rgba(255,255,255,.12); padding: 0 38px; }
.bouton-contour:hover { background: var(--marine); color: var(--blanc); }
.fleche { font-size: 17px; line-height: 1; transition: transform .25s; }
.bouton:hover .fleche, .lien-fleche:hover .fleche { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.entete { position: absolute; inset: 0 0 auto 0; z-index: 10; color: var(--blanc); }
.entete-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 22px 48px 0 106px;
}
.logo { display: inline-grid; justify-items: center; line-height: 1; }
.logo-image { width: auto; height: 96px; }
.logo-slogan {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  color: #444444;
}
.menu { display: flex; gap: 52px; margin-left: auto; margin-right: 50px; }
.menu a {
  position: relative;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(8, 30, 60, .3);
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .25s;
}
.menu a.actif::after, .menu a:hover::after { transform: scaleX(1); }
.bouton-entete { min-height: 50px; padding: 0 22px; font-size: 12px; gap: 12px; }
.burger { display: none; }

/* ---------- Héros ---------- */
.heros {
  position: relative;
  min-height: 1000px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.heros-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 4%;
  transform: scaleX(-1);
}
.heros::after {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 22% at 12% 9%, rgba(250, 251, 252, .92) 0%, rgba(250, 251, 252, .6) 55%, rgba(250, 251, 252, 0) 100%),
    linear-gradient(180deg, rgba(8, 34, 70, .28) 0%, rgba(8, 34, 70, 0) 18%),
    radial-gradient(ellipse 60% 48% at 22% 40%, rgba(246, 249, 252, .86) 0%, rgba(246, 249, 252, .55) 50%, rgba(246, 249, 252, 0) 100%),
    linear-gradient(180deg, rgba(248, 244, 238, 0) 62%, rgba(248, 244, 238, .75) 86%, var(--creme) 100%);
}
.heros-contenu { position: relative; padding: 278px 0 0 106px; max-width: 760px; }
.heros-titre {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 4.75vw, 68px);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--encre);
  max-width: 680px;
  text-wrap: balance;
  hyphens: none;
}
.heros-texte { margin: 20px 0 44px; max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--encre); }

/* ---------- Duo photo / texte ---------- */
.duo {
  position: relative;
  display: grid;
  grid-template-columns: 49.6% 1fr;
  align-items: center;
  gap: 58px;
  margin-top: 28px;
  isolation: isolate;
}
.duo::after {
  content: "";
  position: absolute; z-index: -1;
  right: 0; top: -40px; bottom: -40px; width: 34%;
  background: url(assets/img/palmes.jpg) right center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: .32;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
          mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.duo-photo { height: 620px; }
.duo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.duo-texte { padding-right: 24px; }
.duo-texte .titre-section { font-size: clamp(34px, 3.45vw, 50px); margin-bottom: 32px; }
.duo-texte p:not(.surtitre) { font-size: 18px; line-height: 1.7; margin-bottom: 44px; max-width: 620px; }

/* ---------- Services ---------- */
.services { padding: 76px 0 100px; }
.services .titre-section { max-width: 720px; margin-bottom: 44px; }
.grille-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.carte-photo { aspect-ratio: 1.45; overflow: hidden; margin-bottom: 22px; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carte-service:hover .carte-photo img { transform: scale(1.04); }
.carte-numero { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--encre); margin-bottom: 18px; }
.carte-titre { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--encre); margin-bottom: 16px; }
.carte-texte { font-size: 18px; line-height: 1.7; max-width: 400px; margin-bottom: 28px; }
.lien-fleche {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--encre);
}

/* ---------- Bandeau engagement ---------- */
.bandeau { position: relative; min-height: 420px; display: flex; align-items: center; overflow: hidden; }
.bandeau-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.bandeau::after {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 20, 30, .62) 0%, rgba(4, 20, 30, .34) 42%, rgba(4, 20, 40, .2) 62%, rgba(4, 20, 40, .42) 100%);
}
.bandeau-sombre::after { background: linear-gradient(90deg, rgba(4, 20, 30, .66) 0%, rgba(4, 20, 30, .5) 50%, rgba(4, 20, 30, .62) 100%); }
.bandeau-contenu {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}
.bandeau .titre-section { max-width: 680px; }
.bandeau-texte { color: var(--blanc); font-size: 18px; line-height: 1.75; max-width: 540px; justify-self: end; text-shadow: 0 1px 16px rgba(0,0,0,.25); }

/* ---------- Méthode ---------- */
.methode { position: relative; padding: 70px 0 84px; text-align: center; isolation: isolate; }
.methode::before {
  content: "";
  position: absolute; z-index: -1;
  left: 0; top: 0; bottom: 0; width: 36%;
  background: url(assets/img/palmes.jpg) left center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent);
          mask-image: linear-gradient(90deg, #000 30%, transparent);
}
.titre-methode { font-size: clamp(30px, 3.4vw, 50px); max-width: 760px; margin: 0 auto 56px; text-wrap: wrap; }
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.etape { position: relative; display: grid; justify-items: center; }
.etape:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 41px;
  left: calc(50% + 90px);
  width: calc(100% - 180px + 40px);
  height: 1px;
  background: var(--lin);
}
.etape-icone {
  width: 82px; height: 82px;
  display: grid; place-items: center;
  border: 1.5px solid var(--encre);
  border-radius: 50%;
  color: var(--encre);
  margin-bottom: 18px;
}
.etape-icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.etape-numero { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--encre); margin-bottom: 10px; }
.etape-titre { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--encre); margin-bottom: 8px; }
.etape-texte { font-size: 16px; line-height: 1.65; max-width: 290px; }

/* ---------- Appel à l'action ---------- */
.appel { position: relative; min-height: 400px; display: flex; align-items: center; overflow: hidden; }
.appel-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; }
.appel::after {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, .86) 0%, rgba(248, 250, 252, .6) 32%, rgba(248, 250, 252, 0) 58%),
    linear-gradient(180deg, var(--creme) 0%, rgba(248, 244, 238, 0) 14%);
}
.appel-contenu { position: relative; padding: 80px 0; }
.appel .titre-section { margin-bottom: 18px; }
.appel p { font-size: 18px; max-width: 520px; color: var(--encre); margin-bottom: 34px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--creme); color: var(--encre); padding: 34px 0 34px; }
.pied-haut { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.logo-pied { justify-self: start; }
.logo-pied .logo-image { height: 84px; }
.pied-menu { display: flex; gap: 42px; font-size: 14px; }
.pied-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reseaux { display: flex; gap: 16px; justify-self: end; }
.reseaux a { display: grid; place-items: center; width: 28px; height: 28px; }
.reseaux svg { width: 24px; height: 24px; fill: none; stroke: var(--encre); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reseaux svg .plein { fill: var(--encre); stroke: none; }
.pied-bas {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin-top: 30px;
  font-size: 13px;
  color: var(--ardoise);
}
.pied-bas > * + *::before { content: "|"; margin: 0 14px; color: var(--lin); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --marge: 48px; }
  .entete-inner { padding: 24px var(--marge) 0; gap: 28px; }
  .menu { gap: 28px; margin-right: 0; }
  .heros-contenu { padding-left: var(--marge); }
}
@media (max-width: 960px) {
  .burger {
    display: grid; gap: 7px; margin-left: auto;
    width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; width: 26px; height: 1.5px; background: var(--blanc); }
  .entete.ouvert .menu {
    display: flex; flex-direction: column; gap: 6px;
    position: absolute; top: 100%; left: 16px; right: 16px;
    padding: 20px 24px; background: var(--marine); border-radius: 3px;
  }
  .heros { min-height: 820px; }
  .heros-contenu { padding-top: 200px; }
  .duo { grid-template-columns: 1fr; gap: 40px; }
  .duo-photo { height: 420px; }
  .duo-texte { padding: 0 var(--marge); }
  .grille-services { grid-template-columns: 1fr; gap: 56px; }
  .carte-texte { max-width: none; }
  .bandeau-contenu { grid-template-columns: 1fr; gap: 24px; }
  .bandeau-texte { justify-self: start; }
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .etape::after { display: none; }
  .pied-haut { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .logo-pied, .reseaux { justify-self: center; }
}
@media (max-width: 600px) {
  :root { --marge: 20px; }
  .entete .logo-image { height: 72px; }
  .heros { min-height: 760px; }
  .heros::after {
    background:
      linear-gradient(180deg, rgba(246, 249, 252, .82) 0%, rgba(246, 249, 252, .74) 58%, rgba(248, 244, 238, .82) 80%, var(--creme) 100%);
  }
  .heros-contenu { padding-top: 168px; }
  .heros-texte { font-size: 16px; }
  .boutons { gap: 14px; }
  .bouton { min-height: 54px; }
  .duo-photo { height: 320px; }
  .duo-texte p:not(.surtitre) { font-size: 16px; }
  .services { padding: 64px 0 72px; }
  .etapes { grid-template-columns: 1fr; }
  .pied-menu { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
  .pied-bas { flex-direction: column; align-items: center; gap: 4px; }
  .pied-bas > * + *::before { display: none; }
}

/* ---------- Pages internes : bandeau de titre ---------- */
.page-titre { position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.page-titre-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.page-titre::after {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 26% 42% at 11% 12%, rgba(250, 251, 252, .9) 0%, rgba(250, 251, 252, .55) 50%, rgba(250, 251, 252, 0) 100%),
    linear-gradient(180deg, rgba(4, 20, 40, .2) 0%, rgba(4, 20, 40, .25) 45%, rgba(4, 20, 40, .55) 100%);
}
.page-titre-contenu { position: relative; padding: 200px 0 72px; }

/* ---------- Pages légales ---------- */
.texte-legal { padding: 90px 0 110px; }
.texte-legal-colonne { max-width: 820px; }
.texte-legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: var(--encre);
  margin: 52px 0 14px;
}
.texte-legal p { font-size: 17px; line-height: 1.75; }
.texte-legal a { color: var(--marine); text-decoration: underline; text-underline-offset: 3px; }
.texte-legal-intro { font-size: 19px !important; color: var(--encre); }
.texte-legal-maj { margin-top: 56px; font-size: 14px !important; color: var(--ardoise); }
.a-completer { background: #fff1c2; color: var(--encre); padding: 0 4px; }

@media (max-width: 600px) {
  .page-titre { min-height: 340px; }
  .page-titre-contenu { padding: 150px 0 48px; }
  .texte-legal { padding: 60px 0 80px; }
  .texte-legal h2 { font-size: 26px; margin-top: 40px; }
}

/* ---------- Pages internes : rangées alternées ---------- */
.rangees { padding: 100px 0 40px; }
.rangee { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; margin-bottom: 110px; }
.rangee:nth-child(even) .rangee-photo { order: 2; }
.rangee-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.rangee-photo img { width: 100%; height: 100%; object-fit: cover; }
.rangee-texte .carte-numero { margin-bottom: 14px; }
.rangee-texte h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.15; color: var(--encre); margin-bottom: 20px; text-wrap: balance; }
.rangee-texte > p { font-size: 18px; line-height: 1.7; margin-bottom: 26px; max-width: 560px; }
.liste-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.liste-points li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.55; }
.liste-points li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 1.5px; background: var(--marine); }

/* ---------- Grille de points numérotés ---------- */
.points { padding: 100px 0; }
.points-tete { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.points-tete > p { font-size: 18px; line-height: 1.7; max-width: 540px; justify-self: end; }
.grille-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.point { border-top: 1px solid var(--lin); padding-top: 26px; }
.point .carte-numero { font-size: 36px; margin-bottom: 14px; }
.point h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.25; color: var(--encre); margin-bottom: 10px; }
.point p { font-size: 17px; line-height: 1.7; }

/* ---------- Encadré d'engagement ---------- */
.encadre { padding: 0 0 110px; }
.encadre-boite { border: 1px solid var(--lin); background: var(--blanc); padding: 64px 72px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.encadre-boite h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.15; color: var(--encre); text-wrap: balance; }
.encadre-boite p { font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.encadre-boite .liste-points { margin-top: 8px; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0 120px; }
.contact-grille { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; align-items: start; }
.contact-infos .titre-section { font-size: clamp(32px, 3.1vw, 46px); }
.contact-infos > p:not(.surtitre) { font-size: 18px; line-height: 1.7; margin: 24px 0 44px; max-width: 460px; }
.coordonnees { display: grid; gap: 0; }
.coordonnee { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--lin); }
.coordonnee:last-child { border-bottom: 1px solid var(--lin); }
.coordonnee .etape-icone { width: 54px; height: 54px; margin: 0; }
.coordonnee .etape-icone svg { width: 22px; height: 22px; }
.coordonnee-libelle { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ardoise); margin-bottom: 2px; }
.coordonnee-valeur { font-family: var(--serif); font-size: 23px; color: var(--encre); }
.formulaire { background: var(--blanc); border: 1px solid var(--lin); padding: 56px 60px; }
.formulaire h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; color: var(--encre); margin-bottom: 8px; }
.formulaire > p { font-size: 16px; margin-bottom: 34px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.champ { display: grid; gap: 8px; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--encre); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 17px; color: var(--encre);
  background: var(--creme); border: 1px solid var(--lin); border-radius: 0;
  padding: 15px 16px; width: 100%;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--marine); outline-offset: -1px; }
.consentement { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.consentement input { margin-top: 3px; accent-color: var(--marine); }
.consentement a { text-decoration: underline; text-underline-offset: 3px; }
.formulaire .bouton { margin-top: 30px; cursor: pointer; font-family: var(--sans); }

@media (max-width: 960px) {
  .rangee, .points-tete, .encadre-boite, .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .rangee:nth-child(even) .rangee-photo { order: 0; }
  .rangee { margin-bottom: 80px; }
  .points-tete > p { justify-self: start; }
  .grille-points { grid-template-columns: 1fr 1fr; }
  .encadre-boite { padding: 44px 36px; }
}
@media (max-width: 600px) {
  .rangees { padding-top: 64px; }
  .points { padding: 72px 0; }
  .grille-points { grid-template-columns: 1fr; gap: 36px; }
  .encadre-boite { padding: 36px 24px; }
  .contact { padding: 64px 0 80px; }
  .formulaire { padding: 36px 22px; }
  .champs { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Adaptations WordPress — ajoutées après le CSS de la maquette.
   Le DOM des blocs natifs diffère de la maquette : figure autour des images,
   div.wp-block-button autour des liens, pseudo-éléments à la place des voiles.
   ========================================================================== */

/* Neutralisation de l'espacement automatique, à spécificité nulle
   (blockGap est déjà à 0 dans theme.json). */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons) { margin-block: 0; }
:where(figure.wp-block-image) { margin: 0; }
img { height: auto; }
.wp-site-blocks { padding: 0; }

/* ---------- Photos plein cadre : la classe est sur la figure ---------- */
.wp-block-image.heros-photo,
.wp-block-image.bandeau-photo,
.wp-block-image.appel-photo,
.wp-block-image.page-titre-photo { position: absolute; inset: 0; z-index: 0; margin: 0; width: 100%; height: 100%; }
.wp-block-image.heros-photo img,
.wp-block-image.bandeau-photo img,
.wp-block-image.appel-photo img,
.wp-block-image.page-titre-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wp-block-image.heros-photo img { object-position: 50% 4%; }
.wp-block-image.bandeau-photo img { object-position: 50% 78%; }
.wp-block-image.appel-photo img { object-position: 50% 47%; }
.wp-block-image.page-titre-photo img { object-position: 50% 70%; }

.wp-block-image.duo-photo { margin: 0; }
.wp-block-image.duo-photo img,
.wp-block-image.carte-photo img,
.wp-block-image.rangee-photo img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.duo-photo img { object-position: 30% 50%; }
.wp-block-image.carte-photo { margin: 0 0 22px; }
.wp-block-image.rangee-photo { margin: 0; }

/* Voiles : pseudo-éléments de la section, entre la photo et le contenu */
.heros::after, .bandeau::after, .appel::after, .page-titre::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.heros-contenu, .bandeau-contenu, .appel-contenu, .page-titre-contenu { z-index: 2; }

/* ---------- Boutons : la classe est sur le conteneur ---------- */
.wp-block-button.bouton { display: inline-block; min-height: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 30px; }
.wp-block-button.bouton .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 0 28px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--marine); border-radius: 3px;
  transition: background-color .25s, color .25s;
}
.wp-block-button.bouton-plein .wp-block-button__link { background: var(--marine); color: var(--blanc); }
.wp-block-button.bouton-plein .wp-block-button__link:hover { background: var(--encre); }
.wp-block-button.bouton-plein .wp-block-button__link::after,
.lien-fleche a::after { content: "→"; font-size: 17px; line-height: 1; transition: transform .25s; }
.wp-block-button.bouton-plein .wp-block-button__link:hover::after,
.lien-fleche a:hover::after { transform: translateX(4px); }
.wp-block-button.bouton-contour .wp-block-button__link { color: var(--marine); background: rgba(255,255,255,.12); padding: 0 38px; }
.wp-block-button.bouton-contour .wp-block-button__link:hover { background: var(--marine); color: var(--blanc); }
.wp-block-button.bouton-entete .wp-block-button__link { min-height: 50px; padding: 0 22px; font-size: 12px; gap: 12px; }

.lien-fleche a { display: inline-flex; align-items: center; gap: 14px; }

/* ---------- En-tête ---------- */
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
.wp-block-site-logo.logo { line-height: 0; }
.wp-block-site-logo.logo img { width: auto; height: 96px; }
.logo-pied .wp-block-site-logo img { width: auto; height: 84px; }
.logo-pied { display: grid; justify-items: center; }

.menu.wp-block-navigation { margin-left: auto; margin-right: 50px; }
.menu .wp-block-navigation__container { gap: 52px; }
.menu .wp-block-navigation-item__content {
  position: relative; display: block; padding: 10px 0;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(8, 30, 60, .3);
}
.menu .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transition: transform .25s;
}
.menu .current-menu-item > .wp-block-navigation-item__content::after,
.menu .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.menu .wp-block-navigation__responsive-container-open,
.menu .wp-block-navigation__responsive-container-close { color: var(--blanc); }
.menu .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
/* Panneau mobile : le CSS du bloc est imprimé après le thème, d'où !important */
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--marine) !important; color: var(--blanc) !important;
  padding: 32px 24px;
}
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__container { gap: 18px; align-items: flex-start; margin-left: 0; }
.wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; padding-top: 40px; }
.wp-block-navigation.menu .is-menu-open .wp-block-navigation-item__content { font-size: 16px; text-shadow: none; }

/* ---------- Méthode : icônes en arrière-plan (aucun SVG dans le contenu) ---------- */
.etape::before, .coordonnee::before {
  content: ""; display: block; flex: none;
  border: 1.5px solid var(--encre); border-radius: 50%;
  background: center / 26px 26px no-repeat;
}
.etape::before { width: 82px; height: 82px; margin-bottom: 18px; }
.etape-1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2340' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5.5h14a1.5 1.5 0 0 1 1.5 1.5v8a1.5 1.5 0 0 1-1.5 1.5h-7.5L7 20v-3.5H5A1.5 1.5 0 0 1 3.5 15V7A1.5 1.5 0 0 1 5 5.5Z'/%3E%3Cpath d='M8 10.5h.01M12 10.5h.01M16 10.5h.01'/%3E%3C/svg%3E"); }
.etape-2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2340' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3.5H7A1.5 1.5 0 0 0 5.5 5v14A1.5 1.5 0 0 0 7 20.5h10a1.5 1.5 0 0 0 1.5-1.5V8L14 3.5Z'/%3E%3Cpath d='M14 3.5V8h4.5M9 12.5h6M9 16h6'/%3E%3C/svg%3E"); }
.etape-3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2340' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/%3E%3C/svg%3E"); }
.etape-4::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2340' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 19.5h17M5 15.5l4.5-4.5 3.5 3 6-6.5'/%3E%3Cpath d='M15 7.5h4v4'/%3E%3C/svg%3E"); }

/* ---------- Contact : coordonnées ---------- */
.coordonnee { grid-template-columns: 54px 1fr; column-gap: 18px; row-gap: 0; align-items: center; }
.coordonnee::before { width: 54px; height: 54px; background-size: 22px 22px; grid-row: 1 / span 2; }
.coordonnee > * { grid-column: 2; }
.coordonnee-valeur a { color: inherit; }
.coordonnee-tel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2340' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 3.5h2.6l1.4 4-2 1.3a11.5 11.5 0 0 0 6.6 6.6l1.3-2 4 1.4v2.6a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2Z'/%3E%3C/svg%3E"); }
.coordonnee-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2340' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='1.5'/%3E%3Cpath d='m4 6.5 8 6 8-6'/%3E%3C/svg%3E"); }
.coordonnee-whatsapp::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2340' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5l1.3-4.2A8.5 8.5 0 1 1 8 19.4l-4.5 1.1Z'/%3E%3Cpath d='M9 8.5c0 3.5 3 6.5 6.5 6.5l1-1.5-2-1-1 1c-1.2-.5-2.3-1.6-2.8-2.8l1-1-1-2L9 8.5Z'/%3E%3C/svg%3E"); }

/* ---------- Pied de page ---------- */
.pied-menu.wp-block-navigation .wp-block-navigation__container { gap: 42px; }
.pied-menu .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 4px; }
.wp-block-social-links.reseaux { gap: 16px; justify-self: end; margin: 0; padding: 0; }
.wp-block-social-links.reseaux .wp-social-link { background: none !important; color: var(--encre) !important; margin: 0; }
.wp-block-social-links.reseaux .wp-block-social-link-anchor { padding: 2px; }
.wp-block-social-links.reseaux .wp-social-link svg { width: 25px; height: 25px; fill: currentColor; }
.pied-bas > p { margin: 0; }

/* ---------- Formulaire Contact Form 7 ---------- */
.formulaire .wpcf7-form-control-wrap { display: block; }
.formulaire .wpcf7 form { margin: 0; }
.formulaire .champ select { appearance: auto; }
.formulaire .consentement .wpcf7-list-item { margin: 0; }
.formulaire .consentement label { display: flex; gap: 12px; align-items: flex-start; }
.formulaire .consentement input { margin-top: 3px; accent-color: var(--marine); }
.formulaire .wpcf7-submit {
  display: inline-flex; align-items: center; min-height: 60px; margin-top: 30px; padding: 0 28px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blanc); background: var(--marine); border: 1px solid var(--marine); border-radius: 3px; cursor: pointer;
  transition: background-color .25s;
}
.formulaire .wpcf7-submit:hover { background: var(--encre); }
.formulaire .wpcf7-spinner { display: none; }
.formulaire .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #9b1c1c; }
.formulaire .wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 16px; border: 1px solid var(--lin); font-size: 15px; color: var(--encre); }
.formulaire .wpcf7 form.sent .wpcf7-response-output { border-color: var(--marine); }

/* La dernière rangée garde sa marge : WordPress annule celle du :last-child (layout flow) */
.rangees .rangee { margin-bottom: 110px; }
@media (max-width: 960px) { .rangees .rangee { margin-bottom: 80px; } }
/* Champs CF7 enveloppés dans un span : sans display:block, la ligne de base ajoute ~8 px */
.formulaire .champ input, .formulaire .champ select, .formulaire .champ textarea { display: block; }

/* ---------- Pages simples (index, 404) ---------- */
.page-simple { padding: 220px 0 120px; }
.page-simple .titre-section { margin-bottom: 20px; }
.page-simple-texte { font-size: 18px; max-width: 620px; margin-bottom: 36px; }

/* ---------- Responsive : la navigation passe en burger dès 960 px ---------- */
@media (max-width: 960px) {
  .entete .wp-block-buttons.entete-cta { display: none; }
  .menu .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .menu.wp-block-navigation { margin-right: 0; }
  .menu .wp-block-navigation__responsive-container-open { width: 46px; height: 46px; align-items: center; justify-content: center; background: var(--marine); border-radius: 3px; }
  .menu .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
  .wp-block-social-links.reseaux { justify-self: center; }
  .pied-menu.wp-block-navigation .wp-block-navigation__container { justify-content: center; }
}
@media (max-width: 600px) {
  .wp-block-site-logo.logo img { height: 72px; }
  .wp-block-buttons.boutons { gap: 14px; }
  .wp-block-button.bouton .wp-block-button__link { min-height: 54px; }
  .pied-menu.wp-block-navigation .wp-block-navigation__container { flex-wrap: wrap; gap: 12px 24px; }
  .page-simple { padding: 170px 0 80px; }
}
