/*
Theme Name: Stéphane Guibert Photographie
Theme URI: https://www.stephaneguibertmariage.fr
Author: Stéphane Guibert
Description: Thème bloc sur mesure, converti depuis la maquette validée. Tout le contenu est en blocs natifs, éditable dans Gutenberg.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sg-photographie
*/

/* ==========================================================
   Feuille de la maquette (phase 2), sélecteurs adaptés au balisage des blocs natifs.
   Registre relevé sur la référence : ivoire, terracotta,
   serif condensé + gothique condensé + Mulish (paragraphes, choisie par le client), bandes bord à bord.
   Bandeaux en bleu ardoise (variante C choisie par le client le 2026-10-01).

   Trois faits commandent les adaptations :
   - core/image pose la classe du composant sur la FIGURE : l'image la remplit et hérite du cadrage ;
   - core/button pose la classe sur le CONTENEUR : il s'efface (display: contents), le style va sur le lien ;
   - le CSS des blocs est imprimé APRÈS cette feuille : toute surcharge d'un style de bloc est plus spécifique.
   ========================================================== */

:root {
  --ivoire: #fefdf7;
  --ardoise: #4b6070;
  --terracotta: #c47e5f;
  --cadre: #a3b0ba;
  --titre-bande: #f4e8d8;
  --bouton: #f4e8d8;
  --bouton-texte: #2f3a44;
  --creme: #fffdf1;
  --encre: #1e1b1c;
  --texte: #4f4a48;
  --gris-doux: #6b6765;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --gothique: 'Antonio', 'Arial Narrow', sans-serif;
  --corps: 'Mulish', 'Segoe UI', sans-serif;
  --poids-corps: 400;
  --capitales: 'Lato', 'Helvetica Neue', sans-serif;

  --largeur: min(1060px, 90vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--texte);
  font: var(--poids-corps) 15px/1.85 var(--corps);
  overflow-x: hidden;
  position: relative; /* l'en-tête, en surimpression, se cale sous la barre d'administration */
}
img { display: block; max-width: 100%; height: auto; } /* height:auto : l'attribut height des blocs image l'emporterait sur tout aspect-ratio */
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; hyphens: none; text-wrap: balance; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* Filet de sécurité contre l'espacement automatique de Gutenberg, À SPÉCIFICITÉ NULLE :
   la coupure se fait dans theme.json (blockGap 0) et par disable-layout-styles. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }

/* ---------- Images (core/image) ---------- */
figure.wp-block-image img { width: 100%; object-fit: inherit; object-position: inherit; }
figure:is(.hero-photo, .intro-photo-grande, .intro-photo-petite, .apropos-fond, .appel-fond, .recit-fond, .histoire-photo-gauche, .carte-portfolio) img,
.galerie-grille > figure img { height: 100%; }
.wp-block-image:is(.carte-portfolio, .galerie-client) > a { display: block; height: 100%; }

/* ---------- Boutons (core/button) ---------- */
.wp-block-buttons > .wp-block-button:is(.lien-fleche, .bouton-bande, .bouton-clair, .bouton-ardoise) { display: contents; }
.wp-block-buttons .wp-block-button .wp-block-button__link { width: auto; height: auto; text-align: inherit; }

/* ---------- Composants typographiques ---------- */
.titre-serif {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.04;
  color: var(--terracotta);
}
.titre-gothique {
  font-family: var(--gothique);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ardoise);
}
.titre-bande {
  font-family: var(--serif);
  font-size: clamp(30px, 2.5vw, 37px);
  line-height: 1.1;
  color: var(--titre-bande);
  text-align: center;
}
.surtitre, .surtitre-sombre {
  font-family: var(--capitales);
  font-size: 13px;
  letter-spacing: .17em;
  text-transform: uppercase;
  line-height: 1.9;
}
.surtitre-sombre { font-size: 11.5px; color: var(--gris-doux); }
.colonnes { columns: 2; column-gap: 34px; text-align: justify; }
.lien-fleche > .wp-block-button__link,
.wp-block-read-more.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--encre);
  border-radius: 0;
  font: 400 12.5px var(--capitales);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre);
}
.lien-fleche > .wp-block-button__link::after,
.wp-block-read-more.lien-fleche::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
}
/* le filet décoratif est un pseudo-élément du bloc qui le précède : un bloc vide serait supprimé par erreur */
.avec-filet::after, .avec-filet-sombre::after { content: ''; display: block; width: 34px; height: 1px; background: var(--creme); margin: 22px auto; }
.avec-filet-sombre::after { background: var(--encre); margin: 14px auto 22px; }
.bouton-bande > .wp-block-button__link, .bouton-clair > .wp-block-button__link {
  display: inline-block;
  font: 400 11.5px var(--capitales);
  letter-spacing: .24em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: filter .2s;
}
.bouton-bande > .wp-block-button__link { background: var(--bouton); color: var(--bouton-texte); padding: 9px 26px; }
.bouton-clair > .wp-block-button__link { background: var(--creme); color: var(--encre); padding: 10px 22px; }
.bouton-bande > .wp-block-button__link:hover, .bouton-clair > .wp-block-button__link:hover { filter: brightness(1.07); }

.bande { background: var(--ardoise); color: var(--creme); }

/* ---------- Logo ---------- */
.logo { width: 100%; height: 100%; overflow: visible; }
.logo-cercle { font: 700 9.4px var(--capitales); fill: currentColor; }
.logo-initiales { font: italic 400 38px var(--serif); fill: currentColor; }
.logo-disque { fill: var(--ivoire); }

/* ==========================================================
   OUVERTURE
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 1000px;
  color: var(--creme);
  overflow: hidden;
  background: var(--ardoise); /* sous la photo : un article sans image à la une reste lisible */
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.wp-block-post-featured-image.hero-photo { position: absolute; margin: 0; }
.wp-block-post-featured-image.hero-photo img { width: 100%; height: 100%; object-fit: inherit; object-position: inherit; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25, 22, 20, .38) 0%, rgba(25, 22, 20, 0) 22%, rgba(25, 22, 20, 0) 58%, rgba(25, 22, 20, .5) 100%);
  pointer-events: none;
}
/* le menu (part d'en-tête) précède le héros dans la page et flotte au-dessus */
.nav {
  position: absolute; z-index: 3;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px 8vw 0;
  color: var(--creme);
}
/* les liens se regroupent de part et d’autre du logo au lieu de s’étaler sur toute la largeur */
nav.nav-groupe > .wp-block-navigation__container { flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: clamp(26px, 2.6vw, 44px); }
nav.nav-groupe-droite > .wp-block-navigation__container { justify-content: flex-start; }
.nav-groupe a {
  font: 300 15px var(--gothique);
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .2s;
}
.nav-groupe a:hover { opacity: .7; }
.nav-logo { display: block; width: 104px; height: 104px; margin: 0 clamp(30px, 3vw, 48px); color: var(--creme); }
.nav-burger { display: none; }

.hero-texte {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 6vh;
  text-align: center;
  padding: 0 20px;
}
.hero-titre {
  font-family: var(--serif);
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 14px;
}

/* ==========================================================
   INTRODUCTION
   ========================================================== */
.intro { padding: 120px 0 90px; }
.intro-grille { position: relative; width: var(--largeur); margin: 0 auto; min-height: 560px; }
.intro-photo-grande {
  position: absolute; left: 0; top: 0;
  width: 31%; height: 560px;
  object-fit: cover;
}
.intro-photo-petite {
  position: absolute; right: 0; top: -14px;
  width: 19.5%; height: min(255px, 17.5vw);
  object-fit: cover;
}
.intro-contenu { position: relative; z-index: 2; margin-left: 35%; padding-top: 52px; }
/* seconde ligne du titre : <strong> nu (format natif), rendu en bloc, sans graisse */
.intro-titre strong { display: block; font-weight: inherit; padding-left: 1.4em; }
.intro-texte { margin: 84px 0 0 5%; max-width: 610px; }
.intro-texte .titre-gothique { margin-bottom: 26px; max-width: 62%; } /* reste à gauche de la petite photo */

/* ==========================================================
   PORTFOLIOS
   ========================================================== */
.portfolios { padding: 66px 0 86px; }
.portfolios .titre-bande { margin-bottom: 38px; }
.portfolios-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: var(--largeur);
  margin: 0 auto;
}
.carte-portfolio { position: relative; display: block; aspect-ratio: 0.72; overflow: hidden; object-fit: cover; }
.carte-portfolio img { transition: transform .8s ease; }
.carte-portfolio::after { content: ''; position: absolute; inset: 0; background: rgba(20, 18, 16, .12); pointer-events: none; }
.carte-portfolio:hover img { transform: scale(1.04); }
/* le titre de la carte est la légende de l'image : éditable, et le clic traverse jusqu'au lien */
.wp-block-image.carte-portfolio figcaption {
  position: absolute; z-index: 1;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--creme);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .25);
  padding: 0 16px;
  pointer-events: none;
}

/* ==========================================================
   À PROPOS
   ========================================================== */
.apropos { display: grid; grid-template-columns: 47% 53%; min-height: 700px; }
.apropos-texte {
  /* à droite : le débord de la 1re photo (6 % de 53 vw ≈ 3,2 vw) + 56 px d'air */
  padding: 110px calc(3.2vw + 56px) 100px max(5vw, calc(50vw - 560px));
  position: relative;
  z-index: 2;
}
.apropos-texte .titre-serif { margin-bottom: 14px; }
.apropos-texte .titre-gothique { margin-bottom: 34px; }
.apropos-texte p { max-width: 430px; text-align: justify; }
.apropos-visuel { position: relative; }
.apropos-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apropos-photo {
  position: absolute; top: 96px;
  width: 37%;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(20, 18, 16, .18);
}
figure.apropos-photo img { aspect-ratio: 0.8; }
.apropos-photo-1 { left: -6%; }
.apropos-photo-2 { left: 33.5%; }

/* ==========================================================
   DÉMARCHE
   ========================================================== */
.demarche { padding: 62px 0 74px; text-align: center; }
.demarche .titre-bande { margin-bottom: 26px; }
.demarche-intro { max-width: 600px; margin: 0 auto 16px; padding: 0 20px; }
.demarche-liste { list-style: none; padding: 0 20px; margin: 0 auto 44px; }
.demarche-liste li::before { content: '. '; }
.demarche-liste li::after { content: ' .'; }
.pastilles { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 0 20px; }
.pastille {
  width: 112px; height: 112px;
  border-radius: 50%;
  background: var(--ivoire);
  color: var(--ardoise);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
}
.pastille:nth-child(2n) { background: var(--encre); color: var(--creme); }
.pastille-num { font: 400 32px/1 var(--serif); }
.pastille-mot { font: 500 12px var(--gothique); letter-spacing: .14em; text-transform: uppercase; }

/* ==========================================================
   HISTOIRE
   ========================================================== */
.histoire {
  display: grid;
  grid-template-columns: 22% 1fr 18%;
  gap: 5%;
  align-items: start;
  padding: 44px 6% 120px 2.5%;
}
.histoire-photo-gauche { width: 100%; height: 560px; object-fit: cover; }
.histoire-centre { text-align: center; padding-top: 40px; }
.histoire-centre .titre-serif { margin-bottom: 8px; }
.histoire-centre .titre-gothique { margin-bottom: 34px; }
.histoire-centre .colonnes { text-align: justify; }
.histoire-photo-droite { width: 100%; object-fit: cover; margin-top: 110px; }
figure.histoire-photo-droite img { aspect-ratio: 0.85; }

/* ==========================================================
   REPORTAGES
   ========================================================== */
.reportages { padding: 34px 0 54px; }
.reportages .titre-bande { margin-bottom: 40px; }
.reportages-grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  width: min(840px, 88vw);
  margin: 0 auto;
}
.cadre-photo { background: var(--cadre); padding: 8px; }
.cadre-photo img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.carte-reportage-titre {
  font: 600 25px/1.2 var(--gothique);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--creme);
  margin: 18px 0 8px;
}
.carte-reportage-texte { font-style: italic; font-size: 14px; line-height: 1.75; max-width: 340px; margin-bottom: 18px; color: rgba(255, 253, 241, .9); }

/* ==========================================================
   APPEL
   ========================================================== */
.appel {
  position: relative;
  min-height: 450px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--creme);
  overflow: hidden;
}
.appel-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.appel::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(28, 24, 21, .58); }
.appel-contenu { position: relative; z-index: 2; padding: 70px 20px; max-width: 640px; }
.appel-titre {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.05;
  text-transform: uppercase;
}
.appel-contenu p { max-width: 480px; margin: 0 auto 28px; font-size: 14px; line-height: 1.8; }

/* ==========================================================
   TÉMOIGNAGES
   ========================================================== */
.temoignages { padding: 80px 0 70px; }
.temoignage { display: none; width: min(780px, 88vw); margin: 0 auto; grid-template-columns: 1fr 320px; gap: 60px; align-items: center; }
.temoignage.est-actif { display: grid; }
.temoignage-texte { text-align: center; }
.temoignage-texte > p:not(.surtitre-sombre) { text-align: justify; font-size: 14px; line-height: 1.8; }
.citation {
  font: italic 400 clamp(24px, 2vw, 29px)/1.12 var(--serif);
  color: var(--encre);
  margin-bottom: 26px;
}
/* seconde ligne de la citation : un second paragraphe dans le bloc citation */
.citation p + p { text-transform: uppercase; letter-spacing: .02em; margin-top: 4px; }
.temoignage-photo { width: 100%; object-fit: cover; }
figure.temoignage-photo img { aspect-ratio: 0.72; }
.temoignages-nav {
  width: min(780px, 88vw);
  margin: 28px auto 0;
  padding-right: calc(320px + 60px);
  display: flex; justify-content: center; align-items: center; gap: 26px;
  font: italic 400 20px var(--serif);
  color: var(--encre);
}
/* boutons précédent / suivant : paragraphes, le script leur donne rôle et clavier */
.temoignages-nav :is(.temoignages-precedent, .temoignages-suivant) { font: 400 26px/1 var(--capitales); padding: 0 6px; cursor: pointer; }

/* ==========================================================
   INSTAGRAM
   ========================================================== */
.instagram { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); background: var(--ardoise); }
.instagram .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.instagram-etiquette {
  position: absolute;
  left: 81.25%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ardoise);
  color: var(--creme);
  padding: 9px 12px 8px;
  text-align: center;
  line-height: 1.5;
}
.instagram-etiquette-titre { display: block; font: 400 17px var(--serif); text-transform: uppercase; }
.instagram-etiquette-compte { display: block; font: 700 9.5px var(--capitales); letter-spacing: .18em; text-transform: uppercase; }

/* ==========================================================
   PIED DE PAGE
   ========================================================== */
.pied { background: var(--ardoise); color: var(--creme); padding: 30px 0 24px; }
.pied-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1000px, 92vw);
  margin: 0 auto;
}
nav.pied-groupe > .wp-block-navigation__container { flex-wrap: nowrap; justify-content: space-around; }
.pied-groupe a { font: 600 13px var(--gothique); letter-spacing: .04em; text-transform: uppercase; }
.pied-logo { display: block; width: 84px; height: 84px; margin: 0 40px; color: var(--ardoise); }
.pied-bas { display: flex; justify-content: center; align-items: center; gap: 70px; margin-top: 20px; padding: 0 20px; }
.pied-mentions { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; font: 500 10.5px var(--gothique); letter-spacing: .1em; text-transform: uppercase; }
.pied-mentions > * + *::before { content: '·'; margin: 0 9px; }
/* icônes : le lien porte son libellé (lu par les lecteurs d'écran), l'icône est son fond */
.pied-icone { width: 20px; height: 20px; color: var(--creme); }
.pied-icone a { display: block; width: 100%; height: 100%; font-size: 0; color: transparent; background: center / contain no-repeat; }
.pied-icone-mail a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='5' width='20' height='14' rx='2' fill='%23fffdf1'/%3E%3Cpath d='m3.5 6.8 8.5 6.4 8.5-6.4' fill='none' stroke='%234b6070' stroke-width='1.8'/%3E%3C/svg%3E"); }
.pied-icone-instagram a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='5.5' fill='%23fffdf1'/%3E%3Ccircle cx='12' cy='12' r='4.6' fill='none' stroke='%234b6070' stroke-width='2'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.3' fill='%234b6070'/%3E%3C/svg%3E"); }

/* ==========================================================
   PAGES INTÉRIEURES
   ========================================================== */
.nav-groupe .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 9px; }

.hero-page { height: 72vh; min-height: 520px; max-height: 780px; }
.hero-page .hero-texte { bottom: 9vh; }
.hero-court { height: 58vh; min-height: 460px; }
.hero-photo-haut { object-position: 50% 12%; }
.hero-simple { height: auto; min-height: 0; max-height: none; background: var(--ardoise); padding: 190px 20px 70px; }
.hero-simple::after { display: none; }
.hero-simple .hero-texte { position: static; }

/* ---------- Galerie ---------- */
.galerie { padding: 10px 0 110px; }
.galerie-apres-bande { padding-top: 100px; }
.galerie-entete { text-align: center; margin-bottom: 44px; padding: 0 20px; }
.galerie-entete .titre-serif { margin-bottom: 8px; }
/* 9 photos : la 1re, la 5e et la 7e occupent deux rangs, la grille se referme en rectangle (4 rangs × 3, ou 6 × 2 sur mobile) */
.galerie-grille { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 19vw, 270px); grid-auto-flow: dense; gap: 7px; width: var(--largeur); margin: 0 auto; }
.galerie-grille > figure { object-fit: cover; }
.galerie-grille > :is(:nth-child(1), :nth-child(5), :nth-child(7)) { grid-row: span 2; }

/* ---------- Formules ---------- */
.formules { padding: 66px 0 84px; text-align: center; }
.formules .titre-bande { margin-bottom: 18px; }
.formules-intro { max-width: 620px; margin: 0 auto 48px; padding: 0 20px; }
.formules-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  width: min(1060px, 90vw);
  margin: 0 auto;
  text-align: left;
}
.formule-liste { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; line-height: 1.8; color: rgba(255, 253, 241, .9); }
.formule-liste li::before { content: '— '; }
.formule .carte-reportage-texte { max-width: none; }
.formule .cadre-photo img { object-position: 50% 25%; }

/* ---------- Contact ---------- */
.contact { padding: 110px 0 120px; }
.contact-grille { display: grid; grid-template-columns: 5fr 7fr; gap: 90px; width: var(--largeur); margin: 0 auto; }
.contact-infos .titre-serif { margin-bottom: 10px; }
.contact-infos .titre-gothique { margin-bottom: 30px; }
.contact-infos > p, .contact-ligne { max-width: 400px; }
.contact-ligne { margin-top: 26px; }
.contact-etiquette { display: block; font: 700 11px var(--capitales); letter-spacing: .17em; text-transform: uppercase; color: var(--gris-doux); }
/* la valeur était un lien en ligne : le paragraphe épouse sa largeur, la zone de clic aussi */
.contact-valeur { width: fit-content; font: 400 25px/1.3 var(--serif); color: var(--encre); }
.contact-valeur a:hover { color: var(--terracotta); }

/* formulaire : Contact Form 7, gabarit aux classes de la maquette (html_class="formulaire") */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ-large { grid-column: 1 / -1; }
.champ label { font: 400 11.5px var(--capitales); letter-spacing: .17em; text-transform: uppercase; color: var(--encre); }
.formulaire .wpcf7-form-control-wrap { display: block; } /* sinon l'enrobage garde l'espace sous la ligne de base */
.champ input, .champ select, .champ textarea {
  display: block; width: 100%;
  font: inherit; font-size: 15px; color: var(--encre);
  background: transparent;
  border: 0; border-bottom: 1px solid #bdb8b1; border-radius: 0;
  padding: 8px 0;
  outline: none;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { border-bottom-color: var(--ardoise); }
.champ textarea { resize: vertical; min-height: 140px; }
.champ-envoi { display: flex; align-items: flex-start; }
/* lien : en ligne, comme dans la maquette (son padding ne pousse pas la ligne) ; bouton d'envoi : bloc en ligne */
.bouton-ardoise > .wp-block-button__link { display: inline; }
.formulaire input.bouton-ardoise { display: inline-block; }
.bouton-ardoise > .wp-block-button__link, .formulaire input.bouton-ardoise {
  justify-self: start;
  background: var(--ardoise); color: var(--creme);
  border: 0;
  padding: 13px 34px;
  font: 400 11.5px var(--capitales); letter-spacing: .24em; text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.bouton-ardoise > .wp-block-button__link:hover, .formulaire input.bouton-ardoise:hover { filter: brightness(1.1); }
.groupe-champs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; border: 0; margin: 0; padding: 0; min-width: 0; }
.groupe-champs + .groupe-champs { margin-top: 14px; padding-top: 34px; border-top: 1px solid #d9d3ca; }
/* légende sortie de la bordure (float) : elle devient une ligne pleine de la grille */
.groupe-champs legend { float: left; width: 100%; grid-column: 1 / -1; padding: 0; margin: 0 0 -8px; font: 400 18px var(--gothique); letter-spacing: .1em; text-transform: uppercase; color: var(--ardoise); }
.champ-precision { text-transform: none; letter-spacing: 0; color: var(--gris-doux); }
.wpcf7 form.formulaire .wpcf7-response-output { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; font-style: italic; color: var(--ardoise); }
.formulaire .wpcf7-not-valid-tip { margin-top: 4px; font-size: 12.5px; color: var(--terracotta); }
.formulaire .wpcf7-spinner { display: none; }

/* ---------- Texte légal ---------- */
.texte-legal { width: min(760px, 90vw); margin: 0 auto; padding: 90px 0 110px; }
.texte-legal h2 { font: 400 30px/1.2 var(--serif); color: var(--terracotta); margin: 44px 0 10px; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal a { text-decoration: underline; }
/* passages « à compléter » : italique natif (éditable), rendu en surlignage */
.texte-legal em { font-style: normal; background: #f1e1d5; padding: 0 5px; }

/* ==========================================================
   PAGE DE VENTE MARIAGE
   ========================================================== */
.hero-titre-long { max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.08; }

/* ---------- Empathie (bande) ---------- */
.empathie { padding: 76px 20px 86px; text-align: center; }
.empathie .titre-bande { margin-bottom: 34px; }
.empathie-lignes { list-style: none; padding: 0; margin: 0 auto 34px; max-width: 760px; }
.empathie-lignes li { font: italic 400 clamp(21px, 1.9vw, 26px)/1.35 var(--serif); color: var(--creme); margin-bottom: 14px; }
.empathie-conclusion { max-width: 560px; margin: 0 auto; }

/* ---------- Alternance photo / texte (page mariage) : grille simple, rien n'est superposé ---------- */
.alterne { padding: 110px 0 120px; }
.alterne .entete-centree { margin-bottom: 70px; }
.alterne-rang { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; width: var(--largeur); margin: 0 auto; }
.alterne-rang + .alterne-rang { margin-top: 36px; }
.alterne-rang-inverse { grid-template-columns: 6fr 5fr; }
.alterne-rang-inverse .alterne-photo { order: 2; }
.alterne-photo { width: 100%; object-fit: cover; }
figure.alterne-photo img { aspect-ratio: 4 / 5; }
.alterne-texte .titre-gothique { margin-bottom: 22px; }
.alterne-texte p { text-align: justify; max-width: 520px; }
.alterne-texte p + p { margin-top: 12px; }

/* ---------- Les 3 erreurs ---------- */
.erreurs { padding: 100px 0 110px; }
.entete-centree { text-align: center; margin-bottom: 56px; padding: 0 20px; }
.entete-centree .titre-serif { margin-bottom: 8px; }
.erreurs-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; width: var(--largeur); margin: 0 auto; }
.erreur-num { display: block; font: 400 64px/1 var(--serif); color: var(--terracotta); margin-bottom: 14px; }
.erreur .titre-gothique { font-size: 19px; margin-bottom: 14px; }
.erreur p { text-align: justify; }

/* ---------- Récit du jour rêvé (photo pleine largeur) ---------- */
.recit { position: relative; padding: 110px 0 120px; color: var(--creme); overflow: hidden; }
.recit-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recit::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(28, 24, 21, .62); }
.recit-contenu { position: relative; z-index: 2; width: var(--largeur); margin: 0 auto; text-align: center; }
.recit-contenu .appel-titre { margin-bottom: 8px; }
.recit-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; text-align: left; }
.recit-moment { display: block; font: 500 15px var(--gothique); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 253, 241, .45); }
.recit-grille p:not(.recit-moment) { font-size: 14px; line-height: 1.8; }

/* ---------- Pour qui / pas pour qui ---------- */
.duo { padding: 100px 0 100px; }
.duo-grille { display: grid; grid-template-columns: 1fr 1fr; width: min(980px, 90vw); margin: 0 auto; }
.duo-colonne { padding: 0 52px; }
.duo-colonne + .duo-colonne { border-left: 1px solid #d9d3ca; }
.duo-colonne .titre-serif { font-size: clamp(28px, 2.4vw, 34px); margin-bottom: 22px; }
.liste-tirets { list-style: none; padding: 0; margin: 0; }
.liste-tirets li { padding-left: 22px; text-indent: -22px; margin-bottom: 8px; }
.liste-tirets li::before { content: '— '; color: var(--terracotta); }

/* ---------- Objections (questions dépliables, bloc Détails) ---------- */
.faq { padding: 70px 0 90px; }
.faq .titre-bande { margin-bottom: 36px; }
.faq-liste { width: min(820px, 90vw); margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255, 253, 241, .28); }
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font: 400 clamp(20px, 1.8vw, 25px)/1.3 var(--serif);
  color: var(--creme);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 28px var(--capitales); color: var(--titre-bande); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 0 26px; max-width: 700px; color: rgba(255, 253, 241, .9); }

/* ---------- Appel final avec formulaire court ---------- */
.reservation { padding: 100px 0 110px; }
.reservation .contact-infos p { text-align: left; }
.reassurance { margin-top: 18px; font-size: 13.5px; font-style: italic; color: var(--gris-doux); }
.rarete { margin-top: 28px; padding-top: 22px; border-top: 1px solid #d9d3ca; font: 400 22px/1.35 var(--serif); color: var(--terracotta); }

/* ==========================================================
   ACCÈS CLIENTS
   ========================================================== */
.espace-client { padding: 100px 0 110px; }
.espace-client .entete-centree p { max-width: 640px; margin: 18px auto 0; }
.espace-client-acces { text-align: center; margin: 34px 0 64px; }
.galeries-clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; width: var(--largeur); margin: 0 auto; }
.galerie-client { display: block; text-align: center; }
.galerie-client img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: filter .3s; }
.galerie-client:hover img { filter: brightness(1.06); }
/* le nom de la galerie est la légende de l'image, avec son lien ; le cadenas est un masque CSS */
.wp-block-image.galerie-client figcaption { margin: 0; }
.wp-block-image.galerie-client figcaption a { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 400 12.5px var(--capitales); letter-spacing: .16em; text-transform: uppercase; color: var(--encre); }
.wp-block-image.galerie-client figcaption a::before {
  content: '';
  width: 11px; height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M2.2 5.5V3.8a3.3 3.3 0 0 1 6.6 0v1.7h.7A1 1 0 0 1 10.5 6.5v5.5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V6.5a1 1 0 0 1 1-1h.7Zm1.5 0h3.6V3.8a1.8 1.8 0 0 0-3.6 0v1.7Z'/%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 13'%3E%3Cpath d='M2.2 5.5V3.8a3.3 3.3 0 0 1 6.6 0v1.7h.7A1 1 0 0 1 10.5 6.5v5.5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V6.5a1 1 0 0 1 1-1h.7Zm1.5 0h3.6V3.8a1.8 1.8 0 0 0-3.6 0v1.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.avis { padding: 76px 20px 86px; text-align: center; }
.avis .titre-bande { margin-bottom: 26px; }
.avis p { max-width: 560px; margin: 0 auto 12px; }
.avis .bouton-bande > .wp-block-button__link { margin-top: 22px; padding: 12px 30px; }
.avis-note p { max-width: none; margin: 0; }

/* ---------- Note Google ([note_google]) ---------- */
.note-google { display: inline-flex; align-items: center; gap: 18px; margin: 0 auto 34px; padding: 14px 26px; border: 1px solid rgba(255, 253, 241, .35); border-radius: 6px; color: var(--creme); transition: border-color .2s; }
.note-google:hover { border-color: var(--titre-bande); }
.note-google-chiffre { font: 400 52px/1 var(--serif); color: var(--titre-bande); }
.note-google-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.etoiles { position: relative; display: inline-block; line-height: 0; }
.etoiles svg { width: 19px; height: 19px; margin-right: 3px; }
.etoiles-fond svg { fill: rgba(255, 253, 241, .28); }
.etoiles-plein { position: absolute; inset: 0 auto 0 0; width: var(--remplissage); overflow: hidden; white-space: nowrap; }
.etoiles-plein svg { fill: var(--titre-bande); }
/* variante sur fond ivoire (témoignages de l'accueil) */
.temoignages-note { text-align: center; margin-bottom: 56px; }
.note-google-claire { margin: 0; color: var(--encre); border-color: #d9d3ca; }
.note-google-claire:hover { border-color: var(--terracotta); }
.note-google-claire .note-google-chiffre { color: var(--terracotta); }
.note-google-claire .etoiles-fond svg { fill: #e6dfd3; }
.note-google-claire .etoiles-plein svg { fill: var(--terracotta); }
.note-google-avis { font: 400 12px var(--capitales); letter-spacing: .17em; text-transform: uppercase; }

.usage-photos { width: min(820px, 90vw); margin: 0 auto; padding: 70px 0 80px; text-align: center; }
.usage-photos .titre-gothique { font-size: 17px; margin-bottom: 14px; }
.usage-photos p { font-size: 14px; color: var(--gris-doux); }

/* ==========================================================
   BLOG — boucles de requête : les cartes viennent des articles publiés
   ========================================================== */
.blog { padding: 80px 0 110px; }
.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0 auto 60px; padding: 0 20px; }
.filtre { font: 400 12px var(--capitales); letter-spacing: .17em; text-transform: uppercase; color: var(--gris-doux); padding: 6px 0; border-bottom: 1px solid transparent; cursor: pointer; }
.filtre:hover { color: var(--encre); }
.filtre.est-actif { color: var(--encre); border-bottom-color: var(--terracotta); }
.blog-vide { text-align: center; font-style: italic; color: var(--gris-doux); }

.article-une { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; width: var(--largeur); margin: 0 auto 80px; }
.article-une img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-une .carte-article-titre { font-size: clamp(30px, 2.6vw, 40px); }
.article-une p { text-align: justify; }

.articles-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 40px; width: var(--largeur); margin: 0 auto; }
.carte-article img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; }
.carte-article-categorie { display: block; font: 700 11px var(--capitales); letter-spacing: .17em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.carte-article-titre { font: 400 26px/1.15 var(--serif); color: var(--encre); margin-bottom: 8px; }
.carte-article-titre a { display: inline; }
.carte-article-titre a:hover { color: var(--terracotta); }
.carte-article-date { display: block; font-size: 13px; color: var(--gris-doux); margin-bottom: 12px; }
.carte-article p { margin-bottom: 16px; }
.carte-article .wp-block-read-more.lien-fleche { margin-top: 4px; }
/* la carte remplit sa cellule (l'élément de grille est le <li> de la boucle) */
.articles-grille > .wp-block-post > .carte-article { height: 100%; }
.est-filtre { display: none; }
.blog-pagination { display: flex; justify-content: center; gap: 40px; margin-top: 70px; font: 400 12.5px var(--capitales); letter-spacing: .1em; text-transform: uppercase; color: var(--encre); }

/* ---------- Article (template single) ---------- */
.surtitre-article > * { display: inline; }
.surtitre-article > * + *::before { content: ' · '; }
.article { width: min(720px, 90vw); margin: 0 auto; padding: 90px 0 100px; }
.article-meta { text-align: center; margin-bottom: 50px; }
.article-meta .carte-article-categorie { margin-bottom: 6px; }
.article p { margin-bottom: 18px; text-align: justify; }
.article h2 { font: 400 clamp(28px, 2.4vw, 34px)/1.15 var(--serif); color: var(--terracotta); margin: 46px 0 16px; }
.article figure { margin: 34px 0; }
.article figure img { width: 100%; }
.article figure figcaption { margin-top: 8px; font-size: 13px; font-style: italic; color: var(--gris-doux); text-align: center; }
.article blockquote { margin: 40px 0; padding: 0 30px; font: italic 400 clamp(24px, 2vw, 29px)/1.3 var(--serif); color: var(--encre); text-align: center; }
.article blockquote p { margin: 0; text-align: inherit; }
.article-retour { text-align: center; margin-top: 50px; }

/* écrans moyens : menu resserré pour que le logo reste centré (8 liens) */
@media (max-width: 1599px) {
  .nav { padding-left: 3vw; padding-right: 3vw; }
  nav.nav-groupe > .wp-block-navigation__container { gap: 20px; }
  .nav-groupe a { font-size: 13px; letter-spacing: .18em; }
  .nav-logo { width: 88px; height: 88px; margin: 0 22px; }
}

/* jusqu'à 1000 px : menu déroulant (8 liens ne tiennent plus de part et d'autre du logo) */
@media (max-width: 1000px) {
  .nav-groupe a { font-size: 15px; letter-spacing: .32em; }
  .nav { grid-template-columns: 1fr auto 1fr; padding: 16px 20px 0; }
  nav.nav-groupe { display: none; }
  .nav-logo { grid-column: 2; width: 84px; height: 84px; margin: 0; }
  /* bouton du menu : paragraphe, le script lui donne rôle et clavier ; les deux traits sont des pseudo-éléments */
  .nav-burger {
    display: block; position: relative;
    grid-column: 3; justify-self: end;
    width: 30px; height: 30px;
    font-size: 0; color: transparent;
    cursor: pointer;
  }
  .nav-burger::before, .nav-burger::after {
    content: '';
    position: absolute; left: 0; right: 0; top: 11px;
    height: 1.5px; background: var(--creme);
    transition: transform .3s, top .3s;
  }
  .nav-burger::after { top: 18px; }
  .nav.est-ouvert {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; align-items: center;
    background: var(--ardoise);
  }
  .nav.est-ouvert .nav-logo { order: -1; }
  .nav.est-ouvert .nav-burger { position: absolute; top: 43px; right: 20px; }
  .nav.est-ouvert nav.nav-groupe { display: block; margin-top: 26px; }
  .nav.est-ouvert nav.nav-groupe > .wp-block-navigation__container { flex-direction: column; align-items: center; gap: 26px; }
  .nav.est-ouvert nav.nav-groupe-gauche { margin-top: 60px; }
  .nav.est-ouvert .nav-burger::before { top: 14.5px; transform: rotate(45deg); }
  .nav.est-ouvert .nav-burger::after { top: 14.5px; transform: rotate(-45deg); }
}

/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 860px) {
  body { font-size: 15px; }
  .colonnes { columns: 1; }


  .hero { height: 88vh; min-height: 560px; }
  .hero-photo { object-position: 30% 50%; }
  .hero-texte { bottom: 5vh; }
  .hero .surtitre { font-size: 11px; letter-spacing: .12em; }

  .intro { padding: 70px 0 80px; }
  .intro-grille { min-height: 0; }
  .intro-photo-grande { position: relative; width: 78%; height: 420px; }
  .intro-photo-petite { width: 40%; height: 200px; top: 150px; right: 0; z-index: 1; }
  .intro-contenu { margin: 34px 0 0; padding-top: 0; }
  .intro-titre strong { padding-left: .8em; }
  .intro-texte { margin: 44px 0 0; }

  .portfolios-grille { grid-template-columns: 1fr; }
  .carte-portfolio { aspect-ratio: 1.15; }

  .apropos { grid-template-columns: 1fr; }
  .apropos-texte { padding: 70px 5vw 60px; }
  .apropos-visuel { height: 460px; }
  .apropos-photo { width: 44%; top: 60px; }
  .apropos-photo-1 { left: 5%; }
  .apropos-photo-2 { left: 51%; top: 120px; }

  .pastilles { gap: 18px; }
  .pastille { width: 96px; height: 96px; }

  .histoire { grid-template-columns: 1fr 1fr; gap: 16px; padding: 60px 5vw 80px; }
  .histoire-centre { grid-column: 1 / -1; grid-row: 1; padding-top: 0; }
  .histoire-photo-gauche { height: 300px; }
  .histoire-photo-droite { margin-top: 50px; }

  .reportages { padding: 50px 0 60px; }
  .reportages-grille { grid-template-columns: 1fr; gap: 50px; }

  .temoignage { grid-template-columns: 1fr; gap: 36px; }
  .temoignage-photo { max-width: 300px; margin: 0 auto; }
  .temoignages-nav { padding-right: 0; }

  .instagram { grid-template-columns: repeat(4, 1fr); }
  .instagram-etiquette { left: 50%; }

  .pied-nav { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  nav.pied-groupe > .wp-block-navigation__container { gap: 22px; flex-wrap: wrap; justify-content: center; }
  .pied-logo { margin: 0; grid-row: 1; }
  .pied-bas { flex-wrap: wrap; gap: 18px 30px; }
  .pied-mentions { order: 3; width: 100%; gap: 0 16px; line-height: 2; }
  .pied-mentions > * + *::before { content: none; }
  .hero-page { height: 70vh; min-height: 460px; }
  .hero-simple { height: auto; min-height: 0; padding: 140px 20px 44px; }
  .galerie { padding-bottom: 80px; }
  .galerie-grille { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .formules-grille { grid-template-columns: 1fr; gap: 54px; }
  .contact { padding: 70px 0 80px; }
  .contact-grille { grid-template-columns: 1fr; gap: 56px; }
  .formulaire { grid-template-columns: 1fr; }
  .erreurs { padding: 70px 0 80px; }
  .erreurs-grille { grid-template-columns: 1fr; gap: 44px; }
  .recit { padding: 80px 0 90px; }
  .recit-grille { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .duo { padding: 70px 0; }
  .duo-grille { grid-template-columns: 1fr; gap: 44px; }
  .duo-colonne { padding: 0; }
  .duo-colonne + .duo-colonne { border-left: 0; border-top: 1px solid #d9d3ca; padding-top: 40px; }
  .reservation { padding: 70px 0 80px; }
  .alterne { padding: 70px 0 80px; }
  .alterne .entete-centree { margin-bottom: 44px; }
  .alterne-rang, .alterne-rang-inverse { grid-template-columns: 1fr; gap: 30px; }
  .alterne-rang-inverse .alterne-photo { order: 0; }
  .alterne-rang + .alterne-rang { margin-top: 48px; }
  .intro-texte .titre-gothique { max-width: none; }
  .groupe-champs { grid-template-columns: 1fr; }
  .galeries-clients { grid-template-columns: 1fr; gap: 34px; }
  .article-une { grid-template-columns: 1fr; gap: 26px; margin-bottom: 60px; }
  .articles-grille { grid-template-columns: 1fr; gap: 54px; }
  .article { padding: 60px 0 70px; }
}
