/*
Theme Name: Jerry Ballooneur
Theme URI: https://jerry-ballooneur.fr
Author: Jerry Ballooneur
Description: Thème bloc sur mesure pour Jerry Ballooneur, sculpteur de ballons à Lyon. Tout le contenu est en blocs natifs, modifiable dans l’éditeur.
Version: 1.0.6
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: jerry-ballooneur
Tags: block-theme, full-site-editing, one-column, custom-colors
*/

/* ==========================================================================
   Jetons — prélevés sur la référence (voir le plan de design, phase 1)
   ========================================================================== */
:root {
  --encre: #181818;
  --noir: #111110;
  --fond: #e2e3de;
  --sauge: #d5d5b7;
  --sauge-fonce: #b5b5a3;
  --creme: #fffffd;
  --texte: #4f504b;
  --texte-sombre: #9d9e98;
  --filet: rgba(24, 24, 24, .16);
  --filet-sombre: rgba(226, 227, 222, .16);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --marge: clamp(20px, 3.9vw, 56px);
  --titre-section: clamp(38px, 3.7vw, 54px);
  --titre-moyen: clamp(30px, 2.95vw, 43px);

  /* Pictogrammes : formes pleines, dessinées en masque CSS (substitution n° 1) */
  --forme-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='6.2 -6.8 57.6 53.5'%3E%3Cellipse cx='13' cy='18' rx='3.3' ry='6.6' transform='rotate(-35 13 18)'/%3E%3Cellipse cx='29' cy='25' rx='11.2' ry='6.4' transform='rotate(0 29 25)'/%3E%3Cellipse cx='17.4' cy='36.6' rx='5.4' ry='9.4' transform='rotate(4 17.4 36.6)'/%3E%3Cellipse cx='40.4' cy='36.6' rx='5.4' ry='9.4' transform='rotate(-4 40.4 36.6)'/%3E%3Cellipse cx='43.6' cy='15.4' rx='4.5' ry='7.4' transform='rotate(20 43.6 15.4)'/%3E%3Cellipse cx='54.6' cy='8.2' rx='8.6' ry='4.9' transform='rotate(-4 54.6 8.2)'/%3E%3Cellipse cx='44.2' cy='0.6' rx='3.2' ry='6.4' transform='rotate(-30 44.2 0.6)'/%3E%3Cellipse cx='49.2' cy='0.2' rx='3' ry='5.8' transform='rotate(12 49.2 0.2)'/%3E%3C/svg%3E");
  --forme-etiquette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 2a6 6 0 0 1 0 12zM15 2a6 6 0 0 0 0 12z'/%3E%3C/svg%3E");
  --forme-noeud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M4 8a24 24 0 0 1 0 48zM60 8a24 24 0 0 0 0 48z'/%3E%3C/svg%3E");
  --forme-duo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M4 8a24 24 0 0 1 0 48zM30 8a24 24 0 0 1 0 48z'/%3E%3C/svg%3E");
  --forme-sablier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M8 4h48a24 24 0 0 1-48 0zM8 60a24 24 0 0 1 48 0z'/%3E%3C/svg%3E");
  --forme-lune: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M30 8a24 24 0 0 0 0 48zM60 8a24 24 0 0 0 0 48z'/%3E%3C/svg%3E");
  --forme-bulle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M4 32a14 14 0 1 0 28 0a14 14 0 1 0-28 0zM36 8a24 24 0 0 1 0 48z'/%3E%3C/svg%3E");
  --tuile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='300' height='300' fill='%23e2e3de'/%3E%3Cpath fill='%23111110' d='M0 0h100a50 50 0 0 1-100 0zM100 100V0a100 100 0 0 1 100 100zM300 100V0a50 50 0 0 0 0 100zM0 150a50 50 0 1 0 100 0a50 50 0 1 0-100 0zM200 200H100a50 50 0 0 1 100 0zM300 100v100a100 100 0 0 1-100-100zM100 300H0a100 100 0 0 1 100-100zM100 200a50 50 0 0 1 0 100zM200 300a50 50 0 0 1 100 0z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;          /* l'en-tête absolu se cale sous la barre d'admin */
  background: var(--fond);
  color: var(--encre);
  font: 400 14px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; } /* height:auto obligatoire (attribut height des blocs image) */
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  hyphens: none;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Espacement automatique de Gutenberg : coupé à la source dans theme.json
   (blockGap 0px). Filet de sécurité ICI À SPÉCIFICITÉ NULLE — jamais en
   .wp-block-group > * (cela écraserait toutes les marges des composants). */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-block-buttons { display: block; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.titre-section { font-size: var(--titre-section); line-height: 1.08; }
.titre-moyen { font-size: var(--titre-moyen); line-height: 1.2; }

/* ==========================================================================
   Boutons pilule — la classe est portée par div.wp-block-button :
   on neutralise le conteneur et on dessine le lien.
   ========================================================================== */
.wp-block-button.pilule { display: inline-block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.wp-block-button.pilule > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  height: auto;
  padding: 7px 16px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--encre);
  color: var(--creme);
  font: 500 12.5px/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.wp-block-button.pilule--contour > .wp-block-button__link { box-shadow: inset 0 0 0 1px rgba(255, 255, 253, .55); }
.wp-block-button.pilule > .wp-block-button__link:hover,
.wp-block-button.pilule > .wp-block-button__link[aria-current] { background: var(--creme); color: var(--encre); }

/* ==========================================================================
   Étiquette de section (pictogramme en masque)
   ========================================================================== */
.etiquette {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--texte);
}
.etiquette::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--encre);
  -webkit-mask: var(--forme-etiquette) center / contain no-repeat;
  mask: var(--forme-etiquette) center / contain no-repeat;
}

/* ==========================================================================
   En-tête (parts/header.html)
   ========================================================================== */
.entete {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px var(--marge);
  color: var(--creme);
}
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font: 400 15px/1 var(--serif);
  letter-spacing: .01em;
}
.logo::before {
  content: "";
  flex: none;
  width: 30px;
  height: 28px;
  background: currentColor;
  -webkit-mask: var(--forme-logo) center / contain no-repeat;
  mask: var(--forme-logo) center / contain no-repeat;
}
.logo a::after { content: ""; position: absolute; inset: 0; } /* tout le logo est cliquable */
.entete > .wp-block-buttons { justify-self: end; }

/* Menu : core/navigation. Le CSS du bloc est imprimé après cette feuille,
   d'où les sélecteurs qualifiés par .wp-block-navigation. */
.wp-block-navigation.menu { font-size: 12.5px; }
.wp-block-navigation.menu .wp-block-navigation__container { gap: 42px; }
.wp-block-navigation.menu .wp-block-navigation-item__content { padding: 0; opacity: .92; transition: opacity .2s; }
.wp-block-navigation.menu .wp-block-navigation-item__content:hover,
.wp-block-navigation.menu .wp-block-navigation-item__content[aria-current] { opacity: 1; }
.wp-block-navigation.menu .wp-block-navigation-item__content[aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.wp-block-navigation.menu .menu-mobile { display: none; }

/* Bouton d'ouverture du menu mobile (dessin de la maquette) */
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open,
.wp-block-navigation.menu .wp-block-navigation__responsive-container-close {
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: var(--encre);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 253, .55);
  color: var(--creme);
  cursor: pointer;
}
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open svg,
.wp-block-navigation.menu .wp-block-navigation__responsive-container-close svg { width: 18px; height: 18px; fill: currentColor; }

/* Panneau mobile : sans ceci il s'ouvre blanc sur blanc (seul !important justifié) */
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--encre) !important;
  color: var(--creme) !important;
  padding: 26px var(--marge) 48px;
}
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 88px;
  align-items: flex-start;
}
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font: 400 32px/1.1 var(--serif);
  opacity: 1;
}
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .menu-mobile { display: flex; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container-close { top: 0; right: 0; display: grid; }

/* ==========================================================================
   Héros
   ========================================================================== */
.hero {
  position: relative;
  height: min(100vh, 64.5vw);
  min-height: 640px;
  overflow: hidden;
  background: var(--encre);
  color: var(--creme);
}
figure.hero-photo { position: absolute; inset: 0; margin: 0; }
figure.hero-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 30%;
}
figure.hero-photo.cadrage-pere-noel img { object-position: 34% 35%; }
figure.hero-photo.cadrage-gateau-bougies img { object-position: 50% 40%; }
figure.hero-photo.cadrage-offrir-ballon img { object-position: 50% 18%; }
figure.hero-photo.cadrage-blog-enfants-course img { object-position: 50% 40%; }
.hero--article figure.hero-photo img { object-position: 50% 40%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(12, 12, 12, .42) 0%, rgba(12, 12, 12, 0) 22%),
    linear-gradient(to top, rgba(12, 12, 12, .72) 0%, rgba(12, 12, 12, .28) 30%, rgba(12, 12, 12, 0) 55%);
  pointer-events: none;
}
.hero-bas {
  position: absolute;
  z-index: 2;
  inset: auto var(--marge) clamp(28px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.hero-titre {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: clamp(54px, 6.2vw, 90px);
  line-height: 1.02;
  color: var(--creme);
}
/* Surtitre = mot-clé de la page, dans le h1 (<em> nu, format natif de l'éditeur) */
.hero-titre em {
  display: block;
  margin-bottom: 18px;
  font: 500 12.5px/1.3 var(--sans);
  font-style: normal;
  letter-spacing: .02em;
  color: rgba(255, 255, 253, .86);
}
.hero-texte {
  grid-column: 2;
  grid-row: 1;
  max-width: 330px;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 253, .86);
}
.hero-bas > .wp-block-buttons { grid-column: 2; grid-row: 2; justify-self: end; }
.hero--page { height: min(86vh, 54vw); min-height: 580px; }
.hero--court { height: min(74vh, 44vw); min-height: 520px; }
.hero--article .hero-bas { grid-template-columns: 1.35fr 1fr; column-gap: 48px; }
.hero--article .hero-titre { font-size: clamp(44px, 4.7vw, 68px); line-height: 1.05; }
/* Pages sans photo (archives, 404) : bandeau sombre, même gabarit */
.hero--sans-photo { height: auto; min-height: 0; padding: 180px var(--marge) clamp(56px, 6vw, 88px); }
.hero--sans-photo::after { content: none; }
.hero--sans-photo .hero-bas { position: static; }

/* ==========================================================================
   À propos + chiffres
   ========================================================================== */
.apropos {
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  gap: clamp(40px, 4.9vw, 72px);
  align-items: start;
  padding: clamp(96px, 12.5vw, 180px) var(--marge);
}
.apropos-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
figure.demi-disque {
  aspect-ratio: 1 / 2;
  overflow: hidden;
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
}
figure.demi-disque img { width: 100%; height: 100%; object-fit: cover; }
.apropos-texte { padding-top: 4px; }
.apropos-texte .titre-moyen { margin-top: 22px; max-width: 520px; }

.chiffres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(48px, 6vw, 86px);
}
.chiffre {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(170px, 14vw, 200px);
  padding: 26px 26px 30px;
  border-top: 1px solid var(--filet);
}
.chiffre:nth-child(odd) { border-right: 1px solid var(--filet); }
.chiffre-label { font-size: 11.5px; line-height: 1.45; color: var(--texte); }
.chiffre-valeur { font: 400 clamp(44px, 3.9vw, 56px)/1 var(--serif); letter-spacing: -.01em; }
.chiffre--noir { background: var(--encre); color: var(--creme); border-top-color: var(--encre); }
.chiffre--noir .chiffre-label { color: rgba(255, 255, 253, .72); }

/* ==========================================================================
   Manifeste : un rond découpé en tranches qui s'écartent et rapetissent.
   Unités : D = diamètre du premier rond = hauteur de la file ; largeur 1,704 D.
   ========================================================================== */
.manifeste {
  padding: clamp(80px, 7vw, 104px) var(--marge) clamp(88px, 8vw, 116px);
  background: var(--encre);
  color: var(--creme);
  text-align: center;
}
.file-ballons {
  position: relative;
  width: min(88%, 1270px);
  aspect-ratio: 1.704 / 1;
  margin: clamp(40px, 4vw, 58px) auto 0;
}
figure.tranche {
  position: absolute;
  left: calc(var(--x) / 1.704 * 100%);
  top: calc(var(--t) * 100%);
  width: calc(var(--s) / 1.704 * 100%);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  clip-path: inset(0 0 0 var(--c));
}
/* Une seule photo pour toute la file : chaque tranche montre la portion qui se trouve sous elle. */
figure.tranche img {
  position: absolute;
  max-width: none;
  width: calc(1.704 / var(--s) * 100%);
  height: calc(100% / var(--s));
  left: calc(-100% * var(--x) / var(--s));
  top: calc(-100% * var(--t) / var(--s));
  object-fit: cover;
}
figure.tranche-1 { --x: 0;     --t: 0;   --s: 1;   --c: 0; clip-path: inset(0 41% 0 0); }
figure.tranche-2 { --x: .016;  --t: 0;   --s: 1;   --c: 59%; }
figure.tranche-3 { --x: .512;  --t: .07; --s: .86; --c: 60.47%; }
figure.tranche-4 { --x: .888;  --t: .15; --s: .7;  --c: 71.43%; }
figure.tranche-5 { --x: 1.204; --t: .25; --s: .5;  --c: 80%; }
.legende {
  margin-top: clamp(44px, 5vw, 72px);
  font-size: 12px;
  color: var(--texte-sombre);
}

/* ==========================================================================
   Zone d'intervention
   ========================================================================== */
.zone {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) minmax(0, .72fr);
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(72px, 7vw, 104px) var(--marge) clamp(80px, 8vw, 120px);
  background: var(--encre);
  color: var(--creme);
}
.zone-gauche {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}
.zone-liste > * + * { margin-top: 28px; }
.zone-liste h3 { font-size: 22px; line-height: 1.2; }
.zone-liste p { margin-top: 6px; font-size: 12px; color: var(--texte-sombre); }
figure.carte { margin: 0; }
figure.carte img { width: 100%; height: auto; }
.zone-intro {
  max-width: 230px;
  justify-self: end;
  font-size: 12px;
  line-height: 1.55;
  color: var(--texte-sombre);
}
.zone--fin,
.infos.filet-bas {
  background-image: linear-gradient(var(--filet-sombre), var(--filet-sombre));
  background-size: calc(100% - 2 * var(--marge)) 1px;
  background-position: 50% 100%;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Bon à savoir / questions fréquentes
   ========================================================================== */
.infos {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(40px, 4vw, 56px) var(--marge) clamp(88px, 8vw, 120px);
  background-color: var(--encre);
  color: var(--creme);
}
.infos--seule { padding-top: clamp(80px, 8vw, 120px); }
.infos-liste {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 3vw, 48px);
  align-self: end;
}
.infos-liste > * { padding: 26px 0 34px; border-top: 1px solid var(--filet-sombre); }
.infos-liste h3 { font-size: 24px; line-height: 1.2; }
.infos-liste p { max-width: 360px; margin-top: 10px; font-size: 12.5px; line-height: 1.55; color: var(--texte-sombre); }
.infos-liste a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.infos-liste h3 a { text-decoration: none; }
.infos-liste h3 a:hover { text-decoration: underline; }

/* ==========================================================================
   Contact + formulaire (Contact Form 7, classes de la maquette)
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(96px, 10vw, 150px) var(--marge);
}
.contact-texte .titre-moyen { margin-top: 22px; max-width: 520px; }
.coordonnees { margin-top: clamp(40px, 5vw, 64px); }
.coordonnee {
  display: grid;
  gap: 14px;
  padding: 24px 26px 28px;
  border-top: 1px solid var(--filet);
}
.coordonnee-valeur { font: 400 clamp(26px, 2.3vw, 32px)/1.15 var(--serif); text-wrap: balance; }
.coordonnee--noir { background: var(--encre); color: var(--creme); border-top-color: var(--encre); }
.coordonnee--noir .chiffre-label { color: rgba(255, 255, 253, .72); }
.coordonnee--noir .coordonnee-valeur { font-size: clamp(40px, 3.9vw, 56px); line-height: 1; }

.wpcf7 { max-width: none; }
.formulaire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 28px;
  padding-top: 6px;
}
.formulaire .hidden-fields-container,
.formulaire .wpcf7-spinner { display: none; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 11.5px; color: var(--texte); }
.champ .wpcf7-form-control-wrap { display: block; }
.champ input,
.champ select,
.champ textarea {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(24, 24, 24, .28);
  border-radius: 0;
  background: transparent;
  color: var(--encre);
  font: 400 16px/1.4 var(--sans);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s;
}
.champ select {
  padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23181818' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center / 11px 8px;
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ input::placeholder, .champ textarea::placeholder { color: #9a9b95; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--encre); box-shadow: 0 1px 0 var(--encre); }
.formulaire-envoi {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.formulaire-mention { max-width: 280px; font-size: 11.5px; line-height: 1.5; color: var(--texte); }
.formulaire .wpcf7-submit {
  padding: 11px 22px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--encre);
  color: var(--creme);
  font: 500 13px/1.2 var(--sans);
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.formulaire .wpcf7-submit:hover { background: #000; }
.wpcf7 form.formulaire.submitting .wpcf7-submit { opacity: .55; }
.formulaire .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 11.5px; color: #8c2f1b; }
.wpcf7 form.formulaire .wpcf7-response-output,
.wpcf7 form.formulaire.sent .wpcf7-response-output,
.wpcf7 form.formulaire.invalid .wpcf7-response-output,
.wpcf7 form.formulaire.failed .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--encre);
  border-radius: 14px;
  font-size: 13px;
}
.wpcf7 form.formulaire.init .wpcf7-response-output,
.wpcf7 form.formulaire.resetting .wpcf7-response-output,
.wpcf7 form.formulaire.submitting .wpcf7-response-output { display: none; }

/* ==========================================================================
   Grille de cartes (animations, articles)
   ========================================================================== */
.animations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  padding: clamp(96px, 10vw, 150px) var(--marge) clamp(96px, 10vw, 150px);
}
.animations > .etiquette { grid-column: 1; align-self: start; margin-top: 10px; }
.animations > .titre-section { grid-column: 2 / span 2; }
.grille-animations {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 5vw, 72px);
}
/* La tuile géométrique est une couche décorative : pseudo-élément, qui occupe la dernière case */
.grille-animations.avec-tuile::after {
  content: "";
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--fond) var(--tuile) center / cover no-repeat;
}
.animations-intro {
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--texte);
}
.animations-intro a { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.carte-anim {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(330px, 28vw, 410px);
  padding: 34px 34px 36px;
  border-radius: 14px;
  background: var(--sauge);
  transition: background .25s;
}
.carte-anim::before {
  content: "";
  flex: none;
  width: 58px;
  height: 58px;
  background: var(--noir);
  -webkit-mask: var(--picto, none) center / contain no-repeat;
  mask: var(--picto, none) center / contain no-repeat;
}
.picto-noeud, .category-arbre-de-noel .carte-article { --picto: var(--forme-noeud); }
.picto-duo, .category-idees-de-fete .carte-article { --picto: var(--forme-duo); }
.picto-sablier, .category-kermesse .carte-article { --picto: var(--forme-sablier); }
.picto-lune, .category-creche .carte-article { --picto: var(--forme-lune); }
.picto-bulle, .category-tarifs .carte-article { --picto: var(--forme-bulle); }
/* Carte entièrement cliquable : le lien du titre s'étend sur toute la carte */
.carte-anim h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.carte-anim:has(h3 a):hover { background: #cdcdac; }
.carte-anim h3 { margin-top: auto; font-size: 24px; line-height: 1.15; }
/* Le pictogramme est un ::before : le titre devient :first-child, et WordPress remet à zéro
   la marge haute du premier enfant avec une spécificité (0,2,0). On la dépasse. */
.wp-block-group.carte-anim > h3:first-child { margin-top: auto; }
.carte-anim p { margin-top: 14px; max-width: 330px; font-size: 12px; line-height: 1.6; color: var(--texte); }
.carte-article .carte-rubrique { margin-top: auto; font-size: 11.5px; color: var(--texte); }
.carte-article h3 { margin-top: 10px; }
.carte-article .carte-lien {
  display: block;
  width: fit-content;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.lire-aussi .grille-animations { margin-top: clamp(40px, 4vw, 56px); }
/* Boucle de requête du blog : la liste s'efface, chaque carte devient une case de la grille */
.grille-animations > .wp-block-query,
.grille-animations .wp-block-post-template,
.grille-animations .wp-block-post-template > li { display: contents; }

/* ==========================================================================
   Article
   ========================================================================== */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(80px, 8vw, 120px) var(--marge) clamp(96px, 10vw, 150px);
}
.article-cote {
  position: sticky;
  top: 32px;
  align-self: start;
  display: grid;
  gap: 26px;
}
.fil { font-size: 11.5px; color: var(--texte); }
.fil a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-meta { font-size: 12px; line-height: 1.65; color: var(--texte); }
.sommaire { padding-top: 18px; border-top: 1px solid var(--filet); }
.sommaire-titre { font: 400 22px/1.2 var(--serif); }
.sommaire ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: sommaire; }
.sommaire li {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 9px 0;
  border-bottom: 1px solid var(--filet);
  font-size: 13px;
  line-height: 1.4;
  counter-increment: sommaire;
}
.sommaire li::before { content: counter(sommaire, decimal-leading-zero); font: 400 15px/1.25 var(--serif); color: var(--texte); }
.sommaire a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-appel {
  display: grid;
  gap: 12px;
  padding: 24px 26px 28px;
  background: var(--encre);
  color: var(--creme);
}
.article-appel .chiffre-label { color: rgba(255, 255, 253, .72); }
.article-appel .coordonnee-valeur { font-size: clamp(34px, 3vw, 44px); line-height: 1; }
.article-appel .wp-block-buttons { justify-self: start; margin-top: 6px; }

.prose { max-width: 720px; font-size: 16.5px; line-height: 1.7; color: #2c2c2a; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.1em;
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 1.12;
  color: var(--encre);
  scroll-margin-top: 24px;
}
.prose h3 { margin-top: 1.7em; font-size: 24px; line-height: 1.2; color: var(--encre); }
.prose h2 + *, .prose h3 + * { margin-top: .65em; }
.prose ul, .prose ol { margin-bottom: 0; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; }
.prose li + li { margin-top: .5em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--encre);
}
.prose ol { counter-reset: etape; }
.prose ol > li { padding-left: 38px; counter-increment: etape; }
.prose ol > li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.08em;
  font: 400 21px/1.4 var(--serif);
  color: var(--texte);
}
.prose strong { font-weight: 500; color: var(--encre); }
.prose a { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote.wp-block-quote {
  margin: 1.8em 0 0;
  padding: 0 0 0 24px;
  border: 0;
  border-left: 1px solid var(--encre);
  font: 400 clamp(24px, 2.1vw, 28px)/1.3 var(--serif);
  color: var(--encre);
}
.prose figure.wp-block-table { margin: 1.4em 0 0; font-size: 14px; overflow-x: visible; } /* em calculé sur 14 px, comme la table de la maquette */
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose .wp-block-table thead { border: 0; }
.prose .wp-block-table th {
  padding: 0 16px 12px 0;
  border: 0;
  border-bottom: 1px solid var(--encre);
  font-size: 12px;
  font-weight: 500;
  color: var(--texte);
  text-align: left;
}
.prose .wp-block-table td { padding: 14px 16px 14px 0; border: 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.prose .tableau-prix td:last-child { font: 400 21px/1.2 var(--serif); color: var(--encre); white-space: nowrap; }
.prose .note { font-size: 13px; line-height: 1.6; color: var(--texte); }
.essentiel { padding: 30px 32px 32px; border-radius: 14px; background: var(--sauge); }
.essentiel-titre { font: 400 24px/1.2 var(--serif); color: var(--encre); }
.prose .essentiel ul { margin-top: 14px; font-size: 15px; line-height: 1.6; }
.prose figure.rond-texte {
  float: right;
  width: min(300px, 42%);
  aspect-ratio: 1;
  margin-right: 0;
  margin-bottom: 16px;
  margin-left: 24px; /* marge haute : celle de .prose h2 + * et h3 + *, comme dans la maquette */
  overflow: hidden;
  border-radius: 50%;
  shape-outside: circle(50%) border-box;
  shape-margin: 22px;
}
.prose figure.rond-texte img { width: 100%; height: 100%; object-fit: cover; }
.prose::after { content: ""; display: block; clear: both; }
.article--texte { display: block; }
.article--texte .prose > .wp-block-post-content > * + * { margin-top: 1.1em; }
.article--texte .prose h2 { margin-top: 2.1em; }

/* ==========================================================================
   Pied de page (parts/footer.html)
   ========================================================================== */
.pied {
  padding: clamp(80px, 8vw, 120px) var(--marge) 36px;
  background: var(--encre);
  color: var(--creme);
}
.pied-appel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: clamp(64px, 7vw, 104px);
  border-bottom: 1px solid var(--filet-sombre);
}
.pied-contact { text-align: right; }
.pied-tel { font: 400 clamp(40px, 4.4vw, 64px)/1 var(--serif); letter-spacing: -.01em; }
.pied-tel a {
  display: inline-block;
  border-bottom: 1px solid rgba(255, 255, 253, .35);
  transition: border-color .2s;
}
.pied-tel a:hover { border-color: var(--creme); }
.pied-contact > * + * { margin-top: 18px; font-size: 12px; color: var(--texte-sombre); }
.pied-bas {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
}
.wp-block-navigation.pied-menu { font-size: 12px; color: var(--texte-sombre); }
.wp-block-navigation.pied-menu .wp-block-navigation__container { gap: 32px; }
.wp-block-navigation.pied-menu .wp-block-navigation-item__content { padding: 0; }
.wp-block-navigation.pied-menu .wp-block-navigation-item__content:hover { color: var(--creme); }
.pied-mention { justify-self: end; font-size: 11.5px; color: var(--texte-sombre); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .zone { grid-template-columns: 1fr 1fr; }
  .zone-gauche { grid-row: 1 / span 2; }
  .zone-intro { grid-column: 2; grid-row: 1; justify-self: start; max-width: 360px; }
  figure.carte { grid-column: 2; grid-row: 2; }
}

@media (max-width: 860px) {
  .entete { grid-template-columns: 1fr auto; }
  .entete > .wp-block-buttons { display: none; }
  /* core/navigation bascule en menu mobile à 600 px ; la maquette le fait dès 860 px */
  .wp-block-navigation.menu .wp-block-navigation__responsive-container-open:not(.always-shown) { display: grid; }
  .wp-block-navigation.menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }

  .hero { height: 88vh; min-height: 560px; }
  .hero--page { height: 80vh; min-height: 540px; }
  .hero--court { height: 72vh; min-height: 500px; }
  .hero--sans-photo { height: auto; min-height: 0; padding-top: 140px; }
  figure.hero-photo img { object-position: 38% 30%; }
  .hero-bas { grid-template-columns: 1fr; gap: 18px; }
  .hero-titre, .hero-texte, .hero-bas > .wp-block-buttons { grid-column: 1; grid-row: auto; }
  .hero-texte { margin: 0; }
  .hero-bas > .wp-block-buttons { justify-self: start; }
  .hero--article .hero-bas { grid-template-columns: 1fr; }
  .hero--article .hero-titre { font-size: clamp(38px, 9.5vw, 54px); }

  .infos { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article-cote { position: static; }
  .article-appel { display: none; }
  .prose figure.rond-texte { width: min(240px, 46%); margin-left: 16px; shape-margin: 14px; }
  .contact { grid-template-columns: 1fr; }

  .apropos { grid-template-columns: 1fr; }
  .apropos-photos { max-width: 520px; }

  .zone { grid-template-columns: 1fr; }
  .zone-gauche, .zone-intro, figure.carte { grid-column: 1; grid-row: auto; }
  .zone-gauche { display: contents; }
  .zone-gauche .titre-section { order: 1; }
  .zone-intro { order: 2; }
  figure.carte { order: 3; width: min(100%, 440px); justify-self: center; }
  .zone-liste { order: 4; }

  .animations { grid-template-columns: 1fr; }
  .animations > .etiquette, .animations > .titre-section { grid-column: 1; }
  .animations > .titre-section { margin-top: 18px; }
  .grille-animations { grid-template-columns: 1fr 1fr; }
  .animations-intro { grid-column: 1 / -1; max-width: 520px; margin-bottom: 12px; }

  .pied-appel { grid-template-columns: 1fr; }
  .pied-contact { text-align: left; }
  .pied-bas { grid-template-columns: 1fr; justify-items: start; }
  .pied-mention { justify-self: start; }
}

@media (max-width: 560px) {
  main .titre-section br, .chiffre-label br { display: none; }
  .chiffre { padding: 20px 16px 22px; min-height: 150px; }
  .grille-animations { grid-template-columns: 1fr; }
  .carte-anim { min-height: 300px; }
  .grille-animations.avec-tuile::after { aspect-ratio: 1; }
  .infos-liste { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .essentiel { padding: 24px 22px 26px; }
  .prose .wp-block-table table, .prose .wp-block-table thead, .prose .wp-block-table tbody,
  .prose .wp-block-table tr, .prose .wp-block-table td { display: block; }
  .prose .wp-block-table thead { display: none; }
  .prose .wp-block-table tr { padding: 12px 0; border-bottom: 1px solid var(--filet); }
  .prose .wp-block-table td { padding: 2px 0; border: 0; }
  .prose figure.rond-texte { float: none; width: 64%; margin-right: auto; margin-bottom: 0; margin-left: auto; shape-outside: none; }
  .coordonnee { padding: 20px 16px 24px; }
  .formulaire { grid-template-columns: 1fr; gap: 28px; }
  .formulaire-envoi { flex-direction: column; align-items: flex-start; }
  .wp-block-navigation.pied-menu .wp-block-navigation__container { flex-wrap: wrap; gap: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Ajouts du 1er octobre 2026 — galerie, photo avec titre, témoignages.
   Nouvelles classes uniquement : aucune règle existante n'est modifiée.
   Les sections colorées reprennent la couleur « texte » de la palette
   (classe has-texte-background-color posée par l'éditeur).
   ========================================================================== */

/* Galerie de 4 photos : arches alternées, en écho aux demi-disques */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  padding: 0 var(--marge) clamp(96px, 12.5vw, 180px);
}
.galerie > .etiquette { grid-column: 1; align-self: start; margin-top: 10px; }
.galerie > .titre-section { grid-column: 2 / span 2; }
.wp-block-gallery.has-nested-images.galerie-photos {
  --wp--style--unstable-gallery-gap: 20px;
  grid-column: 1 / -1;
  gap: 20px;
  margin: clamp(48px, 5vw, 72px) 0 0;
}
.wp-block-gallery.galerie-photos figure.wp-block-image { aspect-ratio: 3 / 4; margin: 0; overflow: hidden; }
.wp-block-gallery.galerie-photos figure.wp-block-image:nth-child(odd) { border-radius: 999px 999px 0 0; }
.wp-block-gallery.galerie-photos figure.wp-block-image:nth-child(even) { border-radius: 0 0 999px 999px; }
.wp-block-gallery.galerie-photos figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; }

/* Photo avec titre : grand rond, titre en regard */
.photo-titre {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  gap: clamp(40px, 4.9vw, 72px);
  align-items: end;
  padding: clamp(96px, 10vw, 150px) var(--marge) 0;
}
.photo-titre-texte .titre-section { max-width: 560px; margin-top: 22px; }
figure.photo-ronde {
  justify-self: end;
  width: min(100%, 620px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
}
figure.photo-ronde img { width: 100%; height: 100%; object-fit: cover; }

/* Témoignages : section colorée, citations en serif, filets comme les chiffres */
.temoignages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  padding: clamp(80px, 8vw, 120px) var(--marge);
  background-color: var(--encre);
  background-image: linear-gradient(var(--filet-sombre), var(--filet-sombre));
  background-size: calc(100% - 2 * var(--marge)) 1px;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  color: var(--creme);
}
.temoignages > .etiquette { grid-column: 1; align-self: start; margin-top: 10px; color: rgba(255, 255, 253, .72); }
.temoignages > .etiquette::before { background: var(--creme); }
.temoignages > .titre-section { grid-column: 2 / span 2; }
.temoignages-liste {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px clamp(24px, 3vw, 48px);
  margin-top: clamp(48px, 5vw, 72px);
}
.temoignages blockquote.wp-block-quote.temoignage {
  margin: 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 253, .28);
}
.temoignages .temoignage p { font: 400 clamp(22px, 1.9vw, 27px)/1.3 var(--serif); color: var(--creme); }
.temoignages .temoignage cite {
  display: block;
  margin-top: 18px;
  font: 400 12px/1.5 var(--sans);
  font-style: normal;
  color: rgba(255, 255, 253, .72);
}
/* Masquée sur le site tant que les vrais témoignages ne sont pas saisis :
   retirer la classe « a-completer » dans l'éditeur (Avancé) pour l'afficher. */
.temoignages.a-completer { display: none; }

@media (max-width: 860px) {
  .galerie, .temoignages { grid-template-columns: 1fr; }
  .galerie > .etiquette, .galerie > .titre-section,
  .temoignages > .etiquette, .temoignages > .titre-section { grid-column: 1; }
  .galerie > .titre-section, .temoignages > .titre-section { margin-top: 18px; }
  .photo-titre { grid-template-columns: 1fr; }
  figure.photo-ronde { justify-self: center; width: min(100%, 440px); }
  .temoignages-liste { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ajout du 1er octobre 2026 — « Ils m'ont fait confiance » (logos clients).
   Nouvelles classes uniquement. Grille à filets, comme les chiffres de
   la section « À propos » ; un bloc image par logo, remplaçable dans l'éditeur.
   ========================================================================== */
.confiance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  padding: 0 var(--marge) clamp(96px, 10vw, 150px);
}
.confiance > .etiquette { grid-column: 1; align-self: start; margin-top: 10px; }
.confiance > .titre-section { grid-column: 2 / span 2; }
.logos-clients {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: clamp(48px, 5vw, 72px);
}
.logos-clients figure.wp-block-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(120px, 10.5vw, 150px);
  margin: 0;
  padding: 20px;
  border-top: 1px solid var(--filet);
}
.logos-clients figure.wp-block-image:not(:nth-child(6n)) { border-right: 1px solid var(--filet); }
.logos-clients figure.wp-block-image img { width: auto; height: auto; max-width: min(100%, 120px); max-height: 50px; }

@media (max-width: 860px) {
  .confiance { grid-template-columns: 1fr; }
  .confiance > .etiquette, .confiance > .titre-section { grid-column: 1; }
  .confiance > .titre-section { margin-top: 18px; }
  .logos-clients { grid-template-columns: repeat(3, 1fr); }
  .logos-clients figure.wp-block-image { min-height: 96px; padding: 14px; }
  .logos-clients figure.wp-block-image:nth-child(6n) { border-right: 1px solid var(--filet); }
  .logos-clients figure.wp-block-image:nth-child(3n) { border-right: 0; }
  .logos-clients figure.wp-block-image img { max-height: 40px; }
}
