/* ==========================================================
   Archi Mise en scène — feuille de style
   Couleurs du logo : crème (fond), bleu roi (texte), or (accent).
   Titres : Cormorant Garamond (Bunny Fonts, hébergement européen).
   Texte : Poppins, hébergée avec le site.
   ========================================================== */

@font-face {
  font-family: "Lora";
  src: url("fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Couleurs du logo */
  --paper: #f6eee4;
  --ink: #1b3a8a;
  --gold: #c79a43;
  --coral: #b3342b; /* rouge chaud, en touches */

  --tint: rgba(27, 58, 138, 0.045);
  --line: rgba(27, 58, 138, 0.16);
  --muted: rgba(27, 58, 138, 0.72);

  --serif: "Cormorant Garamond", "Lora", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", "Segoe UI", system-ui, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 60ch;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--gold);
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
}

h3 {
  font-size: 1.55rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 84rem);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 238, 228, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  line-height: 1.1;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: auto;
  height: 2.6rem;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--gold);
  margin-top: 0.25rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 2rem;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  padding-block: 0.3rem;
}

.site-nav .nav-cta {
  white-space: nowrap;
  border: 1px solid var(--ink);
  padding: 0.45rem 1.1rem;
}

.site-nav .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(3.3rem, 7.8vw, 7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero-sub {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-lead {
  max-width: 33rem;
  margin-top: 1.2rem;
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.9rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

/* Planche d'architecte */

.sheet {
  margin: 0;
  border: 1px solid var(--line);
  background: #fffdfb;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  box-shadow: 0 1px 0 var(--line), 14px 14px 0 -1px var(--tint);
}

.plan {
  width: 100%;
  height: auto;
  color: var(--ink);
}

.cartouche {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-top: 1rem;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.35;
}

.cartouche span {
  padding: 0.5rem 0.7rem;
  color: var(--muted);
}

.cartouche span + span {
  border-left: 1px solid var(--line);
}

.cartouche strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

/* Le plan se trace une fois, à l'ouverture de la page. */
.plan .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

.plan .d2 {
  animation-delay: 0.5s;
}

.plan .d3 {
  animation-delay: 1s;
}

.plan .fade {
  opacity: 0;
  animation: fade 1.2s ease 1.9s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .plan .draw {
    animation: none;
    stroke-dashoffset: 0;
  }

  .plan .fade {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.section-tint {
  background: var(--tint);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head p {
  margin: 0;
  max-width: 34rem;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Atelier */

.atelier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.3;
}

.quote::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.8rem;
}

.prose p {
  max-width: var(--measure);
}

/* Bandeau photo */

.banner {
  margin: 0;
}

.banner img {
  width: 100%;
  aspect-ratio: 18 / 7.8;
  object-fit: cover;
}

.banner figcaption,
.feature-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.banner figcaption strong,
.feature-photo figcaption strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
}

/* Sélection du mobilier : texte et photo côte à côte */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.feature-text p {
  max-width: 34rem;
}

.feature-text h2 {
  margin-bottom: 1.6rem;
}

.feature-text .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.4;
}

.salons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature-photo {
  margin: 0;
}

.feature-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Savoir-faire et moodboard */

.craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.moodboard {
  margin: 0;
  position: sticky;
  top: 6.5rem;
}

.moodboard svg {
  width: 100%;
  height: auto;
}

.moodboard figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.skills li {
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.skills h3 {
  margin-bottom: 0.5rem;
}

.skills p {
  margin: 0;
  color: var(--muted);
  max-width: var(--measure);
}

/* Partenaires */

.partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}

.partners article {
  padding: 1.8rem clamp(1rem, 2vw, 2rem) 0 0;
}

.partners article + article {
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
}

.partners svg {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.4rem;
  color: var(--gold);
}

.partners h3 {
  margin-bottom: 0.6rem;
}

.partners p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

/* Comparatif IA / projet */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.compare figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.compare-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.compare-label h3 {
  font-size: 1.3rem;
}

.compare-label span {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

.compare svg {
  width: 100%;
  height: auto;
  color: var(--ink);
}

.issues {
  list-style: none;
  counter-reset: issue;
  margin: 1.4rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}

.issues li {
  counter-increment: issue;
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.6rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--line);
}

.issues li::before {
  content: counter(issue);
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.issues.bad li::before {
  border: 1px solid var(--ink);
}

.issues.good li::before {
  background: var(--gold);
  color: #fff;
}

.compare-note {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  max-width: 44rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.35;
}

/* Méthode */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 clamp(1rem, 2vw, 2rem);
}

.steps li {
  counter-increment: step;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 1.1rem;
  color: var(--gold);
}

.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Territoires */

.places {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.places h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.places ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.35;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.contact-aside > p {
  margin-top: 1.4rem;
  max-width: 28rem;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--muted);
}

.coords {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.coords p {
  margin-bottom: 0.4rem;
}

.coords .big {
  font-family: var(--serif);
  font-size: 1.6rem;
  text-decoration: none;
}

form {
  display: grid;
  gap: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(27, 58, 138, 0.35);
  padding: 0.55rem 0;
  border-radius: 0;
}

input::placeholder,
textarea::placeholder {
  color: rgba(27, 58, 138, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-bottom: 2px solid var(--gold);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.consent label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

.consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--gold);
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Pied de page */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.footer-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-legal nav {
  display: flex;
  gap: 1.8rem;
}

/* Pages simples (FAQ, mentions légales, merci, 404) */

.page {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.page-narrow {
  max-width: 50rem;
}

.page h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1.2rem;
}

.page .intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.page h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.6rem;
}

.page p,
.page li {
  max-width: var(--measure);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 2.5rem 1.4rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 1.1rem;
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 1.4rem;
  margin: 0;
  color: var(--muted);
}

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 64rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem 2rem;
  }

  .partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .partners article:nth-child(n + 3) {
    margin-top: 2rem;
  }
}

@media (max-width: 52rem) {
  .hero .wrap,
  .feature,
  .section-head,
  .atelier,
  .craft,
  .compare,
  .places,
  .contact,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .moodboard {
    position: static;
  }
}

@media (max-width: 36rem) {
  body {
    font-size: 1rem;
  }

  .steps,
  .partners,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .partners article,
  .partners article + article {
    padding-left: 0;
    border-left: 0;
  }

  .partners article + article {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
  }

  .site-nav ul {
    gap: 0.1rem 1.2rem;
    font-size: 0.88rem;
  }

  .site-nav li:not(:last-child) {
    display: none;
  }

  .site-header .wrap {
    flex-wrap: nowrap;
  }

  .brand img {
    height: 2.1rem;
  }

  .brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .cartouche {
    grid-template-columns: 1fr;
  }

  .cartouche span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ==========================================================
   Accueil : plan 2D qui se dessine
   ========================================================== */

.hero-plan {
  padding: clamp(1rem, 2.5vw, 1.8rem);
}

.plan2d {
  width: 100%;
  height: auto;
  overflow: visible;
}

.plan2d .ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.is-ready:not(.is-drawn) .ln {
  stroke-dashoffset: 1;
}

.is-ready:not(.is-drawn) .dash {
  opacity: 0;
}

.is-drawn .ln {
  transition: stroke-dashoffset var(--t, 1.1s) cubic-bezier(0.5, 0, 0.2, 1) var(--d, 0s);
}

.is-drawn .dash {
  transition: opacity 0.9s ease var(--d, 0s);
}

.poche,
.labels {
  transition: opacity 1.2s ease;
}

.is-ready:not(.is-drawn) .poche,
.is-ready:not(.is-drawn) .labels {
  opacity: 0;
}

.is-drawn .poche {
  transition-delay: 1.4s;
}

.is-drawn .labels {
  transition-delay: 4.2s;
}

.replay {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.replay:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .is-drawn .ln,
  .is-drawn .dash,
  .is-drawn .poche,
  .is-drawn .labels {
    transition: none;
  }
}

/* ==========================================================
   Appliques murales, sélection, comparatif, questionnaire
   ========================================================== */

.text-link {
  font-weight: 400;
  text-decoration-color: var(--gold);
}

.button-ghost {
  display: inline-block;
  padding: 1rem 1.9rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.button-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-phone {
  font-size: 0.95rem;
}

/* Appliques */

.sconce {
  width: 100%;
  height: auto;
  overflow: visible;
}

.sconce-glow {
  animation: glow 5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

.atelier-quote {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: start;
}

.atelier-quote .quote::before {
  display: none;
}

.sconce-pair {
  padding-top: 0.2rem;
}

/* Galerie de la sélection */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: clamp(1rem, 2.4vw, 2rem);
}

.gallery figure {
  margin: 0;
}

.gallery figure {
  align-self: start;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--tint);
  box-shadow: 0 1px 0 var(--line), 12px 12px 0 -1px rgba(199, 154, 67, 0.12);
}

.gallery figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery figcaption strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
}

.g-tall {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
}

.g-tall img {
  aspect-ratio: 3 / 4;
}

.g-wide {
  grid-column: 6 / span 7;
}

.g-wide img {
  aspect-ratio: 3 / 2;
}

.g-square {
  grid-column: 6 / span 3;
}

.g-square img {
  aspect-ratio: 1;
}

.g-text {
  grid-column: 9 / span 4;
  align-self: center;
}

.g-text .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.35;
}

/* Comparatif IA / architecte d'intérieur */

.versus {
  border-top: 1px solid var(--ink);
}

.vs-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem clamp(1rem, 3vw, 3rem);
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.vs-row h3 {
  font-size: 1.35rem;
}

.vs-row p {
  margin: 0;
}

.vs-row p:nth-of-type(1) {
  color: var(--muted);
}

.vs-row p:nth-of-type(2) {
  position: relative;
  padding-left: 1.4rem;
}

.vs-row p:nth-of-type(2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.7rem;
  height: 1px;
  background: var(--gold);
}

.vs-head {
  padding-block: 0.9rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vs-head span:nth-child(2) {
  color: var(--muted);
}

.vs-head span:nth-child(3) {
  color: var(--gold);
}

.vs-conclusion {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.vs-conclusion .compare-note {
  margin: 0;
  grid-row: span 2;
}

.vs-conclusion p:not(.compare-note) {
  margin: 0;
  color: var(--muted);
}

.vs-conclusion .button {
  justify-self: start;
}

/* Questionnaire */

.anchor {
  position: relative;
  top: -5rem;
}

.projet-head {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) 6rem;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  text-align: center;
  max-width: 62rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.projet-head p {
  margin: 1rem auto 0;
  max-width: 38rem;
  color: var(--muted);
}

.mirror .sconce {
  transform: scaleX(-1);
}

.quiz {
  max-width: 62rem;
  margin: 0 auto;
  gap: 1.4rem;
}

.quiz-progress {
  height: 2px;
  background: var(--line);
}

.quiz-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--gold);
  transition: width 0.4s ease;
}

.quiz-count {
  margin: -0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.quiz:not(.is-stepped) .quiz-progress,
.quiz:not(.is-stepped) .quiz-count,
.quiz:not(.is-stepped) [data-prev],
.quiz:not(.is-stepped) [data-next] {
  display: none;
}

.quiz-step {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.3rem;
  min-width: 0;
}

.quiz-step[hidden] {
  display: none;
}

.quiz-step legend {
  padding: 0;
  margin-bottom: 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.q-label {
  margin: 0.4rem 0 -0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.q-hint {
  margin: -0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.8rem;
}

.card {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.card input,
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.card span {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: #fffdfb;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.card:hover span {
  border-color: rgba(27, 58, 138, 0.45);
}

.card input:checked + span {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  background: #fffaf1;
}

.card input:focus-visible + span,
.chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: #fffdfb;
  font-size: 0.88rem;
  font-weight: 400;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.reco {
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--gold);
  background: #fffaf1;
}

.reco-name {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  font-style: italic;
}

.reco-text {
  margin: 0;
  color: var(--muted);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.quiz-nav [data-next],
.quiz-nav [data-submit] {
  margin-left: auto;
}

.quiz-nav [hidden] {
  display: none;
}

.direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.6rem 2rem;
  margin-top: 2.5rem;
  color: var(--muted);
}

.direct p {
  margin: 0;
}

.direct .big {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}

/* Barre d'appel sur téléphone */

.mobile-cta {
  display: none;
}

@media (max-width: 52rem) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-tall,
  .g-wide,
  .g-square,
  .g-text {
    grid-column: auto;
    grid-row: auto;
  }

  .g-wide,
  .g-text {
    grid-column: 1 / -1;
  }

  .vs-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .vs-row h3 {
    grid-column: 1 / -1;
  }

  .vs-head span:first-child {
    display: none;
  }

  .vs-conclusion {
    grid-template-columns: minmax(0, 1fr);
  }

  .projet-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .sconce-side {
    display: none;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-top: 1px solid var(--line);
    background: rgba(246, 238, 228, 0.97);
  }

  .mobile-cta a {
    padding: 0.95rem 1rem;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
  }

  .mobile-cta .primary {
    background: var(--ink);
    color: var(--paper);
  }

  .site-footer {
    padding-bottom: 5rem;
  }
}

@media (max-width: 36rem) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .vs-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .vs-head {
    display: none;
  }

  .vs-row p:nth-of-type(1)::before {
    content: "IA : ";
    font-weight: 500;
  }

  .vs-row p:nth-of-type(2) {
    padding-left: 0;
  }

  .vs-row p:nth-of-type(2)::before {
    content: "Avec nous : ";
    position: static;
    width: auto;
    height: auto;
    background: none;
    font-weight: 500;
    color: var(--gold);
  }

  .atelier-quote {
    grid-template-columns: 3.8rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sconce-glow {
    animation: none;
  }
}

/* Photos fondues dans le contenu */

.inline-photo {
  margin: 0;
}

.inline-photo img,
.moodboard .render {
  width: 100%;
  height: auto;
  box-shadow: 0 1px 0 var(--line), 10px 10px 0 -1px rgba(199, 154, 67, 0.12);
}

.atelier-photo {
  float: right;
  width: 38%;
  max-width: 13rem;
  margin: 0.4rem 0 1rem 2rem;
}

.atelier-photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.moodboard .render {
  margin-top: 1.6rem;
}

.render-caption {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.selection {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.selection-text h2 {
  margin-bottom: 1.4rem;
}

.selection-text p {
  max-width: 36rem;
}

.selection-text .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.4;
}

.selection-photo {
  max-width: 24rem;
  justify-self: end;
}



@media (max-width: 52rem) {
  .selection {
    grid-template-columns: minmax(0, 1fr);
  }

  .selection-photo {
    justify-self: start;
    max-width: 16rem;
  }
}

/* ==========================================================
   Touches de rouge chaud
   ========================================================== */

a:hover,
.site-nav a:hover {
  color: var(--coral);
}

.site-nav .nav-cta:hover {
  color: var(--paper);
  background: var(--coral);
  border-color: var(--coral);
}

.hero-sub::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 2px;
  margin-right: 0.9rem;
  vertical-align: middle;
  background: var(--coral);
}

.steps li::before {
  color: var(--coral);
}

.quiz-progress span {
  background: var(--coral);
}

.vs-head span:nth-child(3) {
  color: var(--coral);
}

.vs-row p:nth-of-type(2)::before {
  background: var(--coral);
}

.reco-name {
  color: var(--coral);
}

.button:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.consent-first {
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--coral);
  background: rgba(179, 52, 43, 0.05);
}

@media (max-width: 36rem) {
  .vs-row p:nth-of-type(2)::before {
    background: none;
    color: var(--coral);
  }
}

/* ==========================================================
   Accueil : plan d'architecte vivant
   ========================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(27, 58, 138, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 58, 138, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, var(--paper) 30%, rgba(246, 238, 228, 0) 75%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-scene {
  margin: 0 -4% 0 0;
}

.hero-scene .plan2d {
  width: 108%;
  max-width: none;
}

.scene-caption {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.guides,
.notes > g,
.flow-group,
.sun,
.glow {
  transition: opacity 1.6s ease;
}

.is-ready:not(.is-drawn) .guides,
.is-ready:not(.is-drawn) .notes > g,
.is-ready:not(.is-drawn) .flow-group,
.is-ready:not(.is-drawn) .sun,
.is-ready:not(.is-drawn) .glow {
  opacity: 0;
}

.is-drawn .notes > g {
  transition-delay: calc(4.4s + var(--n, 0s));
}

.is-drawn .flow-group {
  transition-delay: 4s;
}

.is-drawn .sun {
  transition-delay: 3.4s;
}

.is-drawn .glow {
  transition-delay: 3.6s;
}

.flow {
  stroke-width: 1.4;
  stroke-dasharray: 2 7;
}

.is-drawn .flow {
  animation: march 1.4s linear infinite;
}

@keyframes march {
  to { stroke-dashoffset: -18; }
}

.live.door {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.is-drawn .live.door {
  animation: swing 6s ease-in-out 4.8s infinite alternate;
}

@keyframes swing {
  0%, 15% { transform: rotate(0deg); }
  85%, 100% { transform: rotate(62deg); }
}

.live.swivel {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.is-drawn .live.swivel {
  animation: swivel 7s ease-in-out 5.2s infinite alternate;
}

@keyframes swivel {
  from { transform: rotate(-9deg); }
  to { transform: rotate(9deg); }
}

.live.glow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.is-drawn .live.glow {
  animation: pulse 3.2s ease-in-out 4s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(0.82); opacity: 0.55; }
  to { transform: scale(1.08); opacity: 1; }
}

.live.sun {
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.is-drawn .live.sun {
  animation: daylight 10s ease-in-out 4s infinite alternate;
}

@keyframes daylight {
  from { transform: skewX(-7deg); opacity: 0.65; }
  to { transform: skewX(6deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .is-drawn .flow,
  .is-drawn .live.door,
  .is-drawn .live.swivel,
  .is-drawn .live.glow,
  .is-drawn .live.sun {
    animation: none;
  }
}

@media (max-width: 52rem) {
  .hero-scene {
    margin: 0;
  }

  .hero-scene .plan2d {
    width: 100%;
  }
}

/* Horizon du projet : petites cartes */

.cards-5 {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.card-sm span {
  padding: 0.85rem 1rem;
  text-align: center;
}

.card-sm strong {
  margin: 0;
  font-size: 1.15rem;
}

/* Papier peint : un pan de mur texturé dans la section sélection */

#selection {
  position: relative;
  overflow: hidden;
}

#selection::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(3rem, 7vw, 7.5rem);
  background: url("images/papier-peint.svg") 0 0 / 56px 28px repeat;
  box-shadow: inset -10px 0 18px -10px rgba(60, 30, 15, 0.35);
  border-right: 3px solid var(--gold);
}

#selection .wrap {
  position: relative;
  padding-left: clamp(2rem, 6vw, 6rem);
}

@media (max-width: 52rem) {
  #selection::before {
    top: 0;
    bottom: auto;
    width: 100%;
    height: 1.6rem;
    border-right: 0;
    border-bottom: 3px solid var(--gold);
    box-shadow: inset 0 -8px 14px -8px rgba(60, 30, 15, 0.35);
  }

  #selection .wrap {
    padding-left: 0;
  }
}

/* Plan d'accueil : pas de débordement */
.hero-scene {
  margin: 0;
}

.hero-scene .plan2d {
  width: 100%;
}

/* ==========================================================
   Réalisations : portrait, projets en onglets, avant / après
   ========================================================== */

.portrait-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.portrait {
  margin: 0;
  position: relative;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  border: 1px solid var(--gold);
}

.portrait-intro h2 {
  margin-bottom: 1.4rem;
}

.portrait-intro .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
}

.portrait-intro p {
  max-width: 40rem;
}

.realisations {
  border-top: 1px solid var(--ink);
}

.realisation {
  border-bottom: 1px solid var(--line);
}

.realisation summary {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  grid-template-areas: "img title plus" "img meta plus";
  column-gap: 1.4rem;
  align-items: center;
  padding-block: 1.1rem;
  cursor: pointer;
  list-style: none;
}

.realisation summary::-webkit-details-marker {
  display: none;
}

.realisation summary img {
  grid-area: img;
  width: 6rem;
  height: 4rem;
  object-fit: cover;
}

.r-title {
  grid-area: title;
  align-self: end;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.r-meta {
  grid-area: meta;
  align-self: start;
  font-size: 0.88rem;
  color: var(--muted);
}

.realisation summary::after {
  content: "+";
  grid-area: plus;
  font-size: 2rem;
  font-weight: 300;
  color: var(--coral);
  transition: transform 0.25s;
}

.realisation[open] summary::after {
  transform: rotate(45deg);
}

.r-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-areas: "ba facts" "ba text";
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.2rem;
  align-items: start;
}

.r-body > p {
  grid-area: text;
  margin: 0;
  color: var(--muted);
}

.r-facts {
  grid-area: facts;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.r-facts div {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.r-facts dt {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--coral);
}

.r-facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* Comparateur avant / après */

.ba {
  grid-area: ba;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 12px 12px 0 -1px rgba(199, 154, 67, 0.14);
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(27, 58, 138, 0.25);
  pointer-events: none;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-range:focus-visible + .ba-handle,
.ba:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.ba-tag {
  position: absolute;
  top: 0.9rem;
  z-index: 2;
  padding: 0.25rem 0.7rem;
  background: rgba(246, 238, 228, 0.92);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-tag-before {
  left: 0.9rem;
}

.ba-tag-after {
  right: 0.9rem;
  color: var(--coral);
}

@media (max-width: 52rem) {
  .portrait-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait {
    max-width: 18rem;
  }

  .r-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "ba" "facts" "text";
  }

  .realisation summary {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  }

  .realisation summary img {
    width: 4.5rem;
    height: 3rem;
  }

  .r-title {
    font-size: 1.3rem;
  }
}

/* ==========================================================
   Accueil : perspective au trait noir, vivante
   ========================================================== */

.dessin {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dessin .s {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

/* état initial : rien n'est tracé */
.dessin.is-ready .s {
  stroke-dashoffset: 1;
}

/* premier tracé, trait après trait */
.dessin.is-drawn .s {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.55, 0, 0.25, 1) var(--d, 0s);
}

/* ensuite chaque trait vit sa vie */
.dessin.is-living .s {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.55, 0, 0.25, 1);
}

.dessin.is-living .s.gone {
  stroke-dashoffset: -1;
  transition: stroke-dashoffset 1s ease-in;
}

.dessin.is-living .s.hidden {
  stroke-dashoffset: 1;
}

.dessin .s.reset {
  transition: none !important;
}

.dessin .s.c {
  stroke-opacity: 0.28;
}

.dessin .sway {
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.dessin.is-living .sway {
  animation: sketch-sway 3.4s ease-in-out infinite alternate;
}

@keyframes sketch-sway {
  from { transform: rotate(-2.5deg); }
  to { transform: rotate(2.5deg); }
}

.dessin.is-static .s {
  stroke-dashoffset: 0;
  transition: none;
}

/* ==========================================================
   Savoir-faire : trois piliers, dossier technique, IA
   ========================================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.pillars article {
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
}

.pillar-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 0.9rem;
}

.pillars h3 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.pillars p {
  color: var(--muted);
}

.pillars .checklist {
  margin-top: 0.4rem;
}

.dossier h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.dossier > p {
  color: var(--muted);
  max-width: 36rem;
}

.plans-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.plans-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.plans-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.elec {
  margin: 2rem 0 0;
  padding: 1.2rem;
  background: #fffdfb;
  border: 1px solid var(--line);
}

.elec svg {
  width: 100%;
  height: auto;
}

.elec figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.ia-block {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.h2-like {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

@media (max-width: 52rem) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================
   Lisibilité : phrases sur une ligne quand c'est possible
   ========================================================== */

:root {
  --measure: 74ch;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.section-head {
  display: block;
  max-width: none;
}

.section-head h2,
.section-head .h2-like {
  max-width: none;
}

.section-head p {
  margin-top: 1.1rem;
  max-width: 64rem;
}

.h2-like {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

/* Accueil : deux colonnes seulement sur grand écran */
@media (min-width: 52.01rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.02;
}

.hero-sub::before {
  content: none;
}

.hero-lead {
  max-width: 40rem;
}

@media (min-width: 64rem) {
  .hero-sub {
    white-space: nowrap;
  }
}

/* L'atelier : citation sur toute la largeur, texte en dessous */
.atelier {
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.atelier-quote {
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: center;
}

.quote {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  max-width: 62rem;
}

.atelier .prose {
  max-width: 64rem;
}

.atelier .prose p {
  max-width: none;
}

/* Sélection, questionnaire, réalisations */
.selection-text p {
  max-width: 48rem;
}

.projet-head {
  max-width: 72rem;
}

.projet-head p {
  max-width: 56rem;
}

.consent[hidden] {
  display: none;
}

.consent-first {
  align-items: center;
}

.consent-first label {
  font-size: 0.92rem;
  color: var(--ink);
}

.consent-first label a {
  margin-left: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.realisation summary {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title plus" "meta plus";
}

.r-photo {
  grid-area: ba;
  margin: 0;
}

.r-photo img {
  width: 100%;
  height: auto;
  box-shadow: 12px 12px 0 -1px rgba(199, 154, 67, 0.14);
}

.r-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.selection-photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 52rem) {
  .r-body {
    grid-template-areas: "ba" "facts" "text";
  }
}

/* Petits téléphones (iPhone SE, Android compacts) */
@media (max-width: 26rem) {
  .brand-name small {
    display: none;
  }

  .brand img {
    height: 1.9rem;
  }

  .brand-name {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-sub {
    letter-spacing: 0.16em;
  }
}

/* Barre d'appel : respecter la zone de geste des iPhone */
@media (max-width: 52rem) {
  .mobile-cta {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

}

@media (max-width: 36rem) {
  .hero-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-sub {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  .brand-name {
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .quiz {
    padding: 1.4rem 1.1rem;
  }

  .reco {
    padding: 1.1rem 1.2rem;
  }

  .reco-name {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .quiz-nav .button,
  .quiz-nav .button-ghost {
    padding: 0.9rem 1.2rem;
    white-space: nowrap;
  }
}

@media (max-width: 52rem) {
  html {
    scroll-padding-bottom: 4.5rem;
  }
}

/* Téléphones : la barre du bas porte déjà l'appel à l'action */
@media (max-width: 36rem) {
  .site-nav {
    display: none;
  }

  .brand-name {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }
}

/* Moodboards photographiés */
.moodboard .mood-img {
  width: 100%;
  height: auto;
  box-shadow: 0 1px 0 var(--line), 12px 12px 0 -1px rgba(199, 154, 67, 0.14);
}

.r-photo img {
  max-height: 46rem;
  object-fit: contain;
  background: #fff;
}

.moodboard {
  position: static;
}

/* Questionnaire : chaque réponse sur une seule ligne quand l'écran le permet */
.cards:not(.cards-4):not(.cards-5) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.cards:not(.cards-4):not(.cards-5) .card span {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.95rem 1.3rem;
}

.cards:not(.cards-4):not(.cards-5) .card strong {
  flex: 0 0 15.5rem;
  margin: 0;
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.thanks {
  margin: -0.4rem 0 0.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

@media (max-width: 36rem) {
  .cards:not(.cards-4):not(.cards-5) .card span {
    display: block;
  }

  .cards:not(.cards-4):not(.cards-5) .card strong {
    margin-bottom: 0.3rem;
  }
}

/* Moodboards agrandissables */
.zoom {
  display: block;
  cursor: zoom-in;
}

.lightbox {
  max-width: min(96vw, 1200px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(20, 24, 40, 0.82);
}

.lightbox img {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cards:not(.cards-4):not(.cards-5) .card strong {
  flex-basis: 19rem;
}

.card-sm strong {
  font-size: 1.05rem;
  white-space: nowrap;
}

@media (max-width: 36rem) {
  .cards-4,
  .cards-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-sm strong {
    white-space: normal;
  }
}

/* ==========================================================
   Tons chauds inspirés du portrait : noyer, expresso, laiton
   Fond à peine plus chaud, textes courants en brun expresso
   légèrement transparent ; titres et logo restent bleu roi.
   ========================================================== */

:root {
  --paper: #f6eee4;
  --text: #33241b;
  --muted: rgba(51, 36, 27, 0.72);
  --line: rgba(74, 48, 30, 0.16);
  --tint: rgba(122, 74, 42, 0.055);
  --walnut: #7a4a2a;
}

body {
  color: var(--text);
}

h1,
h2,
h3,
legend,
.hero-title,
.hero-sub,
.brand-name,
.quiz-step legend,
.card strong,
.r-title,
.r-facts dd,
.plans-list strong,
.pillars h3,
.vs-row h3,
.faq summary,
.places ul,
.coords .big,
.direct .big {
  color: var(--ink);
}

.quote,
.compare-note,
.thanks,
.lead,
.feature-text .lead,
.selection-text .lead,
.portrait-intro .lead {
  color: var(--walnut);
}

input,
select,
textarea {
  color: var(--text);
  border-bottom-color: rgba(74, 48, 30, 0.32);
}

label,
.q-label {
  color: var(--text);
}

.card span,
.chip span,
form,
.elec,
.sheet {
  background: rgba(255, 252, 247, 0.72);
}

.quiz {
  background: rgba(255, 252, 247, 0.78);
  backdrop-filter: blur(2px);
}

.section-tint {
  background: rgba(122, 74, 42, 0.055);
}

.portrait::after {
  border-color: rgba(199, 154, 67, 0.7);
}

.portrait img {
  box-shadow: 0 18px 40px -22px rgba(51, 36, 27, 0.55);
}

.site-footer {
  color: var(--muted);
}

/* Questionnaire : une ligne par réponse */
.cards:not(.cards-4):not(.cards-5) .card strong {
  flex: 0 0 auto;
  min-width: 15rem;
  white-space: nowrap;
}

.cards:not(.cards-4):not(.cards-5) .card span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 52rem) {
  .quiz-step legend {
    font-size: 1.55rem;
  }

  .cards:not(.cards-4):not(.cards-5) .card strong {
    min-width: 12.5rem;
  }
}

@media (max-width: 40rem) {
  /* sur téléphone : le titre seul, sur une ligne */
  .cards:not(.cards-4):not(.cards-5) .card span {
    display: block;
    font-size: 0;
  }

  .cards:not(.cards-4):not(.cards-5) .card strong {
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 1.15rem;
    white-space: normal;
  }

  .quiz-step legend {
    font-size: 1.35rem;
  }

  .q-label {
    font-size: 0.85rem;
  }

  .card-sm strong {
    font-size: 0.98rem;
    white-space: nowrap;
  }
}

@media (max-width: 23rem) {
  .quiz-step legend {
    font-size: 1.22rem;
  }
}

/* ==========================================================
   Savoir-faire : moodboard et son texte
   ========================================================== */

.craft {
  align-items: center;
}

.mood-text h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin-bottom: 1.1rem;
}

.mood-text p {
  max-width: 40rem;
}

.mood-text .checklist {
  margin-top: 1.2rem;
}

/* ==========================================================
   Méthode : un parcours en étapes, sur une ligne de temps
   ========================================================== */

.parcours {
  position: relative;
  max-width: 62rem;
}

.parcours::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 1.6rem;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(199, 154, 67, 0.25));
}

.phase + .phase {
  margin-top: 2.2rem;
}

.phase-name {
  position: relative;
  margin: 0 0 1.2rem 4.6rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0 1.4rem;
  padding-bottom: 1.8rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--coral);
}

.step h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.45rem;
}

.step p {
  margin: 0;
  max-width: 50rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.tags li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 252, 247, 0.7);
  font-size: 0.82rem;
  color: var(--text);
}

/* ==========================================================
   Questionnaire : texte à gauche, formulaire à droite
   ========================================================== */

.projet-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.projet-aside {
  position: sticky;
  top: 6rem;
}

.aside-sconce {
  width: 4.2rem;
  margin-bottom: 0.8rem;
}

.projet-aside h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.projet-aside > p {
  color: var(--muted);
}

.reassure {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.reassure li {
  padding: 0.9rem 0 0.9rem 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.92rem;
  color: var(--muted);
}

.reassure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.6rem;
  height: 1px;
  background: var(--coral);
}

.reassure strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

.aside-contact {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
}

.aside-contact p {
  margin: 0;
}

.aside-contact .big {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
}

.projet-layout .quiz {
  max-width: none;
  margin: 0;
  box-shadow: 0 24px 50px -36px rgba(51, 36, 27, 0.45);
}

/* repères d'étapes */
.stepper {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: st;
}

.stepper li {
  counter-increment: st;
  flex: 1;
  padding-top: 0.55rem;
  border-top: 2px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper li::before {
  content: counter(st) ". ";
}

.stepper li.is-done {
  border-top-color: var(--gold);
}

.stepper li.is-current {
  border-top-color: var(--coral);
  color: var(--ink);
  font-weight: 500;
}

.quiz:not(.is-stepped) .stepper {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 64rem) {
  .projet-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .projet-aside {
    position: static;
  }

  .reassure {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.5rem;
  }
}

@media (max-width: 40rem) {
  .reassure {
    grid-template-columns: minmax(0, 1fr);
  }

  .parcours::before {
    left: 1.2rem;
  }

  .step {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0 1rem;
  }

  .step-num {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
  }

  .step h3 {
    margin-top: 0.3rem;
    font-size: 1.25rem;
  }

  .phase-name {
    margin-left: 3.4rem;
    font-size: 0.85rem;
  }

  .stepper li {
    font-size: 0;
  }

  .stepper li::before {
    font-size: 0.74rem;
  }
}

@media (max-width: 40rem) {
  .aside-sconce {
    display: none;
  }

  .consent-first label {
    font-size: 0.85rem;
  }
}

/* ==========================================================
   MÉTHODE : parcours en quatre phases
   Une ligne verticale relie les phases ; dans chaque phase,
   les étapes se suivent sur un fil horizontal (vertical sur mobile).
   ========================================================== */

.route-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
}

.route-head {
  max-width: 62rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.route-head h2 {
  margin: 0;
}

.route-lead {
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Fil vertical entre les phases */
.route::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 1.75rem;
  bottom: -2.5rem;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(199, 154, 67, 0.35));
}

.route-phase {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 15rem minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  padding-bottom: clamp(3rem, 5vw, 4.25rem);
}

.route-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold);
  color: var(--ink);
}

.route-mark svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-title {
  padding-top: 0.2rem;
}

.route-num {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.route-num span {
  display: block;
  margin-top: 0.3rem;
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 300;
  color: var(--muted);
}

.route-title h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.1rem);
  line-height: 1.1;
}

.route-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem clamp(1.5rem, 2.6vw, 2.5rem);
}

.route-steps li {
  position: relative;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* Point d'étape posé sur le fil */
.route-steps li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.route-step-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--coral);
  opacity: 0.85;
  margin-bottom: 0.9rem;
}

.route-steps h4 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.route-steps p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.route-end {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding-left: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-style: italic;
  color: var(--walnut);
}

.route-end span {
  display: grid;
  place-items: center;
  flex: none;
  height: 1.9rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

@media (max-width: 75rem) {
  .route-phase {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    row-gap: 1.75rem;
  }

  .route-title {
    padding-top: 0.55rem;
  }

  .route-steps {
    grid-column: 2;
  }
}

@media (max-width: 48rem) {
  .route::before {
    left: 1.4rem;
    top: 1.4rem;
  }

  .route-phase {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    column-gap: 1.1rem;
    row-gap: 1.4rem;
  }

  .route-mark {
    width: 2.8rem;
    height: 2.8rem;
  }

  .route-mark svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .route-title {
    padding-top: 0.15rem;
  }

  .route-num span {
    display: inline;
    margin-left: 0.4rem;
  }

  .route-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.9rem;
  }

  .route-steps li {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    column-gap: 0.4rem;
    padding-top: 1.2rem;
  }

  .route-step-num {
    grid-row: span 2;
    font-size: 1.9rem;
    margin: 0;
  }

  .route-steps h4 {
    font-size: 1.28rem;
    margin-top: 0.15rem;
  }

  .route-end {
    padding-left: 0.4rem;
    font-size: 1.3rem;
  }
}

/* ==========================================================
   DEMANDE DE RAPPEL : nouvelle carte en étapes
   ========================================================== */

.cb-head {
  max-width: 54rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.cb-head h2 {
  margin: 0;
}

.cb-lead {
  margin: 1.2rem auto 0;
  max-width: 50rem;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.cb {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  max-width: 64rem;
  margin: 0 auto;
  padding: 0;
  background: #fffaf3;
  border: 1px solid rgba(199, 154, 67, 0.35);
  box-shadow: 0 30px 60px -40px rgba(51, 36, 27, 0.45);
  backdrop-filter: none;
}

/* Colonne bleue : progression */
.cb-rail {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  background: var(--ink);
  color: rgba(246, 238, 228, 0.82);
}

.cb-rail-title {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  color: var(--paper);
}

.cb-rail-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cb;
}

.cb-rail-steps li {
  position: relative;
  counter-increment: cb;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.6rem;
  font-size: 0.92rem;
  color: rgba(246, 238, 228, 0.6);
  transition: color 0.25s;
}

.cb-rail-steps li::before {
  content: counter(cb);
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid rgba(246, 238, 228, 0.35);
  font-size: 0.78rem;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

/* trait entre deux numéros */
.cb-rail-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 2.05rem;
  height: 1.45rem;
  width: 1px;
  background: rgba(246, 238, 228, 0.22);
}

.cb-rail-steps li.is-current {
  color: var(--paper);
  font-weight: 500;
}

.cb-rail-steps li.is-current::before {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.cb-rail-steps li.is-done {
  color: rgba(246, 238, 228, 0.85);
}

.cb-rail-steps li.is-done::before {
  content: "✓";
  border-color: var(--gold);
  color: var(--gold);
}

.cb-rail-contact {
  margin-top: auto;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(246, 238, 228, 0.2);
}

.cb-rail-contact p {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
}

.cb-rail-contact a {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.cb-rail-contact a:hover {
  color: var(--gold);
}

/* Contenu */
.cb-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.cb-progress,
.cb-count {
  display: none;
}

.cb-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.cb-step + .cb-step {
  margin-top: 3rem;
}

.cb.is-stepped .cb-step + .cb-step {
  margin-top: 0;
}

.cb-step legend {
  float: left;
  width: 100%;
  margin: 0 0 1.6rem;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.cb-step legend + * {
  clear: both;
}

.cb-q {
  margin: 2rem 0 0.9rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--walnut);
}

.cb-hint {
  margin: -0.6rem 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
}

/* Accord de recontact */
.cb-consent {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(199, 154, 67, 0.09);
  border-left: 2px solid var(--gold);
}

.cb-consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cb-consent label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin: 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}

.cb-consent label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: -0.575rem;
  border: 1px solid rgba(74, 48, 30, 0.45);
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.cb-consent input:checked + label::before {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23f6eee4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  border-color: var(--ink);
}

.cb-consent input:focus-visible + label::before {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cb-consent a {
  font-size: 0.82rem;
  color: var(--muted);
}

.cb-consent.is-missing {
  border-left-color: var(--coral);
  background: rgba(179, 52, 43, 0.08);
}

/* Choix uniques en cartes */
.cb-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cb-options-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cb-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin: 0;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(74, 48, 30, 0.16);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cb-option:hover {
  border-color: rgba(199, 154, 67, 0.75);
}

.cb-wide {
  grid-column: 1 / -1;
}

.cb-option input,
.cb-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.cb-dot {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(74, 48, 30, 0.4);
  transition: border 0.2s;
}

.cb-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.15rem;
}

.cb-text strong {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.cb-text small {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--muted);
}

.cb-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(199, 154, 67, 0.08);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.cb-option input:checked ~ .cb-dot {
  border: 5px solid var(--ink);
}

.cb-option input:focus-visible ~ .cb-dot,
.cb-chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Choix multiples / courts en pastilles */
.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cb-chip {
  margin: 0;
  position: relative;
  cursor: pointer;
}

.cb-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(74, 48, 30, 0.2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cb-chip:hover span {
  border-color: rgba(199, 154, 67, 0.75);
}

.cb-chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.cb-chip input[type="checkbox"]:checked + span::before {
  content: "✓";
  color: var(--gold);
  font-size: 0.85rem;
}

/* Champs */
.cb-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  margin-top: 2rem;
}

.cb-fields-1 {
  grid-template-columns: minmax(0, 1fr);
}

.cb-field-full {
  grid-column: 1 / -1;
}

.cb-field label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--walnut);
}

.cb-opt {
  margin-left: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 300;
  color: var(--muted);
}

.cb-field input,
.cb-field select,
.cb-field textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0;
  font-size: 1rem;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(74, 48, 30, 0.32);
  border-radius: 0;
  color: var(--text);
}

.cb-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c79a43' stroke-width='1.5'/%3E%3C/svg%3E") right 0.2rem center / 0.75rem no-repeat;
  cursor: pointer;
}

.cb-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.cb-field input:focus,
.cb-field select:focus,
.cb-field textarea:focus {
  outline: 0;
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 1px 0 var(--gold);
}

/* Navigation */
.cb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2.5rem;
}

.cb-nav [hidden] {
  display: none;
}

.cb-back {
  padding: 0.5rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}

.cb-back::before {
  content: "←";
  margin-right: 0.5rem;
}

.cb-back:hover {
  color: var(--ink);
}

.cb-next {
  margin-left: auto;
}

.cb-next::after {
  content: "→";
  margin-left: 0.7rem;
}

.cb-note {
  max-width: 64rem;
  margin: 1.6rem auto 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

/* Sans JavaScript : toutes les étapes visibles, bouton d'envoi seul */
.cb:not(.is-stepped) [data-prev],
.cb:not(.is-stepped) [data-next] {
  display: none;
}

@media (max-width: 56rem) {
  .cb {
    grid-template-columns: minmax(0, 1fr);
  }

  .cb-rail {
    display: none;
  }

  .cb.is-stepped .cb-progress {
    display: block;
    height: 2px;
    margin: 0 0 1rem;
    background: rgba(74, 48, 30, 0.12);
  }

  .cb-progress span {
    display: block;
    height: 100%;
    width: 20%;
    background: var(--gold);
    transition: width 0.35s ease;
  }

  .cb.is-stepped .cb-count {
    display: block;
    margin: 0 0 0.7rem;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
  }
}

@media (max-width: 40rem) {
  .cb-panel {
    padding: 1.6rem 1.25rem 1.5rem;
  }

  .cb-options,
  .cb-options-3,
  .cb-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .cb-options {
    gap: 0.6rem;
  }

  .cb-option {
    padding: 0.85rem 1rem;
  }

  .cb-text strong {
    font-size: 1.2rem;
  }

  .cb-chip span {
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
  }

  .cb-field input,
  .cb-field select,
  .cb-field textarea {
    font-size: 16px;
  }

  .cb-nav {
    padding-top: 2rem;
  }

  .cb-nav .button {
    padding: 0.95rem 1.4rem;
  }

  .cb-lead {
    font-size: 1rem;
  }
}
