/* ==========================================================
   MAISON GAÏA — STUDIO CRÉATIF
   Feuille de style du site vitrine
   Concept : le site se lit comme une revue imprimée —
   folio en tête de page, figures légendées, colonnes justifiées,
   « carte » des services, sections en aplats de la palette.
   ========================================================== */

@font-face { font-family: "Editorial Old"; src: url("fonts/EditorialOld-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Editorial Old"; src: url("fonts/EditorialOld-Ultralight.woff") format("woff"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Editorial Old"; src: url("fonts/EditorialOld-UltralightItalic.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("fonts/CabinetGrotesk-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Palette Maison Gaïa */
  --creme: #f7f1e3;
  --papier: #ece2cd;      /* passe-partout des photos */
  --bordeaux: #8c172d;
  --rose: #f6b6b8;
  --olive: #8c8a2e;
  --orange: #dd6c34;

  --encre: var(--bordeaux);
  --fond: var(--creme);
  --filet: 1.5px solid var(--bordeaux);

  /* Typographies */
  --serif: "Editorial Old", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Échelle typographique */
  --t-label: 0.78rem;
  --t-small: 0.95rem;
  --t-body: 1.1875rem;
  --t-lead: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  --t-h3: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  --t-h2: clamp(2.4rem, 1.6rem + 3.2vw, 4.4rem);
  --t-h1: clamp(3.2rem, 1.8rem + 6vw, 7.5rem);
  --t-giant: clamp(4rem, 2rem + 10vw, 12rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.45;
  font-kerning: normal;
  font-feature-settings: "liga", "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--rose); color: var(--bordeaux); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.italic { font-style: italic; }
.display { font-style: italic; letter-spacing: -0.03em; line-height: 1.04; }

/* Tréma de « gaïa » utilisé comme séparateur */
.trema { display: inline-flex; gap: 0.16em; vertical-align: middle; margin-inline: 0.55em; }
.trema::before, .trema::after { content: ""; width: 0.2em; height: 0.2em; border-radius: 50%; background: currentColor; }

/* ---------- Folio (tête de page façon revue) ---------- */
.folio { border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 30%, transparent); }
.folio .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.55rem; }
.folio span { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.folio .dispo { display: inline-flex; align-items: center; gap: 0.5em; }
.folio .dispo::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--olive); }

/* ---------- En-tête ---------- */
.masthead { background: var(--fond); border-bottom: var(--filet); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.masthead .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 0.5rem 0.55rem;
}
.nav { display: flex; gap: clamp(1.2rem, 3vw, 3.2rem); }
.nav--right { justify-content: flex-end; }
.nav a {
  font-family: var(--sans); font-weight: 800; font-size: 0.92rem; letter-spacing: 0;
  text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s ease;
  padding-bottom: 2px;
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1.5px; }
.brand { display: block; color: var(--bordeaux); width: clamp(150px, 13vw, 196px); }
.brand svg { width: 100%; height: auto; display: block; }

/* ---------- Héros / double page de présentation ---------- */
.spread { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6rem); }
.spread__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr);
  grid-template-areas:
    "left photo title"
    "left photo right";
  grid-template-rows: auto 1fr;
  column-gap: clamp(1rem, 2vw, 1.8rem);
  max-width: 1120px;
  margin-inline: auto;
}
.spread__left { grid-area: left; padding-top: 0.6rem; }
.spread__photo { grid-area: photo; position: relative; margin: 0; align-self: start; }
.spread__title { grid-area: title; position: relative; z-index: 2; margin: 4.5rem 0 1.6rem -48%; }
.spread__right { grid-area: right; }
.spread__title h1 { font-size: clamp(3rem, 1.8rem + 3.4vw, 5.2rem); line-height: 1.08; }
.spread__title h1 span { display: block; padding-left: 0.95em; }
.col-text { display: grid; align-content: start; gap: 1.15em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.col-text--drop > p:first-child::first-letter {
  float: left; font-style: italic; font-size: 4.35em; line-height: 0.78; padding: 0.06em 0.08em 0 0; color: var(--bordeaux);
}

.matte { background: var(--papier); padding: clamp(8px, 0.8vw, 12px); }
.matte img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.spread__photo figcaption { margin-top: 0.7rem; display: flex; gap: 0.9rem; align-items: baseline; }

/* Tampon rotatif */
.stamp {
  position: absolute; width: clamp(118px, 11vw, 150px); aspect-ratio: 1;
  right: 0; top: calc(100% - 2.2rem);
  color: var(--bordeaux);
}
.stamp__ring { width: 100%; height: 100%; display: block; animation: spin 38s linear infinite; }
.stamp__logo { position: absolute; width: 58%; height: auto; left: 21%; top: 21%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bandeau défilant ---------- */
.ribbon { background: var(--rose); color: var(--bordeaux); border-block: var(--filet); overflow: hidden; }
.ribbon__track { display: flex; width: max-content; animation: defile 46s linear infinite; padding-block: 1rem 0.85rem; }
.ribbon__track span { font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Titres de section ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem;
  border-bottom: var(--filet); padding-bottom: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head h2 { font-size: var(--t-h2); }
.section-head .label { margin-bottom: 1.3rem; display: block; }
.link-arrow {
  font-family: var(--sans); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap;
}
.link-arrow::after { content: "→"; font-family: var(--sans); transition: transform .3s ease; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Figures / planches ---------- */
.plate { margin: 0; display: grid; gap: 0.75rem; min-width: 0; }
.plate__img {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--papier);
  display: grid; place-items: center; text-align: center;
}
.plate__img > img { width: 100%; height: 100%; object-fit: cover; }
.plate__img--wide { aspect-ratio: 16 / 9; }
.plate__img--square { aspect-ratio: 1; }
.plate__img--land { aspect-ratio: 3 / 2; }
.plate figcaption { display: flex; gap: 0.9rem; align-items: baseline; font-size: var(--t-small); line-height: 1.35; }
.fig { font-family: var(--sans); font-weight: 800; font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* Aplats de couleur (remplacent les visuels en attendant les photos) */
.bg-bordeaux { background: var(--bordeaux); color: var(--rose); }
.bg-rose { background: var(--rose); color: var(--bordeaux); }
.bg-olive { background: var(--olive); color: var(--creme); }
.bg-orange { background: var(--orange); color: var(--creme); }
.bg-papier { background: var(--papier); color: var(--bordeaux); }
.bg-creme { background: var(--creme); color: var(--bordeaux); }
.plate__word { font-style: italic; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.06; padding: 1.5rem; }
.plate__todo {
  position: absolute; left: 0.9rem; bottom: 0.8rem; font-family: var(--sans); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8;
}
.plate__logo { width: 72%; }
.plate__logo svg { width: 100%; height: auto; display: block; }

/* ---------- Cartes projets ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2.4rem); align-items: start; }
.projects--home > :nth-child(2) { margin-top: 5.5rem; }
.projects--home > :nth-child(3) { margin-top: 2.5rem; }
.card { text-decoration: none; display: grid; gap: 0.9rem; min-width: 0; }
.card .plate__img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .plate__img { transform: scale(0.985); }
.card__meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: baseline; border-top: var(--filet); padding-top: 0.7rem; }
.card__title { font-style: italic; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.08; }
.card__tags { font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; grid-column: 2 / 4; }
.card__year { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.card__excerpt { font-size: var(--t-small); max-width: 42ch; }

/* ---------- La carte des services (accueil) ---------- */
.menu { display: grid; }
.menu__item { display: grid; gap: 0.35rem; padding-block: 1.4rem; border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 35%, transparent); text-decoration: none; }
.menu__line { display: flex; align-items: baseline; gap: 1rem; }
.menu__name { font-style: italic; font-size: clamp(1.8rem, 1.3rem + 2vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.08; transition: padding .35s ease; }
.menu__item:hover .menu__name { padding-left: 0.4em; }
.menu__leader { flex: 1; min-width: 2rem; border-bottom: 2px dotted currentColor; transform: translateY(-0.3em); opacity: 0.7; }
.menu__price { font-family: var(--sans); font-weight: 800; font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem); white-space: nowrap; text-transform: uppercase; }
.menu__desc { font-size: var(--t-small); max-width: 60ch; }
.menu-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); }
.menu-intro__aside { display: grid; gap: 1rem; align-content: start; }
.menu-intro__aside p.lead { font-size: var(--t-lead); line-height: 1.25; font-style: italic; }

/* ---------- Appel à contact + pied de page ---------- */
.cta { background: var(--bordeaux); color: var(--creme); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.cta h2 { font-size: var(--t-h1); font-style: italic; letter-spacing: -0.035em; line-height: 1.02; }
.cta h2 em { color: var(--rose); }
.cta__side { display: grid; gap: 1.4rem; justify-items: start; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6em; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  padding: 1rem 1.6rem; border-radius: 999px; background: var(--rose); color: var(--bordeaux);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn::after { content: "→"; }
.btn:hover { background: var(--orange); color: var(--creme); }
.btn--dark { background: var(--bordeaux); color: var(--creme); }
.btn--dark:hover { background: var(--orange); }

.footer { background: var(--bordeaux); color: var(--rose); border-top: 1px solid color-mix(in srgb, var(--rose) 35%, transparent); }
.footer__logo { padding-block: clamp(2rem, 5vw, 4rem) 1rem; }
.footer__logo svg { width: 100%; height: auto; display: block; }
.footer__bar { display: flex; margin-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 1.4rem 2rem; border-top: 1px solid color-mix(in srgb, var(--rose) 35%, transparent); }
.footer__bar nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- En-tête de page intérieure ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; border-bottom: var(--filet); padding-bottom: 1.6rem; }
.page-head h1 { font-size: var(--t-giant); font-style: italic; letter-spacing: -0.045em; line-height: 0.98; }
.page-head .label { display: block; margin-bottom: 1.8rem; }
.page-head__intro { font-size: 1.05rem; line-height: 1.45; max-width: 42ch; justify-self: end; }

/* ---------- Filtres projets ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filters button {
  font-family: var(--sans); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em;
  background: transparent; color: var(--bordeaux); border: 1.5px solid var(--bordeaux); border-radius: 999px;
  padding: 0.55rem 1rem; cursor: pointer; transition: background .2s, color .2s;
}
.filters button sup { font-size: 0.7em; margin-left: 0.2em; }
.filters button:hover { background: var(--rose); }
.filters button[aria-pressed="true"] { background: var(--bordeaux); color: var(--creme); }
.projects--index { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(3rem, 6vw, 5rem); }
.projects--index > .card:nth-child(even) { margin-top: 6rem; }
.projects--index .plate__img { aspect-ratio: 5 / 6; }
.card--invite .plate__img { border: 1.5px dashed var(--bordeaux); background: transparent; }

/* ---------- Page projet (modèle) ---------- */
.crumb { font-family: var(--sans); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; display: flex; gap: 0.6rem; margin-bottom: 1.6rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.p-head h1 { font-size: var(--t-giant); font-style: italic; letter-spacing: -0.045em; line-height: 0.98; }
.p-head__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.p-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; border-block: var(--filet); padding-block: 1.1rem; margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.p-meta dt { font-family: var(--sans); font-weight: 800; font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.3rem; }
.p-meta dd { margin: 0; font-size: var(--t-small); }
.p-body { display: grid; gap: clamp(3rem, 6vw, 5.5rem); padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem); }
.p-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.p-text h2 { font-style: italic; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.08; }
.p-text p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.p-text .lead { font-size: var(--t-lead); line-height: 1.28; text-align: left; font-style: italic; }
.p-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.p-duo--offset > :nth-child(2) { margin-top: 5rem; }
.p-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.p-narrow { width: min(100%, 760px); margin-inline: auto; }
.p-quote { border-top: var(--filet); padding-top: 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 2rem; }
.p-quote blockquote { margin: 0; font-style: italic; font-size: var(--t-h2); letter-spacing: -0.03em; line-height: 1.08; }
.p-next { border-top: var(--filet); padding-block: 2rem 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-decoration: none; }
.p-next strong { font-weight: 400; font-style: italic; font-size: var(--t-h2); letter-spacing: -0.03em; line-height: 1.06; transition: color .25s; }
.p-next:hover strong { color: var(--orange); }

/* Nuancier (projet Maison Gaïa) */
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.swatch { aspect-ratio: 3 / 4; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.swatch b { font-weight: 400; font-style: italic; font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); letter-spacing: -0.02em; line-height: 1; }
.swatch code { font-family: var(--sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.specimen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.specimen__card { padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1rem; align-content: space-between; min-height: 22rem; }
.specimen__aa { font-size: clamp(6rem, 4rem + 6vw, 10rem); line-height: 0.8; letter-spacing: -0.04em; }
.specimen__sans .specimen__aa { font-family: var(--sans); font-weight: 800; letter-spacing: -0.05em; }
.specimen__chars { font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.specimen__sans .specimen__chars { font-family: var(--sans); font-weight: 500; }

/* ---------- Page services ---------- */
.toc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--filet); }
.toc a { display: grid; gap: 0.6rem; align-content: start; text-decoration: none; padding: 1.1rem 1.2rem 1.4rem 0; border-right: 1px solid color-mix(in srgb, var(--bordeaux) 30%, transparent); margin-right: 1.2rem; }
.toc a:last-child { border-right: 0; margin-right: 0; }
.toc .t { font-style: italic; font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1; transition: color .25s; }
.toc a:hover .t { color: var(--orange); }

.offer { border-top: var(--filet); scroll-margin-top: 7rem; }
.offer .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr); grid-template-areas: "head head price" "body inc price"; gap: clamp(1.6rem, 3vw, 3rem) clamp(1.5rem, 3.5vw, 3.5rem); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.offer__head { grid-area: head; }
.offer__head .label { display: inline-block; margin-bottom: 1.2rem; padding: 0.35rem 0.7rem; border: 1.5px solid currentColor; border-radius: 999px; }
.offer__head h2 { font-size: var(--t-h1); font-style: italic; letter-spacing: -0.04em; line-height: 1.02; }
.offer__tagline { font-size: var(--t-lead); line-height: 1.25; margin-top: 1.2rem; max-width: 30ch; }
.offer__body { grid-area: body; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.offer__inc { grid-area: inc; }
.offer__inc h3, .offer__formule h3 { font-family: var(--sans); font-weight: 800; font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.checklist li { padding: 0.55rem 0 0.55rem 1.5rem; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); position: relative; font-size: var(--t-small); line-height: 1.35; }
.checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 0.6rem; height: 1.5px; background: currentColor; }
.offer__price { grid-area: price; align-self: start; justify-self: end; text-align: right; display: grid; gap: 0.3rem; }
.offer__price .from { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.offer__price .num { font-weight: 200; font-size: clamp(3.4rem, 2.2rem + 4vw, 6.4rem); letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: lining-nums; white-space: nowrap; }
.offer__price .per { font-style: italic; font-size: var(--t-lead); }
.offer__price .num--devis { font-style: italic; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; }
.offer__price .link-arrow { margin-top: 0.6rem; justify-self: end; }
.offer__price .per--small { font-style: normal; font-size: 1rem; max-width: 22ch; justify-self: end; }
.offer--rose { background: var(--rose); }
.offer--bordeaux { background: var(--bordeaux); color: var(--creme); border-top-color: var(--bordeaux); }
.offer--bordeaux .offer__head h2 em, .offer--bordeaux .num { color: var(--rose); }
.offer--papeterie .wrap { grid-template-areas: "head head head" "body body body" "formules formules formules"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.offer--papeterie .offer__body { max-width: 62ch; }
.formules { grid-area: formules; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.offer__formule { border: 1.5px solid var(--rose); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.2rem; align-content: start; }
.offer__formule h4 { font-style: italic; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.08; }
.offer__formule .sub { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rose); }
.offer__formule .price { display: flex; align-items: baseline; gap: 0.6rem; border-top: 1px solid color-mix(in srgb, var(--rose) 50%, transparent); padding-top: 1rem; margin-top: auto; }
.offer__formule .price .num { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); font-weight: 200; letter-spacing: -0.04em; line-height: 1; color: var(--rose); }
.offer__formule .price .devis { font-style: italic; font-size: var(--t-h3); color: var(--rose); line-height: 1.1; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.4rem); counter-reset: step; }
.step { border-top: var(--filet); padding-top: 1rem; display: grid; gap: 0.7rem; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 200; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); letter-spacing: -0.04em; line-height: 1; color: var(--bordeaux); }
.step h3 { font-style: italic; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.08; }
.step p { font-size: var(--t-small); }

/* ---------- Page contact ---------- */
.contact { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact h1 { font-size: var(--t-giant); font-style: italic; letter-spacing: -0.045em; line-height: 0.98; }
.contact__intro { font-size: 1.05rem; line-height: 1.45; margin-top: 1.6rem; max-width: 40ch; }
.coords { margin-top: clamp(2rem, 4vw, 3rem); border-top: var(--filet); }
.coords > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 30%, transparent); align-items: baseline; }
.coords dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: baseline; }
.coords .mail { font-style: italic; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); overflow-wrap: anywhere; user-select: all; }
.copy { font-family: var(--sans); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; background: none; border: 1.5px solid var(--bordeaux); color: var(--bordeaux); border-radius: 999px; padding: 0.3rem 0.7rem; cursor: pointer; }
.copy:hover { background: var(--rose); }
.note { margin-top: 1.6rem; display: flex; gap: 0.8rem; align-items: center; font-size: 1.05rem; font-style: italic; }
.note::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--olive); }

.letter { background: var(--papier); padding: clamp(1.4rem, 4vw, 3rem); position: relative; display: grid; gap: 1.6rem; }
.letter__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: var(--filet); padding-bottom: 1rem; }
.letter__head h2 { font-style: italic; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.08; }
.letter__stamp { flex: none; width: clamp(84px, 9vw, 112px); transform: rotate(6deg); margin: -0.4rem -0.4rem 0 0; filter: drop-shadow(0 3px 6px rgba(140, 23, 45, .18)); }
.letter__stamp img { width: 100%; height: auto; display: block; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-family: var(--sans); font-weight: 800; font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.06em; padding: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.15rem; color: var(--bordeaux); background: transparent; border: 0; border-bottom: 1.5px solid var(--bordeaux);
  padding: 0.45rem 0 0.4rem; border-radius: 0; width: 100%; min-width: 0;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--bordeaux) 50%, transparent); font-style: italic; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); box-shadow: 0 1.5px 0 var(--orange); }
.field textarea { resize: vertical; min-height: 9.6rem; line-height: 2rem; padding-top: 0.15rem; border-bottom: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2rem - 1px), color-mix(in srgb, var(--bordeaux) 40%, transparent) calc(2rem - 1px) 2rem); background-attachment: local; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bordeaux) 50%), linear-gradient(135deg, var(--bordeaux) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 1.6rem; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; border: 1.5px solid var(--bordeaux); border-radius: 999px; padding: 0.5rem 0.9rem; cursor: pointer; transition: background .2s, color .2s; }
.chips label:hover { background: var(--rose); }
.chips input:checked + label { background: var(--bordeaux); color: var(--creme); }
.chips input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }
.letter__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.letter__foot small { font-size: 1rem; font-style: italic; max-width: 30ch; }
.error { color: var(--orange); font-family: var(--sans); font-weight: 700; font-size: 0.8rem; min-height: 1em; }
.sent { border: 1.5px solid var(--bordeaux); padding: 1.2rem; display: grid; gap: 0.8rem; background: var(--creme); }
.sent h3 { font-style: italic; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.08; }

/* ---------- Mentions légales ---------- */
.legal { padding-block: 1rem clamp(4rem, 8vw, 7rem); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
.legal section { display: grid; gap: 0.6rem; padding-block: 1.4rem; border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 30%, transparent); max-width: 65ch; }
.legal h2 { font-style: italic; font-size: var(--t-h3); letter-spacing: -0.03em; }
.todo { background: var(--rose); padding: 0 0.25em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .offer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head price" "body inc"; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a:nth-child(2) { border-right: 0; margin-right: 0; }
  .toc a:nth-child(-n+2) { border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 30%, transparent); }
}

@media (max-width: 900px) {
  .folio .hide-m { display: none; }
  .masthead .wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "left right"; row-gap: 0.35rem; padding-block: 0.5rem 0.55rem; }
  .brand { grid-area: brand; justify-self: center; width: 150px; }
  .nav--left { grid-area: left; } .nav--right { grid-area: right; }
  .nav a { font-size: 0.82rem; }

  .spread__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "photo" "left" "right"; grid-template-rows: auto; row-gap: 2rem; }
  .spread__title { margin: 0; }
  .spread__title h1 span { padding-left: 0.7em; }
  .spread__photo { width: min(100%, 460px); justify-self: center; }
  .spread__photo { margin-bottom: 5.5rem; }
  .stamp { width: 112px; }
  .col-text { text-align: left; hyphens: manual; }

  .projects, .projects--index { grid-template-columns: minmax(0, 1fr); }
  .projects--home > :nth-child(n), .projects--index > .card:nth-child(even) { margin-top: 0; }
  .menu-intro, .cta .wrap, .page-head__grid, .contact__grid, .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .p-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-text, .p-quote { grid-template-columns: minmax(0, 1fr); }
  .p-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p-duo--offset > :nth-child(2) { margin-top: 0; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer .wrap, .offer--papeterie .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "price" "body" "inc" "formules"; }
  .offer--papeterie .wrap { grid-template-areas: "head" "body" "formules"; }
  .offer__price { justify-self: start; text-align: left; }
  .page-head__intro, .offer__price .per--small, .offer__price .link-arrow { justify-self: start; }
  .offer__body, .p-text p { text-align: left; }
}

@media (max-width: 560px) {
  .p-duo, .p-trio, .specimen, .formules, .row2, .steps, .toc { grid-template-columns: minmax(0, 1fr); }
  .toc a { border-right: 0; margin-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 30%, transparent); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .menu__line { flex-wrap: wrap; row-gap: 0.4rem; }
  .menu__leader { display: none; }
  .menu__price { width: 100%; }
  .coords > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .p-meta { grid-template-columns: minmax(0, 1fr); }
}

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

/* ---------- Book (planches pleine largeur) ---------- */
.book { display: grid; gap: clamp(6px, 0.8vw, 12px); }
.book__plate { margin: 0; display: grid; gap: 0.6rem; }
.book__img { position: relative; aspect-ratio: 16 / 9; background: var(--papier); overflow: hidden; }
.book__img > img, .book__img > video:not(.book__story):not(.book__vertical) { width: 100%; height: 100%; object-fit: cover; display: block; }
.book__story { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); height: 82%; width: auto; aspect-ratio: 9 / 16; border-radius: clamp(8px, 1.4vw, 22px); box-shadow: 0 1.2vw 3vw rgba(0, 0, 0, .45); object-fit: cover; }
.book__cap { display: flex; gap: 0.9rem; align-items: baseline; font-size: var(--t-small); padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; width: 100%; }

/* Fiche projet : pas de césure */
.p-text, .p-text p, .p-text .col-text { hyphens: manual; -webkit-hyphens: manual; }
.book__vertical { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 88%; width: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 1vw 2.5vw rgba(60, 40, 20, .18); }
.book__sound { position: absolute; right: clamp(10px, 1.5vw, 24px); bottom: clamp(10px, 1.5vw, 24px); font-family: var(--sans); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--creme); background: rgba(20, 20, 20, .55); border: 1.5px solid var(--creme); border-radius: 999px; padding: 0.55rem 1rem; cursor: pointer; backdrop-filter: blur(4px); }
.book__sound:hover { background: var(--bordeaux); }
.book__web { background: var(--papier); display: grid; justify-items: center; gap: clamp(1.4rem, 3vw, 2.4rem); padding: clamp(1.5rem, 5vw, 5rem) var(--gutter); }
.web-frame { width: min(100%, 1000px); background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1.5vw 4vw rgba(7, 102, 101, .18); }
.web-frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef1ef; }
.web-frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9d1cd; }
.web-frame__bar em { font-style: normal; font-family: var(--sans); font-size: 0.78rem; color: #5b6a66; margin-left: 10px; background: #fff; border-radius: 999px; padding: 3px 14px; }
.web-frame img { width: 100%; height: auto; display: block; }
