/*
Theme Name: Lucas Gaechter
Theme URI: https://lucasgaechter.fr
Author: Lucas Gaechter
Description: Thème bloc sur mesure du site de Lucas Gaechter, graphiste. Toutes les pages sont éditables dans Gutenberg.
Version: 1.0.3
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lucas-gaechter
Tags: block-theme, full-site-editing, portfolio
*/
/* ===== Jetons ===== */
:root {
  --ink: #0B0B0C;
  --white: #FFFFFF;
  --text: #2A2A2E;
  --muted: #6E6E76;
  --line: #E6E6EA;
  --radius: 40px;
  --gutter: 24px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; hyphens: none; text-wrap: balance; }

/* Titres condensés : la signature de la référence */
.hero__title, .manifesto__title, .service__title, .work__title, .contact__title {
  font-stretch: 68%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
}
.kicker, .hero__kicker, .hero__aside {
  font-stretch: 75%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.page { padding: var(--gutter); }

/* ===== Bouton ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: transform .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn:hover { transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
}

/* Onglet blanc encastré dans le bord haut du bloc noir */
.nav {
  position: relative; z-index: 3;
  top: -1px;
  width: min(72%, 1000px);
  margin: 0 auto;
  height: 72px;
  padding: 0 14px 0 30px;
  background: var(--white);
  border-radius: 0 0 28px 28px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
}
.nav::before, .nav::after {
  content: ""; position: absolute; top: 0;
  width: 28px; height: 28px;
  background: radial-gradient(circle at var(--cx) 100%, transparent 27.5px, var(--white) 28px);
}
.nav::before { left: -28px;  --cx: 0%; }
.nav::after  { right: -28px; --cx: 100%; }

.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.nav__brand strong { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.nav__brand span { padding-left: 10px; border-left: 1.5px solid currentColor; line-height: 1.2; }
.nav__links { display: flex; gap: 32px; font-size: 13px; font-weight: 500; }
.nav__links a:hover { opacity: .6; }

.hero__inner {
  position: relative; z-index: 2;
  width: min(84%, 1220px);
  margin: 120px auto 0;
}
.hero__kicker { color: var(--white); font-size: 17px; margin: 0 0 14px; }
.hero__title {
  font-size: clamp(64px, 13.4vw, 196px);
  background: linear-gradient(180deg, #FFFFFF 15%, #A9A9AE 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.hero__aside {
  color: var(--white);
  font-size: 18px;
  text-align: left;
  margin: 30px 0 0 auto;
  width: max-content;
}
.hero__visual {
  position: absolute; z-index: 1;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 66%;
  object-fit: cover; object-position: 50% 62%;
  filter: contrast(1.12) brightness(.92);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}

/* ===== Manifeste ===== */
.manifesto { padding: 120px 4% 110px; }
.manifesto__title { color: var(--ink); font-size: clamp(52px, 9.2vw, 136px); }
.manifesto__title span { display: block; width: max-content; }
.manifesto__title .l2 { margin-left: auto; }
.manifesto__title .l3 { margin-left: 24%; }
.manifesto__text { max-width: 330px; margin: 70px 4% 0 auto; font-size: 15px; color: var(--text); }

/* ===== Services ===== */
.services { padding: 0 4% 120px; }
.services__head {
  display: flex; justify-content: space-between; align-items: end;
  padding-bottom: 28px; border-bottom: 1.5px solid var(--ink);
}
.kicker { font-size: 17px; color: var(--ink); margin: 0; }
.services__intro { max-width: 330px; margin: 0; }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 330px;
  align-items: center;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service__num { font-size: 13px; font-weight: 600; color: var(--muted); }
.service__title { color: var(--ink); font-size: clamp(44px, 6.6vw, 98px); }
.service__text { margin: 0; }
.service__img {
  position: absolute; z-index: 2;
  right: 360px; top: 50%;
  width: 230px; height: 290px;
  object-fit: cover;
  border-radius: 24px;
  opacity: 0; pointer-events: none;
  transform: translateY(-50%) scale(.92);
  transition: opacity .25s ease, transform .3s ease;
}
.service:hover .service__img { opacity: 1; transform: translateY(-50%) scale(1); }

/* ===== Projets ===== */
.work {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 90px 4% 100px;
}
.work__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 56px; gap: 24px; }
.work__title { font-size: clamp(56px, 9vw, 132px); }
.work__title span { display: inline-block; margin-left: 1.1em; color: #A9A9AE; }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: #1C1C1F; }
.tab {
  border: 0; cursor: pointer;
  height: 40px; padding: 0 20px;
  border-radius: 999px;
  background: transparent; color: var(--white);
  font: 600 13px/1 var(--font);
  white-space: nowrap;
}
.tab.is-active { background: var(--white); color: var(--ink); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  grid-auto-flow: row dense;
  gap: 20px;
}
.card { margin: 0; position: relative; border-radius: 24px; overflow: hidden; }
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card--full { grid-column: 1 / -1; }
.card--full img { object-position: 50% 40%; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.card figcaption {
  position: absolute; left: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  background: var(--white); color: var(--ink);
  border-radius: 999px;
  font-size: 13px;
}
.card figcaption span { color: var(--muted); }
.card.is-hidden { display: none; }

/* ===== Contact ===== */
.contact { padding: 130px 4% 110px; }
.contact__title { color: var(--ink); font-size: clamp(60px, 11vw, 168px); }
.contact__title span { display: block; width: max-content; }
.contact__title .l2 { margin-left: auto; }
.contact__row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 64px; }
.contact__text { max-width: 330px; margin: 0; }
.contact__mail {
  font-stretch: 75%; font-weight: 500;
  font-size: clamp(24px, 3.4vw, 50px);
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  line-height: 1.1;
}
.contact__mail:hover { opacity: .6; }

/* ===== Pied de page ===== */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 4%;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}
.footer__links { display: flex; gap: 28px; font-weight: 500; }
.footer__copy { margin: 0; color: var(--muted); }

/* ===== Menu : page courante ===== */
.nav__links li.is-current a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* ===== Hero des pages internes ===== */
.hero--page { min-height: 640px; }
.hero--page .hero__inner { margin-top: 110px; }
.hero--page .hero__title {
  font-size: clamp(56px, 9.4vw, 138px);
  white-space: normal;
  max-width: 11ch;
}
.hero--page .hero__aside { margin-top: -1.9em; }
.hero--page .hero__visual {
  height: 62%;
  filter: contrast(1.08) brightness(.8);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 62%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 62%);
}

/* ===== À propos ===== */
.bio { padding: 120px 4% 120px; }
.bio__title .l3 { margin-left: 16%; }
.bio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: start;
  margin-top: 80px;
}
.bio__photo { margin: 0; position: relative; z-index: 1; }
.bio__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.bio__text { padding-top: 140px; max-width: 460px; }
.bio__text p { margin: 0 0 18px; }
.bio__lead {
  font-stretch: 75%; font-weight: 500; text-transform: uppercase;
  font-size: 26px; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink);
}
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 100px; border-top: 1.5px solid var(--ink);
}
.facts li { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }
.facts strong {
  font-stretch: 68%; font-weight: 500; letter-spacing: -0.035em; line-height: .9;
  font-size: clamp(56px, 7vw, 104px); color: var(--ink);
}
.facts span { max-width: 220px; }

.steps .service { grid-template-columns: 70px 1fr 330px; }

.tools { padding: 0 4% 40px; }
.tools__list {
  display: flex; flex-wrap: wrap; gap: 0 28px;
  margin-top: 22px;
  font-stretch: 68%; font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(36px, 4.6vw, 68px); color: var(--ink);
}
.tools__list li:not(:last-child)::after { content: "/"; margin-left: 28px; color: var(--line); }

/* ===== Services (page) ===== */
.offer { display: flex; flex-direction: column; gap: 24px; padding-bottom: 120px; }
.offer__item {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 6%;
  align-items: center;
  background: var(--ink); color: #CFCFD4;
  border-radius: var(--radius);
  padding: 24px 6% 24px 24px;
}
.offer__item--flip { grid-template-columns: 1fr 1.15fr; padding: 24px 24px 24px 6%; }
.offer__item--flip .offer__media { order: 2; }
.offer__media { margin: 0; }
.offer__media img { width: 100%; height: 560px; object-fit: cover; border-radius: 24px; }
.offer__body { padding-block: 40px; }
.offer__body .service__num { color: #8A8A92; }
.offer__title {
  font-stretch: 68%; font-weight: 500; text-transform: uppercase; letter-spacing: -0.035em; line-height: .86;
  font-size: clamp(48px, 6.4vw, 96px); color: var(--white);
  margin: 14px 0 26px;
}
.offer__body p { margin: 0; max-width: 440px; }
.offer__list { margin: 30px 0; border-top: 1px solid #2A2A2E; }
.offer__list li { padding: 13px 0; border-bottom: 1px solid #2A2A2E; color: var(--white); }
.offer__meta {
  font-stretch: 75%; font-weight: 500; text-transform: uppercase; color: var(--white);
}

.faq__item {
  display: grid; grid-template-columns: 70px 1fr 330px; gap: 24px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.faq__q {
  grid-column: 2;
  font-stretch: 68%; font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; line-height: .95;
  font-size: clamp(30px, 3.4vw, 50px); color: var(--ink);
}
.faq__a { margin: 0; }

/* ===== Projets (page) ===== */
.work--page { margin-top: var(--gutter); }

/* ===== Contact (page) ===== */
.reach {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6%;
  padding: 110px 4% 120px;
  align-items: start;
}
.reach__mail { display: inline-block; margin-top: 26px; }
.hero--contact .hero__inner { position: relative; }
.hero--contact .hero__aside { position: absolute; right: 0; top: 0; margin: 0; }
.reach__text { max-width: 420px; margin: 36px 0 0; }
.reach__list { margin-top: 48px; border-top: 1.5px solid var(--ink); }
.reach__list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.reach__list strong { color: var(--ink); font-weight: 600; }
.reach__list span { color: var(--muted); }

.form {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px 44px;
  margin-top: -150px; position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 26px;
}
.form__title {
  margin: 0;
  font-stretch: 68%; font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; line-height: .9;
  font-size: 56px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #A9A9AE; border: 0; padding: 0; margin: 0; min-width: 0; }
.field input, .field textarea {
  width: 100%;
  background: transparent; color: var(--white);
  border: 0; border-bottom: 1px solid #3A3A40;
  padding: 8px 0 12px;
  font: 400 16px/1.5 var(--font);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: 1px solid #3A3A40; border-radius: 999px;
  color: var(--white); font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.form__submit {
  align-self: flex-start; border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); font-family: var(--font);
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .nav { width: 88%; }
  .nav__links { display: none; }
  .service { grid-template-columns: 50px 1fr; }
  .service__text { grid-column: 2; }
  .service__img { display: none; }
  .work__head { flex-direction: column; align-items: start; }
  .work__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .bio__grid { grid-template-columns: 1fr; margin-top: 50px; }
  .bio__text { padding-top: 0; }
  .steps .service, .faq__item { grid-template-columns: 50px 1fr; }
  .faq__a { grid-column: 2; }
  .offer__item, .offer__item--flip { grid-template-columns: 1fr; gap: 0; padding: 16px 16px 24px; }
  .offer__item--flip .offer__media { order: 0; }
  .offer__media img { height: 380px; }
  .offer__body { padding: 20px 4% 32px; }
  .reach { grid-template-columns: 1fr; gap: 60px; }
  .form { margin-top: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 12px; --radius: 28px; }
  .nav { width: calc(100% - 56px); height: 62px; padding: 0 8px 0 18px; }
  .nav__brand span { display: none; }
  .btn { height: 42px; padding: 0 16px; }
  .hero { min-height: 640px; }
  .hero__inner { width: 86%; margin-top: 80px; }
  .hero__title { font-size: 19vw; white-space: normal; }
  .hero__aside { font-size: 15px; margin-top: 20px; }
  .hero__visual { height: 52%; }
  .manifesto { padding: 80px 4% 70px; }
  .manifesto__title { font-size: 15vw; }
  .manifesto__title .l3 { margin-left: 8%; }
  .manifesto__text { margin-top: 40px; }
  .services__head { flex-direction: column; align-items: start; gap: 14px; }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service__text { grid-column: 1; }
  .work { padding: 60px 5% 60px; }
  .tabs { max-width: 100%; overflow-x: auto; }
  .tab { padding: 0 14px; }
  .work__grid { grid-template-columns: 1fr; }
  .card--wide, .card--full { grid-column: auto; }
  .card--tall { grid-row: auto; }
  .contact { padding: 80px 4% 70px; }
  .contact__title { font-size: 17vw; }
  .contact__row { flex-direction: column; align-items: start; }
  .contact__mail { font-size: 7vw; }
  .hero--page { min-height: 560px; }
  .hero--page .hero__title { font-size: 15vw; }
  .hero--page .hero__aside { margin-top: 18px; }
  .bio { padding: 80px 4% 70px; }
  .bio__lead { font-size: 22px; }
  .facts { grid-template-columns: 1fr; margin-top: 60px; }
  .facts li { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .steps .service, .faq__item { grid-template-columns: 1fr; gap: 10px; }
  .faq__q, .faq__a { grid-column: 1; }
  .tools__list li:not(:last-child)::after { margin-left: 14px; }
  .tools__list { gap: 0 14px; }
  .offer { padding-bottom: 70px; }
  .offer__media img { height: 260px; }
  .reach { padding: 70px 4% 70px; }
  .reach__mail { font-size: 6.4vw; }
  .form { padding: 32px 22px; }
  .form__title { font-size: 44px; }
  .form__row { grid-template-columns: 1fr; }
  .hero--contact .hero__aside { position: static; margin-top: 18px; }
  .footer { flex-direction: column; align-items: start; }
  .footer__links { flex-wrap: wrap; gap: 16px; }
}

/* ==========================================================================
   ADAPTATIONS WORDPRESS
   Tout ce qui précède est la feuille de la maquette, inchangée.
   Ce qui suit l'adapte au balisage des blocs natifs (figure autour des
   images, paragraphes à la place des <span>, core/navigation, CF7…).
   Le CSS des blocs est imprimé APRÈS cette feuille : les surcharges sont
   donc plus spécifiques, jamais simplement plus tardives.
   ========================================================================== */

body { position: relative; -webkit-font-smoothing: antialiased; }
/* WordPress pose aussi la classe « page » sur <body> : sans ceci, double gouttière */
body.page { padding: 0; }

/* Le premier enfant d'un groupe perd sa marge haute (:root :where(.is-layout-flow) > :first-child,
   spécificité 0,1,0, imprimé après cette feuille) : on la redonne au seul endroit concerné. */
.wp-block-group.hero > .hero__inner { margin-top: 120px; }
.wp-block-group.hero--page > .hero__inner { margin-top: 110px; }
img { height: auto; } /* sinon l'attribut height des blocs image l'emporte */
p { margin: 0; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0px),
   filet de sécurité ici à spécificité nulle — jamais .wp-block-group > * */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
:where(.wp-block-post-content) > :where(*) { margin-block: 0; }

/* ----- En-tête : l'onglet blanc flotte sur le bord haut du hero ----- */
.site-header-part {
  position: absolute; z-index: 20;
  top: var(--gutter); left: var(--gutter); right: var(--gutter);
}
.hero { padding-top: 72px; }
.nav .nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.nav__brand .brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.nav__brand .brand-tag { padding-left: 10px; border-left: 1.5px solid currentColor; line-height: 1.2; }
.wp-block-navigation.nav__links { gap: 32px; font-size: 13px; font-weight: 500; }
.wp-block-navigation.nav__links .wp-block-navigation__container { gap: 32px; }
.wp-block-navigation.nav__links .wp-block-navigation-item__content:hover { opacity: .6; }
.wp-block-navigation.nav__links .is-current > .wp-block-navigation-item__content {
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}

/* Bouton « Me contacter » : la classe de core/button est sur le conteneur */
.wp-block-button.btn-dark { display: inline-block; }
.wp-block-button.btn-dark .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-family: var(--font); font-size: 13px; font-weight: 600; line-height: 1;
  transition: transform .2s ease;
}
.wp-block-button.btn-dark .wp-block-button__link::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v12H4z M4 7l8 6 8-6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%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='M4 6h16v12H4z M4 7l8 6 8-6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.wp-block-button.btn-dark .wp-block-button__link:hover { transform: translateY(-1px); }

/* Menu mobile (panneau plein écran) : sombre, titres condensés */
.wp-block-navigation.nav__links .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--ink) !important; color: var(--white) !important;
  padding: 28px;
}
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation__container { gap: 10px; }
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation__container { align-items: flex-start; }
.wp-block-navigation.nav__links .is-menu-open .wp-block-navigation-item__content {
  font-stretch: 68%; font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: 52px; line-height: 1;
}
.wp-block-navigation.nav__links .wp-block-navigation__responsive-container-open { color: var(--ink); }

/* ----- Hero : l'image est une figure ----- */
/* Le CSS du bloc image (img { height:auto }) est imprimé après cette feuille :
   chaque règle de cadrage est qualifiée par .wp-block-image pour l'emporter. */
.wp-block-image.hero__visual img, .wp-block-image.service__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.wp-block-image.hero__visual img { object-position: 50% 62%; }
.wp-block-image.offer__media img { width: 100%; height: 560px; object-fit: cover; border-radius: 24px; }
.wp-block-image.bio__photo img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--radius); }
.hero__visual { margin: 0; }
.hero--simple { min-height: 520px; }
.hero--contact .hero__inner { position: relative; }
.hero--contact .hero__aside { position: absolute; right: 0; top: 0; margin: 0; }

/* ----- Titres en escalier : des paragraphes à la place des <span> ----- */
.manifesto__title > p, .contact__title > p { display: block; width: max-content; max-width: 100%; }
.manifesto__title > p, .contact__title > p { font: inherit; letter-spacing: inherit; line-height: inherit; text-transform: inherit; }

/* Services : numéros et images en figure */
.service__num { margin: 0; }
.offer__body p.service__num { line-height: 24px; } /* le <span> de la maquette prenait la ligne du parent */
.bio__text > p:last-child { margin-bottom: 18px; }
.wp-block-image.service__img img { border-radius: 24px; }

/* Projets : <em> nu dans le titre, onglets en paragraphes, légendes */
.work__title em { font-style: normal; display: inline-block; margin-left: 1.1em; color: #A9A9AE; }
.tabs .tab {
  display: inline-flex; align-items: center; margin: 0;
  cursor: pointer; user-select: none;
}
.tabs .tab:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.wp-block-image.card { margin: 0; }
.wp-block-image.card img { height: 100%; }
.wp-block-image.card figcaption.wp-element-caption {
  margin: 0; color: var(--muted); text-align: left; line-height: 1.2;
}
.wp-block-image.card figcaption strong { color: var(--ink); font-weight: 600; }
.wp-block-image.card.is-hidden { display: none; }

/* Chiffres et listes : le texte nu remplace les <span> */
.facts li { color: var(--text); }
.facts strong { display: block; }
.reach__list li { color: var(--muted); }

/* Courriel : le soulignement va sur le lien, pas sur le paragraphe */
p.contact__mail { border-bottom: 0; display: flex; }
p.contact__mail.reach__mail { display: inline-flex; }
.contact__mail a { display: block; border-bottom: 2px solid var(--ink); }
.contact__mail a:hover { opacity: .6; }
.contact__row > .contact__mail { flex: none; }

/* Pied de page */
.footer .nav__brand { color: var(--ink); }
.wp-block-navigation.footer__links { gap: 28px; font-weight: 500; font-size: 13px; }
.wp-block-navigation.footer__links .wp-block-navigation__container { gap: 28px; }

/* ----- Formulaire Contact Form 7 ----- */
.form .wpcf7 { margin: 0; }
.form .wpcf7-form { display: flex; flex-direction: column; gap: 26px; }
.form .wpcf7-form-control-wrap { display: block; }
.form .field input[type="text"], .form .field input[type="email"], .form .field textarea {
  width: 100%;
  background: transparent; color: var(--white);
  border: 0; border-bottom: 1px solid #3A3A40; border-radius: 0;
  padding: 8px 0 12px;
  font: 400 16px/1.5 var(--font);
}
.form .field textarea { resize: vertical; display: block; }
.form .field input:focus, .form .field textarea:focus { outline: none; border-bottom-color: var(--white); }
.form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.form .wpcf7-list-item { margin: 0; position: relative; }
.form .wpcf7-list-item input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.form .wpcf7-list-item-label {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: 1px solid #3A3A40; border-radius: 999px;
  color: var(--white); font-size: 13px; font-weight: 600; cursor: pointer;
}
.form .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--white); color: var(--ink); border-color: var(--white); }
.form .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--white); outline-offset: 2px; }
.form .wpcf7-submit {
  align-self: flex-start;
  height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink);
  font: 600 13px/1 var(--font);
}
.form .wpcf7-spinner { display: none; }
.form .wpcf7-not-valid-tip { color: #FF8A8A; font-size: 12px; margin-top: 6px; }
.form .wpcf7 form .wpcf7-response-output {
  margin: 0; padding: 12px 16px; border-radius: 16px; border: 1px solid #3A3A40; color: var(--white);
}

:where(a, [tabindex]):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 1000px) {
  /* le panneau mobile prend le relais dès 1000 px, comme dans la maquette */
  .wp-block-navigation.nav__links .wp-block-navigation__responsive-container-open { display: flex !important; }
  .wp-block-navigation.nav__links .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .nav .wp-block-navigation.nav__links { display: flex; margin-left: auto; margin-right: 14px; }
  .wp-block-image.offer__media img { height: 380px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 62px; }
  .wp-block-group.hero:not(.hero--page) > .hero__inner { margin-top: 80px; }
  .nav__brand .brand-tag { display: none; }
  .wp-block-button.btn-dark .wp-block-button__link { height: 42px; padding: 0 16px; }
  .hero--contact .hero__aside { position: static; margin-top: 18px; }
  .wp-block-navigation.footer__links { flex-wrap: wrap; gap: 16px; }
  .wp-block-image.offer__media img { height: 260px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
