/*
Theme Name: Oreanas design
Theme URI: https://oreanasdesign.fr
Author: Oreanas design
Description: Thème bloc sur mesure d'Oreanas design, architecte d'intérieur à Mantes-la-Jolie. Tout le contenu est éditable dans l'éditeur de blocs.
Version: 1.1.7
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oreanas-design
Tags: block-theme, full-site-editing, one-column, portfolio
*/

/* Feuille générée par outils/construire-theme.rb : ne pas modifier ici.
   Sources : maquette/styles.css (le design) + theme-src/adaptations-wordpress.css. */

/* ==========================================================================
   Oreanas design — maquette
   Registre relevé sur la référence : serif d'affichage en capitales + lettrine
   calligraphique, sans-serif neutre, aucun accent coloré, fond blanc pur,
   bandes pleine largeur, angles droits.
   ========================================================================== */

:root {
  --chocolat: #341F0A;
  --blanc: #FFFFFF;
  --lin: #F6F0E8;
  --sable: #D6CAB3;
  --gris: #666666;
  --trait: #8A8A8A;
  --voile: rgba(38, 26, 15, 0.56);

  --serif: 'Libre Caslon Display', 'Times New Roman', serif;
  --script: 'Pinyon Script', cursive;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --g: clamp(20px, 2.09vw, 30px);              /* gouttière de page */
  --t-hero: clamp(54px, 8.6vw, 124px);
  --t-section: clamp(38px, 4.6vw, 66px);
  --t-carte: clamp(20px, 1.68vw, 24px);
  --t-texte: clamp(15px, 1.11vw, 16px);
  --t-petit: clamp(12px, 0.97vw, 14px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--chocolat);
  font-family: var(--sans);
  font-size: var(--t-texte);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Typographie partagée
   -------------------------------------------------------------------------- */
.titre-section,
.hero__titre,
.projet__nom,
.carte-service__titre,
.article__titre,
.logo {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  hyphens: none;
  text-wrap: balance;
}

.titre-section {
  font-size: var(--t-section);
  line-height: 1.02;
}
.titre-section--centre { text-align: center; }

/* La lettre calligraphique : capitale ornée en tête d'un mot du titre */
.lettrine {
  font-family: var(--script);
  text-transform: none;
  font-size: 1.16em;
  line-height: 0;
  letter-spacing: 0;
  margin-right: -0.02em;
}

.surtitre {
  font-size: var(--t-petit);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--gris);
}
.surtitre--centre { text-align: center; }

.texte {
  font-size: var(--t-texte);
  line-height: 1.42;
  color: var(--gris);
}

/* Lien souligné avec flèche — l'unique « bouton » de la référence */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 258px;
  max-width: 100%;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-family: var(--sans);
  font-size: var(--t-texte);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.2;
  cursor: pointer;
}
.lien-fleche::after {
  content: '';
  flex: none;
  width: 19px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.2'/%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 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s ease;
}
.lien-fleche:hover::after { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   En-tête (posé sur le hero)
   -------------------------------------------------------------------------- */
.entete {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--blanc);
}
.entete__barre {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  height: 58px;
  padding: 0 var(--g);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}
.logo {
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1;
  justify-self: start;
}
.menu {
  display: flex;
  gap: 38px;
  font-size: var(--t-petit);
  font-weight: 500;
  text-transform: uppercase;
}
.menu a, .entete__contact { position: relative; }
.menu a::after, .entete__contact::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.menu a:hover::after, .entete__contact:hover::after,
.menu a[aria-current="page"]::after, .entete__contact[aria-current="page"]::after { transform: scaleX(1); }
.menu__contact-mobile { display: none; }
.entete__contact {
  font-size: var(--t-petit);
  font-weight: 500;
  text-transform: uppercase;
}
.burger { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: max(100vh, 720px);
  color: var(--blanc);
  overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.06);
  animation: hero-respire 14s ease-out forwards;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--voile);
}
@keyframes hero-respire { to { transform: scale(1); } }

.hero__contenu {
  position: relative;
  min-height: inherit;
  padding: 0 var(--g);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: 14vh;
}
.hero__titre {
  font-size: var(--t-hero);
  line-height: 0.86;
  letter-spacing: -0.018em;
  text-wrap: nowrap;
}
.hero__ligne { display: block; }
.hero__ligne--1 { margin-left: 9.4%; }
.hero__ligne--2 { margin-left: 36%; }
.hero__ligne--3 { margin-left: 48%; }
.hero__ligne--2 .lettrine { font-size: 1.12em; margin-right: -0.06em; }

.hero__texte {
  margin-left: 48%;
  margin-top: 46px;
  max-width: 300px;
}
.hero__texte p {
  font-size: var(--t-texte);
  line-height: 1.42;
}
.hero__texte .lien-fleche { margin-top: 52px; }

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */
.apropos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px) minmax(0, 260px);
  column-gap: 30px;
  padding: 96px var(--g) 175px;
}
.apropos__texte {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 6%;
}
.apropos__bas .titre-section { max-width: 520px; }
.apropos__bas .texte { max-width: 500px; margin-top: 34px; }
.apropos__bas .texte + .texte { margin-top: 16px; }
.apropos__bas .lien-fleche { margin-top: 52px; }
.apropos__grande img { width: 100%; aspect-ratio: 400 / 597; object-fit: cover; }
.apropos__petite img { width: 100%; aspect-ratio: 260 / 300; object-fit: cover; }

/* --------------------------------------------------------------------------
   Projets (carrousel : toutes les variantes sont dans la page)
   -------------------------------------------------------------------------- */
.projets { padding: 110px var(--g) 120px; }
.projets .titre-section { margin-top: 14px; }

.projets__carrousel {
  position: relative;
  display: grid;
  margin-top: 66px;
}
.projet {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 655fr) minmax(0, 405fr) minmax(0, 260fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.projet.est-actif { opacity: 1; visibility: visible; transition: opacity .6s ease; }

.projet__image { grid-column: 1; grid-row: 1 / -1; }
.projet__image img { width: 100%; height: 100%; min-height: 560px; aspect-ratio: 655 / 637; object-fit: cover; }
.projet__lieu, .projet__compteur {
  grid-row: 1;
  padding-top: 6px;
  font-size: var(--t-petit);
  color: var(--gris);
}
.projet__lieu { grid-column: 2; }
.projet__compteur { grid-column: 3; justify-self: end; }
.projet__corps { grid-column: 2; grid-row: 2 / 4; padding-top: 112px; max-width: 300px; }
.projet__nom { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.05; }
.projet__corps .texte { margin-top: 14px; }
.projet__vignette { grid-column: 3; grid-row: 2; margin-top: 98px; }
.projet__vignette img { width: 100%; aspect-ratio: 260 / 304; object-fit: cover; }
.projet__palette { grid-column: 3; grid-row: 3; margin-top: 16px; font-size: var(--t-petit); color: var(--gris); line-height: 1.4; max-width: 240px; }
.projet__resume { grid-column: 2; grid-row: 4; align-self: end; font-size: var(--t-petit); color: var(--gris); max-width: 240px; }

.projets__fleches {
  position: absolute; right: 0; bottom: 0;
  display: flex; gap: 11px;
  z-index: 2;
}
.fleche-ronde {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid #D9D6D2;
  background: var(--blanc);
  cursor: pointer;
  position: relative;
  transition: background-color .3s ease, border-color .3s ease;
}
.fleche-ronde::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 17px; height: 12px; background: var(--chocolat);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%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 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fleche-ronde--prec::after { transform: scaleX(-1); }
.fleche-ronde:hover { background: #EDE7DF; border-color: #EDE7DF; }

/* --------------------------------------------------------------------------
   Services — bande sombre sur photo, cartes blanches en quinconce
   -------------------------------------------------------------------------- */
.services {
  position: relative;
  color: var(--blanc);
  isolation: isolate;
  overflow: hidden;
}
.services__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.services::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(38, 26, 15, 0.66);
}
.services__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 330px));
  grid-template-rows: auto auto;
  gap: 30px;
  padding: 30px var(--g);
}
.services__texte { grid-column: 1 / 3; grid-row: 1; padding-top: 6px; }
.services__texte .surtitre { color: rgba(255, 255, 255, 0.78); }
.services__texte .titre-section { margin-top: 12px; }
.services__texte .texte { color: var(--blanc); max-width: 300px; margin-top: 34px; }
.services__texte .lien-fleche { margin-top: 52px; }

.carte-service {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 388px;
  padding: 24px;
  background: var(--blanc);
  color: var(--chocolat);
}
.carte-service--1 { grid-column: 3; grid-row: 1; }
.carte-service--2 { grid-column: 4; grid-row: 1; }
.carte-service--3 { grid-column: 2; grid-row: 2; }
.carte-service--4 { grid-column: 3; grid-row: 2; }
.carte-service__num { font-size: var(--t-petit); color: var(--gris); }
.carte-service__image {
  position: absolute; top: 24px; right: 24px;
  width: 51%;
  transform-origin: top right;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.carte-service__image img { width: 100%; aspect-ratio: 167 / 220; object-fit: cover; }
.carte-service--2 .carte-service__image { width: 56%; }
.carte-service--2 .carte-service__image img { aspect-ratio: 185 / 243; }
.carte-service__bas { position: relative; }
.carte-service__titre { font-size: var(--t-carte); line-height: 1.05; }

/* Survol (référence) : la photo se replie vers son coin, le titre remonte,
   la description et le lien apparaissent. Le texte est dans la page, rien n'est injecté. */
.carte-service__detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1);
}
.carte-service__detail-int { min-height: 0; overflow: hidden; }
.carte-service__texte {
  margin-top: 14px;
  font-size: var(--t-petit);
  line-height: 1.42;
  color: var(--gris);
}
.carte-service__lien {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
  color: var(--trait);
}
.carte-service__lien::after {
  content: '';
  width: 17px; height: 12px;
  background: var(--chocolat);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%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 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s ease;
}
.carte-service__lien:hover::after { transform: translateX(4px); }
.carte-service__texte,
.carte-service__lien {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .45s ease;
}
.carte-service:hover .carte-service__image,
.carte-service:focus-within .carte-service__image { transform: scale(.74); }
.carte-service:hover .carte-service__detail,
.carte-service:focus-within .carte-service__detail { grid-template-rows: 1fr; }
.carte-service:hover .carte-service__texte,
.carte-service:focus-within .carte-service__texte,
.carte-service:hover .carte-service__lien,
.carte-service:focus-within .carte-service__lien {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease .18s, transform .55s cubic-bezier(.2, .7, .2, 1) .18s;
}
.carte-service:hover .carte-service__lien,
.carte-service:focus-within .carte-service__lien { transition-delay: .26s; }

/* Écrans tactiles : pas de survol, la description reste visible */
@media (hover: none) {
  .carte-service__image { transform: scale(.74); }
  .carte-service__detail { grid-template-rows: 1fr; }
  .carte-service__texte, .carte-service__lien { opacity: 1; transform: none; }
}
.services__legende {
  grid-column: 4; grid-row: 2; align-self: end;
  text-align: right; font-size: var(--t-petit); line-height: 1.4;
  max-width: 250px; justify-self: end;
}

/* --------------------------------------------------------------------------
   Actualité — colonnes décalées
   -------------------------------------------------------------------------- */
.actualite { padding: 120px var(--g) 110px; }
.actualite .titre-section { margin-top: 14px; }
.actualite__grille {
  display: grid;
  grid-template-columns: minmax(0, 411fr) repeat(3, minmax(0, 292fr));
  gap: 30px;
  align-items: start;
  margin-top: 66px;
}
.article { display: block; }
.article__media { position: relative; container-type: inline-size; }
.article__image { overflow: hidden; }
.article__image img { width: 100%; object-fit: cover; }

/* Survol (référence) : un panneau blanc s'ouvre sur la photo avec titre,
   extrait et lien ; le titre sous la photo s'efface. */
.article__panneau {
  position: absolute;
  inset: 7% 5.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: var(--blanc);
  text-align: center;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.article__panneau-titre {
  font-family: var(--serif);
  font-size: clamp(20px, 8cqi, 32px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  hyphens: none;
}
.article__extrait {
  margin-top: 18px;
  max-width: 270px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gris);
}
.article__lire {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}
.article__lire::after {
  content: '';
  width: 15px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%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 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.article__titre { transition: opacity .35s ease; }
@media (hover: hover) {
  .article:hover .article__panneau,
  .article:focus-visible .article__panneau { opacity: 1; transform: none; }
  .article:hover .article__titre,
  .article:focus-visible .article__titre { opacity: 0; }
}
.article--1 .article__image img { aspect-ratio: 411 / 562; }
.article--2 .article__image img { aspect-ratio: 292 / 350; }
.article--3 { margin-top: 217px; }
.article--3 .article__image img { aspect-ratio: 292 / 350; }
.article--4 .article__image img { aspect-ratio: 292 / 315; }
.article__titre { margin-top: 14px; font-size: var(--t-carte); line-height: 1.12; max-width: 300px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  padding: 104px var(--g) 165px;
}
.contact__texte .titre-section { margin-top: 12px; }
.contact__texte .texte { max-width: 340px; margin-top: 40px; }
.formulaire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 19px;
  row-gap: 28px;
  align-content: start;
  padding-top: 2px;
}
.champ--plein { grid-column: 1 / -1; }
.champ input,
.champ textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--trait);
  border-radius: 0;
  background: none;
  padding: 6px 2px 10px;
  font: inherit;
  font-size: var(--t-texte);
  color: var(--chocolat);
  outline: none;
}
.champ textarea {
  height: 96px;
  resize: vertical;
  border: 1px solid var(--trait);
  padding: 12px;
  margin-top: 4px;
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--gris); }
.champ input:focus, .champ textarea:focus { border-color: var(--chocolat); }
.formulaire__envoi { grid-column: 1; margin-top: 18px; color: var(--chocolat); }

/* Listes de choix : même trait que les champs, chevron fin à droite */
.champ--choix { position: relative; display: block; }
.champ select {
  display: block;
  width: 100%;
  -webkit-appearance: none;
          appearance: none;
  border: 0;
  border-bottom: 1px solid var(--trait);
  border-radius: 0;
  background: none;
  padding: 6px 30px 10px 2px;
  font: inherit;
  font-size: var(--t-texte);
  color: var(--chocolat);
  outline: none;
  cursor: pointer;
}
.champ select.est-vide { color: var(--gris); }
.champ select:focus { border-color: var(--chocolat); }
.champ select option { color: var(--chocolat); }
.champ--choix::after {
  content: '';
  position: absolute; right: 4px; top: 50%;
  width: 11px; height: 7px;
  margin-top: -6px;
  background: var(--chocolat);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath d='M.5.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.2'/%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 11 7'%3E%3Cpath d='M.5.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

/* Surface : unité m² posée dans le champ */
.champ--unite { position: relative; display: block; }
.champ--unite input { padding-right: 34px; -moz-appearance: textfield; }
.champ--unite input::-webkit-outer-spin-button,
.champ--unite input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.champ__unite {
  position: absolute; right: 2px; bottom: 11px;
  font-size: var(--t-texte); color: var(--gris);
  pointer-events: none;
}

/* Dépôt de photos ou plans : toute la zone est cliquable et accepte le glisser-déposer */
.depot { margin-top: 2px; }
.depot__zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 22px;
  border: 1px solid var(--trait);
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease;
}
.depot__zone:hover, .depot.est-survole .depot__zone { background: var(--lin); border-color: var(--chocolat); }
.champ .depot__input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  opacity: 0;
  cursor: pointer;
}
.depot__input:focus-visible + .depot__plus { outline: 1px solid var(--chocolat); outline-offset: 4px; }
.depot__plus {
  position: relative;
  flex: none;
  width: 46px; height: 46px;
  border: 1px solid #D9D6D2;
  border-radius: 50%;
  background: var(--blanc);
}
.depot__plus::before, .depot__plus::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.2px; margin: -0.6px 0 0 -7px;
  background: var(--chocolat);
}
.depot__plus::after { transform: rotate(90deg); }
.depot__textes { display: grid; gap: 4px; }
.depot__titre { font-size: var(--t-texte); font-weight: 500; text-transform: uppercase; letter-spacing: 0.005em; }
.depot__aide { font-size: 13px; line-height: 1.4; color: var(--gris); }
.depot__liste { display: grid; gap: 0; }
.depot__liste:not(:empty) { margin-top: 10px; }
.depot__liste li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 2px;
  border-bottom: 1px solid #D9D6D2;
  font-size: 13px;
}
.depot__liste li span:last-child { color: var(--gris); flex: none; }
.depot__liste li.est-trop-lourd span:last-child { color: var(--chocolat); font-weight: 500; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--lin);
  overflow: hidden;
}
.pied__haut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 180px 138px 170px 104px 252px;
  align-items: start;
  padding: 46px var(--g) 0;
  font-size: var(--t-petit);
}
.logo--sombre { color: var(--chocolat); }
.pied__label { text-transform: uppercase; color: var(--trait); }
.pied__liste { display: grid; gap: 15px; text-transform: uppercase; font-weight: 500; line-height: 1.3; }
.pied__liste a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Marque + réseaux sociaux : le logo en haut, les icônes alignées sur la dernière ligne des listes */
.pied__marque {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.reseaux { display: flex; gap: 22px; }
.reseaux a {
  display: block;
  width: 21px; height: 21px;
  color: var(--chocolat);
  transition: opacity .3s ease, transform .3s ease;
}
.reseaux svg { display: block; width: 100%; height: 100%; }
.reseaux a:hover { opacity: .55; transform: translateY(-2px); }

.bandeau {
  display: block;
  margin-top: 52px;
  padding-bottom: 4px;
  overflow: hidden;
  color: var(--sable);
}
.bandeau__piste {
  display: flex;
  align-items: center;
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 1.12;
  text-transform: uppercase;
  white-space: nowrap;
  animation: bandeau 38s linear infinite;
}
.bandeau__piste > span { padding: 0 0.32em; }
.bandeau__etoile { font-family: var(--sans); font-size: 0.24em; }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
@keyframes bandeau { to { transform: translateX(-50%); } }

/* ==========================================================================
   PAGES INTERNES — mêmes jetons, mêmes composants, aucun nouveau registre
   ========================================================================== */

/* Bandeau de page : le hero de l'accueil, en plus court */
.hero--page { min-height: max(78vh, 620px); }
.hero--page .hero__contenu { padding-bottom: 12vh; }
.hero--page .hero__titre { font-size: clamp(46px, 6.6vw, 96px); line-height: 0.9; }
.hero--page .hero__ligne--1 { margin-left: 9.4%; }
.hero--page .hero__ligne--2 { margin-left: 24%; }
.hero--page .hero__texte { margin-top: 40px; }
.hero__surtitre {
  margin: 0 0 26px 9.4%;
  color: rgba(255, 255, 255, 0.78);
}
.hero--court { min-height: max(64vh, 540px); }

/* Introduction : grand titre à gauche, texte à droite */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  padding: 120px var(--g) 40px;
}
.intro .texte { max-width: 520px; margin-top: 40px; }
.intro .texte + .texte { margin-top: 18px; }

/* Engagements : quatre colonnes séparées par un filet */
.valeurs { padding: 110px var(--g) 130px; }
.valeurs .titre-section { margin-top: 14px; }
.valeurs__grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 70px;
}
.valeur { padding-top: 22px; border-top: 1px solid var(--trait); }
.valeur__num { font-size: var(--t-petit); color: var(--gris); }
.valeur__titre {
  margin-top: 46px;
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: var(--t-carte); line-height: 1.05; letter-spacing: -0.012em;
}
.valeur .texte { margin-top: 14px; max-width: 290px; }

/* Méthode : titre fixe à gauche, étapes numérotées à droite */
.etapes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  padding: 40px var(--g) 140px;
}
.etapes__tete { align-self: start; position: sticky; top: 60px; }
.etapes__tete .titre-section { margin-top: 12px; }
.etapes__tete .texte { max-width: 380px; margin-top: 34px; }
.etape {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 30px;
  padding: 34px 0 38px;
  border-top: 1px solid #D9D6D2;
}
.etape:last-child { border-bottom: 1px solid #D9D6D2; }
.etape__num {
  font-family: var(--serif);
  font-size: clamp(44px, 4.2vw, 62px);
  line-height: 0.9;
  color: var(--sable);
}
.etape__titre {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: var(--t-carte); line-height: 1.05; letter-spacing: -0.012em;
}
.etape .texte { margin-top: 12px; max-width: 460px; }

/* Prestations : une ligne par service, photo et texte en alternance */
.prestations { padding: 120px var(--g) 140px; display: grid; gap: 140px; }
.prestation {
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 125fr) minmax(0, 695fr);
  column-gap: 0;
  align-items: end;
  scroll-margin-top: 40px;
}
.prestation__image { grid-column: 1; grid-row: 1; }
.prestation__image img { width: 100%; aspect-ratio: 560 / 700; object-fit: cover; }
.prestation__corps { grid-column: 3; grid-row: 1; padding-bottom: 6px; max-width: 560px; }
.prestation:nth-child(even) { grid-template-columns: minmax(0, 695fr) minmax(0, 125fr) minmax(0, 560fr); }
.prestation:nth-child(even) .prestation__image { grid-column: 3; }
.prestation:nth-child(even) .prestation__corps { grid-column: 1; }
.prestation__num { font-size: var(--t-petit); color: var(--gris); }
.prestation__titre {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -0.012em;
}
.prestation .texte { margin-top: 26px; max-width: 480px; }
.prestation__liste { margin-top: 34px; border-top: 1px solid #D9D6D2; }
.prestation__liste li {
  padding: 13px 0;
  border-bottom: 1px solid #D9D6D2;
  font-size: var(--t-texte);
}
.prestation .lien-fleche { margin-top: 44px; }

/* Galerie de projets : colonnes décalées */
.galerie {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 110px;
  padding: 120px var(--g) 150px;
  align-items: start;
}
.projet-carte:nth-child(4n+1) { grid-column: 1 / 8; }
.projet-carte:nth-child(4n+2) { grid-column: 9 / 13; margin-top: 230px; }
.projet-carte:nth-child(4n+3) { grid-column: 2 / 7; }
.projet-carte:nth-child(4n+4) { grid-column: 8 / 13; margin-top: 160px; }
.projet-carte__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.projet-carte:nth-child(4n+1) .projet-carte__image img { aspect-ratio: 760 / 600; }
.projet-carte:nth-child(4n+4) .projet-carte__image img { aspect-ratio: 560 / 440; }
.projet-carte__meta {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 16px;
  font-size: var(--t-petit); color: var(--gris);
}
.projet-carte__nom {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 2.5vw, 36px); line-height: 1.04; letter-spacing: -0.012em;
}
.projet-carte .texte { margin-top: 12px; max-width: 440px; }

/* Couverture cliquable : ouvre la série de photos du projet */
.projet-carte__ouvrir {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.projet-carte__image { overflow: hidden; }
.projet-carte__image img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.projet-carte__ouvrir:hover .projet-carte__image img { transform: scale(1.035); }
.projet-carte__voir {
  position: absolute;
  left: 18px; bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--blanc);
  color: var(--chocolat);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  transition: background-color .35s ease, gap .35s ease;
}
.projet-carte__voir::after {
  content: '';
  width: 17px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%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 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.projet-carte__ouvrir:hover .projet-carte__voir { background: var(--lin); gap: 22px; }
.projet-carte__ouvrir:focus-visible { outline: 1px solid var(--chocolat); outline-offset: 6px; }
.galerie-projet[hidden] { display: none; }

/* Visionneuse plein écran : bande sombre de la référence, photo entière, filets fins */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #1F150B;
  color: var(--blanc);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.visionneuse.est-ouverte { opacity: 1; visibility: visible; transition: opacity .45s ease; }
html.visionneuse-active { overflow: hidden; }
.visionneuse__tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 30px;
  padding: 22px var(--g);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.visionneuse__titre {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(22px, 2vw, 30px); line-height: 1.05; letter-spacing: -0.01em;
}
.visionneuse__lieu { margin-top: 6px; font-size: var(--t-petit); color: rgba(255, 255, 255, 0.68); }
.visionneuse__compteur { font-size: var(--t-petit); color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; }
.visionneuse__fermer {
  position: relative;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease;
}
.visionneuse__fermer::before, .visionneuse__fermer::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.2px; margin: -0.6px 0 0 -9px;
  background: var(--blanc);
  transform: rotate(45deg);
}
.visionneuse__fermer::after { transform: rotate(-45deg); }
.visionneuse__fermer:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--blanc); }

.visionneuse__scene {
  position: relative;
  display: grid;
  min-height: 0;
  margin: 28px calc(var(--g) + 96px);
  touch-action: pan-y;
}
.visionneuse__scene figure {
  grid-area: 1 / 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .5s ease;
}
.visionneuse__scene figure.est-active { opacity: 1; }
.visionneuse__scene img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transform: scale(.985);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.visionneuse__scene figure.est-active img { transform: none; }

.visionneuse .fleche-ronde {
  position: absolute;
  top: 50%;
  margin-top: -30px;
  background: none;
  border-color: rgba(255, 255, 255, 0.45);
  z-index: 2;
}
.visionneuse .fleche-ronde::after { background: var(--blanc); }
.visionneuse .fleche-ronde:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--blanc); }
.visionneuse__prec { left: var(--g); }
.visionneuse__suiv { right: var(--g); }

.visionneuse__vignettes {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 var(--g) 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.visionneuse__vignettes button {
  flex: none;
  width: 64px; height: 64px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: .42;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: opacity .3s ease, outline-color .3s ease;
}
.visionneuse__vignettes button:hover { opacity: .8; }
.visionneuse__vignettes button.est-active { opacity: 1; outline-color: var(--blanc); }
.visionneuse__vignettes img { width: 100%; height: 100%; object-fit: cover; }

/* Carnet (page Actualité) : trois colonnes décalées, même composant .article */
.carnet { padding: 120px var(--g) 140px; }
.carnet__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 90px 30px;
  align-items: start;
}
.carnet .article:nth-child(3n+2) { margin-top: 150px; }
.carnet .article:nth-child(3n+3) { margin-top: 60px; }
.carnet .article__image img { aspect-ratio: 4 / 5; }
.carnet .article:nth-child(3n+2) .article__image img { aspect-ratio: 4 / 4.4; }

/* Article : colonne de lecture décalée à droite */
.lecture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: 30px;
  padding: 110px var(--g) 120px;
}
.lecture__meta { align-self: start; position: sticky; top: 60px; display: grid; gap: 10px; }
.lecture__meta .texte { font-size: var(--t-petit); }
.lecture__corps { max-width: 720px; }
.lecture__corps > p { font-size: 17px; line-height: 1.7; color: var(--gris); }
.lecture__corps > p + p { margin-top: 22px; }
.lecture__chapo { color: var(--chocolat) !important; font-size: clamp(19px, 1.5vw, 22px) !important; line-height: 1.55 !important; }
.lecture__corps > h2 {
  margin: 64px 0 22px;
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.012em;
}
.lecture__corps > figure { margin: 56px 0; }
.lecture__corps > figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lecture__corps > figure figcaption { margin-top: 12px; font-size: var(--t-petit); color: var(--gris); }

.a-lire { padding: 20px var(--g) 140px; }
.a-lire .titre-section { margin-top: 14px; }
.a-lire__grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
  margin-top: 66px;
}
.a-lire .article:nth-child(2) { margin-top: 90px; }
.a-lire .article__image img { aspect-ratio: 4 / 4.6; }

/* Page Contact : le formulaire détaillé prend plus de place que les coordonnées */
@media (min-width: 761px) {
  .page-contact .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Coordonnées (page Contact) */
.coordonnees { display: grid; gap: 26px; margin-top: 50px; }
.coordonnees__ligne { display: grid; gap: 6px; }
.coordonnees__label { font-size: var(--t-petit); color: var(--trait); text-transform: uppercase; }
.coordonnees__valeur {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: var(--t-carte); line-height: 1.15; letter-spacing: -0.01em;
}
.coordonnees__valeur a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Appel à prendre contact : bande sombre sur photo, centrée */
.appel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px var(--g) 160px;
  color: var(--blanc);
  text-align: center;
}
.appel__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.appel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(38, 26, 15, 0.66); }
.appel .surtitre { color: rgba(255, 255, 255, 0.78); }
.appel .titre-section { margin-top: 14px; }
.appel .texte { color: var(--blanc); max-width: 400px; margin-top: 30px; }
.appel .lien-fleche { margin-top: 48px; }

/* --------------------------------------------------------------------------
   Apparition progressive (reprise de la référence)
   Les classes .anim--* sont posées par app.js selon le type de composant :
   toute page qui réutilise ces composants en hérite. Sans JavaScript, tout
   reste visible.
   -------------------------------------------------------------------------- */
.js:not(.anim-pret) .hero__contenu { opacity: 0; }   /* évite un flash avant le script */
.js .entete { animation: entete-entree 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes entete-entree { from { opacity: 0; } }   /* opacité seule : une transformation ferait du bandeau le cadre du menu mobile plein écran */

.anim { --d: 0s; }

/* fondu : monte légèrement en apparaissant */
.anim--fondu {
  transition: opacity .9s ease var(--d), transform 1.1s cubic-bezier(.2, .7, .2, 1) var(--d);
}
.anim--fondu:not(.est-visible) { opacity: 0; transform: translateY(22px); }

/* voile : la photo ou la carte se dévoile de haut en bas, l'image se pose */
.anim--voile {
  transition: clip-path 1.25s cubic-bezier(.65, 0, .25, 1) var(--d);
}
/* un fil de 2 px reste visible au départ, comme sur la référence */
.anim--voile:not(.est-visible) { clip-path: inset(0 0 calc(100% - 2px) 0); }
.anim--voile.est-visible:not(.anim-fini) { clip-path: inset(0 0 0 0); }
.anim--voile img { transition: transform 1.7s cubic-bezier(.2, .7, .2, 1) var(--d); }
.anim--voile:not(.est-visible) img { transform: scale(1.12); }

/* lignes : chaque ligne de titre sort d'une fente, l'une après l'autre */
.anim--lignes .ligne {
  display: block;
  clip-path: inset(-0.6em -2em -0.12em -2em);
}
.anim--lignes.anim-fini .ligne { clip-path: none; }
.anim--lignes .ligne__int {
  display: block;
  transition: transform 1.15s cubic-bezier(.2, .75, .2, 1) calc(var(--d) + var(--i, 0) * .13s);
}
.anim--lignes:not(.est-visible) .ligne__int { transform: translateY(130%); }

/* trait : le lien fléché se dessine de gauche à droite */
.anim--trait {
  transition: clip-path 1.1s cubic-bezier(.65, 0, .25, 1) calc(var(--d) + .15s);
}
.anim--trait:not(.est-visible) { clip-path: inset(-4px calc(100% - 2px) -4px 0); }
.anim--trait.est-visible:not(.anim-fini) { clip-path: inset(-4px 0 -4px 0); }

/* une fois entré, le titre d'article retrouve la réactivité du survol */
.article__titre.anim-fini { transition: opacity .35s ease; }

@media (prefers-reduced-motion: reduce) {
  .hero__photo, .bandeau__piste, .js .entete { animation: none; }
}

/* --------------------------------------------------------------------------
   Tablette
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .apropos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 30px; padding-bottom: 120px; }
  .apropos__texte { grid-column: 1 / -1; padding-right: 0; }
  .apropos__bas { margin-top: 40px; }

  .services__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__texte { grid-column: 1 / -1; padding-bottom: 30px; }
  .carte-service--1 { grid-column: 1; grid-row: 2; }
  .carte-service--2 { grid-column: 2; grid-row: 2; }
  .carte-service--3 { grid-column: 1; grid-row: 3; }
  .carte-service--4 { grid-column: 2; grid-row: 3; }
  .services__legende { grid-column: 1 / -1; grid-row: 4; }

  .actualite__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article--3 { margin-top: 0; }
  .article .article__image img { aspect-ratio: 4 / 5; }

}

@media (max-width: 1200px) {
  .pied__haut { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .pied__marque { grid-column: 1 / -1; flex-direction: row; align-items: center; margin-bottom: 20px; }
  .pied__label { grid-column: 1; }
  .pied__liste { grid-column: 2; margin-bottom: 22px; }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .entete__barre { grid-template-columns: 1fr auto; height: 56px; }
  .entete__contact { display: none; }
  .burger {
    display: grid; align-content: center; gap: 7px;
    width: 40px; height: 40px; padding: 0 6px; margin-right: -6px;
    border: 0; background: none; cursor: pointer;
  }
  .burger span { display: block; height: 1px; background: currentColor; transition: transform .3s ease; }
  .menu {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 22px;
    padding: 0 var(--g);
    background: var(--chocolat);
    font-family: var(--serif); font-weight: 400; font-size: 34px;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .menu__contact-mobile { display: block; }
  .entete.menu-ouvert .menu { opacity: 1; visibility: visible; transition: opacity .35s ease; }
  .entete.menu-ouvert .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .entete.menu-ouvert .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .entete.menu-ouvert { position: fixed; }

  .hero { min-height: 100svh; }
  .hero__contenu { padding-top: 90px; padding-bottom: 56px; justify-content: flex-end; }
  .hero__titre { font-size: clamp(48px, 14.5vw, 70px); line-height: 0.9; }
  .hero__ligne--1 { margin-left: 0; }
  .hero__ligne--2 { margin-left: 14%; }
  .hero__ligne--3 { margin-left: 24%; }
  .hero__texte { margin-left: 24%; margin-top: 34px; }
  .hero__texte .lien-fleche { margin-top: 34px; width: 100%; }

  .apropos { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding: 72px var(--g) 80px; column-gap: 14px; }
  .apropos__petite { align-self: start; }

  .projets { padding: 80px var(--g) 90px; }
  .projets__carrousel { margin-top: 40px; }
  .projet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; column-gap: 14px; }
  .projet__image { grid-column: 1 / -1; grid-row: 1; }
  .projet__image img { min-height: 0; aspect-ratio: 4 / 4.4; }
  .projet__lieu { grid-column: 1; grid-row: 2; padding-top: 16px; }
  .projet__compteur { grid-column: 2; grid-row: 2; padding-top: 16px; }
  .projet__corps { grid-column: 1 / -1; grid-row: 3; padding-top: 22px; max-width: none; }
  .projet__vignette { display: none; }
  .projet__palette { grid-column: 1 / -1; grid-row: 4; max-width: none; }
  .projet__resume { grid-column: 1 / -1; grid-row: 5; margin-top: 10px; padding-right: 140px; }
  .projets__fleches { bottom: 0; }
  .fleche-ronde { width: 52px; height: 52px; }

  .services__grille { gap: 14px; padding: 70px var(--g) 40px; }
  .carte-service { min-height: 0; padding: 16px; justify-content: flex-start; }
  .carte-service__image,
  .carte-service--2 .carte-service__image,
  .carte-service:is(:hover, :focus-within) .carte-service__image {
    position: static;
    align-self: flex-end;
    width: 64%;
    margin: -18px 0 18px;
    transform: none;
  }
  .carte-service--2 .carte-service__image img { aspect-ratio: 167 / 220; }
  .carte-service__bas { margin-top: auto; }
  .carte-service__titre { font-size: 18px; }
  .carte-service__texte { font-size: 13px; }

  .actualite { padding: 80px var(--g) 70px; }
  .actualite__grille { gap: 30px 14px; margin-top: 40px; }
  .article__titre { font-size: 17px; }

  .contact { grid-template-columns: 1fr; row-gap: 46px; padding: 80px var(--g) 100px; }
  .formulaire { grid-template-columns: 1fr; }
  .champ--plein { grid-column: 1; }
  .formulaire__envoi { width: 100%; }

  .pied__haut { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .pied__liste { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Pages internes — tablette et mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .valeurs__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
  .etapes { grid-template-columns: 1fr; row-gap: 50px; }
  .etapes__tete { position: static; }
  .prestation, .prestation:nth-child(even) { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); }
  .galerie { row-gap: 80px; }
  .projet-carte:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .projet-carte:nth-child(even) { margin-top: 120px; }
  .projet-carte:nth-child(n) .projet-carte__image img { aspect-ratio: 4 / 5; }
  .carnet__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carnet .article:nth-child(n) { margin-top: 0; }
  .carnet .article:nth-child(even) { margin-top: 90px; }
  .lecture { grid-template-columns: 1fr; row-gap: 40px; }
  .lecture__meta { position: static; }
}

@media (max-width: 760px) {
  .hero--page { min-height: 86svh; }
  .hero--court { min-height: 72svh; }
  .hero--page .hero__titre { font-size: clamp(40px, 11.5vw, 60px); text-wrap: balance; }
  .hero--page .hero__ligne--1, .hero__surtitre { margin-left: 0; }
  .hero--page .hero__ligne--2 { margin-left: 12%; }
  .hero--page .hero__texte { margin-left: 12%; }

  .intro { grid-template-columns: 1fr; padding: 80px var(--g) 20px; }
  .intro .texte { margin-top: 26px; }

  .valeurs { padding: 80px var(--g) 90px; }
  .valeurs__grille { grid-template-columns: 1fr; gap: 40px; margin-top: 44px; }
  .valeur__titre { margin-top: 22px; }

  .etapes { padding: 20px var(--g) 90px; }
  .etape { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding: 26px 0 28px; }

  .prestations { padding: 80px var(--g) 90px; gap: 90px; }
  .prestation, .prestation:nth-child(even) { grid-template-columns: 1fr; row-gap: 30px; }
  .prestation .prestation__image, .prestation:nth-child(even) .prestation__image { grid-column: 1; grid-row: 1; }
  .prestation .prestation__corps, .prestation:nth-child(even) .prestation__corps { grid-column: 1; grid-row: 2; }
  .prestation__image img { aspect-ratio: 4 / 4.4; }

  .galerie { grid-template-columns: 1fr; row-gap: 64px; padding: 80px var(--g) 90px; }
  .projet-carte:nth-child(n) { grid-column: 1; margin-top: 0; }
  .projet-carte:nth-child(even) { width: 82%; justify-self: end; }

  .carnet { padding: 80px var(--g) 90px; }
  .carnet__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; }
  .carnet .article:nth-child(even) { margin-top: 50px; }

  .lecture { padding: 70px var(--g) 80px; }
  .lecture__corps > p { font-size: 16px; }
  .lecture__corps > h2 { margin-top: 48px; }

  .a-lire { padding: 10px var(--g) 90px; }
  .a-lire__grille { grid-template-columns: 1fr; gap: 50px; margin-top: 40px; }
  .a-lire .article:nth-child(2) { margin-top: 0; }

  .appel { padding: 100px var(--g) 110px; }
}

/* Visionneuse sur mobile : flèches sous la photo, vignettes plus petites */
@media (max-width: 760px) {
  .projet-carte__voir { left: 12px; bottom: 12px; padding: 10px 12px; font-size: 12px; }
  .visionneuse__tete { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px var(--g); }
  .visionneuse__compteur { grid-column: 1; grid-row: 2; }
  .visionneuse__fermer { grid-column: 2; grid-row: 1 / 3; width: 46px; height: 46px; }
  .visionneuse__scene { margin: 16px var(--g) 84px; }
  .visionneuse .fleche-ronde { top: auto; bottom: 102px; margin-top: 0; width: 50px; height: 50px; }
  .visionneuse__prec { left: calc(50% - 60px); }
  .visionneuse__suiv { right: calc(50% - 60px); }
  .visionneuse__vignettes { justify-content: flex-start; padding-bottom: 18px; }
  .visionneuse__vignettes button { width: 50px; height: 50px; }
}

/* ==========================================================================
   ADAPTATIONS WORDPRESS
   Tout ce qui précède est la feuille de la maquette, inchangée. Ce qui suit
   l'ajuste à la structure produite par les blocs natifs.
   Rappel : WordPress imprime le CSS de chaque bloc APRÈS cette feuille ; pour
   surcharger un style de bloc, il faut être plus spécifique, pas plus tard.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */
body { position: relative; }      /* l'en-tête absolu se cale sous la barre d'administration */
img { height: auto; }             /* sinon l'attribut height des blocs image l'emporte sur aspect-ratio */
/* WordPress met 0 0 1em aux images (theme.css, imprimé après cette feuille) : on le neutralise
   en (0,2,0), puis chaque composant qui a une marge la redéclare plus spécifiquement plus bas. */
.wp-site-blocks .wp-block-image { margin: 0; }
/* Espacement automatique coupé dans theme.json (blockGap: 0) ; filet de sécurité à spécificité nulle */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
.wp-site-blocks { padding: 0; }

/* --- Lettrine : un <em> nu dans un titre (format italique natif, donc éditable) */
:is(h1, h2, h3, .bandeau) em {
  font-family: var(--script);
  font-style: normal;
  text-transform: none;
  font-size: 1.16em;
  line-height: 0;
  letter-spacing: 0;
  margin-right: -0.02em;
}
.hero__ligne--2 em { font-size: 1.12em; margin-right: -0.06em; }
.lecture__corps h2 em { font-size: 1.12em; }

/* --- Photos de fond : bloc Image sorti du flux ---------------------------- */
.wp-block-image.hero__photo,
.wp-block-image.services__photo,
.wp-block-image.appel__photo,
.wp-block-post-featured-image.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
}
.wp-block-image.hero__photo img,
.wp-block-image.services__photo img,
.wp-block-image.appel__photo img,
.wp-block-post-featured-image.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* --- Lien fléché = bouton natif. La classe atterrit sur le conteneur :
       on le neutralise et on stylise le lien qu'il contient. ---------------- */
.wp-block-buttons { gap: 0; }
.wp-block-button.lien-fleche {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
}
.wp-block-button.lien-fleche::after { content: none; }
.wp-block-button.lien-fleche .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 258px;
  max-width: 100%;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: inherit;
  font-family: var(--sans);
  font-size: var(--t-texte);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.2;
}
.wp-block-button.lien-fleche .wp-block-button__link::after {
  content: '';
  flex: none;
  width: 19px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.2'/%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 19 12'%3E%3Cpath d='M0 6h17.5M12.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s ease;
}
.wp-block-button.lien-fleche .wp-block-button__link:hover::after { transform: translateX(6px); }
.lecture__meta .wp-block-buttons { margin-top: 18px; }

/* --- En-tête : titre du site + bloc Navigation ---------------------------- */
.entete__barre { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 68px; }   /* 68 px : la place du lien Contact de la maquette */
.entete__barre > .entete__menu { grid-column: 2 / 4; }
.wp-block-site-title.logo { margin: 0; font-family: var(--serif); font-size: 18px; text-transform: uppercase; line-height: 1; }
.wp-block-site-title.logo a { color: inherit; text-decoration: none; }

.wp-block-navigation.entete__menu {
  font-size: var(--t-petit);
  font-weight: 500;
  text-transform: uppercase;
}
.wp-block-navigation.entete__menu .wp-block-navigation-item__content { position: relative; padding: 0; color: inherit; }
.wp-block-navigation.entete__menu .wp-block-navigation-item__content::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.wp-block-navigation.entete__menu .wp-block-navigation-item__content:hover::after,
.wp-block-navigation.entete__menu .current-menu-item > .wp-block-navigation-item__content::after,
.wp-block-navigation.entete__menu [aria-current="page"]::after { transform: scaleX(1); }

@media (min-width: 600px) {
  .wp-block-navigation.entete__menu,
  .wp-block-navigation.entete__menu .wp-block-navigation__responsive-container,
  .wp-block-navigation.entete__menu .wp-block-navigation__responsive-close,
  .wp-block-navigation.entete__menu .wp-block-navigation__responsive-dialog,
  .wp-block-navigation.entete__menu .wp-block-navigation__responsive-container-content { width: 100%; }
  .wp-block-navigation.entete__menu .wp-block-navigation__container { width: 100%; gap: 38px; flex-wrap: nowrap; }
  /* « Contact », dernier lien du menu, se cale à droite comme sur la maquette */
  .wp-block-navigation.entete__menu .wp-block-navigation__container > .wp-block-navigation-item:last-child { margin-left: auto; }
}
@media (min-width: 600px) and (max-width: 980px) {
  .entete__barre { grid-template-columns: auto minmax(0, 1fr); column-gap: 40px; }
  .wp-block-navigation.entete__menu .wp-block-navigation__container { gap: 20px; }
  .wp-block-site-title.logo { font-size: 15px; }
}

/* Panneau mobile : chocolat plein écran, liens en serif (le CSS du bloc pose
   sinon un fond blanc, imprimé après cette feuille : seul !important du thème) */
.wp-block-navigation.entete__menu .wp-block-navigation__responsive-container-open,
.wp-block-navigation.entete__menu .wp-block-navigation__responsive-container-close { color: inherit; }
.wp-block-navigation.entete__menu .wp-block-navigation__responsive-container-open svg,
.wp-block-navigation.entete__menu .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.wp-block-navigation.entete__menu .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--chocolat) !important;
  color: var(--blanc) !important;
  padding: 22px var(--g) 40px;
}
.wp-block-navigation.entete__menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100svh - 80px);
}
.wp-block-navigation.entete__menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: flex-start;
  gap: 22px;
}
.wp-block-navigation.entete__menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

/* --- Pied de page --------------------------------------------------------- */
.pied .wp-block-site-title.logo { color: var(--chocolat); }
.pied__liste li { margin: 0; }
.pied .wp-block-social-links.reseaux { display: flex; flex-wrap: nowrap; gap: 22px; margin: 0; padding: 0; }
.pied .wp-block-social-links.reseaux .wp-social-link {
  margin: 0; padding: 0;
  background: none;
  color: var(--chocolat);
  transition: opacity .3s ease, transform .3s ease;
}
.pied .wp-block-social-links.reseaux .wp-social-link a { padding: 0; color: inherit; fill: currentColor; }
.pied .wp-block-social-links.reseaux .wp-social-link svg { width: 21px; height: 21px; }
.pied .wp-block-social-links.reseaux .wp-social-link:hover { opacity: .55; transform: translateY(-2px); }

/* Bandeau défilant : un seul paragraphe éditable, le script en fait une piste en boucle */
p.bandeau { margin: 52px 0 0; white-space: nowrap; }
p.bandeau > a,
.bandeau__piste a {
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 1.12;
  text-transform: uppercase;
  text-decoration: none;
}
.bandeau__piste > a { padding: 0 0.32em; }

/* --- Cartes Services : toute la carte mène à la prestation ---------------- */
.carte-service__lien a { color: inherit; text-decoration: none; }
.carte-service__lien a::before { content: ''; position: absolute; inset: 0; z-index: 1; }

/* --- Articles (bloc Requête) : la carte .article est un groupe dans chaque <li> */
.requete-articles .wp-block-post-template { list-style: none; padding: 0; }
.wp-block-post-featured-image.article__image { margin: 0; }
.wp-block-post-featured-image.article__image img { width: 100%; object-fit: cover; }
.article__titre a, .article__panneau-titre a { color: inherit; text-decoration: none; }
.wp-block-post-title.article__titre { font-size: var(--t-carte); line-height: 1.12; }
.article__extrait p { margin: 0; }
a.wp-block-read-more.article__lire { color: inherit; text-decoration: none; }
a.wp-block-read-more.article__lire::before { content: ''; position: absolute; inset: 0; }   /* tout le panneau est cliquable */
@media (hover: hover) {
  .article:hover .article__panneau { pointer-events: auto; }
}

.actualite__grille > li:nth-child(1) .article__image img { aspect-ratio: 411 / 562; }
.actualite__grille > li:nth-child(2) .article__image img { aspect-ratio: 292 / 350; }
.actualite__grille > li:nth-child(3) { margin-top: 217px; }
.actualite__grille > li:nth-child(3) .article__image img { aspect-ratio: 292 / 350; }
.actualite__grille > li:nth-child(4) .article__image img { aspect-ratio: 292 / 315; }

.carnet__grille > li:nth-child(3n+2) { margin-top: 150px; }
.carnet__grille > li:nth-child(3n+3) { margin-top: 60px; }
.carnet__grille .article__image img { aspect-ratio: 4 / 5; }
.carnet__grille > li:nth-child(3n+2) .article__image img { aspect-ratio: 4 / 4.4; }
.carnet .wp-block-query-pagination { margin-top: 80px; justify-content: center; gap: 24px; font-size: var(--t-petit); text-transform: uppercase; }

.a-lire__grille > li:nth-child(2) { margin-top: 90px; }
.a-lire__grille .article__image img { aspect-ratio: 4 / 4.6; }

/* --- Projets : couverture cliquable, galerie masquée lue par la visionneuse */
.projet-carte__media { position: relative; cursor: pointer; }
.projet-carte__media:hover .projet-carte__image img { transform: scale(1.035); }
.projet-carte__media:hover .projet-carte__voir { background: var(--lin); gap: 22px; }
.projet-carte__media:focus-visible { outline: 1px solid var(--chocolat); outline-offset: 6px; }
.projet-carte__voir { margin: 0; z-index: 1; }
.projet-carte__meta p { margin: 0; }
.projet-carte .wp-block-gallery.galerie-projet { display: none; }

/* --- Lecture d'un article ------------------------------------------------- */
.lecture__corps > p:first-child { color: var(--chocolat); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; }
.lecture__corps > .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lecture__corps > .wp-block-image figcaption { margin-top: 12px; font-size: var(--t-petit); color: var(--gris); }
.lecture__meta .wp-block-post-date { font-size: var(--t-petit); color: var(--gris); }

/* --- Contact : page détaillée et formulaire Contact Form 7 ---------------- */
@media (min-width: 761px) {
  .contact.contact--page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.coordonnees__ligne p { margin: 0; }
.wpcf7 { width: 100%; }
.wpcf7 form { margin: 0; }
.wpcf7 .hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; }
.wpcf7-form-control-wrap { display: block; position: relative; }
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12px; color: var(--chocolat); }
.wpcf7 .champ .wpcf7-not-valid { border-color: var(--chocolat); }
.wpcf7 form .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--chocolat);
  font-size: var(--t-petit);
  color: var(--chocolat);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--chocolat); }
.champ--choix .wpcf7-form-control-wrap { position: static; }
.depot__zone .wpcf7-form-control-wrap { position: absolute; inset: 0; z-index: 1; }
.formulaire__envoi.lien-fleche { cursor: pointer; }
.formulaire__envoi input[type="submit"] {
  flex: 1;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}

/* --- Tablette et mobile --------------------------------------------------- */
@media (max-width: 1100px) {
  .actualite__grille > li:nth-child(3) { margin-top: 0; }
  .actualite__grille .article__image img { aspect-ratio: 4 / 5; }
  .carnet__grille > li:nth-child(n) { margin-top: 0; }
  .carnet__grille > li:nth-child(even) { margin-top: 90px; }
}
@media (max-width: 760px) {
  .hero__texte .wp-block-buttons,
  .hero__texte .wp-block-button.lien-fleche,
  .hero__texte .wp-block-button.lien-fleche .wp-block-button__link,
  .formulaire__envoi.lien-fleche { width: 100%; }
  .carnet__grille > li:nth-child(even) { margin-top: 50px; }
  .a-lire__grille > li:nth-child(2) { margin-top: 0; }
  .pied__marque { grid-column: 1 / -1; flex-direction: row; align-items: center; margin-bottom: 20px; }
}

/* --- Page 404 : la bande sombre sans photo -------------------------------- */
.appel.page-introuvable { background: var(--chocolat); padding-top: 220px; min-height: 80vh; justify-content: center; }

/* --- Marges des composants posés sur des blocs : redéclarées au-dessus des
       règles des blocs (.wp-block-buttons > .wp-block-button, .wp-block-image,
       .wp-block-post-template…), quel que soit l'ordre d'impression des feuilles */
.hero__texte .wp-block-buttons > .wp-block-button.lien-fleche,
.apropos__bas .wp-block-buttons > .wp-block-button.lien-fleche,
.services__texte .wp-block-buttons > .wp-block-button.lien-fleche { margin-top: 52px; }
.prestation .wp-block-buttons > .wp-block-button.lien-fleche { margin-top: 44px; }
.appel .wp-block-buttons > .wp-block-button.lien-fleche { margin-top: 48px; }
.lecture__meta .wp-block-buttons > .wp-block-button.lien-fleche { margin-top: 18px; }
.projet .wp-block-image.projet__vignette { margin-top: 98px; }
.lecture__corps > .wp-block-image { margin: 56px 0; }
.actualite .wp-block-post-template.actualite__grille { margin-top: 66px; }
.a-lire .wp-block-post-template.a-lire__grille { margin-top: 66px; }
.pied .wp-block-social-links.reseaux { font-size: inherit; line-height: inherit; }

/* Contact Form 7 : la zone de réponse reste masquée tant qu'il n'y a rien à dire */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }

@media (max-width: 760px) {
  .hero__texte .wp-block-buttons > .wp-block-button.lien-fleche { margin-top: 34px; }
  .carte-service .wp-block-image.carte-service__image { margin: -18px 0 18px; }
  .actualite .wp-block-post-template.actualite__grille,
  .a-lire .wp-block-post-template.a-lire__grille { margin-top: 40px; }
}

/* --- En-tête sur téléphone (< 600 px : WordPress passe au bouton de menu) - */
@media (max-width: 599px) {
  .entete__barre { grid-template-columns: minmax(0, 1fr) auto; }
  .entete__barre > .entete__menu { grid-column: auto; }
}

/* --- Contenu réel ----------------------------------------------------------- */
/* Trois engagements : trois colonnes (la grille en prévoit quatre) */
@media (min-width: 1101px) {
  .valeurs__grille:has(> .valeur:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Catégorie de l'article dans son bandeau */
.wp-block-post-terms.hero__surtitre a { color: inherit; text-decoration: none; }
/* Prestation : texte, liste puis conclusion */
.prestation__liste + .texte { margin-top: 24px; }
/* Articles existants du site : leurs blocs (couvertures, boutons, galeries) dans la colonne de lecture */
.lecture__corps > * + * { margin-top: 22px; }
.lecture__corps .wp-block-cover { margin: 48px 0; }
.lecture__corps .wp-block-gallery { margin: 40px 0; gap: 12px; }
.lecture__corps .wp-block-buttons .wp-block-button__link { padding: 0 0 5px; border-bottom: 1px solid currentColor; }
.lecture__corps ul, .lecture__corps ol { padding-left: 1.2em; list-style: disc; color: var(--gris); line-height: 1.7; }

/* Formulaire détaillé : trois zones d'envoi (un fichier chacune, limite de Contact Form 7) ;
   la suivante n'apparaît qu'une fois la précédente remplie */
.formulaire .depot--suivant { display: none; }
.formulaire .depot--suivant.depot--ouvert { display: block; }
.formulaire .depot + .depot { margin-top: -14px; }
