/*
Theme Name: Azimut Production
Author: Azimut Production
Description: Thème bloc sur mesure d'Azimut Production, studio de photographie et de production audiovisuelle. Toutes les pages se modifient dans l'éditeur de blocs.
Version: 1.2.2
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: azimut-production
*/

/* ===== Jetons (repris de la maquette validée) ===== */
:root {
  --fond: #FFFFFF;
  --gris: #EFEFEF;
  --trait: #D2D2D2;
  --encre: #1F1D1A;
  --encre-2: #57534D;
  /* ex-doré, passé à l'orange du client (#FF6A00) ; le texte orange sur fond clair prend une nuance plus profonde pour rester lisible */
  --or: #FF6A00;
  --or-bord: #FF6A00;
  --or-texte: #D95A00;
  --orange: var(--wp--preset--color--orange, #FF6A00);
  --orange-fonce: #D95A00;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --rayon: 16px;
  --largeur: 1180px;
  --carte: min(16vw, 30vh, 240px);   /* largeur d'une carte de l'arc du héros */
  --pas-arc: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* height:auto obligatoire : WordPress ajoute width/height aux images, qui l'emporteraient sur aspect-ratio */
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.005em; hyphens: none; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }

/* Espacement automatique de Gutenberg : coupé à la source (theme.json, blockGap 0px),
   filet de sécurité à spécificité nulle — jamais .wp-block-group > * (voir la méthode). */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }

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

/* ----- Boutons (core/button : la classe est sur le conteneur, le style sur le lien) ----- */
.wp-block-button.bouton > .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 180px;
  color: var(--or-texte);
  font-size: 15px; font-weight: 600; line-height: 1.6;
  padding: 11px 28px;
  border: 2px solid var(--or-bord); border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
}
.wp-block-button.bouton > .wp-block-button__link:hover { background: var(--or); border-color: var(--or); color: #fff; }
.wp-block-buttons:has(> .bouton-petit) { margin-top: 30px; }
.wp-block-button.bouton-petit > .wp-block-button__link { min-width: 0; font-size: 14px; padding: 9px 24px; }

/* ----- En-tête ----- */
.entete { position: absolute; inset: 0 0 auto; z-index: 20; padding-top: 22px; color: var(--encre); }
.barre {
  width: min(1240px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 24px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}
/* logo : le sigle est dessiné en CSS (deux formes), le nom reste un texte modifiable */
.logo { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 28px; padding-left: 44px; }
.logo::before, .logo::after { content: ""; position: absolute; left: 0; top: 50%; width: 34px; height: 28px; translate: 0 -50%; }
.logo::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M4 28 18 4h6L10 28z' fill='%23D59F0F'/%3E%3C/svg%3E") center / contain no-repeat; }
.logo::after {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M20 28 30 11l6 17z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M20 28 30 11l6 17z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.logo-nom { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1; }
.logo-nom a::after { content: ""; position: absolute; inset: 0; }   /* tout le logo est cliquable */
.logo-sous { font-family: var(--sans); font-weight: 500; font-size: 9px; line-height: 1; letter-spacing: .3em; text-transform: uppercase; opacity: .7; margin-top: 4px; }

/* menu (core/navigation) */
.wp-block-navigation.menu { margin-inline: auto; gap: 4px; font-size: 14px; }
.wp-block-navigation.menu .wp-block-navigation__container { gap: 4px; }
.wp-block-navigation.menu .wp-block-navigation-item__content {
  display: block; font-weight: 500; line-height: 1.6; opacity: .75;
  padding: 9px 18px; border-radius: 14px;
  transition: opacity .2s, background .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; background: rgba(127,127,127,.14); }
.wp-block-buttons.entete-cta { flex: none; }
.wp-block-button.bouton-contact > .wp-block-button__link {
  font-size: 14px; font-weight: 600; line-height: 1.6;
  padding: 10px 22px; border-radius: 14px; border: 1.5px solid currentColor;
  transition: background .2s, color .2s, border-color .2s;
}
.wp-block-button.bouton-contact > .wp-block-button__link:hover { background: var(--or); border-color: var(--or); color: #fff; }

/* sur la vidéo d'accueil, l'en-tête passe en clair */
.home .entete, body:has(.tete-film) .entete { color: #fff; }
.home .entete .barre, body:has(.tete-film) .entete .barre { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }

/* bouton « menu » et panneau mobile de core/navigation */
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open {
  width: 42px; height: 35px; padding: 0; place-items: center; justify-content: center; align-items: center;
  background: rgba(127,127,127,.18); border-radius: 12px; color: inherit;
}
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open svg { width: 24px; height: 24px; }
/* ----- Menu mobile : une carte blanche sous la barre, comme sur la maquette -----
   (la barre floutée sert de cadre au panneau de core/navigation : on l'y ancre) */
@media (max-width: 900px) {
  .barre { position: relative; }
  .wp-block-navigation.menu { position: static; }   /* la carte s'ancre sur la barre, pas sur le bouton */
  .wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open {
    position: absolute; inset: calc(100% + 5px) 0 auto 0; height: auto; overflow: visible;
    padding: 10px; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.15);
    background-color: #fff !important; color: var(--encre) !important;
  }
  .wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-dialog,
  .admin-bar .wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0; }
  .wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-content { padding: 0; align-items: stretch; }
  .wp-block-navigation.menu .is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
  .wp-block-navigation.menu .is-menu-open .wp-block-navigation-item { width: 100%; }
  .wp-block-navigation.menu .is-menu-open .wp-block-navigation-item__content {
    width: 100%; font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1.6;
    padding: 9px 18px; border-radius: 14px; opacity: .75;
  }
  .wp-block-navigation.menu .is-menu-open .current-menu-item > .wp-block-navigation-item__content { opacity: 1; background: rgba(127,127,127,.14); }
  .wp-block-navigation.menu .is-menu-open .wp-block-navigation__responsive-container-close { top: 12px; right: 12px; z-index: 2; }
}

/* ----- Héros : la vidéo plein écran se range dans l'arc ----- */
.heros { position: relative; height: 240vh; }
.scene {
  position: sticky; top: 0;
  height: 100vh; min-height: 640px;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 46px;
  padding-top: 96px;
  --c-texte: #fff;
  --c-accent: #fff;
}
.heros-texte {
  position: relative; z-index: 3;
  text-align: center; padding-inline: 24px;
  color: var(--c-texte);
  will-change: transform;
}
/* titre et chapeau en Monument Extended (police du thème, réglable dans l'éditeur) : blancs sur la vidéo, à l'encre une fois la vidéo rangée */
.heros h1 { font-family: var(--wp--preset--font-family--monument); font-size: clamp(26px, 3.9vw, 58px); line-height: 1.12; letter-spacing: 0; max-width: none; margin-inline: auto; font-weight: 400; }
.chapeau { font-family: var(--wp--preset--font-family--monument); max-width: 640px; margin: 22px auto 30px; font-size: 13.5px; line-height: 1.75; opacity: .85; }
.heros-texte .wp-block-buttons { justify-content: center; }
.heros .wp-block-button.bouton > .wp-block-button__link { color: var(--c-accent); border-color: var(--c-accent); }
.heros .wp-block-button.bouton > .wp-block-button__link:hover { background: var(--or); border-color: var(--or); color: #fff; }

.arc {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: var(--pas-arc);
  perspective: 1100px;
  --c: 1;
}
.carte-arc {
  flex: 0 0 auto;
  width: var(--carte);
  aspect-ratio: 25 / 29;
  border-radius: var(--rayon); overflow: hidden;
  box-shadow: 0 24px 50px rgba(30, 24, 10, .18);
  opacity: var(--c); translate: 0 calc((1 - var(--c)) * 140px);
}
.wp-block-image.carte-arc img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-video.carte-arc video { width: 100%; height: 100%; object-fit: cover; }   /* les films des cartes, recadrés au format de la carte */
/* la place centrale de l'arc est laissée libre : la vidéo vient s'y ranger */
.carte-arc:nth-child(1) { transform: rotateY(30deg) scale(1.08); transform-origin: right center; }
.carte-arc:nth-child(2) { transform: rotateY(15deg) translateY(8px); transform-origin: right center; margin-inline-end: calc(var(--carte) + var(--pas-arc)); }
.carte-arc:nth-child(3) { transform: rotateY(-15deg) translateY(8px); transform-origin: left center; }
.carte-arc:nth-child(4) { transform: rotateY(-30deg) scale(1.08); transform-origin: left center; }

.wp-block-video.heros-video {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  z-index: 2; overflow: hidden;
  border-radius: 0;
  background: #1a1712;
}
.wp-block-video.heros-video video { width: 100%; height: 100%; object-fit: cover; }
.wp-block-video.heros-video::after {   /* voile sur la vidéo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(10,8,5,.35), rgba(10,8,5,.55));
  opacity: var(--voile, 1);
}
.indice {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; translate: -50% 0;
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.indice::after { content: ""; width: 1px; height: 34px; background: linear-gradient(#fff, transparent); }

/* ----- Histoire : bloc fixe, le contenu change au défilement ----- */
.histoire { position: relative; height: 300vh; margin-top: 40px; }
.histoire-scene {
  position: sticky; top: 0;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center;
}
.histoire-scene > .enveloppe { width: min(var(--largeur), 100% - 48px); }
.onglets {
  display: flex; justify-content: center; gap: 4px;
  width: max-content; max-width: 100%; margin: 0 auto 56px;
  padding: 5px; border-radius: 999px;
  background: var(--gris);
}
.onglet {
  font: 500 14px var(--sans); color: var(--encre-2);
  cursor: pointer; user-select: none;
  padding: 8px 20px; border-radius: 999px;
  transition: background .35s, color .35s;
}
.onglet:hover { color: var(--encre); }
.onglet.actif { background: var(--or); color: var(--encre); }

.panneaux { display: grid; }
.panneau {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 72px; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.panneau.actif { opacity: 1; visibility: visible; }
.panneau-texte { transform: translateY(26px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.panneau.actif .panneau-texte { transform: none; }
.panneau h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; margin-bottom: 22px; }
.panneau p { font-size: 16px; color: var(--encre-2); }
.panneau p + p { margin-top: 14px; }
.panneau-photo { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; max-height: 58vh; }
.wp-block-image.panneau-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.panneau.actif .wp-block-image.panneau-photo img { transform: none; }

/* ----- Services ----- */
.services { padding-top: 120px; }
.titre-section { text-align: center; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; text-transform: uppercase; font-weight: 500; letter-spacing: .01em; }
.services-intro { max-width: 860px; margin: 22px auto 0; text-align: center; font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--encre); }
.services-intro p + p { margin-top: 26px; }

/* la carte reste fixe, les prestations s'y relaient au défilement (comme « Notre histoire ») */
.services-piste { position: relative; height: 300vh; margin-top: 64px; }
.services-cadre {
  position: sticky; top: 40px;
  width: min(1240px, 100% - 48px); height: calc(100vh - 80px); min-height: 560px;
  margin-inline: auto;
  border-radius: 18px; overflow: hidden;
  background: #1C1A17;
  color: #fff;
}
.services-rail { display: grid; }
.prestation { display: grid; grid-template-columns: 1fr 1fr; height: max(calc(100vh - 80px), 560px); }
@media (min-width: 901px) {
  /* une seule prestation visible à la fois : Production visuelle d'abord, puis les suivantes en fondu */
  .prestation { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
  .prestation.actif { opacity: 1; visibility: visible; }
}
.prestation-image { position: relative; overflow: hidden; }
.prestation-image .wp-block-image { height: 100%; }
.prestation-image .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.prestation:nth-child(1) .prestation-image .wp-block-image img { object-position: 50% 30%; }
.prestation:nth-child(2) .prestation-image .wp-block-image img { object-position: 62% 50%; }
.prestation:nth-child(3) .prestation-image .wp-block-image img { object-position: 74% 50%; }
.prestation-etiquette {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: max-content; max-width: 90%; text-align: center;
  font-family: var(--sans); font-weight: 600; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.01em;
  color: #fff; mix-blend-mode: difference;
}
.prestation-texte {
  display: flex; flex-direction: column;
  padding: 44px clamp(28px, 3.4vw, 52px) 40px;
}
.prestation-tete { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 15px; opacity: .9; }
.etoile { font-size: 18px; color: var(--or); }
.prestation-corps { margin-block: auto; padding-block: 28px; }
.prestation h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.08; font-weight: 500; }
.prestation-accroche { margin: 10px 0 20px; font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,.85); }
.prestation-corps p:not(.prestation-accroche) { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.78); max-width: 520px; }
.prestation-corps ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prestation-corps li { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); }
.wp-block-buttons.prestation-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 22px; }
.wp-block-button.bouton-clair > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--encre);
  font-family: var(--serif); font-size: 16px; line-height: 1.6;
  padding: 11px 20px; border-radius: 8px;
  transition: background .25s;
}
.wp-block-button.bouton-clair > .wp-block-button__link::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }
.wp-block-button.bouton-clair > .wp-block-button__link:hover { background: #FFE6D5; }
.wp-block-button.lien-discret > .wp-block-button__link { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.wp-block-button.lien-discret > .wp-block-button__link:hover { color: #fff; border-color: var(--or); }

@media (max-width: 900px) {
  .panneau { grid-template-columns: 1fr; gap: 26px; }
  .panneau-photo { aspect-ratio: 16 / 10; max-height: 30vh; width: 100%; }
  .panneau h2 { margin-bottom: 14px; }
  /* sur mobile, les prestations s'empilent simplement */
  .services-piste { height: auto; }
  .services-cadre { position: static; height: auto; min-height: 0; background: none; overflow: visible; border-radius: 0; }
  .services-rail { transform: none !important; display: grid; gap: 16px; }
  .prestation { grid-template-columns: 1fr; height: auto; border-radius: 18px; overflow: hidden; background: #1C1A17; }
  .prestation-image { aspect-ratio: 4 / 3; }
  .prestation-texte { padding: 26px 22px 28px; }
  .prestation-corps { padding-block: 26px; }
}
@media (max-width: 600px) {
  .histoire { margin-top: 0; }
  .onglets { margin-bottom: 30px; }
  .onglet { padding: 7px 11px; font-size: 12.5px; white-space: nowrap; }
  .panneau p { font-size: 15px; }
  .services { padding-top: 90px; }
  .services-intro { font-size: 16px; }
  .services-piste { margin-top: 44px; }
  .services-cadre { width: calc(100% - 32px); }
}
@media (max-width: 600px) and (max-height: 740px) {
  .panneau-photo { display: none; }
}

/* ----- Titres centrés ----- */
.titre-centre { text-align: center; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; }
/* ----- Méthode (cartes) ----- */
.methode { padding-top: 140px; }
.intro-centre { max-width: 560px; margin: 18px auto 0; text-align: center; font-size: 17px; color: var(--encre-2); }
.cartes-methode { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.carte-methode {
  display: flex; flex-direction: column;
  background: var(--gris);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
}
.carte-methode h3 { font-size: 27px; font-weight: 500; line-height: 1.15; padding: 52px 20px 18px; border-bottom: 1px solid var(--trait); }
.carte-methode p { flex: 1; padding: 26px 22px 0 24px; font-size: 16px; line-height: 1.55; color: var(--encre); }
/* bouton chevron : le texte reste pour les lecteurs d'écran, la flèche est un masque CSS */
.carte-methode > .wp-block-buttons { margin: 26px 24px; }
.wp-block-button.chevron > .wp-block-button__link {
  display: grid; place-items: center;
  width: 136px; height: 36px; padding: 0;
  border: 2px solid var(--or-bord); border-radius: 999px;
  font-size: 0; color: transparent;
  transition: background .25s;
}
.wp-block-button.chevron > .wp-block-button__link::before {
  content: ""; width: 18px; height: 18px; background: var(--or-bord);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.chevron > .wp-block-button__link:hover { background: var(--or-bord); }
.wp-block-button.chevron > .wp-block-button__link:hover::before { background: #fff; }

/* ----- Pied de page ----- */
.pied { padding: 130px 0 28px; }
.encart {
  position: relative;
  border-radius: 20px;
  padding: 54px 50px 26px;
  background: var(--gris);
}
.wp-block-buttons.haut-de-page { position: absolute; right: 0; top: 0; }
.haut-de-page .wp-block-button__link {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; line-height: 1.6;
  padding: 12px 14px 12px 22px;
  background: var(--fond); border-radius: 0 0 0 20px;
}
.haut-de-page .wp-block-button__link::after {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pied-grille { display: grid; grid-template-columns: 1.3fr .5fr 1fr; gap: 40px; }
.pied-appel h2 { font-size: 38px; line-height: 1.08; max-width: 380px; }
.pied-appel p { margin: 16px 0 26px; font-size: 15px; color: var(--encre-2); max-width: 340px; }
.wp-block-button.bouton-fleche > .wp-block-button__link { padding: 7px 7px 7px 24px; min-width: 0; }
.wp-block-button.bouton-fleche > .wp-block-button__link::after {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: background-color .25s;
}
.pied-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--encre-2); padding-top: 54px; }
.pied-col h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--encre); margin-bottom: 4px; }
.pied-col a:hover { color: var(--orange); }
/* bouton du pied : contour et flèche orange, libellé à l'encre (l'orange seul sur le gris serait trop pâle à lire) */
.pied .wp-block-button.bouton > .wp-block-button__link { color: var(--encre); border-color: var(--orange); }
.pied .wp-block-button.bouton > .wp-block-button__link:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.pied .wp-block-button.bouton-fleche > .wp-block-button__link:hover::after { background-color: rgba(255,255,255,.28); }
.pied-services { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; column-gap: 30px; row-gap: 8px; }
.pied-services h3 { grid-column: 1 / -1; }
.pied-bas {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 70px; padding-top: 18px; border-top: 1px solid var(--trait);
  font-size: 14px; font-weight: 500;
  min-height: 51px;   /* même hauteur que la rangée d'icônes, qu'elles soient renseignées ou non */
}
/* réseaux sociaux (core/social-links) : un lien sans adresse ne s'affiche pas sur le site */
.wp-block-social-links.reseaux { display: flex; gap: 8px; margin: 0; padding: 0; min-height: 32px; }   /* rangée réservée, même vide */
.wp-block-social-links.reseaux .wp-social-link.wp-block-social-link {
  width: 32px; height: 32px; margin: 0;
  border-radius: 8px; background-color: var(--orange); color: #fff;
  transition: background .2s;
}
.wp-block-social-links.reseaux .wp-social-link.wp-block-social-link:hover { background-color: var(--orange-fonce); transform: none; }
.wp-block-social-links.reseaux .wp-social-link.wp-block-social-link a { width: 100%; height: 100%; display: grid; place-items: center; padding: 0; }
.wp-block-social-links.reseaux .wp-social-link.wp-block-social-link svg { width: 16px; height: 16px; fill: currentColor; }
.pied-legal { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--trait); font-size: 12px; color: var(--encre-2); }
.pied-legal p:last-child { display: flex; gap: 20px; }

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .cartes-methode { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* menu replié sous 900 px (core/navigation ne replie qu'à 600 px par défaut) */
  .wp-block-buttons.entete-cta { display: none; }
  .wp-block-navigation.menu { margin-inline: auto 0; }
  .wp-block-navigation.menu .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .wp-block-navigation.menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .pied-grille { grid-template-columns: 1fr; }
  .pied-col { padding-top: 0; }
}
@media (max-width: 600px) {
  :root { --carte: 29vw; --pas-arc: 10px; }
  .heros { height: 210vh; }
  .scene { gap: 36px; padding-top: 90px; }
  .chapeau { font-size: 12px; line-height: 1.7; }
  .methode { padding-top: 96px; }
  .cartes-methode { grid-template-columns: 1fr; }
  .carte-methode h3 { padding-top: 34px; }
  .encart { padding: 64px 22px 22px; }
  .pied-appel h2 { font-size: 32px; }
  .pied-services { grid-template-columns: 1fr; }
  .pied-bas, .pied-legal { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ----- Services : chaque partie apparaît au défilement ----- */
.prestation-tete, .prestation h3, .prestation-accroche, .prestation-corps > p:not(.prestation-accroche),
.prestation-corps li, .prestation-actions, .prestation-etiquette {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.prestation-tete { --i: 0; }
.prestation h3 { --i: 1; }
.prestation-accroche { --i: 2; }
.prestation-corps > p:not(.prestation-accroche) { --i: 3; }
.prestation-corps li:nth-child(1) { --i: 4; }
.prestation-corps li:nth-child(2) { --i: 4.5; }
.prestation-corps li:nth-child(3) { --i: 5; }
.prestation-corps li:nth-child(4) { --i: 5.5; }
.prestation-actions { --i: 6; }
.prestation-etiquette { --i: 2; transform: translateY(18px); }
.prestation-image .wp-block-image img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.prestation.vue .prestation-tete, .prestation.vue h3, .prestation.vue .prestation-accroche,
.prestation.vue .prestation-corps > p, .prestation.vue .prestation-corps li,
.prestation.vue .prestation-actions, .prestation.vue .prestation-etiquette { opacity: 1; transform: none; }
.prestation.vue .prestation-image .wp-block-image img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .prestation *, .prestation-image .wp-block-image img { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   PAGES INTÉRIEURES
   ===================================================================== */

/* ----- En-tête de page ----- */
.tete-page { padding-top: 168px; }
.tete-page-texte { text-align: center; }
.surtitre {
  display: inline-block; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 18px; border-radius: 999px;
  background: var(--or); color: var(--encre);
}
.tete-page h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; max-width: 980px; margin-inline: auto; }
.tete-intro { max-width: 640px; margin: 24px auto 0; font-size: 17px; color: var(--encre-2); }
.image-tete { width: min(1240px, 100% - 48px); margin: 64px auto 0; border-radius: 18px; overflow: hidden; }
.wp-block-image.image-tete img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ----- En-tête en vidéo (À propos) : pleine largeur, hauteur adaptée à chaque écran ----- */
.tete-film {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  /* bandeau : 42 % de la largeur (entre 440 et 640 px), jamais plus haut que l'écran */
  height: min(100vh, clamp(440px, 42vw, 640px));
  height: min(100svh, clamp(440px, 42vw, 640px));
  padding: 110px 0 56px;
  background: #1a1712; color: #fff;
}
.wp-block-video.tete-film-video { position: absolute; inset: 0; z-index: -2; margin: 0; }
.wp-block-video.tete-film-video video { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.tete-film::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(10,8,5,.5), rgba(10,8,5,.3) 45%, rgba(10,8,5,.55));
}
.tete-film h1 { color: #fff; text-wrap: balance; }
.tete-sous-titre {
  max-width: 760px; margin: 18px auto 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.75vw, 24px); line-height: 1.4;
  color: rgba(255,255,255,.88); text-wrap: balance;
}

/* ----- À propos : récit ----- */
.recit { padding-top: 140px; }
.recit-grille { display: grid; grid-template-columns: .9fr 1fr; gap: 80px; align-items: center; }
.recit-photo { border-radius: var(--rayon); overflow: hidden; }
.wp-block-image.recit-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }
.recit-texte h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.05; margin-bottom: 24px; }
.recit-texte p { color: var(--encre-2); }
.recit-texte p + p { margin-top: 14px; }
/* récit long : intertitres, et la photo accompagne la lecture (collée en haut de l'écran) */
.recit-texte h3 { margin: 40px 0 14px; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; color: var(--encre); }
@media (min-width: 901px) {
  .recit-grille { align-items: start; }
}
@media (min-width: 901px) and (min-height: 760px) {
  .recit-photo { position: sticky; top: 48px; }
}
.recit-texte .signature { margin-top: 30px; font-family: var(--serif); font-size: 26px; color: var(--encre); }
.recit-texte .signature-role { margin-top: 2px; font-family: var(--sans); font-size: 13px; color: var(--encre-2); }

/* ----- À propos : valeurs (cartes de méthode à trois colonnes, sans bouton) ----- */
.cartes-3 { grid-template-columns: repeat(3, 1fr); }
.carte-methode p:last-child { padding-bottom: 34px; }

/* ----- À propos : étapes détaillées ----- */
.etapes { padding-top: 140px; }
/* liste centrée sous le titre : numéro et titre côte à côte, centrés en hauteur sur le texte de l'étape */
.liste-etapes { max-width: 1000px; margin: 54px auto 0; padding: 0; border-top: 1px solid var(--trait); }
.etape-ligne {
  display: grid; grid-template-columns: 72px minmax(0, 300px) minmax(0, 1fr); column-gap: 40px; align-items: center;
  padding: 32px 28px; border-bottom: 1px solid var(--trait);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
}
.etape-numero { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--orange); }
.etape-ligne h3 { font-size: 30px; line-height: 1.1; }
.etape-ligne p { color: var(--encre-2); }
.etape-ligne p.etape-numero { color: var(--orange); }

/* survol : l'étape ou la valeur survolée s'avance (léger zoom, ombre) */
.valeurs .carte-methode { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
@media (hover: hover) {
  .etape-ligne:hover {
    position: relative; z-index: 1;
    background: #fff; border-bottom-color: transparent; border-radius: 16px;
    transform: scale(1.025); box-shadow: 0 18px 44px rgba(30,24,10,.13);
  }
  .valeurs .carte-methode:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 26px 50px rgba(30,24,10,.16); }
}
@media (prefers-reduced-motion: reduce) {
  .etape-ligne, .valeurs .carte-methode { transition: none; }
  .etape-ligne:hover, .valeurs .carte-methode:hover { transform: none; }
}

/* ----- Services : la carte suit directement l'en-tête ----- */
.tete-sans-image { padding-bottom: 0; }
.services-page { padding-top: 0; }
.services-page .services-piste { margin-top: 72px; }

/* ----- Services (page) : trois blocs l'un sous l'autre, chacun apparaît au défilement ----- */
.services-page .services-piste { height: auto; }
.services-page .services-cadre { position: static; height: auto; min-height: 0; background: none; color: inherit; overflow: visible; border-radius: 0; }
.services-page .services-rail { gap: 40px; }
.services-page .prestation {
  grid-area: auto; visibility: visible;
  height: auto; min-height: clamp(560px, calc(100vh - 160px), 700px);
  border-radius: 18px; overflow: hidden; background: #1C1A17; color: #fff;
  opacity: 0; transform: translateY(70px);
  transition: opacity .8s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.services-page .prestation.vue { opacity: 1; transform: none; }
@media (min-width: 901px) {
  /* l'image change de côté d'un bloc à l'autre */
  .services-page .prestation:nth-child(even) .prestation-image { order: 2; }
}
@media (max-width: 900px) {
  .services-page .services-rail { gap: 16px; }
  .services-page .prestation { min-height: 0; transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .services-page .prestation { opacity: 1; transform: none; transition: none; }
}

/* ----- Services : questions fréquentes (core/details) ----- */
.faq { padding-top: 140px; }
.faq-grille { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
.faq-tete h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.05; }
.faq-tete p { margin-top: 16px; color: var(--encre-2); max-width: 380px; }
.faq-tete .faq-relance { margin-top: 30px; color: var(--encre); font-weight: 500; }
.faq-tete .wp-block-buttons:has(> .bouton-petit) { margin-top: 14px; }
.faq-liste { border-top: 1px solid var(--trait); }
.question { border-bottom: 1px solid var(--trait); }
.question summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-family: var(--serif); font-size: 21px; line-height: 1.25;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {   /* le « + » qui devient « − » */
  content: ""; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--or-bord);
  background:
    linear-gradient(var(--or-texte), var(--or-texte)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--or-texte), var(--or-texte)) center / 1.5px 12px no-repeat;
  transition: background .25s, border-color .25s, transform .35s;
}
.question[open] summary::after {
  background: linear-gradient(var(--encre), var(--encre)) center / 12px 1.5px no-repeat, var(--or);
  border-color: var(--or);
  transform: rotate(180deg);
}
.question p { padding: 0 60px 26px 0; color: var(--encre-2); }

/* ----- Réalisations : portfolio photo & vidéo ----- */
.portfolio { padding-top: 56px; }
/* barre de filtres : défile à l'horizontale quand elle ne tient pas sur une ligne */
.filtres { margin: 0 auto 44px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtres .onglet { flex: 0 0 auto; white-space: nowrap; }
.galerie-vide { display: none; padding: 40px 0 10px; text-align: center; font-family: var(--serif); font-size: 22px; color: var(--encre-2); }
.galerie-vide.visible { display: block; }
/* galerie en colonnes : chaque photo ou vidéo garde ses proportions */
.galerie { columns: 3; column-gap: 20px; }
.galerie > figure {
  position: relative; break-inside: avoid;
  margin: 0 0 20px; border-radius: var(--rayon); overflow: hidden;
  background: var(--gris); cursor: zoom-in;
  animation: apparait .5s ease;
}
.galerie > figure:has(video) { cursor: pointer; }
.galerie > figure.masque { display: none; }
.galerie > figure img, .galerie > figure video { display: block; width: 100%; height: auto; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.galerie > figure:hover img, .galerie > figure:hover video { transform: scale(1.035); }
.galerie > figure:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
/* voile et légende au survol */
.galerie > figure::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent 50%, rgba(15, 12, 8, .72));
  opacity: 0; transition: opacity .4s;
}
.galerie > figure > figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; pointer-events: none;
  margin: 0; text-align: left;
  font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.82);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.2,1);
}
.galerie > figure > figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; color: #fff; }
.galerie > figure:hover::before, .galerie > figure:focus-visible::before { opacity: 1; }
.galerie > figure:hover > figcaption, .galerie > figure:focus-visible > figcaption { opacity: 1; transform: none; }
/* badge « Vidéo », ajouté d'office à toute vidéo de la galerie */
.galerie > figure:has(video)::after {
  content: "Vidéo"; position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 12px 6px 27px; border-radius: 999px;
  font: 600 12px/1.2 var(--sans); color: var(--encre);
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23FF6A00'/%3E%3C/svg%3E") no-repeat 12px 50% / 8px 10px;
}
@media (hover: none) {
  .galerie > figure::before, .galerie > figure > figcaption { opacity: 1; transform: none; }
}

/* ----- Visionneuse plein écran (créée par app.js) ----- */
.visionneuse {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(18, 16, 13, .97); color: #fff;
}
.visionneuse[open] { display: grid; grid-template-rows: 1fr auto; animation: fondu .35s ease; }
.visionneuse::backdrop { background: transparent; }
.visionneuse-scene { display: grid; place-items: center; min-height: 0; padding: 76px 100px 0; }
.visionneuse-scene img, .visionneuse-scene video {
  display: block; width: auto; height: auto;
  max-width: min(1400px, 100%); max-height: calc(100dvh - 190px);
  border-radius: 10px; animation: apparait .45s ease;
}
.visionneuse-scene video { width: min(1280px, 100%); background: #000; }
.visionneuse-legende { padding: 20px 24px 30px; text-align: center; font-size: 14px; color: rgba(255,255,255,.7); }
.visionneuse-legende strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; color: #fff; }
.visionneuse-fermer, .visionneuse-nav {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.visionneuse button:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.visionneuse-fermer:hover, .visionneuse-nav:hover { background: var(--or); border-color: var(--or); color: var(--encre); }
.visionneuse-fermer { top: 18px; right: 22px; width: 46px; height: 46px; }
.visionneuse-nav { top: 50%; translate: 0 -50%; }
.visionneuse-prec { left: 26px; }
.visionneuse-suiv { right: 26px; }
.visionneuse svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visionneuse-compteur { position: absolute; top: 29px; left: 30px; font-family: var(--serif); font-size: 16px; color: rgba(255,255,255,.7); }
html.visionneuse-ouverte { overflow: hidden; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1000px) {
  .galerie { columns: 2; }
}
@media (max-width: 600px) {
  .portfolio { padding-top: 40px; }
  .filtres { margin-bottom: 28px; }
  .galerie { column-gap: 10px; }
  .galerie > figure { margin-bottom: 10px; border-radius: 12px; }
  /* sur téléphone, la légende s'affiche dans la visionneuse */
  .galerie > figure::before, .galerie > figure > figcaption { display: none; }
  .galerie > figure:has(video)::after { content: ""; top: 8px; left: 8px; width: 28px; height: 28px; padding: 0; background-position: 11px 50%; }
  .visionneuse-scene { padding: 70px 12px 0; }
  .visionneuse-scene img, .visionneuse-scene video { max-height: calc(100dvh - 240px); border-radius: 8px; }
  .visionneuse-nav { top: auto; bottom: 24px; translate: none; width: 46px; height: 46px; }
  .visionneuse-prec { left: 16px; }
  .visionneuse-suiv { right: 16px; }
  .visionneuse-legende { padding: 18px 76px 30px; min-height: 100px; }
  .visionneuse-legende strong { font-size: 20px; }
  .visionneuse-compteur { left: 20px; top: 30px; }
  .visionneuse-fermer { right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .galerie > figure, .galerie > figure img, .galerie > figure video, .visionneuse[open], .visionneuse-scene img, .visionneuse-scene video { animation: none; transition: none; }
}

@media (max-width: 900px) {
  .recit-grille, .faq-grille { grid-template-columns: 1fr; gap: 40px; }
  .wp-block-image.recit-photo img { aspect-ratio: 4 / 3; }
  .cartes-3 { grid-template-columns: 1fr; }
  .etape-ligne { grid-template-columns: 64px 1fr; gap: 10px 20px; align-items: baseline; padding: 28px 16px; }
  .etape-ligne p { grid-column: 2; }
  .etape-ligne p.etape-numero { grid-column: auto; }
  .etape-numero { font-size: 34px; }
  .etape-ligne h3 { font-size: 26px; }
}
@media (max-width: 600px) {
  .tete-page { padding-top: 132px; }
  .tete-film { padding: 100px 0 40px; }
  .tete-intro { font-size: 16px; }
  .image-tete { width: calc(100% - 32px); margin-top: 44px; }
  .wp-block-image.image-tete img { aspect-ratio: 4 / 3; }
  .recit, .etapes, .faq { padding-top: 96px; }
  .question summary { font-size: 18px; }
  .question p { padding-right: 0; }
  .filtres .onglet { padding: 7px 10px; font-size: 12px; }
}
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----- Pages système : 404 et liste d'articles ----- */
.tete-page-texte .wp-block-buttons { justify-content: center; margin-top: 32px; }
.liste-articles { padding: 64px 0 20px; }
.liste-articles .wp-block-post-title { font-size: 32px; line-height: 1.15; margin-top: 36px; }
.liste-articles .wp-block-post-excerpt { margin-top: 10px; color: var(--encre-2); }

/* ----- Pages simples (texte posé sans section) : une colonne de lecture sous l'en-tête ----- */
.wp-block-post-content > :not(.wp-block-group) { width: min(760px, 100% - 48px); margin-inline: auto; }
.wp-block-post-content > :not(.wp-block-group):first-child { margin-top: 170px; }
.wp-block-post-content > :not(.wp-block-group) + :not(.wp-block-group) { margin-top: 1.1em; }
.wp-block-post-content > h2:not(.wp-block-group), .wp-block-post-content > h3:not(.wp-block-group) { margin-top: 1.6em; }
.wp-block-post-content > h1:not(.wp-block-group) { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.wp-block-post-content > h2:not(.wp-block-group) { font-size: 32px; line-height: 1.15; }
.wp-block-post-content > p:not(.wp-block-group) a { text-decoration: underline; text-underline-offset: 3px; }

/* ----- Mentions légales : une colonne de lecture, des rubriques séparées par un filet ----- */
.legal { padding-top: 88px; }
.legal-colonne { width: min(760px, 100% - 48px); margin-inline: auto; }
.legal-colonne h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.12; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--trait); scroll-margin-top: 120px; }
.legal-colonne > h2:first-child { margin-top: 0; }
.legal-colonne h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--encre); margin-top: 32px; }
.legal-colonne h2 + h3 { margin-top: 26px; }
.legal-colonne p { margin-top: 12px; color: var(--encre-2); }
.legal-colonne ul { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--trait); }
.legal-colonne li { padding: 12px 0; border-bottom: 1px solid var(--trait); color: var(--encre-2); }
.legal-colonne li strong { display: inline-block; min-width: 150px; font-weight: 600; color: var(--encre); }
.legal-colonne a { color: var(--or-texte); }
.legal-colonne a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .legal { padding-top: 64px; }
  .legal-colonne { width: calc(100% - 32px); }
  .legal-colonne li strong { display: block; min-width: 0; }
}

/* =====================================================================
   CONTACT : coordonnées (carte sombre) + formulaire Contact Form 7
   ===================================================================== */
.contact { padding-top: 72px; }
.contact-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; }
.contact-infos {
  background: #1C1A17; color: #fff; border-radius: 18px;
  padding: 44px clamp(26px, 3.4vw, 48px) 36px;
}
.contact-infos h2, .formulaire-contact h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; margin-bottom: 24px; }
.contact-ligne { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-libelle { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.contact-valeur { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 26px); line-height: 1.25; overflow-wrap: anywhere; }
.contact-valeur a { border-bottom: 1px solid rgba(255,255,255,.3); transition: color .2s, border-color .2s; }
.contact-valeur a:hover { color: var(--orange); border-color: var(--orange); }
.contact-note { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.72); }
.contact-infos .wp-block-social-links.reseaux { margin-top: 4px; }

.formulaire-contact { position: relative; background: var(--gris); border-radius: 18px; padding: 44px clamp(22px, 3.4vw, 48px) 38px; }
.formulaire-contact .wpcf7-form { margin: 0; }
.formulaire-contact .wpcf7-form-control-wrap { display: block; }
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.champ { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.champ label, .champ legend { padding: 0; font-size: 14px; font-weight: 600; color: var(--encre); }
.champ legend { margin-bottom: 9px; }
.champ small { font-weight: 400; color: var(--encre-2); }
.champ input:not([type="checkbox"]), .champ textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--encre);
  background: #fff; border: 1.5px solid var(--trait); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.champ textarea { display: block; min-height: 150px; height: 170px; resize: vertical; line-height: 1.55; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.18); }
.champ .wpcf7-not-valid { border-color: #C0392B; }
.formulaire-contact .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 500; color: #C0392B; }
/* type de projet : pastilles à choix unique */
.choix-liste .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-liste .wpcf7-list-item { margin: 0; }
.choix-liste label { position: relative; display: block; cursor: pointer; font-weight: 500; }
.choix-liste input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.choix-liste .wpcf7-list-item-label {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--trait); background: #fff; font-size: 14px;
  transition: background .2s, border-color .2s, color .2s;
}
.choix-liste label:hover .wpcf7-list-item-label { border-color: var(--orange); }
.choix-liste input:checked + .wpcf7-list-item-label { background: var(--encre); border-color: var(--encre); color: #fff; }
.choix-liste input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--orange); outline-offset: 2px; }
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* envoi : bouton noir, rond orange fléché */
.formulaire-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.envoi { position: relative; display: inline-flex; align-items: center; }
.envoi .wpcf7-submit {
  appearance: none; margin: 0; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 56px 12px 26px;
  background: var(--encre); color: #fff; font: 600 15px/1.6 var(--sans);
  transition: background .25s;
}
.envoi::after {
  content: ""; position: absolute; right: 6px; top: 50%; translate: 0 -50%; pointer-events: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform .25s;
}
.envoi:hover .wpcf7-submit { background: #000; }
.envoi:hover::after { transform: translateX(3px); }
.envoi .wpcf7-submit:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.envoi .wpcf7-spinner { position: absolute; left: 100%; margin: 0 0 0 12px; }
.formulaire-mention { margin: 0; font-size: 13px; color: var(--encre-2); }
.formulaire-mention a { text-decoration: underline; text-underline-offset: 2px; }
/* message de retour après l'envoi */
.formulaire-contact .wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0; padding: 14px 18px; border: 0; border-left: 4px solid var(--orange); border-radius: 12px;
  background: #fff; font-size: 15px; color: var(--encre);
}
.formulaire-contact .wpcf7 form.invalid .wpcf7-response-output,
.formulaire-contact .wpcf7 form.unaccepted .wpcf7-response-output,
.formulaire-contact .wpcf7 form.failed .wpcf7-response-output,
.formulaire-contact .wpcf7 form.aborted .wpcf7-response-output,
.formulaire-contact .wpcf7 form.spam .wpcf7-response-output { border-color: #C0392B; }
.formulaire-contact .wpcf7 form.sent .wpcf7-response-output { border-color: var(--orange); }

/* le lien « Contact » du menu ne sert que sur mobile, où le bouton « Parlons-en » est masqué */
@media (min-width: 901px) {
  .menu .lien-contact { display: none; }
}
@media (max-width: 900px) {
  .contact-grille { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact { padding-top: 48px; }
  .champs-duo { grid-template-columns: 1fr; }
  .contact-infos, .formulaire-contact { padding: 32px 22px 28px; }
}

/* =====================================================================
   TYPOGRAPHIE : titres h2 et h3 en Monument Extended, textes en Inter
   (les grands titres de page h1 restent en Newsreader)
   ===================================================================== */
:root { --sans: var(--wp--preset--font-family--inter, "Inter", system-ui, sans-serif); }
body h2, .titre-section, .titre-centre, .panneau h2, .pied-appel h2, .recit-texte h2, .faq-tete h2,
.contact-infos h2, .formulaire-contact h2, .legal-colonne h2, .wp-block-post-content > h2:not(.wp-block-group) {
  font-family: var(--wp--preset--font-family--monument); font-weight: 400; letter-spacing: 0;
  font-size: clamp(24px, 6.4vw, 30px); line-height: 1.2;
}
/* petits titres h3 : un cran sous les h2 pour garder la hiérarchie */
body h3, .prestation h3, .carte-methode h3, .recit-texte h3, .etape-ligne h3, .pied-col h3, .legal-colonne h3 {
  font-family: var(--wp--preset--font-family--monument); font-weight: 400; letter-spacing: 0;
  font-size: clamp(18px, 4.8vw, 20px); line-height: 1.25;
}
.prestation h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.pied-col h3 { font-size: 13px; letter-spacing: .02em; }
.legal-colonne h3 { font-size: 15px; }
/* cartes « méthode » : le filet sous le titre reste aligné d'une carte à l'autre (titres sur 1 ou 2 lignes) */
@media (min-width: 601px) {
  .carte-methode h3 { min-height: 120px; display: flex; align-items: flex-end; }
}

/* accents passés en Inter : numéros, signature, étiquettes et accroches, valeurs, questions, légendes */
.prestation-tete { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.prestation-accroche { font-family: var(--sans); font-size: 16px; }
.wp-block-button.bouton-clair > .wp-block-button__link { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.wp-block-button.lien-discret > .wp-block-button__link { font-family: var(--sans); font-size: 15px; font-weight: 500; }
.tete-sous-titre { font-family: var(--sans); font-weight: 400; font-size: clamp(16px, 1.5vw, 20px); }
.recit-texte .signature { font-family: var(--sans); font-size: 20px; font-weight: 600; }
.etape-numero, .etape-ligne p.etape-numero { font-family: var(--sans); font-size: 40px; font-weight: 500; letter-spacing: -.02em; }
.question summary { font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1.35; }
.galerie-vide { font-family: var(--sans); font-size: 18px; }
.galerie > figure > figcaption strong { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.25; }
.visionneuse-legende strong { font-family: var(--sans); font-size: 19px; font-weight: 600; }
.visionneuse-compteur { font-family: var(--sans); font-size: 14px; }
.contact-valeur { font-family: var(--sans); font-size: clamp(19px, 1.7vw, 22px); font-weight: 500; }
@media (max-width: 900px) {
  .etape-numero, .etape-ligne p.etape-numero { font-size: 32px; }
}
@media (max-width: 600px) {
  .question summary { font-size: 16px; }
}

/* Réalisations : la légende ne montre plus que le mot-clé de la catégorie (« Produits », « Sport »…) */
.galerie > figure > figcaption { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.galerie > figure > figcaption strong { text-transform: none; letter-spacing: 0; }

/* Pied de page, Services : deux colonnes séparées (photo à gauche, vidéo et contenu à droite),
   chacune suit son propre fil, côte à côte sur tous les écrans */
.pied-services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 8px; align-items: start; }
.pied-services-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pied-services-col p { margin: 0; text-wrap: pretty; }
@media (max-width: 600px) {
  .pied-services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}

/* =====================================================================
   ACCUEIL : sections resserrées, l'espacement suit la largeur de l'écran
   ===================================================================== */
/* « Notre histoire » épouse son contenu (app.js le garde centré pendant qu'il est fixe) */
.histoire-scene { height: auto; min-height: 0; }
.home .histoire { margin-top: clamp(-36px, -2.5vw, -12px); }
.home .services { padding-top: clamp(56px, 6.5vw, 92px); }
.home .methode { padding-top: clamp(64px, 7vw, 100px); }
.home .pied { padding-top: clamp(64px, 7vw, 100px); }
@media (max-width: 600px) {
  .home .histoire { margin-top: -12px; }
  .home .services { padding-top: 56px; }
  .home .methode { padding-top: 64px; }
}

