/*
Theme Name: Atelier Feron
Theme URI: https://atelierferon.com
Author: Atelier Feron
Description: Thème bloc sur mesure pour Atelier Feron, artisan ébéniste à Lille. Contenu 100 % blocs natifs, éditable dans Gutenberg.
Version: 1.0.2
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: atelier-feron
Tags: block-theme, full-site-editing, one-column
*/

/* Registre : Maison Noir (fond crème, accent caramel, pied brun nuit, angles droits, damier
   photo / texte) avec la typographie de Norm Interior : néo-grotesque légère, titres en capitales.
   Les classes des composants sont posées sur les blocs natifs via className : les sélecteurs
   de la maquette fonctionnent tels quels, à l'adaptation du DOM de WordPress près. */

:root {
  --creme: #f4f2e8;
  --ton-a: #f4f2e8;   /* crème */
  --ton-b: #eeebe1;   /* crème chaud */
  --caramel: #a8845c;
  --brun-nuit: #2e261f;
  --encre: #2b2621;
  --taupe: #857a6e;

  --police: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(20px, 5.5vw, 80px);
  --largeur: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 13px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte sur aspect-ratio */
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

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

.screen-reader-text, .vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.enveloppe { width: min(var(--largeur), 100% - 2 * var(--marge)); margin-inline: auto; }

/* ---------- Typographie commune ---------- */

.etiquette {
  font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--caramel);
}
.etiquette-claire { color: rgba(255, 255, 255, .82); }

.titre-section {
  margin-top: 14px;
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -.025em;
  text-transform: uppercase;
  hyphens: none; text-wrap: balance;
}

/* lien souligné avec flèche : la classe est sur le paragraphe qui contient le lien */
.lien-fleche {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 5px; border-bottom: 1px solid currentColor;
  transition: color .25s;
}
.lien-fleche:hover { color: var(--caramel); }
/* la flèche est décorative : pseudo-élément, à 10 px du texte comme dans la maquette */
.lien-fleche a::after { content: "→"; margin-left: 10px; }

/* Boutons : core/button pose la classe sur le conteneur, le style va sur le lien.
   .bouton reste pour le bouton d'envoi du formulaire (Contact Form 7). */
.bouton,
.wp-block-button.bouton-plein .wp-block-button__link,
.wp-block-button.bouton-caramel .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  font-family: inherit; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  line-height: 1.4; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.wp-block-button.bouton-plein .wp-block-button__link::after,
.wp-block-button.bouton-caramel .wp-block-button__link::after { content: "→"; }
.wp-block-button.bouton-plein .wp-block-button__link { background: var(--brun-nuit); color: var(--creme); border-color: var(--brun-nuit); }
.wp-block-button.bouton-plein .wp-block-button__link:hover { background: var(--caramel); border-color: var(--caramel); }
.bouton-caramel, .wp-block-button.bouton-caramel .wp-block-button__link { background: var(--caramel); color: #fff; border-color: var(--caramel); }
.bouton-caramel:hover, .wp-block-button.bouton-caramel .wp-block-button__link:hover { background: var(--brun-nuit); border-color: var(--brun-nuit); }

/* ---------- En-tête fixe : logo à gauche, menu puis réseaux à droite ---------- */

.entete {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 22px var(--marge);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  transition: background .35s, color .35s, padding .35s, border-color .35s;
}
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
.entete.est-defile {
  padding-top: 13px; padding-bottom: 13px;
  background: var(--creme); color: var(--encre);
  border-color: rgba(43, 38, 33, .1);
}
.logo { font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }

/* core/navigation : qualifié par .nav pour passer devant le CSS du bloc, imprimé après */
.wp-block-navigation.nav { margin-left: auto; font-size: 11px; }
.wp-block-navigation.nav .wp-block-navigation__container { gap: clamp(22px, 3vw, 44px); }
.wp-block-navigation.nav .wp-block-navigation-item__content {
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  padding: 6px 0; border-bottom: 1px solid transparent; color: inherit;
  transition: border-color .25s;
}
.wp-block-navigation.nav .wp-block-navigation-item__content:hover,
.wp-block-navigation.nav .current-menu-item > .wp-block-navigation-item__content { border-color: var(--caramel); }

/* core/social-links (style « logos seuls ») : carrés à filet, couleur héritée de l'en-tête */
.wp-block-social-links.is-style-logos-only.entete-reseaux {
  display: flex; flex-wrap: nowrap; gap: 8px;
  margin: 0 0 0 clamp(4px, 1vw, 16px); padding: 0 0 0 clamp(18px, 2.2vw, 32px);
  border-left: 1px solid rgba(255, 255, 255, .22);
  transition: border-color .35s;
}
.est-defile .wp-block-social-links.entete-reseaux { border-color: rgba(43, 38, 33, .15); }
.wp-block-social-links.is-style-logos-only.entete-reseaux .wp-social-link,
.wp-block-social-links.is-style-logos-only.pied-reseaux .wp-social-link {
  margin: 0; padding: 0; color: inherit; background: none; border-radius: 0;
}
.wp-block-social-links.is-style-logos-only.entete-reseaux .wp-social-link a {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  transition: background .25s, border-color .25s, color .25s;
}
.wp-block-social-links.is-style-logos-only.entete-reseaux .wp-social-link svg { width: 14px; height: 14px; fill: currentColor; }
.est-defile .wp-block-social-links.entete-reseaux .wp-social-link a { border-color: rgba(43, 38, 33, .25); }
.wp-block-social-links.is-style-logos-only.entete-reseaux .wp-social-link a:hover { background: var(--caramel); border-color: var(--caramel); color: #fff; }

/* ---------- Haut de page (héros) ---------- */

.hero {
  position: relative;
  height: 62svh; min-height: 440px; max-height: 620px;
  color: #fff;
  overflow: hidden;
}
/* le voile de la maquette devient un pseudo-élément : pas de bloc vide à sélectionner */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(36, 29, 23, .55) 0%, rgba(36, 29, 23, .2) 30%, rgba(36, 29, 23, .35) 60%, rgba(36, 29, 23, .78) 100%);
}
figure.hero-photo { position: absolute; inset: 0; z-index: 0; margin: 0; }
figure.hero-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.hero-enveloppe {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(40px, 6vh, 64px);
}
.hero-etiquette { font-size: clamp(11px, .95vw, 14px); letter-spacing: .22em; }
.hero-titre {
  margin-top: 20px;
  font-weight: 300;
  font-size: clamp(40px, 5.9vw, 86px); line-height: .98; letter-spacing: -.03em;
  text-transform: uppercase;
  hyphens: none;
}
/* Accueil : les trois métiers (titre h1, lignes séparées par <br>), un trait vertical tracé
   en pseudo-élément du haut des capitales à la ligne de base, et « sur-mesure » centré à droite. */
.hero-titre { display: flex; align-items: center; }
.hero-titre > * {
  margin: 0; color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit;
}
.hero-liste { position: relative; padding-right: calc(.92em + 2px); }
.hero-liste::after {
  content: ""; position: absolute; right: .42em; top: .115em; bottom: .125em; width: 2px;
  background: rgba(255, 255, 255, .6);
}
.hero-mesure { white-space: nowrap; }
/* pages internes : un titre simple sur une ligne */
.hero-titre.hero-titre-simple { display: block; }
.hero-page { height: 46svh; min-height: 360px; max-height: 470px; }

/* ---------- Présentation ---------- */

.intro { padding: clamp(56px, 6vw, 88px) 0; }
.intro-grille { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
figure.intro-photo { aspect-ratio: 4 / 3; overflow: hidden; margin: 0; }
figure.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.intro-texte { max-width: 860px; }
.intro-phrase {
  margin: 18px 0 30px;
  font-weight: 300; font-size: clamp(20px, 2vw, 29px); line-height: 1.38; letter-spacing: -.012em;
}

/* ---------- Tons de section : alternance de deux crèmes très proches ---------- */

.ton-a { background: var(--ton-a); }
.ton-b { background: var(--ton-b); }

/* ---------- Damier photo / texte (métiers, le lieu) ---------- */

.metier { display: grid; grid-template-columns: 1fr 1fr; }
/* La photo est en retrait des bords ; au survol, le retrait tombe à zéro et la photo
   s'agrandit jusqu'aux bords. --retrait est déclaré avec @property pour s'animer. */
@property --retrait { syntax: "<length>"; inherits: true; initial-value: 0px; }
figure.metier-photo {
  position: relative; overflow: hidden; margin: 0;
  min-height: clamp(380px, 38vw, 560px);
  --retrait: clamp(18px, 3.4vw, 52px);
  transition: --retrait .9s cubic-bezier(.2, .7, .2, 1);
}
figure.metier-photo:hover { --retrait: 0px; }
figure.metier-photo img {
  position: absolute; top: var(--retrait); left: var(--retrait);
  width: calc(100% - 2 * var(--retrait)); height: calc(100% - 2 * var(--retrait)); max-width: none;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.77, 0, .18, 1);
}
.metier-texte {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(48px, 6vw, 90px) var(--marge);
}
.metier-texte .titre-section { max-width: 460px; }
.metier-corps { max-width: 420px; margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--taupe); }
.metier-legende {
  max-width: 420px; margin-top: 16px; padding-left: 14px;
  font-size: 11.5px; line-height: 1.6; color: var(--taupe);
  border-left: 1px solid var(--caramel);
}
.metier .lien-fleche { margin-top: 30px; }

/* le cabinet est en portrait : colonne photo plus étroite et plus haute */
.metier-mobilier { grid-template-columns: 40% 1fr; }
.metier-mobilier figure.metier-photo { min-height: 0; aspect-ratio: 2 / 3; }

/* texte à gauche : aligné sur l'enveloppe des autres sections */
.metier-agencement .metier-texte, .metier-inverse .metier-texte { padding-left: max(var(--marge), (100vw - var(--largeur)) / 2); }

/* Animation : la photo glisse depuis le bord latéral le plus proche, le texte suit ligne à ligne.
   La classe js-anim n'est posée que par le script : sans lui, tout reste visible. */
.js-anim .metier figure.metier-photo img { transform: translateX(calc(-108% - var(--retrait))) scale(1.08); }
.js-anim .metier-agencement figure.metier-photo img,
.js-anim .metier-inverse figure.metier-photo img { transform: translateX(calc(108% + var(--retrait))) scale(1.08); }
.js-anim .metier.est-visible figure.metier-photo img { transform: none; }
.js-anim .metier .metier-texte > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js-anim .metier.est-visible .metier-texte > * { opacity: 1; transform: none; }
.js-anim .metier.est-visible .metier-texte > :nth-child(1) { transition-delay: .35s; }
.js-anim .metier.est-visible .metier-texte > :nth-child(2) { transition-delay: .45s; }
.js-anim .metier.est-visible .metier-texte > :nth-child(3) { transition-delay: .55s; }
.js-anim .metier.est-visible .metier-texte > :nth-child(4) { transition-delay: .65s; }
.js-anim .metier.est-visible .metier-texte > :nth-child(5) { transition-delay: .75s; }

/* ---------- Réalisations récentes : carrousel ---------- */

.realisations { padding: clamp(80px, 9vw, 130px) 0 clamp(64px, 7vw, 100px); overflow: hidden; }
/* padding et non margin : dernier enfant de son groupe, sa marge basse est remise à zéro
   par les règles de mise en page de WordPress (relevé de la porte 4 : 48 px perdus) */
.realisations-tete {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: clamp(32px, 3.5vw, 48px);
}
.carrousel-commandes { display: flex; align-items: center; gap: 8px; }
.carrousel-commandes .wp-block-buttons { margin-left: 14px; }
/* flèches : paragraphes éditables, le script leur donne role="button" et le clavier */
.carrousel-fleche {
  display: grid; place-items: center; width: 46px; height: 46px;
  font-size: 16px; line-height: 1.65; color: var(--encre);
  border: 1px solid rgba(43, 38, 33, .25); cursor: pointer; user-select: none;
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.carrousel-fleche:hover:not(.est-inactif) { background: var(--brun-nuit); border-color: var(--brun-nuit); color: var(--creme); }
.carrousel-fleche.est-inactif { opacity: .3; cursor: default; }

.carrousel {
  --bord: max(var(--marge), (100vw - var(--largeur)) / 2);
  position: relative; padding-bottom: clamp(24px, 3vw, 36px);
}
/* barre de progression : rail et curseur en pseudo-éléments, positionnés par le script (--x, --w) */
.carrousel::before {
  content: ""; position: absolute; left: var(--bord); right: var(--bord); bottom: 0; height: 1px;
  background: rgba(43, 38, 33, .15);
}
.carrousel::after {
  content: ""; position: absolute; bottom: -1px; height: 3px;
  left: calc(var(--bord) + var(--x, 0px)); width: var(--w, 25%);
  background: var(--caramel);
}
.carrousel-piste {
  display: flex; gap: clamp(10px, 1.2vw, 16px);
  padding: 0 var(--bord); scroll-padding-left: var(--bord);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; cursor: grab;
}
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-piste:focus-visible { outline: 1px solid var(--caramel); outline-offset: 6px; }
.carrousel-piste.est-glisse { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
figure.carrousel-diapo { flex: 0 0 clamp(250px, 27vw, 380px); scroll-snap-align: start; }
figure.carrousel-diapo img { aspect-ratio: 4 / 5; -webkit-user-drag: none; user-select: none; }

/* Vignettes (carrousel et page Réalisations). Légende : <strong> titre, <em> essence, puis
   la description en texte simple — formats natifs, donc éditables sans invalider le bloc. */
figure.galerie-item { position: relative; overflow: hidden; margin: 0; }
figure.galerie-item img { width: 100%; height: auto; object-fit: cover; }
figure.galerie-item figcaption {
  margin: 0; padding: 10px 0 6px; text-align: left;
  font-size: 12px; line-height: 1.5; color: var(--taupe);
}
figure.galerie-item figcaption strong,
figure.galerie-item figcaption em {
  font-size: 10px; font-weight: 500; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe);
}
figure.galerie-item figcaption em::before { content: " · "; }
figure.galerie-item figcaption br:first-of-type { display: none; }

/* souris : effet Pedulla — flou + assombrissement, description centrée sur l'image */
@media (hover: hover) {
  figure.galerie-item img {
    transform: scale(1.02);
    transition: filter .35s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  }
  figure.galerie-item figcaption {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 24px 12%;
    text-align: center; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .88);
    opacity: 0; transition: opacity .35s ease;
  }
  figure.galerie-item figcaption br { display: none; }
  figure.galerie-item figcaption strong { display: block; font-size: clamp(15px, 1.4vw, 19px); font-weight: 400; letter-spacing: .12em; color: #fff; }
  figure.galerie-item figcaption em { display: block; font-size: 10px; letter-spacing: .22em; color: rgba(255, 255, 255, .78); margin-bottom: 4px; }
  figure.galerie-item figcaption em::before { content: none; }
  figure.galerie-item:hover img { filter: blur(3px) brightness(.62); transform: scale(1.08); }
  figure.galerie-item:hover figcaption { opacity: 1; }
}

/* ---------- À propos ---------- */

.valeurs { padding: clamp(64px, 7vw, 100px) 0; }
.valeurs-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(32px, 4vw, 52px); }
.valeur { padding-top: 22px; border-top: 1px solid rgba(43, 38, 33, .15); }
.valeur-num { font-size: 10px; font-weight: 500; letter-spacing: .2em; color: var(--caramel); }
.valeur-titre { margin-top: 14px; font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.05; letter-spacing: -.015em; text-transform: uppercase; }
.valeur-texte { max-width: 340px; margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--taupe); }

.methode { padding: clamp(44px, 5vw, 72px) 0; }
.methode-grille { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 3.5vw, 56px); align-items: start; }
.methode-intro { max-width: 320px; margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--taupe); }
.etapes { border-top: 1px solid rgba(43, 38, 33, .15); }
.etape {
  display: grid; grid-template-columns: 48px 1.1fr .8fr 1.8fr; column-gap: 20px; align-items: baseline;
  padding: 13px 0 14px; border-bottom: 1px solid rgba(43, 38, 33, .15);
}
.etape-num { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--caramel); }
.etape-titre { font-size: clamp(16px, 1.4vw, 20px); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase; }
.etape-lieu { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.etape-texte { font-size: 12.5px; line-height: 1.5; color: var(--taupe); }

/* ---------- Bandeau d'appel vers le contact ---------- */

.appel { padding: clamp(56px, 6vw, 84px) 0; }
.appel-grille { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.appel-texte { max-width: 440px; margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--taupe); }

/* ---------- Réalisations : filtres et grille ---------- */

.projets { padding: clamp(56px, 6vw, 90px) 0 clamp(80px, 9vw, 130px); }
.projets-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 40px); }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
/* filtres : paragraphes éditables, le script ajoute role="button", tabindex et aria-pressed */
.filtre {
  padding: 11px 16px;
  font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4;
  color: var(--encre); border: 1px solid rgba(43, 38, 33, .22); cursor: pointer; user-select: none;
  transition: background .25s, color .25s, border-color .25s;
}
.filtre:hover { border-color: var(--encre); }
.filtre.est-actif { background: var(--brun-nuit); border-color: var(--brun-nuit); color: var(--creme); }
.grille-projets { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.grille-projets figure.galerie-item img { aspect-ratio: 4 / 5; }
figure.galerie-item.est-masque { display: none; }

/* ---------- Contact : titre, formulaire, coordonnées ---------- */

.contact { padding: clamp(56px, 6vw, 90px) 0 clamp(72px, 8vw, 110px); }
.contact-colonne { width: min(880px, 100% - 2 * var(--marge)); margin-inline: auto; }
.contact-intro { max-width: 520px; margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--taupe); }
.coordonnees {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 24px 40px;
  margin-top: clamp(48px, 5vw, 64px); padding-top: 28px;
  border-top: 1px solid rgba(43, 38, 33, .15);
}
.coordonnee-label { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--caramel); }
.coordonnee-valeur { margin-top: 6px; font-size: 15px; font-weight: 300; line-height: 1.5; }
.coordonnee-valeur a:hover { color: var(--caramel); }

/* Formulaire Contact Form 7 (gabarit écrit avec les classes de la maquette) */
.wpcf7 form.formulaire { margin-top: 18px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.champ { display: block; }
.champ .wpcf7-form-control-wrap { display: block; }   /* sinon +5 à 13 px par champ sous la ligne de base */
.champ-plein { grid-column: 1 / -1; }
.champ-message { margin-top: 26px; }
.champ input, .champ textarea {
  display: block; width: 100%; padding: 16px 0 10px;
  font: inherit; font-size: 13px; color: var(--encre);
  background: transparent; border: 0; border-bottom: 1px solid rgba(43, 38, 33, .2); border-radius: 0;
  outline: none; appearance: none; transition: border-color .2s;
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--taupe); }
.champ input:focus, .champ textarea:focus { border-color: var(--caramel); }
.champ textarea { min-height: 120px; resize: vertical; }
.consentement { margin-top: 26px; }
.consentement .wpcf7-list-item { margin: 0; }
.consentement label { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; line-height: 1.6; color: var(--taupe); cursor: pointer; }
.consentement input { margin-top: 3px; accent-color: var(--caramel); }
.wpcf7 form.formulaire .bouton { margin-top: 28px; }
.wpcf7 form.formulaire .bouton:disabled { opacity: .5; cursor: default; }
.wpcf7 .wpcf7-spinner { margin: 28px 0 0 14px; vertical-align: middle; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 11px; color: #9a3e2a; }
.wpcf7 form .wpcf7-response-output { margin: 22px 0 0; padding: 12px 16px; font-size: 12px; border: 1px solid var(--caramel); }

/* ---------- Pied de page : Explorer | Contact | Suivre | carte ---------- */

.pied { background: var(--brun-nuit); color: rgba(244, 242, 232, .78); padding: 32px 0; }
.pied-grille { display: grid; grid-template-columns: auto auto auto 1fr; column-gap: clamp(32px, 4.5vw, 72px); align-items: stretch; }
.pied-col { display: flex; flex-direction: column; }
.pied-titre { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--creme); }
.pied-col ul { display: grid; gap: 3px; margin-top: 10px; padding: 0; font-size: 12px; line-height: 1.6; }
.pied a:hover { color: var(--creme); }
.pied-legal { margin-top: auto; padding-top: 3px; font-size: 10.5px; line-height: 19px; color: rgba(244, 242, 232, .5); }

.wp-block-social-links.is-style-logos-only.pied-reseaux {
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px;
  margin: auto 0 0; padding: 12px 0 0;
}
.wp-block-social-links.is-style-logos-only.pied-reseaux .wp-social-link a {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  color: var(--creme); border: 1px solid rgba(244, 242, 232, .3);
  transition: background .25s, color .25s, border-color .25s;
}
.wp-block-social-links.is-style-logos-only.pied-reseaux .wp-social-link svg { width: 17px; height: 17px; fill: currentColor; }
.wp-block-social-links.is-style-logos-only.pied-reseaux .wp-social-link a:hover { background: var(--caramel); border-color: var(--caramel); color: #fff; }

/* encadré Google Maps (shortcode [carte_atelier]) : l'iframe est sortie du flux,
   sinon ses 150 px par défaut imposeraient la hauteur de la rangée */
.pied-carte { position: relative; min-height: 100px; overflow: hidden; border: 1px solid rgba(244, 242, 232, .25); }
.pied-carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.55) sepia(.12) contrast(.95); }

/* ---------- Page 404 ---------- */

.introuvable { padding: clamp(160px, 18vw, 220px) 0 clamp(80px, 9vw, 120px); }
.introuvable .lien-fleche { margin-top: 28px; }

/* ---------- Cadrages des photos (classes posées sur les blocs image) ---------- */

figure.cadre-x40 img { object-position: 40% 50%; }
figure.cadre-x58 img { object-position: 58% 50%; }
figure.cadre-x62 img { object-position: 62% 50%; }
figure.cadre-y40 img { object-position: 50% 40%; }
figure.cadre-y45 img { object-position: 50% 45%; }
figure.cadre-y46 img { object-position: 50% 46%; }
figure.cadre-y60 img { object-position: 50% 60%; }
figure.cadre-y78 img { object-position: 50% 78%; }

/* ---------- Accessibilité et mouvement ---------- */

:where(a, [role="button"], input, textarea):focus-visible { outline: 1px solid var(--caramel); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  figure.metier-photo, figure.metier-photo img, .js-anim .metier .metier-texte > * { transition: none; }
  .js-anim .metier figure.metier-photo img,
  .js-anim .metier-agencement figure.metier-photo img,
  .js-anim .metier-inverse figure.metier-photo img { transform: none; }
  .js-anim .metier .metier-texte > * { opacity: 1; transform: none; }
}

/* ---------- Tablette ---------- */

@media (max-width: 1000px) {
  .intro-grille { grid-template-columns: minmax(220px, 5fr) 7fr; }
  .metier-mobilier { grid-template-columns: 44% 1fr; }
  .pied-grille { column-gap: 32px; }
  .methode-grille { grid-template-columns: 1fr; }
  .etape { grid-template-columns: 40px 1fr 1.6fr; }
  .etape-lieu { display: none; }
  .grille-projets { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  /* les quatre liens restent visibles, sous le logo ; les réseaux passent à droite du logo */
  .entete { flex-wrap: wrap; row-gap: 14px; padding-top: 18px; padding-bottom: 12px; }
  .entete.est-defile { padding-top: 12px; padding-bottom: 10px; row-gap: 10px; }
  .wp-block-social-links.is-style-logos-only.entete-reseaux { order: 2; gap: 6px; margin-left: auto; padding-left: 0; border-left: 0; }
  .wp-block-social-links.is-style-logos-only.entete-reseaux .wp-social-link a { width: 26px; height: 26px; }
  .wp-block-navigation.nav { order: 3; width: 100%; margin-left: 0; }
  .wp-block-navigation.nav .wp-block-navigation__container { width: 100%; justify-content: space-between; gap: 8px; }
  .wp-block-navigation.nav .wp-block-navigation-item__content { font-size: 10px; letter-spacing: .14em; }

  /* « Agencement | sur-mesure » mesure ~13,2 em : le corps suit la largeur utile */
  .hero-titre { font-size: calc((100vw - 2 * var(--marge)) / 14); }

  .intro-grille { grid-template-columns: 1fr; }

  .metier, .metier-mobilier { grid-template-columns: 1fr; }
  .metier-agencement figure.metier-photo, .metier-inverse figure.metier-photo { order: -1; }
  .metier-agencement .metier-texte, .metier-inverse .metier-texte { padding-left: var(--marge); }
  figure.metier-photo { min-height: 320px; }
  .metier-mobilier figure.metier-photo { aspect-ratio: 4 / 5; }

  .realisations-tete { flex-direction: column; align-items: flex-start; }
  .carrousel-commandes { flex-wrap: wrap; }
  .carrousel-commandes .wp-block-buttons { margin-left: 0; }
  figure.carrousel-diapo { flex-basis: 72vw; }

  .pied-grille { grid-template-columns: auto 1fr; column-gap: 28px; row-gap: 28px; }

  .valeurs-grille { grid-template-columns: 1fr; }
  .etape { grid-template-columns: 34px 1fr; row-gap: 8px; }
  .etape-texte { grid-column: 2; }
  .appel-grille { flex-direction: column; align-items: flex-start; }
  .grille-projets { grid-template-columns: 1fr 1fr; }
  .champs { grid-template-columns: 1fr; }
  .coordonnees { grid-template-columns: 1fr; }
}
