/*
Theme Name: Libs
Theme URI: https://libscraft.com
Author: Libs
Description: Portfolio de Libs — thème bloc sur mesure, registre « affiche » (Barlow Condensed, sable, encre, bande nuit). Contenu 100 % en blocs natifs.
Version: 1.0.18
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: libscraft
Tags: block-theme, full-site-editing, portfolio
*/
/* =========================================================
   Libs · portfolio — registre relevé sur la référence « Header - Rest »
   Une famille condensée (Barlow) · sable chaud · encre · bande nuit
   Angles vifs, filets à losange, fanions, triangles
   ========================================================= */
:root {
  --sable: #EBD5AA;
  --sable-clair: #F3E5C8;
  --encre: #262B25;
  --encre-douce: #5E5B47;
  --nuit: #0E1C1F;
  --or: #CDB78C;
  --sapin: #2F5A4E;
  --rouille: #A4523A;
  --ocre: #E7A845;
  --orange: #D9784A;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texte: "Barlow", "Segoe UI", sans-serif;
  --g: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sable); color: var(--encre); font: 400 16px/1.6 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .16 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; line-height: .95; hyphens: none; text-wrap: balance; }
figure { margin: 0; }
.photo, .affiche-image img, .couronne-centre img, .domaine-img img, .projet-img img, .carte-terrain img { filter: sepia(.2) saturate(.85) contrast(1.03); }

/* ---------- motifs ---------- */
.filet { position: relative; display: block; width: 330px; max-width: 70%; height: 2px; margin: 26px 0; background: currentColor; }
.filet::before, .filet::after { content: ""; position: absolute; top: 50%; border: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); background: var(--sable); }
.filet::before { right: 14px; width: 7px; height: 7px; }
.filet::after { right: -5px; width: 12px; height: 12px; }
.filet--court { width: 200px; margin: 20px 0 0; }

.lien-filet { display: inline-flex; align-items: center; gap: 14px; font: 600 13px/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--or); }
.lien-filet::after { content: ""; width: 90px; height: 1.5px; background: currentColor; transition: width .3s ease; }
.lien-filet::before { content: ""; order: 2; width: 8px; height: 8px; border: 1.5px solid currentColor; transform: rotate(45deg); margin-right: -14px; }
.lien-filet:hover::after { width: 120px; }
.lien-filet--encre { color: var(--encre); }
.lien-filet--droite { display: flex; justify-content: flex-end; margin-top: 40px; }

.tri { position: absolute; z-index: 2; width: 16px; height: 13px; background: var(--orange); clip-path: polygon(0 100%, 30% 0, 100% 100%); pointer-events: none; }

.titre-bloc { font-size: clamp(44px, 5.2vw, 78px); color: var(--encre); letter-spacing: .01em; }
.titre-bloc span { display: block; margin-top: 14px; font-size: 17px; font-weight: 500; letter-spacing: .32em; color: var(--encre-douce); }
.titre-bloc--clair { color: var(--sable-clair); }
.titre-bloc--clair span { color: var(--or); }

.bouton { display: inline-block; padding: 17px 28px; background: var(--sable-clair); color: var(--nuit); font: 600 15px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background .2s ease; }
.bouton:hover { background: var(--ocre); }

/* ---------- en-tête ---------- */
.entete { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 30px; padding: 28px var(--g); }
.marque { font: 700 28px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--encre); }
.marque img { display: block; height: 38px; width: auto; }
.accueil .marque { visibility: hidden; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.nav a { position: relative; font: 600 14px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--encre); padding: 6px 0; }
.nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rouille); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }
.nav-contact { padding: 10px 16px !important; border: 1.5px solid var(--encre); }
.nav-contact:hover { background: var(--encre); color: var(--sable) !important; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; padding: 12px 10px; border: 1.5px solid var(--encre); background: none; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 5px 0; background: var(--encre); }

/* ---------- affiche (hero) ---------- */
.affiche { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: max(760px, 100vh); }
.affiche-image { position: absolute; inset: 0 0 150px 0; overflow: hidden; }
.affiche-image img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }
.affiche::before { content: ""; position: absolute; z-index: 1; inset: 0 0 150px 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--sable) 0%, var(--sable) 27%, rgba(235,213,170,.86) 38%, rgba(235,213,170,0) 62%),
    linear-gradient(180deg, rgba(235,213,170,.9) 0, rgba(235,213,170,0) 130px); }
.affiche-texte { position: relative; z-index: 2; align-self: center; padding: 120px var(--g) 50px; max-width: 780px; }
.affiche-nom { position: relative; display: inline-block; font-size: clamp(120px, 15vw, 224px); line-height: .8; letter-spacing: .015em; color: var(--encre); }
.pousse { position: absolute; left: .015em; top: -.3em; width: .2em; height: .3em; background: var(--encre);
  -webkit-mask: url(assets/img/deco/pousse.svg) bottom center / contain no-repeat; mask: url(assets/img/deco/pousse.svg) bottom center / contain no-repeat; }
.affiche-devise { margin-top: 26px; font: 500 clamp(16px, 1.45vw, 21px)/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.affiche-intro { font: 400 19px/1.8 var(--cond); letter-spacing: .06em; color: var(--encre); }
.fanion { position: relative; display: grid; justify-items: center; width: 64px; height: 156px; margin-top: 38px; padding-top: 16px; background: var(--encre);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%); }
.fanion::before { content: ""; position: absolute; top: 6px; left: 6px; right: 6px; height: 1.5px; background: var(--sable); opacity: .7; }
.fanion-ico { width: 40px; height: 42px; margin-top: 22px; background: url(assets/img/logo/libscraft-icone-sable.png) center / contain no-repeat; }
.tri--1 { left: 41%; top: 22%; }
.tri--2 { left: 33%; top: 56%; transform: rotate(18deg); }
.tri--3 { left: 36%; top: 61%; width: 11px; height: 9px; }

.bandeau { position: relative; z-index: 2; grid-row: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px;
  min-height: 150px; padding: 28px var(--g); background: var(--nuit); color: var(--or); border-top: 5px solid var(--or); }
.bandeau::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--or); opacity: .55; }
.bandeau-titre, .pied-marque { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bandeau-grand { font: 300 38px/1 var(--cond); letter-spacing: .5em; text-transform: uppercase; color: var(--or); }
.bandeau-petit { font: 400 14px/1 var(--cond); letter-spacing: .16em; color: var(--or); opacity: .85; }
.embleme { width: 210px; height: 96px; background: url(assets/img/logo/libscraft-icone-clair.png) center / contain no-repeat; }
.bandeau-texte { justify-self: end; display: flex; flex-direction: column; gap: 16px; max-width: 290px; font: 400 16px/1.7 var(--cond); letter-spacing: .06em; }
.bandeau-num { position: absolute; right: var(--g); bottom: 14px; font: 400 14px/1 var(--cond); letter-spacing: .14em; opacity: .7; }

/* ---------- cinq domaines ---------- */
.domaines { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1440px; margin: 0 auto; padding: 110px var(--g) 90px; }
.domaines-tete { grid-column: 1; }
.domaines-bonjour { grid-column: 2; justify-self: end; max-width: 320px; display: flex; flex-direction: column; gap: 14px; font: 400 17px/1.65 var(--cond); letter-spacing: .04em; }
.bonjour-titre { font: 600 22px/1.2 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.couronne { grid-column: 1 / -1; position: relative; width: 100%; max-width: 1180px; margin: -30px auto 0; aspect-ratio: 1180 / 880; }
.couronne-centre { position: absolute; left: 33%; top: 33%; width: 34%; height: 56%;
  clip-path: polygon(14% 4%, 50% 0, 86% 5%, 100% 32%, 97% 70%, 84% 95%, 50% 100%, 15% 96%, 1% 68%, 0 30%); }
.couronne-centre img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.couronne-centre figcaption { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font: 500 15px/1.5 var(--cond); letter-spacing: .24em; text-transform: uppercase; color: var(--sable-clair); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.domaine { position: absolute; z-index: 2; width: 22%; display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; }
.domaine-img { display: block; width: 100%; aspect-ratio: 1.12; overflow: hidden; }
.domaine-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.domaine:hover .domaine-img img { transform: scale(1.06); }
.domaine-label { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 240px; font: 400 15px/1.45 var(--cond); letter-spacing: .04em; color: var(--encre-douce); }
.domaine-label b { font-weight: 600; font-size: 19px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre); margin-bottom: 4px; }
.domaine-label::after { content: ""; width: 12px; height: 9px; margin-top: 10px; background: var(--encre); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.domaine--3, .domaine--4 { flex-direction: column-reverse; }
.domaine--3 .domaine-label::after, .domaine--4 .domaine-label::after { order: -1; margin: 0 0 10px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.domaine--1 { left: 39%; top: 0; }
.domaine--2 { left: 72%; top: 21%; }
.domaine--3 { left: 63%; top: 63%; }
.domaine--4 { left: 15%; top: 63%; }
.domaine--5 { left: 6%; top: 21%; }
.domaine--1 .domaine-img { clip-path: polygon(8% 12%, 48% 0, 92% 10%, 100% 55%, 88% 96%, 46% 100%, 6% 90%, 0 48%); }
.domaine--2 .domaine-img { clip-path: polygon(12% 4%, 70% 0, 100% 30%, 96% 78%, 64% 100%, 14% 94%, 0 56%, 2% 20%); }
.domaine--3 .domaine-img { clip-path: polygon(4% 14%, 40% 0, 90% 6%, 100% 46%, 92% 88%, 50% 100%, 10% 92%, 0 52%); }
.domaine--4 .domaine-img { clip-path: polygon(10% 6%, 58% 0, 96% 14%, 100% 62%, 80% 100%, 30% 96%, 0 74%, 3% 30%); }
.domaine--5 .domaine-img { clip-path: polygon(0 26%, 34% 2%, 86% 0, 100% 40%, 94% 84%, 54% 100%, 10% 94%, 2% 60%); }
.domaines-pied { grid-column: 1 / -1; text-align: center; margin-top: 30px; font: 500 16px/1.7 var(--cond); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- projets ---------- */
.projets { max-width: 1440px; margin: 0 auto; padding: 100px var(--g); }
.projets-tete { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; padding-bottom: 26px; margin-bottom: 44px; border-bottom: 2px solid var(--encre); }
.filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.filtre { border: 0; background: none; cursor: pointer; padding: 9px 14px; font: 600 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); }
.filtre:hover { color: var(--encre); }
.filtre.est-actif { background: var(--encre); color: var(--sable); }
.projets-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.projet.est-masque { display: none; }
.projet a { display: block; text-decoration: none; }
.projet-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--nuit); }
.projet-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.projet a:hover .projet-img img { transform: scale(1.05); }
.projet-num { display: block; margin-top: 16px; font: 600 13px/1 var(--cond); letter-spacing: .24em; color: var(--rouille); }
.projet-titre { display: block; margin-top: 8px; font: 700 27px/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.projet-cat { display: block; margin-top: 6px; font: 400 15px/1.4 var(--cond); letter-spacing: .04em; color: var(--encre-douce); }

/* ---------- méthode ---------- */
.methode { position: relative; padding: 100px var(--g) 110px; background: var(--nuit); border-top: 5px solid var(--or); }
.methode::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--or); opacity: .55; }
.etapes { position: relative; list-style: none; margin: 64px auto 0; padding: 0; max-width: 1312px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.etapes::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: var(--or); opacity: .7; }
.etape { position: relative; padding-top: 0; }
.etape-fanion { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 84px; height: 168px; padding-top: 18px; background: var(--sable-clair);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%); }
.etape-num { font: 700 30px/1 var(--cond); color: var(--nuit); }
.etape-ico { width: 40px; height: 40px; background: var(--nuit); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.etape-ico--imaginer { -webkit-mask-image: url(assets/img/deco/m-imaginer.svg); mask-image: url(assets/img/deco/m-imaginer.svg); }
.etape-ico--fabriquer { -webkit-mask-image: url(assets/img/deco/m-fabriquer.svg); mask-image: url(assets/img/deco/m-fabriquer.svg); }
.etape-ico--fairevivre { -webkit-mask-image: url(assets/img/deco/m-fairevivre.svg); mask-image: url(assets/img/deco/m-fairevivre.svg); }
.etape-ico--transmettre { -webkit-mask-image: url(assets/img/deco/m-transmettre.svg); mask-image: url(assets/img/deco/m-transmettre.svg); }
.etape:nth-child(2) .etape-fanion { background: var(--ocre); }
.etape:nth-child(3) .etape-fanion { background: var(--orange); }
.etape:nth-child(4) .etape-fanion { background: var(--sapin); }
.etape:nth-child(4) .etape-num { color: var(--sable-clair); }
.etape:nth-child(4) .etape-ico { background: var(--sable-clair); }
.etape h3 { margin: 26px 0 10px; font-size: 30px; font-weight: 600; letter-spacing: .06em; color: var(--sable-clair); }
.etape p { max-width: 260px; font: 400 17px/1.6 var(--cond); letter-spacing: .04em; color: rgba(243,229,200,.78); }

/* ---------- confiance ---------- */
.confiance { background: var(--sable-clair); padding: 100px var(--g); }
.confiance > * { max-width: 1312px; margin-left: auto; margin-right: auto; }
.confiance-grille { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border-top: 2px solid var(--encre); border-bottom: 1px solid var(--encre); }
.confiance-col { padding: 30px 34px 34px; }
.confiance-col + .confiance-col { border-left: 1px solid rgba(38,43,37,.35); }
.confiance-col:first-child { padding-left: 0; }
.confiance-label { font: 600 13px/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--rouille); margin-bottom: 16px; }
.confiance-noms { font: 500 26px/1.35 var(--cond); letter-spacing: .02em; }

/* ---------- terrain ---------- */
.terrain { max-width: 1440px; margin: 0 auto; padding: 100px var(--g); display: grid; grid-template-columns: 280px repeat(3, 1fr); gap: 34px; }
.terrain-tete { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding-right: 20px; border-right: 1px solid rgba(38,43,37,.35); }
.terrain-tete .titre-bloc { font-size: clamp(44px, 4.2vw, 64px); }
.terrain-tete .lien-filet { white-space: nowrap; }
.terrain-tete .lien-filet::after { width: 50px; }
.oiseau { position: absolute; z-index: 3; left: 24%; bottom: 154px; width: 30px; height: 20px; background: var(--nuit); transform: scaleX(-1);
  -webkit-mask: url(assets/img/deco/oiseau.svg) center / contain no-repeat; mask: url(assets/img/deco/oiseau.svg) center / contain no-repeat; }
.carte-terrain { display: flex; flex-direction: column; gap: 12px; }
.carte-terrain figure { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; }
.carte-terrain img { width: 100%; height: 100%; object-fit: cover; }
.carte-terrain h3 { font-size: 26px; font-weight: 600; letter-spacing: .03em; }
.carte-terrain p { flex: 1; font: 400 17px/1.55 var(--cond); letter-spacing: .03em; color: var(--encre-douce); }

/* ---------- appel ---------- */
.appel { position: relative; display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 50px; align-items: end; padding: 110px var(--g); background: var(--sapin); color: var(--sable-clair); }
.appel-titre { font-size: clamp(60px, 7.4vw, 116px); line-height: .86; color: var(--sable-clair); }
.appel-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; font: 400 20px/1.55 var(--cond); letter-spacing: .04em; }
.appel-reseaux { display: flex; flex-direction: column; gap: 10px; font: 500 18px/1.3 var(--cond); letter-spacing: .06em; }
.appel-reseaux .confiance-label { color: var(--ocre); }
.appel-reseaux a { text-decoration: none; border-bottom: 1px solid rgba(243,229,200,.35); padding-bottom: 8px; }
.appel-reseaux a:hover { color: var(--ocre); }
.tri--4 { right: 12%; top: 22%; }

/* ---------- pied ---------- */
.pied { position: relative; background: var(--nuit); color: var(--or); border-top: 5px solid var(--or); }
.pied::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--or); opacity: .55; }
.pied-haut { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding: 54px var(--g) 40px; }
.pied-logo { display: block; justify-self: start; }
.pied-logo img { display: block; width: 320px; max-width: 100%; height: auto; }
.pied-texte { justify-self: end; display: flex; flex-direction: column; gap: 16px; max-width: 300px; font: 400 16px/1.7 var(--cond); letter-spacing: .06em; }
.pied-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 0 var(--g); padding: 22px 0; border-top: 1px solid rgba(205,183,140,.25); border-bottom: 1px solid rgba(205,183,140,.25); }
.pied-nav a { font: 500 13px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.pied-nav a:hover { color: var(--sable-clair); }
.pied-bas { display: flex; justify-content: space-between; padding: 20px var(--g) 24px; font: 400 14px/1 var(--cond); letter-spacing: .12em; opacity: .7; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .entete.nav-ouverte { background: var(--sable); }
  .entete.nav-ouverte .nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; padding: 10px var(--g) 30px; background: var(--sable); gap: 4px; border-bottom: 2px solid var(--encre); }
  .entete.nav-ouverte .nav a { padding: 12px 0; font-size: 16px; }
  .projets-grille { grid-template-columns: repeat(3, 1fr); }
  .terrain { grid-template-columns: 1fr 1fr; }
  .terrain-tete { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; border-right: 0; padding-right: 0; }
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 60px; }
  .etapes::before { display: none; }
  .appel { grid-template-columns: 1fr 1fr; }
  .appel-titre { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .couronne { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; margin-top: 30px; }
  .couronne-centre { position: relative; inset: auto; grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .domaine, .domaine--3, .domaine--4 { position: relative; inset: auto; width: 100%; flex-direction: column; }
  .domaine--3 .domaine-label::after, .domaine--4 .domaine-label::after { order: 0; margin: 10px 0 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .domaine--5 { grid-column: 1 / -1; width: 60%; justify-self: center; }
  .confiance-grille { grid-template-columns: 1fr; }
  .confiance-col, .confiance-col:first-child { padding: 26px 0; }
  .confiance-col + .confiance-col { border-left: 0; border-top: 1px solid rgba(38,43,37,.35); }
}
@media (max-width: 720px) {
  .affiche { min-height: 0; grid-template-rows: auto auto auto; }
  .affiche::before { display: none; }
  .affiche-texte { grid-row: 1; padding: 110px var(--g) 44px; }
  .affiche-image { position: relative; inset: auto; grid-row: 2; height: 340px; }
  .bandeau { grid-row: 3; }
  .fanion { position: absolute; right: var(--g); top: 120px; margin: 0; }
  .affiche-nom { font-size: 34vw; }
  .tri--1, .tri--2, .tri--3, .oiseau { display: none; }
  .bandeau, .pied-haut { grid-template-columns: 1fr; justify-items: start; gap: 22px; }
  .bandeau .embleme, .pied-haut .embleme { display: none; }
  .bandeau-texte, .pied-texte { justify-self: start; }
  .bandeau-grand { font-size: 30px; letter-spacing: .4em; }
  .domaines { grid-template-columns: 1fr; padding-top: 80px; }
  .domaines-bonjour { grid-column: 1; justify-self: start; }
  .couronne { gap: 30px 14px; }
  .domaine-label { font-size: 13.5px; }
  .domaine-label b { font-size: 16px; letter-spacing: .06em; }
  .projets-grille { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .projet-titre { font-size: 22px; }
  .terrain { grid-template-columns: 1fr; }
  .terrain-tete { flex-direction: column; align-items: flex-start; }
  .etapes { grid-template-columns: 1fr; }
  .appel { grid-template-columns: 1fr; }
  .pied-bas { flex-direction: column; gap: 10px; }
}

/* =========================================================
   Pages internes — même registre REST
   ========================================================= */
.page-interne .entete { position: relative; background: var(--sable); border-bottom: 2px solid var(--encre); padding: 20px var(--g); }
.page-interne .entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--encre); opacity: .5; }
.page-interne main { padding-top: 6px; }

.ariane { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; font: 500 13px/1.4 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--encre-douce); }
.ariane a { text-decoration: none; }
.ariane a:hover { color: var(--rouille); }
.ariane [aria-current] { color: var(--encre); }
.ariane-sep { opacity: .5; }
.etiquette { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 13px/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--rouille); }
.carre { flex: none; width: 11px; height: 11px; border: 1.5px solid currentColor; background: currentColor; box-shadow: inset 0 0 0 2px var(--sable); }

.bloc-ocre { position: absolute; z-index: 0; background: var(--ocre); }
.croix { position: absolute; z-index: 2; width: 24px; height: 24px; pointer-events: none;
  background: linear-gradient(var(--encre), var(--encre)) center / 100% 2px no-repeat, linear-gradient(var(--encre), var(--encre)) center / 2px 100% no-repeat; }

/* ---------- tête de rubrique ---------- */
.rub-tete { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 60px var(--g) 90px; }
.rub-tete--simple { grid-template-columns: 1fr; padding-bottom: 50px; }
.rub-titre { font-size: clamp(64px, 8.4vw, 132px); line-height: .84; letter-spacing: .01em; }
.rub-tete .affiche-devise { max-width: 560px; line-height: 1.35; }
.rub-intro { max-width: 600px; margin-top: 14px; font: 400 19px/1.7 var(--cond); letter-spacing: .03em; }
.rub-tete-image { position: relative; padding: 0 30px 30px 0; }
.rub-tete-image .bloc-ocre { right: 0; bottom: 0; width: 72%; height: 86%; }
.rub-tete-image figure { position: relative; z-index: 1; aspect-ratio: 5 / 4; overflow: hidden; }
.rub-tete-image img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) saturate(.85) contrast(1.03); }
.rub-tete-image .croix--1 { left: -12px; top: -12px; }
.rub-tete-image .croix--2 { right: 4px; bottom: -14px; }

/* ---------- blocs ---------- */
.rub-bloc, .rub-selection, .rub-autres, .fiche-galerie { max-width: 1440px; margin: 0 auto; padding: 70px var(--g); }
.titre-bloc--moyen { font-size: clamp(38px, 4.2vw, 60px); margin-bottom: 34px; }
.liste-num { list-style: none; margin: 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px 44px; border-top: 2px solid var(--encre); }
.num-item-n { display: block; margin-bottom: 10px; font: 600 13px/1 var(--cond); letter-spacing: .22em; color: var(--rouille); }
.num-item h3 { margin-bottom: 8px; font-size: 25px; font-weight: 600; letter-spacing: .03em; line-height: 1.05; }
.num-item p { font: 400 17px/1.6 var(--cond); letter-spacing: .03em; color: var(--encre-douce); }
.liste-num--cartes { border-top: 0; padding-top: 0; }
.liste-num--cartes .num-item { padding: 24px 26px 28px; background: var(--sable-clair); border-top: 4px solid var(--encre); }
.rub-paras { max-width: 780px; margin-bottom: 34px; }
.rub-paras p, p.rub-paras { font: 400 19px/1.7 var(--cond); letter-spacing: .03em; margin-bottom: 14px; }
.rub-outro { max-width: 780px; margin-top: 34px; padding-left: 18px; border-left: 3px solid var(--ocre); }
.rub-outro p, p.rub-outro { font: 500 18px/1.6 var(--cond); letter-spacing: .04em; }
.rub-outro p + p { margin-top: 12px; }

/* ---------- sélection ---------- */
.selection { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; border-top: 1px solid rgba(38,43,37,.3); }
.selection:nth-of-type(even) .selection-lien { order: 2; }
.selection-lien { display: block; }
.selection-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--nuit); }
.selection-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) saturate(.85) contrast(1.03); transition: transform .6s ease; }
.selection-lien:hover img { transform: scale(1.04); }
.selection-img--vide, .projet-img--vide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; border-top: 4px solid var(--or); }
.projet-img-mot { font: 700 clamp(34px, 4.4vw, 72px)/.9 var(--cond); text-transform: uppercase; text-align: center; color: var(--or); }
.projet-img--vide .projet-img-mot { font-size: 30px; }
.selection-img--vide .embleme { width: 150px; height: 75px; }
.selection-texte h3 { font-size: clamp(40px, 4vw, 64px); line-height: .9; }
.selection-texte h3 a { text-decoration: none; }
.selection-univers { margin: 8px 0 18px; font: 500 15px/1.3 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce); }
.selection-texte p:not(.selection-univers) { max-width: 520px; margin-bottom: 24px; font: 400 19px/1.65 var(--cond); letter-spacing: .03em; }
.projets--rub, .projets--tous { padding-top: 70px; }

/* ---------- fiche projet (d’après « Page Projet ») ---------- */
.fiche { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 60px; max-width: 1440px; margin: 0 auto; padding: 50px var(--g) 90px; }
.fiche-nom { font-size: clamp(76px, 9.4vw, 156px); line-height: .82; letter-spacing: .01em; }
.fiche-nom--long { font-size: clamp(54px, 6.2vw, 100px); line-height: .88; }
.fiche-univers { margin-top: 16px; font: 500 22px/1.3 var(--cond); letter-spacing: .06em; color: var(--encre-douce); }
.fiche-stats { display: flex; flex-wrap: wrap; margin: 4px 0 24px; border-top: 2px solid var(--encre); }
.fiche-stats div { padding: 14px 24px 12px 0; margin-right: 24px; border-right: 1px solid rgba(38,43,37,.3); }
.fiche-stats div:last-child { border-right: 0; margin-right: 0; }
.fiche-stats dt { font: 600 12px/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--rouille); }
.fiche-stats dd { margin: 6px 0 0; font: 700 24px/1.1 var(--cond); text-transform: uppercase; }
.fiche-tags { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-tags li { padding: 8px 12px; background: var(--encre); color: var(--sable); font: 600 14px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.fiche-bas { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.fiche-bas:not(:has(.fiche-vignette)) { grid-template-columns: 1fr; }
.fiche-vignette { position: relative; aspect-ratio: 1; padding: 7px; border: 2px solid var(--encre); }
.fiche-vignette img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) saturate(.85) contrast(1.03); }
.fiche-vignette::before, .fiche-vignette::after { content: ""; position: absolute; width: 18px; height: 18px; border: 3px solid var(--ocre); }
.fiche-vignette::before { left: -9px; top: -9px; border-right: 0; border-bottom: 0; }
.fiche-vignette::after { right: -9px; bottom: -9px; border-left: 0; border-top: 0; }
.fiche-intro { padding: 22px 26px 24px; background: var(--sable-clair); border-left: 4px solid var(--encre); }
.fiche-intro .etiquette { margin-bottom: 12px; }
.fiche-intro p:not(.etiquette) { font: 400 18px/1.65 var(--cond); letter-spacing: .03em; }
.fiche-intro p + p:not(.etiquette) { margin-top: 10px; }
.fiche-liens { margin-top: 16px; }
.fiche-droite { position: relative; min-height: 740px; }
.fiche-filigrane { position: absolute; z-index: 0; right: -6px; top: 0; max-height: 100%; overflow: hidden; writing-mode: vertical-rl; white-space: nowrap;
  font: 700 150px/1 var(--cond); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(38,43,37,.16); }
.fiche-droite .bloc-ocre { left: auto; right: 7%; top: 9%; width: 58%; height: 91%; }
.fiche-photo { position: absolute; z-index: 1; inset: 0 17% 50px 4%; overflow: hidden; background: var(--nuit); }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) saturate(.85) contrast(1.03); }
.fiche-droite .croix--1 { left: calc(4% - 12px); top: -12px; }
.fiche-droite .croix--2 { right: calc(17% - 12px); bottom: 38px; }
.fiche-credit { position: absolute; left: 4%; bottom: 14px; font: 500 12px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce); }
.fiche-affiche { position: absolute; z-index: 1; inset: 0 17% 50px 4%; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 48px; background: var(--nuit); border-top: 5px solid var(--or); }
.fiche-affiche-mots span { display: block; font: 700 clamp(46px, 5.6vw, 92px)/.92 var(--cond); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px var(--or); }
.fiche-affiche-mots span:first-child { color: var(--or); -webkit-text-stroke: 0; }
.fiche-affiche .embleme { width: 86px; height: 90px; }
.fiche-affiche-note { font: 500 13px/1 var(--cond); letter-spacing: .26em; text-transform: uppercase; color: var(--or); opacity: .75; }

.coulisses { position: relative; padding: 100px var(--g); background: var(--nuit); color: var(--sable-clair); border-top: 5px solid var(--or); overflow: hidden; }
.coulisses::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--or); opacity: .55; }
.coulisses > h2, .coulisses-corps { position: relative; max-width: 1312px; margin-left: auto; margin-right: auto; }
.coulisses-guillemet { position: absolute; right: var(--g); top: 10px; font: 700 300px/1 var(--cond); color: var(--ocre); opacity: .85; }
.coulisses-corps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px 50px; }
.coulisse h3 { margin-bottom: 10px; font-size: 22px; font-weight: 600; letter-spacing: .06em; color: var(--ocre); }
.coulisse p { font: 400 20px/1.65 var(--cond); letter-spacing: .03em; color: rgba(243,229,200,.9); }

.liste-lies { list-style: none; margin: 10px 0 0; padding: 0; border-top: 2px solid var(--encre); }
.liste-lies li { display: grid; grid-template-columns: 320px 1fr auto; gap: 30px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(38,43,37,.3); }
.liste-lies h3 { font-size: 26px; }
.liste-lies h3 a { text-decoration: none; }
.liste-lies p { font: 400 18px/1.5 var(--cond); letter-spacing: .03em; color: var(--encre-douce); }
.fiche-lies .lien-filet::after { width: 50px; }

.fiche-galerie-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.projets--rub .projets-grille { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.fiche-galerie-grille figure { aspect-ratio: 4 / 3; overflow: hidden; }
.fiche-galerie-grille img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) saturate(.85) contrast(1.03); }

.suite { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 40px var(--g) 90px; }
.suite::before { content: ""; grid-column: 1 / -1; height: 2px; background: var(--encre); margin-bottom: 10px; }
.suite a:not(.suite-rub) { font: 700 30px/1 var(--cond); text-transform: uppercase; text-decoration: none; }
.suite a:not(.suite-rub):hover { color: var(--rouille); }
.suite .etiquette { margin-bottom: 8px; }
.suite-droite { text-align: right; }
.suite-droite .etiquette { justify-content: flex-end; }
.suite-rub { padding: 12px 18px; border: 1.5px solid var(--encre); font: 600 14px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.suite-rub:hover { background: var(--encre); color: var(--sable); }

/* ---------- portfolio ---------- */
.domaines-cartes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; max-width: 1440px; margin: 0 auto; padding: 0 var(--g) 30px; }
.domaine-carte { text-decoration: none; }
.domaine-carte figure { aspect-ratio: 3 / 4; overflow: hidden; }
.domaine-carte img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) saturate(.85) contrast(1.03); transition: transform .6s ease; }
.domaine-carte:hover img { transform: scale(1.05); }

/* ---------- à propos ---------- */
.apropos-intro { max-width: 540px; margin-bottom: 34px; font: 500 27px/1.35 var(--cond); letter-spacing: .02em; }
.apropos-domaines { display: flex; flex-direction: column; }
.apropos-domaines a { padding: 8px 0; border-bottom: 1px solid rgba(38,43,37,.25); font: 600 20px/1.2 var(--cond); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.apropos-domaines a:hover { color: var(--rouille); }
.apropos-domaines span { color: var(--rouille); margin-right: 6px; }
.reperes { position: relative; padding: 100px var(--g); background: var(--nuit); color: var(--sable-clair); border-top: 5px solid var(--or); }
.reperes::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--or); opacity: .55; }
.reperes > * { max-width: 1312px; margin-left: auto; margin-right: auto; }
.reperes-liste { list-style: none; padding: 0; margin-top: 10px; border-left: 2px solid var(--or); }
.reperes-liste li { position: relative; display: grid; grid-template-columns: 170px 1fr auto; gap: 30px; align-items: baseline; padding: 20px 0 20px 36px; border-bottom: 1px solid rgba(205,183,140,.2); }
.reperes-liste li::before { content: ""; position: absolute; left: -8px; top: 30px; width: 12px; height: 12px; background: var(--nuit); border: 2px solid var(--or); transform: rotate(45deg); }
.repere-date { font: 700 26px/1 var(--cond); color: var(--ocre); }
.reperes-liste p { font: 400 19px/1.55 var(--cond); letter-spacing: .03em; }
.reperes .lien-filet { color: var(--or); }
.reperes .lien-filet::after { width: 50px; }
.reperes-aussi { margin-top: 44px; }
.reperes-aussi p:not(.confiance-label) { margin-top: 8px; font: 400 18px/1.5 var(--cond); letter-spacing: .03em; color: rgba(243,229,200,.85); }
.reperes-aussi strong { font-weight: 600; color: var(--sable-clair); }
.reperes .confiance-label { color: var(--ocre); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; max-width: 1440px; margin: 0 auto; padding: 50px var(--g) 110px; }
.contact-coord { margin: 34px 0 26px; border-top: 2px solid var(--encre); }
.contact-coord div { display: grid; grid-template-columns: 140px 1fr; padding: 16px 0; border-bottom: 1px solid rgba(38,43,37,.3); }
.contact-coord dt { align-self: center; font: 600 13px/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--rouille); }
.contact-coord dd { margin: 0; font: 600 24px/1.2 var(--cond); }
.contact-coord a { text-decoration: none; }
.contact-coord a:hover { color: var(--rouille); }
.contact-collab { max-width: 460px; font: 400 18px/1.6 var(--cond); letter-spacing: .03em; color: var(--encre-douce); }
.formulaire { align-self: start; display: flex; flex-direction: column; gap: 18px; padding: 44px; background: var(--sable-clair); border-top: 5px solid var(--encre); }
.formulaire-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ > span { font: 600 13px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; }
.champ em { font-style: normal; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--encre-douce); }
.champ input, .champ textarea { width: 100%; padding: 12px 14px; font: 400 18px/1.4 var(--cond); color: var(--encre); background: var(--sable); border: 1.5px solid var(--encre); border-radius: 0; }
.champ textarea { resize: vertical; min-height: 150px; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--ocre); outline-offset: 2px; }
.formulaire-note { font: 400 14px/1.5 var(--cond); letter-spacing: .03em; color: var(--encre-douce); }
.bouton--encre { align-self: flex-start; border: 0; cursor: pointer; background: var(--encre); color: var(--sable); }
.bouton--encre:hover { background: var(--rouille); color: var(--sable-clair); }

@media (max-width: 1180px) {
  .page-interne .entete.nav-ouverte { background: var(--sable); }
  .domaines-cartes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .rub-tete, .fiche, .contact { grid-template-columns: 1fr; gap: 44px; }
  .fiche-droite { min-height: 560px; }
  .selection { grid-template-columns: 1fr; gap: 26px; }
  .selection:nth-of-type(even) .selection-lien { order: 0; }
  .liste-lies li { grid-template-columns: 1fr; gap: 8px; }
  .reperes-liste li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .fiche-bas { grid-template-columns: 1fr; }
  .fiche-vignette { width: 180px; }
  .fiche-filigrane { display: none; }
  .fiche-droite { min-height: 460px; }
  .fiche-photo, .fiche-affiche { inset: 0 8% 40px 0; }
  .fiche-affiche { padding: 30px; }
  .fiche-droite .bloc-ocre { right: 0; width: 80%; }
  .projets--rub .projets-grille, .projets-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche-galerie-grille { grid-template-columns: 1fr; }
  .rub-titre { font-size: 12.5vw; }
  .fiche-nom { font-size: 17vw; }
  .fiche-nom--long { font-size: 12vw; }
  .projet-img--vide .projet-img-mot { font-size: 19px; }
  .projet-titre { overflow-wrap: anywhere; }
  .fiche-droite .croix--2 { right: calc(8% - 12px); }
  .fiche-stats div { padding-right: 16px; margin-right: 16px; }
  .domaines-cartes { grid-template-columns: 1fr 1fr; }
  .suite { grid-template-columns: 1fr; text-align: left; }
  .suite-droite { text-align: left; }
  .suite-droite .etiquette { justify-content: flex-start; }
  .suite-rub { justify-self: start; }
  .formulaire { padding: 26px 20px; }
  .formulaire-ligne { grid-template-columns: 1fr; }
  .coulisses-guillemet { font-size: 180px; }
  .rub-tete-image { padding: 0 16px 16px 0; }
}

/* fiche : visuel officiel horizontal (format capsule), présenté entier */
.fiche-affiche--capsule { padding: 40px 36px; gap: 28px; align-items: flex-start; }
.fiche-capsule { width: 100%; margin: 0; box-shadow: 0 0 0 1px rgba(205,183,140,.4), 0 24px 40px -24px rgba(0,0,0,.8); }
.fiche-capsule img { display: block; width: 100%; height: auto; filter: sepia(.2) saturate(.85) contrast(1.03); }
.fiche-affiche--capsule .embleme { width: 60px; height: 62px; }
@media (max-width: 720px) { .fiche-affiche--capsule { padding: 24px 16px; gap: 20px; } }


/* =========================================================
   Adaptations Gutenberg
   Le CSS de bloc est imprimé APRÈS cette feuille : toute surcharge
   d'un style de bloc est écrite plus spécifique, jamais plus tardive.
   ========================================================= */

/* --- espacement automatique : coupé dans theme.json, filet à spécificité nulle --- */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
img { height: auto; }
figure.wp-block-image { margin: 0; }
.wp-block-image.cadre a { display: block; height: 100%; }
.wp-block-image.cadre img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) saturate(.85) contrast(1.03); }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* --- motifs devenus pseudo-éléments --- */
.affiche-devise::after, .fiche-univers::after, .rub-intro--filet::before, .domaines-tete .titre-groupe::after {
  content: ""; display: block; width: 330px; max-width: 70%; height: 14px; margin: 20px 0;
  background: linear-gradient(var(--encre), var(--encre)) left center / calc(100% - 30px) 2px no-repeat, url(assets/img/deco/losanges.svg) right center / 34px 14px no-repeat;
}
.domaines-tete .titre-groupe::after { width: 200px; margin: 14px 0 -6px; }
.etiquette::before { content: ""; flex: none; width: 11px; height: 11px; border: 1.5px solid currentColor; background: currentColor; box-shadow: inset 0 0 0 2px var(--sable); }

/* titres de bloc : le sous-titre est un paragraphe à part */
.titre-sous { display: block; margin-top: 14px; font: 500 17px/.95 var(--cond); letter-spacing: .32em; text-transform: uppercase; color: var(--encre-douce); }
.titre-bloc--clair + .titre-sous { color: var(--or); }
.titre-groupe .titre-bloc--moyen { margin-bottom: 0; }
.titre-groupe--moyen { margin-bottom: 34px; }

/* liens à filet : désormais un paragraphe qui porte le lien */
.lien-filet a { color: inherit; text-decoration: none; }
:is(.carte-terrain, .fiche-intro, .selection-texte, .liste-lies, .reperes-liste, .domaines-bonjour, .bandeau-texte, .pied-texte, .terrain-tete, .rub-bloc, .projets) p.lien-filet {
  flex: none; max-width: none; margin: 0; font: 600 13px/1 var(--cond); letter-spacing: .2em; text-transform: uppercase;
}
:is(.carte-terrain, .fiche-intro, .selection-texte, .liste-lies, .reperes-liste, .domaines-bonjour, .terrain-tete, .rub-bloc, .projets) p.lien-filet--encre { color: var(--encre); }
.reperes p.lien-filet, .bandeau-texte p.lien-filet, .pied-texte p.lien-filet { color: var(--or); }
.fiche-intro p.lien-filet { margin-top: 16px; padding-block: 8px; }
.projets p.lien-filet--droite { display: flex; justify-content: flex-end; margin-top: 40px; }

/* --- en-tête et navigation --- */
.marque a { color: inherit; text-decoration: none; }
.admin-bar.home .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar.home .entete { top: 46px; } }
.home .marque { visibility: hidden; }
body:not(.home) .entete { position: relative; background: var(--sable); border-bottom: 2px solid var(--encre); padding: 20px var(--g); }
body:not(.home) .entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--encre); opacity: .5; }
.wp-block-navigation .wp-block-navigation__container { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.wp-block-navigation .wp-block-navigation-item { display: flex; align-items: center; line-height: 1; }
.pied-nav .wp-block-navigation-item__content { display: block; }
.wp-block-navigation.nav, .wp-block-navigation.nav .wp-block-navigation__container { gap: clamp(16px, 2vw, 30px); align-items: center; }
.wp-block-navigation.nav { margin-left: auto; }
.wp-block-navigation.nav .wp-block-navigation__container { flex-wrap: nowrap; }
.fiche-lies .rub-paras { margin-bottom: 14px; }
.nav .wp-block-navigation-item__content { position: relative; display: block; padding: 6px 0; font: 600 14px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--encre); }
.nav .wp-block-navigation-item:not(.nav-contact) .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rouille); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav .wp-block-navigation-item:not(.nav-contact):hover .wp-block-navigation-item__content::after,
.nav .current-menu-item .wp-block-navigation-item__content::after,
.nav .est-courant .wp-block-navigation-item__content::after { transform: scaleX(1); }
.wp-block-navigation .wp-block-navigation-item.nav-contact, .wp-block-navigation .wp-block-navigation-item.nav-contact:hover { padding: 0 !important; border: 0 !important; background: none; }
.nav .nav-contact .wp-block-navigation-item__content { padding: 10px 16px; border: 1.5px solid var(--encre); }
.nav .nav-contact .wp-block-navigation-item__content:hover { background: var(--encre); color: var(--sable); }
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open { padding: 10px; border: 1.5px solid var(--encre); color: var(--encre); }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--sable) !important; color: var(--encre) !important; padding: 28px var(--g); }
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__container { gap: 4px; }
/* Menu ouvert : liens alignés à gauche comme la maquette (WP les pousse à droite quand la nav est justifiée à droite). */
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
/* La liste porte aussi la classe .nav : son margin-left:auto de la maquette la repousse à droite. */
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__container.nav { margin-left: 0; }
.wp-block-navigation.nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; }
/* Typo du menu ouvert = maquette mobile : 16 px, 12 px de respiration, Contact encadré. */
.wp-block-navigation.nav .is-menu-open .wp-block-navigation-item__content { font-size: 16px; padding: 12px 0; }
.wp-block-navigation.nav .is-menu-open .nav-contact .wp-block-navigation-item__content { padding: 10px 16px; }

/* --- affiche --- */
.wp-block-image.affiche-image img { object-position: 72% 55%; }
.affiche::after { content: ""; position: absolute; z-index: 2; inset: 0 0 150px 0; pointer-events: none;
  background: url(assets/img/deco/tri.svg) 41% 22% / 16px 13px no-repeat, url(assets/img/deco/tri.svg) 33% 56% / 16px 13px no-repeat, url(assets/img/deco/tri.svg) 36% 61% / 11px 9px no-repeat; }
.affiche-nom::before { content: ""; position: absolute; left: .015em; top: -.3em; width: .2em; height: .3em; background: var(--encre);
  -webkit-mask: url(assets/img/deco/pousse.svg) bottom center / contain no-repeat; mask: url(assets/img/deco/pousse.svg) bottom center / contain no-repeat; }
.affiche-intro::after { content: ""; display: block; width: 64px; height: 156px; margin-top: 38px;
  background: linear-gradient(var(--sable), var(--sable)) center 6px / 52px 1.5px no-repeat, url(assets/img/logo/libscraft-icone-sable.png) center 38px / 40px 42px no-repeat, var(--encre);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%); }
.bandeau { grid-template-columns: 1fr 1fr; min-height: 157px; }
.bandeau::after { content: ""; position: absolute; left: 24%; top: -26px; width: 30px; height: 20px; transform: scaleX(-1); background: url(assets/img/deco/oiseau-nuit.svg) center / contain no-repeat; }
/* logo : l'icône remplace l'emblème au centre de la bande nuit */
.bandeau-texte::before { content: ""; position: absolute; left: 50%; top: 50%; width: 210px; height: 96px; transform: translate(-50%, -50%);
  background: url(assets/img/logo/libscraft-icone-clair.png) center / contain no-repeat; }
.wp-block-site-logo.marque a { display: block; }
.wp-block-site-logo.marque img { display: block; width: auto; height: 38px; }
.wp-block-image.pied-logo { justify-self: start; }
.wp-block-image.pied-logo img { display: block; width: 320px; max-width: 100%; height: auto; }

/* --- cinq domaines --- */
.wp-block-image.couronne-centre img { object-position: 50% 62%; }
.wp-block-image.couronne-centre figcaption { margin: 0; color: var(--sable-clair); }
.domaine-nom { margin-bottom: 4px; font: 600 19px/1.45 var(--cond); letter-spacing: .1em; color: var(--encre); }
.domaine-nom a { text-decoration: none; }
.domaine-txt { font: 400 15px/1.45 var(--cond); letter-spacing: .04em; color: var(--encre-douce); }

/* --- projets --- */
.projet:hover .projet-img img, .selection:hover .selection-img img { transform: scale(1.05); }
.projet .projet-titre a, .projet-img-mot a, .selection-titre a, .domaine-carte a { text-decoration: none; }
.projet-img-mot a { color: inherit; }
.filtre { margin: 0; }

/* --- méthode --- */
.etape .etape-fanion { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 84px; height: 168px; max-width: none; padding-top: 18px; background: var(--sable-clair);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%); font: 700 30px/1 var(--cond); letter-spacing: 0; color: var(--nuit); }
.etape-fanion::after { content: ""; width: 40px; height: 40px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.etape--imaginer .etape-fanion::after { -webkit-mask-image: url(assets/img/deco/m-imaginer.svg); mask-image: url(assets/img/deco/m-imaginer.svg); }
.etape--fabriquer .etape-fanion::after { -webkit-mask-image: url(assets/img/deco/m-fabriquer.svg); mask-image: url(assets/img/deco/m-fabriquer.svg); }
.etape--fairevivre .etape-fanion::after { -webkit-mask-image: url(assets/img/deco/m-fairevivre.svg); mask-image: url(assets/img/deco/m-fairevivre.svg); }
.etape--transmettre .etape-fanion::after { -webkit-mask-image: url(assets/img/deco/m-transmettre.svg); mask-image: url(assets/img/deco/m-transmettre.svg); }
.etape:nth-child(2) .etape-fanion { background: var(--ocre); }
.etape:nth-child(3) .etape-fanion { background: var(--orange); }
.etape:nth-child(4) .etape-fanion { background: var(--sapin); color: var(--sable-clair); }

/* --- terrain, appel --- */
.carte-terrain-titre { font-size: 26px; font-weight: 600; letter-spacing: .03em; }
.carte-terrain figure.wp-block-image { margin-bottom: 8px; }
.appel::after { content: ""; position: absolute; right: 12%; top: 22%; width: 16px; height: 13px; background: url(assets/img/deco/tri.svg) center / contain no-repeat; }
.wp-block-button.bouton { display: inline-block; padding: 0; background: none; border: 0; }
.wp-block-button.bouton .wp-block-button__link { display: inline-block; padding: 17px 28px; border-radius: 0; background: var(--sable-clair); color: var(--nuit); font: 600 15px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.wp-block-button.bouton .wp-block-button__link:hover { background: var(--ocre); }
.appel-reseaux a { display: block; }

/* --- pied --- */
.pied-haut { position: relative; grid-template-columns: 1fr 1fr; }
.wp-block-navigation.pied-nav, .wp-block-navigation.pied-nav .wp-block-navigation__container { gap: 12px 32px; justify-content: center; }
.pied-nav .wp-block-navigation-item__content { font: 500 13px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--or); }
.pied-nav .wp-block-navigation-item__content:hover { color: var(--sable-clair); }
.pied-bas p { margin: 0; }

/* --- pages internes --- */
.ariane { display: block; }
.ariane a { color: inherit; }
.ariane strong { font-weight: 500; color: var(--encre); }
.rub-tete-image::before { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; width: 72%; height: 86%; background: var(--ocre); }
.rub-tete-image::after { content: ""; position: absolute; z-index: 2; left: -12px; top: -12px; width: 24px; height: 24px;
  background: linear-gradient(var(--encre), var(--encre)) center / 100% 2px no-repeat, linear-gradient(var(--encre), var(--encre)) center / 2px 100% no-repeat; }
.num-item .num-item-n { margin-bottom: 10px; font: 600 13px/1 var(--cond); letter-spacing: .22em; color: var(--rouille); }
.rub-selection > .selection:nth-child(odd) > .selection-img { order: 2; }
.selection-texte p.projet-num { margin: 0; font: 600 13px/1 var(--cond); letter-spacing: .24em; color: var(--rouille); }
.selection-texte p.selection-univers { margin: 8px 0 18px; }

.fiche-stat-k { font: 600 12px/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--rouille); }
.fiche-stat-v { margin-top: 6px; font: 700 24px/1.1 var(--cond); text-transform: uppercase; }
ul.wp-block-list.fiche-tags { list-style: none; padding: 0; }
.fiche-droite::before { content: ""; position: absolute; z-index: 0; right: 7%; top: 9%; width: 58%; height: 91%; background: var(--ocre); }
.fiche-droite::after { content: ""; position: absolute; z-index: 2; left: calc(4% - 12px); top: -12px; width: 24px; height: 24px;
  background: linear-gradient(var(--encre), var(--encre)) center / 100% 2px no-repeat, linear-gradient(var(--encre), var(--encre)) center / 2px 100% no-repeat; }
.fiche-filigrane { margin: 0; }
.fiche-affiche { gap: 0; }
.fiche-affiche-plein, .fiche-affiche-creux { font: 700 clamp(46px, 5.6vw, 92px)/.92 var(--cond); text-transform: uppercase; color: var(--or); }
.fiche-affiche-creux { color: transparent; -webkit-text-stroke: 1.5px var(--or); }
.fiche-affiche-note { margin-top: 30px; font: 500 13px/1 var(--cond); letter-spacing: .26em; text-transform: uppercase; color: var(--or); opacity: .75; }
.fiche-affiche-note::before { content: ""; display: block; width: 86px; height: 90px; margin-bottom: 26px; background: url(assets/img/logo/libscraft-icone-clair.png) left center / contain no-repeat; }
.wp-block-image.fiche-capsule img { width: 100%; height: auto; filter: sepia(.2) saturate(.85) contrast(1.03); }
.fiche-affiche--capsule .fiche-affiche-note { margin-top: 28px; }
.fiche-affiche--capsule .fiche-affiche-note::before { width: 60px; height: 62px; margin-bottom: 28px; }
.coulisses::after { content: "“"; position: absolute; right: var(--g); top: 10px; font: 700 300px/1 var(--cond); color: var(--ocre); opacity: .85; }
.lie { display: grid; grid-template-columns: 320px 1fr auto; gap: 30px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(38,43,37,.3); }
.lie-titre a { text-decoration: none; }
.suite .suite-rub a { font: inherit; text-transform: inherit; text-decoration: none; color: inherit; }
.suite-titre a { font: 700 30px/1 var(--cond); text-transform: uppercase; text-decoration: none; }
.suite-titre a:hover { color: var(--rouille); }
.apropos-domaines br { display: none; }
.apropos-domaines a { display: block; padding: 8px 0; border-bottom: 1px solid rgba(38,43,37,.25); font: 600 20px/1.2 var(--cond); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.apropos-domaines a:hover { color: var(--rouille); }
.repere { position: relative; display: grid; grid-template-columns: 170px 1fr auto; gap: 30px; align-items: baseline; padding: 20px 0 20px 36px; border-bottom: 1px solid rgba(205,183,140,.2); }
.repere::before { content: ""; position: absolute; left: -8px; top: 30px; width: 12px; height: 12px; background: var(--nuit); border: 2px solid var(--or); transform: rotate(45deg); }
.repere .repere-date { font: 700 26px/1 var(--cond); letter-spacing: 0; color: var(--ocre); }
.contact-coord { margin: 34px 0 26px; border-top: 2px solid var(--encre); }
.contact-ligne { display: grid; grid-template-columns: 140px 1fr; padding: 16px 0; border-bottom: 1px solid rgba(38,43,37,.3); }
.contact-k { align-self: center; font: 600 13px/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--rouille); }
.contact-v { font: 600 24px/1.2 var(--cond); }
.contact-v a { text-decoration: none; }
.contact-v a:hover { color: var(--rouille); }
.rub-intro--filet::before { margin: 0 0 26px; }

/* --- Contact Form 7, aux classes de la maquette --- */
.formulaire .wpcf7-form { display: flex; flex-direction: column; gap: 18px; }
.formulaire .wpcf7-form-control-wrap { display: block; }
.formulaire .wpcf7-form-control-wrap textarea, .formulaire .wpcf7-form-control-wrap input { display: block; }
.formulaire input.wpcf7-submit { align-self: flex-start; padding: 17px 28px; border: 0; border-radius: 0; cursor: pointer; background: var(--encre); color: var(--sable); font: 600 15px/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; }
.formulaire input.wpcf7-submit:hover { background: var(--rouille); color: var(--sable-clair); }
.formulaire .wpcf7-spinner { display: none; }
.formulaire .wpcf7-not-valid-tip { margin-top: 6px; font: 500 14px/1.3 var(--cond); color: var(--rouille); }
.formulaire .wpcf7-response-output { margin: 0 !important; padding: 12px 14px !important; border: 2px solid var(--encre) !important; font: 500 16px/1.4 var(--cond); }

:where(a, input, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 1180px) {
  .wp-block-navigation.nav { display: flex; }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
@media (max-width: 980px) {
  .lie, .repere { grid-template-columns: 1fr; gap: 8px; }
  .rub-selection > .selection:nth-child(odd) > .selection-img { order: 0; }
}
@media (max-width: 720px) {
  .bandeau, .pied-haut { grid-template-columns: 1fr; }
  .bandeau-texte::before, .affiche::after, .bandeau::after { display: none; }
  .affiche-intro::after { position: absolute; right: var(--g); top: 120px; margin: 0; }
}

/* WordPress annule la marge basse du dernier enfant de chaque groupe :
   :root :where(.is-layout-flow) > :last-child { margin-block-end: 0 } — spécificité (0,2,0).
   On rétablit les marges du design à spécificité égale, plus bas dans la feuille. */
:root .titre-groupe--moyen { margin-bottom: 34px; }
:root .rub-paras { margin-bottom: 34px; }
:root .fiche-lies .rub-paras { margin-bottom: 14px; }
