/*
Theme Name: Sahbi Yanis
Theme URI: https://yanissahbi.fr
Author: Sahbi Yanis
Description: Thème bloc sur mesure — portfolio et CV en ligne. Construit depuis une maquette HTML, 100 % blocs natifs.
Version: 1.0.4
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sahbi-yanis
Tags: block-theme, full-site-editing, portfolio
*/

/* =========================================================
   Sahbi Yanis — maquette d'accueil
   Registre relevé sur la référence :
   grotesque condensée + grotesque neutre, un seul accent doré (#E7C27D, demandé par le client),
   bandes pleine largeur noir / crème, rectangles nets, pilules.
   ========================================================= */

:root {
  --encre: #0d0d0d;
  --carte: #161616;
  --creme: #f3f2ee;
  --accent: #e7c27d;
  --gris: #9a9a96;
  --filet: #d9d8d2;

  --affiche: "Anton", "Impact", "Arial Narrow", sans-serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --marge: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

/* ---------- boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: 500 14px/1 var(--texte);
  padding: 15px 24px;
  transition: transform .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.bouton:hover { transform: translateY(-2px); }
.bouton-accent { background: var(--accent); color: var(--encre); }
.bouton-noir { background: var(--encre); color: var(--accent); padding: 12px 22px; font-size: 13px; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.entete {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 38px var(--marge) 0;
  color: #fff;
}
.entete-logo {
  font-family: var(--affiche);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.01em;
}
.entete-reseaux {
  justify-self: end;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entete-reseaux a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  transition: background-color .2s;
}
.entete-reseaux a:hover { background: var(--accent); }
.entete-reseaux a:hover svg { fill: var(--encre); }
.entete-reseaux svg { width: 15px; height: 15px; fill: #fff; }

/* bouton hamburger — à gauche sur tous les écrans */
.entete-burger {
  display: grid;
  justify-self: start;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: background-color .2s;
}
.entete-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.entete-burger span:nth-child(2) { width: 12px; }
.entete-burger:hover { background: var(--accent); }
.entete-burger:hover span { background: var(--encre); }

/* =========================================================
   MENU PLEIN ÉCRAN
   ========================================================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 24px var(--marge) 36px;
  background: var(--encre);
  color: var(--creme);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.menu.est-ouvert {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
.menu-haut { display: flex; align-items: center; justify-content: space-between; }
.menu-fermer {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}
.menu-fermer svg { width: 18px; height: 18px; fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; }
.menu-logo { font-family: var(--affiche); font-size: 32px; line-height: 1; }
.menu-liens { display: flex; flex-direction: column; margin: 40px 0 32px; }
.menu-liens a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #262626;
  font-family: var(--affiche);
  font-size: clamp(40px, 11vw, 72px);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transition: color .2s;
}
.menu-liens a .externe { font-family: var(--texte); font-size: .36em; color: inherit; align-self: flex-start; margin-left: -6px; }
.menu-liens a span {
  font-family: var(--texte);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--gris);
}
.menu-liens a:hover,
.menu-liens a.est-courant { color: var(--accent); }
.menu-cta { align-self: flex-start; margin-top: auto; }
body.menu-ouvert { overflow: hidden; }

/* =========================================================
   HÉROS
   ========================================================= */
.heros {
  position: relative;
  height: clamp(680px, 65vw, 940px);
  background: var(--encre);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.heros-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  filter: brightness(1.7) contrast(1.12) saturate(.45) sepia(.16);
  z-index: -3;
}
.heros-grille {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.heros-voile {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 38%, rgba(13,13,13,0) 62%, rgba(13,13,13,.55) 100%),
    linear-gradient(0deg, rgba(13,13,13,.5) 0%, rgba(13,13,13,0) 30%);
}

.heros-intro {
  position: absolute;
  top: 190px;
  right: var(--marge);
  width: 270px;
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
  color: rgba(255,255,255,.86);
}
.point {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.heros-nom {
  font-family: var(--affiche);
  font-weight: 400;
  color: var(--accent);
  line-height: .8;
  letter-spacing: -.02em;
  hyphens: none;
}
.heros-nom strong,
.heros-nom em {
  position: absolute;
  font-size: clamp(110px, 12.5vw, 180px);
}
.heros-nom strong { left: var(--marge); top: 33%; }
.heros-nom em { right: var(--marge); top: 61.5%; }

.heros-pied {
  position: absolute;
  right: var(--marge);
  top: calc(61.5% + clamp(110px, 12.5vw, 180px) * .86 + 14px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 26px;
}
.heros-metier { font-size: 18px; font-weight: 400; letter-spacing: .005em; }

/* =========================================================
   SERVICES — bandes pleine largeur
   ========================================================= */
.services { background: var(--creme); }

.service {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--filet);
  cursor: pointer;
  isolation: isolate;
  transition: background-color .35s ease;
}
.service-ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 215px;
  padding: 0 var(--marge);
}
.service-titre {
  position: relative;
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 107px);
  line-height: .9;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--encre);
  hyphens: none;
  transition: color .35s ease;
}
.service-icone {
  position: absolute;
  top: -.04em;
  right: -.32em;
  width: .2em;
  height: .2em;
  fill: var(--accent);
  opacity: 0;
  transition: opacity .35s ease;
}
.service-texte {
  max-width: 440px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.service-photo {
  position: absolute;
  inset: 0 22% 0 26%;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: grayscale(1) contrast(1.15) brightness(.7);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 62%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 62%, transparent 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity .45s ease;
}

.service.est-actif { background: var(--encre); border-bottom-color: var(--encre); }
.service.est-actif .service-titre { color: var(--accent); }
.service.est-actif .service-icone,
.service.est-actif .service-photo { opacity: 1; }
.service.est-actif .service-texte { opacity: 1; transform: none; }

/* =========================================================
   PROJETS — fond noir, objet central, mosaïque
   ========================================================= */
.projets {
  background: var(--encre);
  color: var(--creme);
  padding: 96px var(--marge) var(--marge);
}
/* image de fond de la section d'accueil, à 50 % d'opacité sur le noir */
.projets-fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  opacity: .5;
  pointer-events: none;
}
.projets:has(> .projets-fond) { position: relative; isolation: isolate; }
.projets-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  hyphens: none;
}

/* sans l'anneau, le titre est suivi directement de la mosaïque */
.projets-titre + .mosaique { margin-top: 64px; }

/* l'anneau */
.anneau {
  position: relative;
  height: clamp(380px, 46vw, 640px);
  margin: 12px 0 64px;
}
.etoile {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--accent);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.etoile-hg { left: 0; top: 10%; }
.etoile-hd { right: 0; top: 10%; }
.etoile-bg { left: 0; bottom: 8%; }
.etoile-bd { right: 0; bottom: 8%; }
.pointilles {
  position: absolute;
  top: 26%;
  height: 46%;
  border-left: 1px dashed rgba(231,194,125,.5);
}
.pointilles-g { left: 10px; }
.pointilles-d { right: 11px; }

.anneau-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 34vw, 480px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.anneau-arriere,
.anneau-avant {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-28deg);
}
.anneau-arriere { filter: drop-shadow(0 34px 44px rgba(0,0,0,.6)); }
.anneau-avant { z-index: 2; filter: drop-shadow(0 -10px 22px rgba(0,0,0,.45)); }
.anneau-photo {
  position: absolute;
  z-index: 0;
  left: -15%;
  top: -27%;
  width: 104%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 40% 18%;
  filter: brightness(1.15) contrast(1.05) saturate(.6);
  -webkit-mask-image:
    radial-gradient(ellipse 12.5% 19% at 50.5% 30%, #000 78%, transparent 100%),
    radial-gradient(ellipse 30% 36% at 61% 72%, #000 70%, transparent 100%);
          mask-image:
    radial-gradient(ellipse 12.5% 19% at 50.5% 30%, #000 78%, transparent 100%),
    radial-gradient(ellipse 30% 36% at 61% 72%, #000 70%, transparent 100%);
}
.anneau-arriere { z-index: 1; }
.anneau-tete {
  z-index: 3;
  -webkit-mask-image: radial-gradient(ellipse 12.5% 19% at 50.5% 30%, #000 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 12.5% 19% at 50.5% 30%, #000 78%, transparent 100%);
}

/* la mosaïque */
.mosaique {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 214px) 340px repeat(4, 214px);
  gap: 14px;
}
.tuile {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--carte);
}
.tuile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.tuile:hover img { transform: scale(1.04); }
.tuile::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
  pointer-events: none;
}
.tuile figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  z-index: 1;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.9);
}
.t1  { grid-column: 1 / 9;  grid-row: 1 / 3; }
.t2  { grid-column: 9 / 13; grid-row: 1; }
.t3  { grid-column: 9 / 13; grid-row: 2; }
.t4  { grid-column: 1 / 7;  grid-row: 3; }
.t5  { grid-column: 7 / 13; grid-row: 3; }
.t6  { grid-column: 1 / 5;  grid-row: 4; }
.t7  { grid-column: 1 / 5;  grid-row: 5; }
.t8  { grid-column: 5 / 13; grid-row: 4 / 6; }
.t9  { grid-column: 1 / 9;  grid-row: 6 / 8; }
.t10 { grid-column: 9 / 13; grid-row: 6; }
.t11 { grid-column: 9 / 13; grid-row: 7; }

/* =========================================================
   CV
   ========================================================= */
.cv { background: var(--creme); padding: 0 var(--marge); }
.cv-ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 88px 0;
  border-bottom: 1px solid var(--filet);
}
.cv-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 100px);
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.cv-cote { max-width: 420px; font-size: 14px; line-height: 1.6; color: #3a3a38; }
.cv-cote .bouton { margin-top: 22px; }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.pied { background: var(--encre); color: var(--creme); padding: 96px var(--marge) 36px; }
.pied-haut {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 64px;
  padding-bottom: 72px;
  border-bottom: 1px solid #262626;
}
.pied-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 100px);
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--accent);
}
.pied-coord { display: grid; gap: 14px; font-size: 14px; }
.pied-coord dt { font-size: 12px; color: var(--gris); }
.pied-coord a:hover { color: var(--accent); }
.pied-bas {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13px;
  color: var(--gris);
}
.pied-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied-nav a:hover { color: var(--creme); }

/* =========================================================
   PAGE MON CV
   ========================================================= */
.page-heros {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  min-height: 600px;
  padding: 180px var(--marge) 72px;
  background: var(--encre);
  color: #fff;
  overflow: hidden;
}
.page-heros .heros-grille { z-index: -1; }
.page-heros-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(110px, 17vw, 250px);
  line-height: .8;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.page-heros-cote { display: flex; flex-direction: column; align-items: flex-end; gap: 26px; max-width: 320px; }
.page-heros-intro { font-size: 13px; line-height: 1.65; text-align: right; color: rgba(255,255,255,.86); }

/* chiffres clés */
.chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--creme);
  border-bottom: 1px solid var(--filet);
}
.chiffre { padding: 56px var(--marge) 52px; border-right: 1px solid var(--filet); }
.chiffre + .chiffre { padding-left: 40px; }
.chiffre:last-child { border-right: 0; }
.chiffre-valeur {
  font-family: var(--affiche);
  font-size: clamp(72px, 8.4vw, 120px);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--encre);
}
.chiffre-valeur span { font-size: .42em; margin-left: .08em; letter-spacing: 0; }
.chiffre-libelle { margin-top: 14px; max-width: 220px; font-size: 13px; line-height: 1.5; color: #55554f; }

/* expériences — bandes, même mécanique que les services */
.parcours { background: var(--creme); }
.parcours-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 96px var(--marge) 40px;
  border-bottom: 1px solid var(--filet);
}
.parcours-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 100px);
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.parcours-sous { font-size: 14px; color: #55554f; }
.etape {
  display: grid;
  grid-template-columns: 200px minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 48px var(--marge);
  border-bottom: 1px solid var(--filet);
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease;
}
.etape-dates { font-size: 13px; font-weight: 500; color: #55554f; transition: color .35s; }
.etape-poste h3 {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 58px);
  line-height: .95;
  letter-spacing: -.015em;
  text-transform: uppercase;
  transition: color .35s;
}
.etape-lieu { margin-top: 10px; font-size: 13px; color: #55554f; transition: color .35s; }
.etape-detail p { font-size: 14px; line-height: 1.6; color: #3a3a38; transition: color .35s; }
.etape-detail .pastilles { margin-top: 16px; }
.etape.est-actif { background: var(--encre); border-bottom-color: var(--encre); }
.etape.est-actif .etape-poste h3 { color: var(--accent); }
.etape.est-actif .etape-dates { color: var(--accent); }
.etape.est-actif .etape-lieu,
.etape.est-actif .etape-detail p { color: rgba(255,255,255,.78); }
.etape.est-actif .pastilles li { border-color: #3a3a3a; color: #fff; }

/* pastilles (compétences) */
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pastilles li {
  padding: 8px 14px;
  border: 1px solid #c9c8c1;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .35s, color .35s;
}

/* formation — fond noir, titre centré */
.formation, .bloc-noir { background: var(--encre); color: var(--creme); padding: 96px var(--marge); }
.formation-titre, .bloc-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(56px, 7.2vw, 104px);
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 64px;
}
.diplomes, .colonnes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #262626; }
.diplome, .colonne { padding: 40px 40px 8px 0; }
.diplome + .diplome, .colonne + .colonne { padding-left: 40px; border-left: 1px solid #262626; }
.diplome-dates, .colonne-num { font-size: 13px; font-weight: 500; color: var(--accent); }
.diplome h3, .colonne h3 {
  margin-top: 18px;
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(30px, 2.9vw, 42px);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.diplome-ecole { margin-top: 10px; font-size: 13px; color: var(--gris); }
.diplome-texte, .colonne-texte { margin-top: 18px; font-size: 14px; line-height: 1.6; color: rgba(243,242,238,.75); }

/* compétences */
.competences {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 64px;
  padding: 96px var(--marge);
  background: var(--creme);
  border-bottom: 1px solid var(--filet);
}
.competences-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 100px);
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.competences-groupes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.groupe h3 { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #55554f; }

/* =========================================================
   PAGES INTERNES — composants
   ========================================================= */
.colonnes-4 { grid-template-columns: repeat(4, 1fr); }
.page-heros-titre { hyphens: none; }
.page-heros-titre.long { font-size: clamp(90px, 11vw, 160px); }

/* À propos — portrait + texte */
.bio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 88px;
  align-items: center;
  padding: 120px var(--marge);
  background: var(--creme);
}
.bio-visuel { position: relative; }
.bio-visuel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 3px;
  filter: brightness(1.5) contrast(1.08) saturate(.5) sepia(.14);
}
.bio-plaque {
  position: absolute;
  right: -40px;
  bottom: 40px;
  padding: 18px 22px;
  background: var(--encre);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 3px;
}
.bio-plaque strong { display: block; font-family: var(--affiche); font-weight: 400; font-size: 28px; line-height: 1; color: var(--accent); margin-bottom: 6px; }
.bio-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.bio-texte p { margin-top: 22px; max-width: 560px; font-size: 15px; line-height: 1.7; color: #3a3a38; }
.bio-texte p:first-of-type { margin-top: 32px; }
.bio-texte .bouton { margin-top: 32px; }

/* Portfolio — filtres */
.filtres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.filtre {
  padding: 12px 20px;
  border: 1px solid #333;
  border-radius: 999px;
  background: transparent;
  color: var(--creme);
  font: 500 13px/1 var(--texte);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filtre:hover { border-color: var(--accent); }
.filtre.est-actif { background: var(--accent); border-color: var(--accent); color: var(--encre); }
.projets-page { padding-top: 72px; }
.mosaique.est-filtre { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 300px; }
.mosaique.est-filtre .tuile { grid-column: auto; grid-row: auto; }
.tuile.est-masque { display: none; }

/* Projets — études de cas */
.cas {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: center;
  padding: 112px var(--marge);
  background: var(--creme);
  border-bottom: 1px solid var(--filet);
}
.cas:nth-of-type(even) { background: var(--encre); color: var(--creme); border-bottom-color: var(--encre); }
.cas:nth-of-type(even) .cas-visuel { order: 2; }
.cas-visuel { position: relative; }
.cas-visuel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.cas-num {
  position: absolute;
  top: -28px;
  left: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--encre);
  font: 600 13px/1 var(--texte);
}
.cas-client { font-size: 13px; font-weight: 500; color: #55554f; }
.cas:nth-of-type(even) .cas-client { color: var(--accent); }
.cas-titre {
  margin-top: 14px;
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 66px);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.cas-blocs { display: grid; gap: 18px; margin-top: 32px; }
.cas-blocs dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8a85; }
.cas-blocs dd { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.cas-resultats { display: flex; gap: 40px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--filet); }
.cas:nth-of-type(even) .cas-resultats { border-top-color: #262626; }
.cas-resultats strong { display: block; font-family: var(--affiche); font-weight: 400; font-size: 56px; line-height: .9; letter-spacing: -.015em; }
.cas:nth-of-type(even) .cas-resultats strong { color: var(--accent); }
.cas-resultats span { display: block; margin-top: 8px; max-width: 160px; font-size: 12px; line-height: 1.45; color: #8a8a85; }
.cas .pastilles { margin-top: 24px; }
.cas:nth-of-type(even) .pastilles li { border-color: #3a3a3a; }

/* Contact — coordonnées + formulaire */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  padding: 112px var(--marge);
  background: var(--creme);
}
.contact-titre {
  font-family: var(--affiche);
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 66px);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.contact-coord { display: grid; gap: 22px; margin-top: 40px; }
.contact-coord dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8a85; }
.contact-coord dd { margin-top: 6px; font-size: 18px; }
.contact-coord a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact .pastilles { margin-top: 36px; }
.contact .pastilles a { display: block; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; align-content: start; }
.champ { display: grid; gap: 8px; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-size: 12px; font-weight: 500; color: #55554f; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #c9c8c1;
  border-radius: 3px;
  background: #fbfaf7;
  color: var(--encre);
  font: 400 15px/1.4 var(--texte);
  transition: border-color .2s;
}
.champ textarea { min-height: 170px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); }
.formulaire .bouton { justify-self: start; border: 0; cursor: pointer; }
.formulaire-merci { grid-column: 1 / -1; display: none; padding: 16px 18px; border-radius: 3px; background: var(--encre); color: var(--accent); font-size: 14px; }
.formulaire.est-envoye .formulaire-merci { display: block; }

/* =========================================================
   ADAPTATIF
   ========================================================= */
@media (min-width: 901px) {
  .menu-liens { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 72px; margin-top: 64px; }
  .menu-liens a { font-size: clamp(56px, 6.6vw, 96px); padding: 16px 0; }
}

@media (max-width: 900px) {
  .entete { grid-template-columns: auto 1fr; padding-top: 24px; }
  .entete-logo { display: none; }
  .entete-reseaux { gap: 8px; }

  .heros { height: 760px; }
  .heros-photo { object-position: 55% 10%; }
  .heros-intro { top: auto; bottom: 36px; left: var(--marge); right: var(--marge); width: auto; text-align: left; }
  .heros-nom strong { top: 150px; }
  .heros-nom em { top: 290px; right: auto; left: var(--marge); }
  .heros-pied { top: auto; bottom: 170px; left: var(--marge); right: auto; align-items: flex-start; }

  .service-ligne { flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; min-height: 130px; padding-top: 28px; padding-bottom: 28px; }
  .service-texte { display: none; }
  .service.est-actif .service-texte { display: block; }
  .service-photo { inset: 0; width: 100%; }
  .service-icone { right: -.36em; }

  .mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; gap: 10px; }
  .mosaique .tuile { grid-column: auto; grid-row: auto; }
  .mosaique .t1, .mosaique .t5, .mosaique .t8, .mosaique .t9 { grid-column: 1 / -1; grid-row: span 2; }

  .cv-ligne { flex-direction: column; align-items: flex-start; padding: 64px 0; gap: 20px; }
  .pied-haut { grid-template-columns: 1fr; gap: 28px; align-items: start; }

  .page-heros { flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 140px; padding-bottom: 48px; gap: 32px; }
  .page-heros-cote { align-items: flex-start; }
  .page-heros-intro { text-align: left; }
  .chiffre, .chiffre + .chiffre { padding: 36px var(--marge); }
  .chiffre:nth-child(2) { border-right: 0; }
  .chiffre:nth-child(-n+2) { border-bottom: 1px solid var(--filet); }
  .parcours-tete { padding-top: 64px; padding-bottom: 28px; }
  .etape { grid-template-columns: 1fr; gap: 14px; padding-top: 36px; padding-bottom: 36px; }
  .formation, .bloc-noir { padding-top: 64px; padding-bottom: 64px; }
  .formation-titre, .bloc-titre { margin-bottom: 40px; }
  .diplomes, .colonnes, .colonnes-4 { grid-template-columns: 1fr; }
  .diplome, .diplome + .diplome, .colonne, .colonne + .colonne { padding: 32px 0; border-left: 0; border-bottom: 1px solid #262626; }
  .competences { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
  .competences-groupes { grid-template-columns: 1fr; gap: 28px; }
  .pastilles li { white-space: normal; }

  /* titres fluides : tiennent jusqu'à 320 px de large */
  .heros-nom strong, .heros-nom em { font-size: min(120px, 30vw); }
  .heros-nom em { top: calc(150px + min(120px, 30vw) * .9); }
  .service-titre { font-size: min(44px, 10.4vw); }
  .projets-titre, .cv-titre, .pied-titre { font-size: min(56px, 14vw); }
  .page-heros-titre { font-size: min(110px, 27vw); }
  .parcours-titre, .competences-titre, .formation-titre { font-size: min(56px, 13.5vw); }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffre-valeur { font-size: min(72px, 17vw); }
  .competences, .competences-groupes, .etape { grid-template-columns: minmax(0, 1fr); }
  .parcours-tete { flex-direction: column; gap: 8px; }
  .anneau-scene { width: min(300px, 74vw); }
  .anneau { height: min(380px, 100vw); }
  .projets { overflow: hidden; }
  .page-heros-titre.long { font-size: min(96px, 21vw); white-space: normal; line-height: .86; }
  .bio, .cas, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .bio-plaque { right: 12px; bottom: 12px; }
  .cas:nth-of-type(even) .cas-visuel { order: 0; }
  .cas-resultats { gap: 24px; }
  .cas-resultats strong { font-size: 44px; }
  .bio-titre, .cas-titre, .contact-titre { font-size: min(48px, 12vw); }
  .mosaique.est-filtre { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .pied-bas { flex-direction: column; }
}

/* =========================================================
   ADAPTATIONS WORDPRESS (phase 4)
   Tout ce qui suit traduit la maquette dans le DOM des blocs natifs.
   Règle d'or : le CSS d'un bloc est imprimé APRÈS cette feuille, donc
   chaque surcharge d'un style de bloc est plus spécifique, jamais
   seulement plus tardive.
   ========================================================= */

body { position: relative; }
img { height: auto; }
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.wp-site-blocks { padding: 0; }
.wp-block-post-content { margin: 0; }

/* ---------- boutons : la classe est sur le conteneur ---------- */
.wp-block-button.bouton-accent,
.wp-block-button.bouton-noir { display: inline-block; background: none; border: 0; padding: 0; border-radius: 0; }
.wp-block-buttons > .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: 500 14px/1 var(--texte);
  padding: 15px 24px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s ease;
}
.wp-block-buttons > .wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-buttons > .wp-block-button.bouton-accent .wp-block-button__link { background: var(--accent); color: var(--encre); }
.wp-block-buttons > .wp-block-button.bouton-noir .wp-block-button__link { background: var(--encre); color: var(--accent); padding: 12px 22px; font-size: 13px; }
.cv-cote .wp-block-buttons { margin-top: 22px; }
.bio-texte .wp-block-buttons { margin-top: 32px; }
.menu-cta { align-self: flex-start; margin-top: auto; }

/* ---------- en-tête ---------- */
p.entete-burger {
  --trait: #fff;
  position: relative;
  justify-self: start;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  font-size: 0;
  color: transparent;
  cursor: pointer;
  transition: background-color .2s;
}
p.entete-burger::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--trait) 0 0) 0 0 / 18px 2px no-repeat,
    linear-gradient(var(--trait) 0 0) 0 5px / 12px 2px no-repeat,
    linear-gradient(var(--trait) 0 0) 0 10px / 18px 2px no-repeat;
}
p.entete-burger:hover { --trait: var(--encre); background: var(--accent); }
p.entete-logo { margin: 0; }
.entete .wp-block-social-links.entete-reseaux { justify-self: end; display: flex; gap: 12px; margin: 0; padding: 0; }
.entete .wp-block-social-links.entete-reseaux .wp-social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #fff;
  transition: background-color .2s;
}
.entete .wp-block-social-links.entete-reseaux .wp-social-link a { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; color: inherit; }
.entete .wp-block-social-links.entete-reseaux .wp-social-link svg { width: 15px; height: 15px; fill: currentColor; }
.entete .wp-block-social-links.entete-reseaux .wp-social-link:hover { background: var(--accent); color: var(--encre); transform: none; }

/* ---------- menu plein écran ---------- */
.menu-haut p { margin: 0; }
p.menu-fermer {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0;
  color: transparent;
  cursor: pointer;
}
p.menu-fermer::before,
p.menu-fermer::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 21px;
  width: 18px;
  height: 2.4px;
  border-radius: 2px;
  background: var(--encre);
  transform: rotate(45deg);
}
p.menu-fermer::after { transform: rotate(-45deg); }
.menu .wp-block-navigation.menu-liens { display: block; margin: 40px 0 32px; counter-reset: menu; }
.menu .wp-block-navigation.menu-liens .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.menu .wp-block-navigation.menu-liens .wp-block-navigation-item { display: block; counter-increment: menu; }
.menu .wp-block-navigation.menu-liens .wp-block-navigation-item__label { font: inherit; color: inherit; letter-spacing: inherit; }
.menu .wp-block-navigation.menu-liens .wp-block-navigation-item__content {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  font-family: var(--affiche);
  font-size: clamp(40px, 11vw, 72px);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--creme);
  border-bottom: 1px solid #262626;
  transition: color .2s;
}
.menu .wp-block-navigation.menu-liens .wp-block-navigation-item__content::before {
  content: counter(menu, decimal-leading-zero);
  font-family: var(--texte);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--gris);
}
.menu .wp-block-navigation.menu-liens .wp-block-navigation-item__content:hover,
.menu .wp-block-navigation.menu-liens .est-courant > .wp-block-navigation-item__content { color: var(--accent); }
.wp-block-navigation a[target="_blank"] .wp-block-navigation-item__label::after {
  content: "↗";
  font-family: var(--texte);
  font-size: .36em;
  vertical-align: top;
  margin-left: 6px;
}
.pied .wp-block-navigation a[target="_blank"] .wp-block-navigation-item__label::after { font-size: 1em; vertical-align: baseline; margin-left: 4px; }
@media (min-width: 901px) {
  .menu .wp-block-navigation.menu-liens { margin-top: 64px; }
  .menu .wp-block-navigation.menu-liens .wp-block-navigation__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 72px;
  }
  .menu .wp-block-navigation.menu-liens .wp-block-navigation-item__content { font-size: clamp(56px, 6.6vw, 96px); padding: 16px 0; }
}

/* ---------- pied de page ---------- */
.pied-coord .coord { display: grid; gap: 0; }
.pied-coord .etiquette { font-size: 12px; color: var(--gris); }
.pied-coord .valeur a:hover { color: var(--accent); }
.pied .wp-block-navigation.pied-nav { font-size: 13px; }
.pied .wp-block-navigation.pied-nav .wp-block-navigation__container { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied .wp-block-navigation.pied-nav .wp-block-navigation-item__content { color: var(--gris); }
.pied .wp-block-navigation.pied-nav .wp-block-navigation-item__content:hover { color: var(--creme); }
.pied-bas p { margin: 0; }

/* ---------- couches décoratives → pseudo-éléments ---------- */
.heros::before,
.page-heros::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  pointer-events: none;
}
.page-heros::before { z-index: -1; }
.heros::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 38%, rgba(13,13,13,0) 62%, rgba(13,13,13,.55) 100%),
    linear-gradient(0deg, rgba(13,13,13,.5) 0%, rgba(13,13,13,0) 30%);
}
.heros-intro::before,
.page-heros-intro::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* images : la classe est sur la figure, le cadrage vise l'img */
figure.heros-photo,
figure.projets-fond,
figure.service-photo,
figure.anneau-photo { margin: 0; }
figure.projets-fond img,
figure.heros-photo img,
figure.service-photo img,
figure.anneau-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: inherit;
}
.heros-nom { text-transform: uppercase; }
.heros-nom strong,
.heros-nom em { font-weight: 400; font-style: normal; }

/* icônes des services : masques CSS */
.service-titre::after {
  content: "";
  position: absolute;
  top: -.04em;
  right: -.32em;
  width: .2em;
  height: .2em;
  background: var(--accent);
  -webkit-mask: center / contain no-repeat;
          mask: center / contain no-repeat;
  opacity: 0;
  transition: opacity .35s ease;
}
.service.est-actif .service-titre::after { opacity: 1; }
.s-strategie .service-titre::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm0 16a6 6 0 1 1 6-6 6 6 0 0 1-6 6Zm0-9a3 3 0 1 0 3 3 3 3 0 0 0-3-3Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm0 16a6 6 0 1 1 6-6 6 6 0 0 1-6 6Zm0-9a3 3 0 1 0 3 3 3 3 0 0 0-3-3Z'/%3E%3C/svg%3E"); }
.s-reseaux .service-titre::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3Zm-5 18a1.25 1.25 0 1 1 1.25-1.25A1.25 1.25 0 0 1 12 20Zm6-4H6V5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3Zm-5 18a1.25 1.25 0 1 1 1.25-1.25A1.25 1.25 0 0 1 12 20Zm6-4H6V5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1Z'/%3E%3C/svg%3E"); }
.s-contenu .service-titre::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-3.2l-1.6-2.4A1.4 1.4 0 0 0 14 3h-4a1.4 1.4 0 0 0-1.2.6L7.2 6H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2Zm-8 12a4.5 4.5 0 1 1 4.5-4.5A4.5 4.5 0 0 1 12 18Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-3.2l-1.6-2.4A1.4 1.4 0 0 0 14 3h-4a1.4 1.4 0 0 0-1.2.6L7.2 6H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2Zm-8 12a4.5 4.5 0 1 1 4.5-4.5A4.5 4.5 0 0 1 12 18Z'/%3E%3C/svg%3E"); }
.s-evenementiel .service-titre::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 16H5V9h14Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 16H5V9h14Z'/%3E%3C/svg%3E"); }

/* anneau : étoiles et pointillés en pseudo-éléments, tore en image de fond */
.anneau::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  --etoile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon fill='%23e7c27d' points='50,0 58,42 100,50 58,58 50,100 42,58 0,50 42,42'/%3E%3C/svg%3E");
  background:
    var(--etoile) left 0 top 10% / 22px 22px no-repeat,
    var(--etoile) right 0 top 10% / 22px 22px no-repeat,
    var(--etoile) left 0 bottom 8% / 22px 22px no-repeat,
    var(--etoile) right 0 bottom 8% / 22px 22px no-repeat;
}
.anneau::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 11px;
  top: 26%;
  height: 46%;
  border-left: 1px dashed rgba(231,194,125,.5);
  border-right: 1px dashed rgba(231,194,125,.5);
  pointer-events: none;
}
.anneau-scene::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -10%;
  transform: rotate(-28deg);
  filter: drop-shadow(0 34px 44px rgba(0,0,0,.6));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -40 480 480'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='70' y1='10' x2='330' y2='390'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.45' stop-color='%23ececea'/%3E%3Cstop offset='.8' stop-color='%23b9b9b6'/%3E%3Cstop offset='1' stop-color='%238a8a87'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='7'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='200' cy='200' rx='148' ry='176' fill='none' stroke='url(%23g)' stroke-width='72'/%3E%3Cellipse cx='200' cy='200' rx='126' ry='154' fill='none' stroke='%23000' stroke-opacity='.28' stroke-width='12' filter='url(%23f)'/%3E%3Cellipse cx='200' cy='200' rx='156' ry='184' fill='none' stroke='%23fff' stroke-opacity='.75' stroke-width='16' filter='url(%23f)'/%3E%3Cellipse cx='200' cy='200' rx='176' ry='204' fill='none' stroke='%23000' stroke-opacity='.22' stroke-width='10' filter='url(%23f)'/%3E%3C/svg%3E") center / contain no-repeat;
}
figure.anneau-photo { position: absolute; }

/* mosaïque */
.mosaique figure.tuile img { width: 100%; height: 100%; object-fit: cover; }
.mosaique figure.tuile figcaption { margin: 0; text-align: left; }

/* portfolio : filtres en paragraphes */
.filtres p.filtre { margin: 0; user-select: none; }

/* À propos / projets */
.bio-visuel figure.wp-block-image img,
.cas-visuel figure.wp-block-image img { width: 100%; }
.bio-texte > p { margin-top: 22px; max-width: 560px; font-size: 15px; line-height: 1.7; color: #3a3a38; }
.bio-texte > .bio-titre + p { margin-top: 32px; }
.cas-bloc { display: grid; gap: 6px; }
.cas-etiquette { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8a85; }
.cas-valeur { font-size: 14px; line-height: 1.6; }
.res-valeur { font-family: var(--affiche); font-size: 56px; line-height: .9; letter-spacing: -.015em; }
.cas:nth-of-type(even) .res-valeur { color: var(--accent); }
.res-libelle { margin-top: 8px; max-width: 160px; font-size: 12px; line-height: 1.45; color: #8a8a85; }

/* CV */
.chiffre-valeur em { font-style: normal; font-size: .42em; margin-left: .08em; letter-spacing: 0; }

/* contact : coordonnées + Contact Form 7 */
.contact-coord .coord { display: grid; gap: 6px; }
.contact-coord .etiquette { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8a85; }
.contact-coord .valeur { font-size: 18px; }
.contact-coord .valeur a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact .pastilles { margin-top: 36px; }
.contact .wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; align-content: start; margin: 0; }
.contact .wpcf7 .hidden-fields-container { display: none; }
.contact .wpcf7 .champ { display: grid; gap: 8px; }
.contact .wpcf7 .champ-large,
.contact .wpcf7 .champ-envoi,
.contact .wpcf7 .wpcf7-response-output { grid-column: 1 / -1; }
.contact .wpcf7 label { font-size: 12px; font-weight: 500; color: #55554f; }
.contact .wpcf7 .wpcf7-form-control-wrap { display: block; }
.contact .wpcf7 input:not([type="submit"]),
.contact .wpcf7 select,
.contact .wpcf7 textarea {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #c9c8c1;
  border-radius: 3px;
  background: #fbfaf7;
  color: var(--encre);
  font: 400 15px/1.4 var(--texte);
}
.contact .wpcf7 textarea { min-height: 170px; resize: vertical; }
.contact .wpcf7 input:focus,
.contact .wpcf7 select:focus,
.contact .wpcf7 textarea:focus { outline: none; border-color: var(--encre); }
.contact .wpcf7 .champ-envoi { display: flex; align-items: center; gap: 12px; }
.contact .wpcf7 .wpcf7-submit {
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--encre);
  font: 500 14px/1 var(--texte);
  cursor: pointer;
  transition: transform .2s ease;
}
.contact .wpcf7 .wpcf7-submit:hover { transform: translateY(-2px); }
.contact .wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: #8a2b1c; }
.contact .wpcf7 form .wpcf7-response-output { margin: 0; padding: 16px 18px; border: 0; border-radius: 3px; background: var(--encre); color: var(--accent); font-size: 14px; }

@media (max-width: 900px) {
  .contact .wpcf7 form { grid-template-columns: minmax(0, 1fr); }
}

/* menu fermé : jamais de clic intercepté, même si la transition est interrompue */
.menu:not(.est-ouvert) { pointer-events: none; }
