/*
Theme Name: Atelier YATA
Theme URI: https://atelieryata.fr
Author: Atelier YATA
Description: Thème bloc sur mesure — maîtrise d’œuvre, AMO et OPC à Marseille. Noir et blanc, Archivo, contenu 100 % éditable dans l’éditeur de blocs.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atelier-yata
Tags: block-theme, full-site-editing, one-column
*/

/* =========================================================
   Atelier YATA
   Une seule famille (Archivo), aucun accent : uniquement le noir et le blanc,
   fond blanc, aucune ligne décorative (demandes client du 15/10).
   Cette feuille sert à la fois le thème WordPress et la maquette locale
   (site/*.html, générée depuis contenu/ par scripts/assembler.ps1) :
   le balisage des deux est celui des blocs natifs.
   ========================================================= */

:root {
  --encre: #000000;
  --fond: #ffffff;
  --blanc: #ffffff;

  --police: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --marge: clamp(16px, 2.6vw, 40px);
  --gouttiere: clamp(14px, 1.6vw, 24px);
  --corps: 16px;
  --petit: 13px;
  --mini: 12px;
  --section: clamp(72px, 9vw, 140px);
  --bord: max(var(--marge), (100% - 1600px) / 2);   /* marge latérale des sections */

  /* hauteur de la barre d'en-tête (logo + bas de marge), déduite du haut des pages intérieures */
  --entete-h: calc(max(18px, clamp(112px, 9.5vw, 148px) / 6.4583) + clamp(28px, 6svh, 64px));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: var(--corps);
  line-height: 1.45;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, ul, ol { margin: 0; padding: 0; }
ol { list-style: none; }
em { font-style: italic; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Gutenberg : aucun espacement automatique (theme.json : blockGap 0), filet à spécificité nulle */
:where(.wp-block-group) > :where(*) { margin-block: 0; }
figure.wp-block-image { margin: 0; }

.entete, .hero, .pied, .page-haut, .atelier, .methode, .publics, .service, .planning, .bande {
  padding-inline: var(--bord);
}

/* Texte lu par les lecteurs d'écran, invisible à l'écran */
.lecteur {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- éléments partagés ---------- */

/* Appel en capitales italiques précédé d'un losange au trait */
.lien-losange {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-style: italic; text-transform: uppercase; letter-spacing: .02em;
}
.lien-losange::before {
  content: ""; width: 7px; height: 7px;
  border: 1px solid currentColor; transform: rotate(45deg);
}
.lien-losange a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Repère sur photo : croix fine + mention en blanc (la mention est la légende de l'image) */
figure.avec-repere::before, figure.avec-repere::after {
  content: ""; position: absolute; z-index: 1; background: var(--blanc); pointer-events: none;
}
figure.avec-repere::before { top: 56px; right: 30px; width: 44px; height: 1px; }
figure.avec-repere::after  { top: 34px; right: 51px; width: 1px; height: 44px; }
figure.avec-repere > figcaption,
figure.avec-repere > figcaption.wp-element-caption {
  position: absolute; z-index: 1; top: 14px; right: 16px; margin: 0;
  font-size: 13px; line-height: 1.45; color: var(--blanc); text-align: right;
  white-space: nowrap; pointer-events: none;
}

/* Petits libellés à pictogramme (carré, rond, losange) */
.meta { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.meta-label { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.meta-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border: 1px solid currentColor; }
.meta-label.ico-rond::before { border-radius: 50%; }
.meta-label.ico-losange::before { transform: rotate(45deg) scale(.85); }
.meta-valeur { font-size: var(--corps); line-height: 1.3; }

/* Logotype géant du pied : une ligne, 92 % de la largeur, marges égales */
.marque {
  container-type: inline-size;
  width: 92%; margin-inline: auto;
  font-weight: 600; font-stretch: 115%; line-height: .8; white-space: nowrap;
}
.marque-texte { font-size: 13.28cqw; letter-spacing: -.05em; word-spacing: .16em; }

/* Numéro en exposant des grands titres : il suit le dernier mot */
.page-titre sup, .service-titre sup {
  display: inline-block; vertical-align: top; margin: .45em 0 0 .3em;
  font-size: 13px; font-stretch: 100%; font-weight: 400; letter-spacing: 0; white-space: nowrap;
}
.rang { font-size: 13px; font-stretch: 100%; letter-spacing: 0; white-space: nowrap; }

/* =========================================================
   EN-TÊTE : logo à gauche, navigation à droite
   ========================================================= */

.entete {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: clamp(42px, 6.1svh, 60px);
  padding-bottom: clamp(28px, 6svh, 64px);
}
.monogramme, .monogramme a { line-height: 0; }
/* le logo est un logotype horizontal (6,46 : 1) : sous 110 px il ne se lit plus */
.entete .wp-block-site-logo.monogramme img,
.entete .monogramme img { display: block; width: clamp(112px, 9.5vw, 148px); max-width: none; height: auto; }
/* sur l'accueil le grand logo le remplace ; visibility garde sa hauteur : le menu ne bouge pas */
.page-accueil .monogramme { visibility: hidden; }

/* WordPress pose la classe du menu sur <nav> ET sur sa liste <ul> : enfants directs uniquement */
.entete > .nav {
  display: flex; margin-left: auto; gap: clamp(20px, 2.4vw, 36px);
  font-size: 15px; line-height: 1.2;
}
.entete > nav.nav > ul {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: inherit;
  list-style: none; margin: 0; padding: 0;
}
.nav a, .pied-nav a { color: inherit; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"],
.pied-nav a:hover, .pied-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

/* grille commune du haut des pages */
.grille-haut {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere);
}

/* =========================================================
   ACCUEIL — un seul écran : logo centré, prestations, références
   ========================================================= */

.page-accueil .wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.page-accueil .wp-site-blocks > main,
.page-accueil .wp-block-post-content,
.accueil { flex: 1; display: flex; flex-direction: column; }

.accueil .hero { flex: 1; display: flex; flex-direction: column; position: relative; isolation: isolate; }
.accueil .hero-grille { flex: 1; min-height: 0; grid-template-rows: 1fr; }

.accueil-titre {
  grid-column: 1 / -1; grid-row: 1; align-self: center; justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  padding-bottom: clamp(24px, 20.5svh, 220px);   /* bloc au-dessus du centre géométrique */
  text-align: center;
}
figure.accueil-logo { width: clamp(260px, 42vw, 640px); max-width: 100%; }
figure.accueil-logo img { display: block; width: 100%; height: auto; }

.accueil-sous-titre {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px;
  font-size: clamp(15px, 1.12vw, 16px); font-weight: 400; line-height: 1.35;
}
.accueil-sous-titre a + a::before {
  content: "·"; content: "·" / "";
  display: inline-block; margin-right: 14px;
}
.accueil-sous-titre a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Références : titre à gauche, une seule rangée fixe de logos */
.partenaires {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere); row-gap: 12px;
  align-items: center;
  padding: clamp(24px, 4.5svh, 48px) var(--bord) clamp(30px, 4.4svh, 40px);
}
.partenaires-titre { grid-column: 1 / span 3; font-size: 15px; font-weight: 500; }
.partenaires-liste {
  grid-column: 4 / span 9;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px clamp(28px, 4vw, 64px);
}
figure.partenaire { flex: none; display: flex; align-items: center; height: 48px; }
/* noir pur (aucun gris) ; hauteurs réglées pour un poids visuel égal */
figure.partenaire img { width: auto; height: 32px; max-width: none; filter: grayscale(1) brightness(0); }
figure.partenaire-panorama img { height: 23px; }
figure.partenaire-asnr img     { height: 32px; }
figure.partenaire-afpa img     { height: 37px; }
figure.partenaire-nsl img      { height: 43px; }
figure.partenaire-kardham img  { height: 48px; }

/* =========================================================
   PAGES INTÉRIEURES — haut de page
   ========================================================= */

.page-haut { position: relative; isolation: isolate; }

.page-grille {
  grid-template-rows: 1fr auto;
  min-height: calc(clamp(460px, 44vw, 640px) - var(--entete-h));
}
.page-chapo {
  grid-column: 1 / span 5; grid-row: 1; align-self: center; max-width: 28ch;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.01em;
}
.page-chapo em { font-weight: 500; }
.page-titre {
  grid-column: 1 / span 7; grid-row: 2; align-self: end;
  font-stretch: 125%; font-weight: 400;
  font-size: clamp(46px, 8.6vw, 144px); line-height: .9; letter-spacing: -.04em;
}
figure.page-photo { grid-column: 8 / span 5; grid-row: 1 / span 2; position: relative; }
figure.page-photo img { width: 100%; height: 100%; object-fit: cover; }

.surtitre { font-size: 15px; font-weight: 500; }

/* =========================================================
   À PROPOS
   ========================================================= */

.atelier {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere); row-gap: clamp(32px, 4vw, 56px);
  padding-top: var(--section);
}
.atelier .surtitre { grid-column: 1 / span 3; grid-row: 1; padding-top: .45em; }
.atelier-texte {
  grid-column: 4 / span 9; grid-row: 1;
  font-size: clamp(24px, 3vw, 44px); line-height: 1.12; letter-spacing: -.025em;
  text-wrap: balance; hyphens: none;
}
.atelier-texte em { font-weight: 600; }
.atelier-col { font-size: var(--corps); line-height: 1.5; max-width: 38ch; }
.atelier-col-1 { grid-column: 4 / span 4; grid-row: 2; }
.atelier-col-2 { grid-column: 8 / span 4; grid-row: 2; }

/* Méthode : quatre temps en escalier à pas courts */
.methode { position: relative; isolation: isolate; padding-top: var(--section); }
.etapes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gouttiere);
  margin-top: clamp(32px, 4vw, 56px);
}
.etape:nth-child(2) { margin-top: clamp(16px, 2.4vw, 36px); }
.etape:nth-child(3) { margin-top: clamp(32px, 4.8vw, 72px); }
.etape:nth-child(4) { margin-top: clamp(48px, 7.2vw, 108px); }
.etape-titre {
  margin: 12px 0 16px;
  font-stretch: 125%; font-weight: 400;
  font-size: clamp(26px, 3vw, 44px); line-height: 1; letter-spacing: -.035em;
}
.etape-texte { font-size: 15px; line-height: 1.5; max-width: 32ch; }

/* Pour qui : deux publics, deux colonnes égales */
.publics {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere);
  padding-top: var(--section);
}
.publics > .surtitre { grid-column: 1 / -1; grid-row: 1; margin-bottom: clamp(28px, 3vw, 44px); }
.public { display: flex; flex-direction: column; gap: 22px; }
.public-a { grid-column: 1 / span 6; grid-row: 2; }
.public-b { grid-column: 7 / span 6; grid-row: 2; }
figure.public-photo { position: relative; order: -1; align-self: stretch; aspect-ratio: 3 / 2; }
figure.public-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.public-texte { display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.fiche-titre { font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.fiche-sous { margin-top: 4px; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.fiche-desc { font-size: var(--corps); line-height: 1.5; max-width: 44ch; }

/* =========================================================
   SERVICES — une seule grille pour les trois métiers
   ========================================================= */

.service {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere); row-gap: clamp(28px, 3vw, 44px);
  padding-top: var(--section);
}
.service-titre {
  grid-column: 1 / -1; grid-row: 1;
  font-stretch: 125%; font-weight: 400;
  font-size: clamp(34px, 5vw, 76px); line-height: .98; letter-spacing: -.035em;
  text-wrap: balance; hyphens: none;
}
figure.service-photo { position: relative; align-self: start; aspect-ratio: 4 / 3; }
figure.service-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.service-a .service-photo, .service-c .service-photo { grid-column: 1 / span 6; grid-row: 2; }
.service-a .service-texte, .service-c .service-texte { grid-column: 8 / span 5; grid-row: 2; }
.service-b .service-texte { grid-column: 1 / span 5; grid-row: 2; }
.service-b .service-photo { grid-column: 7 / span 6; grid-row: 2; }
.service-texte { display: flex; flex-direction: column; gap: 22px; }
.service-sous { font-size: 13px; }
.service-desc { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.32; letter-spacing: -.01em; max-width: 34ch; }

.missions { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.missions li { display: flex; gap: 12px; font-size: var(--corps); line-height: 1.45; }
.missions li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: .45em;
  border: 1px solid currentColor; transform: rotate(45deg);
}

/* Planning d'intervention : barres noires sur fond blanc, sans quadrillage.
   La barre est dessinée par la ligne elle-même (::after, élément de grille) ;
   la durée écrite reste lisible par les lecteurs d'écran et s'affiche sur téléphone. */
.planning { position: relative; padding-top: var(--section); padding-bottom: clamp(48px, 5vw, 80px); }
.planning-titre { font-size: 15px; font-weight: 500; }
.planning-tableau { margin-top: clamp(32px, 4vw, 56px); }
.planning-ligne {
  display: grid; grid-template-columns: minmax(0, 3fr) repeat(7, minmax(0, 1fr));
  align-items: center; min-height: 72px;
}
.planning-ligne > * { grid-row: 1; }
.planning-ligne::after { content: ""; grid-row: 1; height: 10px; background: var(--encre); }
.planning-entete::after { content: none; }
.planning-ligne.de-2-a-9::after { grid-column: 2 / 9; }
.planning-ligne.de-3-a-8::after { grid-column: 3 / 8; }
.planning-ligne.de-5-a-8::after { grid-column: 5 / 8; }
.planning-metier { grid-column: 1; padding-right: 16px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.planning-entete { min-height: 0; }
.planning-entete > p { align-self: end; padding: 0 6px 12px 0; font-size: 12px; }
.planning-entete > :first-child { grid-column-start: 2; }
.planning-duree {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  font-size: 12px;
}
.planning-pied {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere);
  margin-top: clamp(32px, 4vw, 56px); align-items: end;
}
.planning-note { grid-column: 4 / span 4; font-size: 16px; max-width: 40ch; }
.planning-pied .lien-losange { grid-column: 10 / span 3; justify-self: end; }

/* =========================================================
   CONTACT — le formulaire dès le premier écran
   ========================================================= */

.contact-haut { padding-bottom: var(--section); }
.contact-grille { grid-template-rows: auto; }
.contact-intro { grid-column: 1 / span 5; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact-intro .page-titre, .contact-intro .page-chapo { align-self: flex-start; }
.contact-intro .page-titre { font-size: clamp(46px, 7vw, 110px); }
.contact-intro .page-chapo { max-width: 24ch; }

.coordonnees-liste { display: grid; gap: 22px; }
.coordonnees-valeur { margin-top: 4px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.coordonnees-liste a:hover { text-decoration: underline; text-underline-offset: 4px; }

.formulaire { grid-column: 7 / span 6; grid-row: 1; padding-top: .5em; }
.formulaire-titre { font-size: 15px; font-weight: 500; }

/* Formulaire (Contact Form 7 ; la maquette reproduit son balisage) */
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gouttiere); margin-top: 20px; }
.champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.champ-large { grid-column: 1 / -1; }
.champ > span, .choix legend { font-size: 13px; }
.wpcf7-form-control-wrap { display: block; }
.champ input, .champ textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; color: var(--encre);
  background: transparent; border: 0; border-bottom: 1px solid var(--encre); border-radius: 0;
  padding: 8px 0 10px; outline: none;
}
.champ textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.champ input:focus, .champ textarea:focus { border-bottom-width: 2px; padding-bottom: 9px; }

.choix { border: 0; padding: 0; margin: 0; min-width: 0; }
.choix legend { padding: 0; margin-bottom: 10px; }
.choix-options .wpcf7-form-control { display: flex; flex-wrap: wrap; gap: 8px; }
.choix .wpcf7-list-item { margin: 0; }
.choix label { position: relative; display: block; }
.choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choix label span { display: inline-block; padding: 9px 14px; font-size: 14px; border: 1px solid var(--encre); transition: background .2s, color .2s; }
.choix input:checked + span { background: var(--encre); color: var(--fond); }
.choix input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 2px; }

.consentement { font-size: 13px; }
/* inline : la feuille de Contact Form 7 le passe en inline-block (+3 px sous la case) */
.consentement .wpcf7-list-item { display: inline; margin: 0; }
.consentement label { display: flex; align-items: flex-start; gap: 10px; }
.consentement input { flex: none; width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--encre); }

.envoyer {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  font-size: 13px; font-style: italic; text-transform: uppercase; letter-spacing: .02em;
}
.envoyer::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.envoyer:hover { text-decoration: underline; text-underline-offset: 3px; }

/* messages : noir sur blanc, comme le reste du site */
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border: 1px solid var(--encre); font-size: 14px; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7-response-output:empty { display: none; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12px; color: var(--encre); }
.champ .wpcf7-not-valid { border-bottom-width: 2px; }
.wpcf7-spinner { display: none; }

.bande { padding-bottom: clamp(24px, 3vw, 48px); }
figure.bande-photo { position: relative; height: clamp(260px, 36vw, 540px); }
figure.bande-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   PIED DE PAGE (pages intérieures)
   ========================================================= */

.pied { position: relative; padding-top: var(--section); padding-bottom: 28px; overflow-x: clip; }
.pied-accroche { max-width: 34ch; font-size: 18px; line-height: 1.35; }

.coordonnees {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere);
  margin-top: clamp(56px, 7vw, 110px);
}
.coordonnee { display: flex; flex-direction: column; }
.coordonnee:nth-child(1) { grid-column: 1 / span 3; }
.coordonnee:nth-child(2) { grid-column: 4 / span 3; }
.coordonnee:nth-child(3) { grid-column: 7 / span 4; }
.coordonnee-valeur { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.coordonnee-valeur a:hover { text-decoration: underline; text-underline-offset: 3px; }
.coordonnee-label { font-size: 12px; }

.pied-marque { margin-top: 18px; }

.pied-bas {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gouttiere);
  margin-top: 18px; font-size: 13px; line-height: 1.45;
}
.pied-bas > .pied-nav { grid-column: 1 / span 9; display: block; }
.pied-bas > nav.pied-nav > ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gouttiere);
  list-style: none; margin: 0; padding: 0;
}
.pied-copyright { grid-column: 10 / span 3; justify-self: end; }

/* sur la page Contact, les coordonnées sont déjà en haut : le pied ne les répète pas */
.page-contact .pied-accroche, .page-contact .coordonnees { display: none; }
.page-contact .pied { padding-top: clamp(40px, 5vw, 72px); }
.page-contact .pied-marque { margin-top: 0; }

/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 960px) {
  .grille-haut { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 0; }

  .page-grille { grid-template-rows: auto auto auto; min-height: 0; }
  .page-chapo { grid-column: 1 / -1; grid-row: 1; }
  .page-titre { grid-column: 1 / -1; grid-row: 2; margin-top: 24px; }
  /* premier enfant d'un groupe : WordPress annule sa marge haute (:root :where(.is-layout-flow) > :first-child) */
  .contact-intro > .page-titre { margin-top: 24px; }
  figure.page-photo { grid-column: 1 / -1; grid-row: 3; height: 56vw; margin-top: 24px; }

  .atelier { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .atelier .surtitre { grid-column: 1 / -1; }
  .atelier-texte { grid-column: 1 / -1; grid-row: 2; }
  .atelier-col-1 { grid-column: 1 / span 3; grid-row: 3; }
  .atelier-col-2 { grid-column: 4 / span 3; grid-row: 3; }

  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .etape:nth-child(n) { margin-top: 0; }
  .etape:nth-child(even) { margin-top: 40px; }

  .publics { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
  .public-a { grid-column: 1 / span 3; }
  .public-b { grid-column: 4 / span 3; }
  .public-b .public-photo { margin-top: 32px; }

  .service { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-a .service-photo, .service-b .service-photo, .service-c .service-photo { grid-column: 1 / -1; grid-row: 2; }
  .service-a .service-texte, .service-b .service-texte, .service-c .service-texte { grid-column: 1 / -1; grid-row: 3; }

  .planning-note { grid-column: 1 / span 8; }
  .planning-pied .lien-losange { grid-column: 9 / span 4; }

  .contact-grille { grid-template-rows: auto auto; }
  .contact-intro { grid-column: 1 / -1; }
  .formulaire { grid-column: 1 / -1; grid-row: 2; margin-top: 48px; }

  .coordonnees { grid-template-columns: 1fr; row-gap: 20px; }
  .coordonnee:nth-child(n) { grid-column: 1; }
  .pied-bas { grid-template-columns: auto 1fr; column-gap: 24px; }
  .pied-bas > .pied-nav { grid-column: 1; }
  .pied-bas > nav.pied-nav > ul { display: flex; column-gap: 24px; }
  .pied-copyright { grid-column: 2; }
}

/* =========================================================
   TÉLÉPHONE
   ========================================================= */

@media (max-width: 600px) {
  .grille-haut { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .entete { padding-bottom: 24px; }
  .entete .wp-block-site-logo.monogramme img, .entete .monogramme img { width: 112px; }
.entete > .nav { gap: 16px; font-size: 14px; }

  figure.accueil-logo { width: min(80vw, 320px); }
  .accueil-titre { padding-bottom: 13svh; }
  /* une prestation par ligne */
  .accueil-sous-titre { flex-direction: column; align-items: center; gap: 4px; font-size: 16px; }
  .accueil-sous-titre a + a::before { display: none; }
  .partenaires { padding-top: 18px; }
  .partenaires-titre, .partenaires-liste { grid-column: 1 / -1; }
  .partenaires-liste { justify-content: space-between; gap: 12px; }
  /* les cinq logos sur une seule rangée, mêmes rapports de taille que sur ordinateur */
  figure.partenaire { height: 30px; }
  figure.partenaire-panorama img { height: 15px; }
  figure.partenaire-asnr img     { height: 20px; }
  figure.partenaire-afpa img     { height: 23px; }
  figure.partenaire-nsl img      { height: 27px; }
  figure.partenaire-kardham img  { height: 30px; }

  figure.page-photo { height: 92vw; }

  .atelier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .atelier-col-1, .atelier-col-2 { grid-column: 1 / -1; grid-row: auto; }

  .etapes { grid-template-columns: 1fr; row-gap: 40px; }
  .etape:nth-child(2) { padding-left: 8%; }
  .etape:nth-child(3) { padding-left: 16%; }
  .etape:nth-child(4) { padding-left: 24%; }

  .publics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .public-a, .public-b { grid-column: 1 / -1; }
  .public-b { grid-row: 3; margin-top: 48px; }
  .meta { gap: 12px 24px; }

  .service { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* planning : la barre passe sous l'intitulé, les phases s'écrivent en clair */
  .planning-ligne { grid-template-columns: 0 repeat(7, minmax(0, 1fr)); row-gap: 10px; padding: 14px 0; }
  .planning-entete { display: none; }
  .planning-metier { grid-column: 1 / -1; grid-row: 1; padding-right: 0; }
  .planning-ligne::after { grid-row: 2; }
  .planning-duree {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
    display: block; grid-column: 1 / -1; grid-row: 3;
  }
  .planning-pied { grid-template-columns: 1fr; row-gap: 20px; }
  .planning-note, .planning-pied .lien-losange { grid-column: 1; justify-self: start; }

  .champs { grid-template-columns: 1fr; }

  .pied-bas { grid-template-columns: 1fr; row-gap: 8px; }
  .pied-bas > nav.pied-nav > ul { display: grid; grid-template-columns: repeat(3, auto); }
  .pied-copyright { grid-column: 1; justify-self: start; }
}

/* ---------- Très petits téléphones (320–360 px) ---------- */
@media (max-width: 360px) {
  .entete { gap: 12px; }
  .entete .wp-block-site-logo.monogramme img, .entete .monogramme img { width: 96px; }
.entete > .nav { gap: 12px; font-size: 13px; }
  .partenaires-liste { gap: 8px; }
}
