/* ==========================================================
   Archi Mise en scène : feuille de style unique
   Couleurs du logo (bleu roi, or) sur crème chaud,
   tons noyer et expresso tirés du portrait.
   Titres : Cormorant Garamond. Texte : Poppins.
   Polices hébergées avec le site (dossier fonts/).
   ========================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-500-italic.woff") format("woff");
  font-weight: 500;
  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 {
  --paper: #f6eee4;
  --paper-2: #efe4d6;
  --card: #fbf6ef;
  --text: #33241b;
  --muted: rgba(51, 36, 27, 0.74);
  --ink: #1b3a8a;
  --ink-deep: #172f72;
  --gold: #c79a43;
  --gold-soft: rgba(199, 154, 67, 0.45);
  --coral: #b3342b;
  --walnut: #7a4a2a;
  --line: rgba(74, 48, 30, 0.16);

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", "Segoe UI", system-ui, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 8vw, 7rem);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

h2,
.h2-like {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 3.9vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

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

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

.section {
  padding-block: var(--section);
}

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

.section-head {
  max-width: 58rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head p {
  max-width: 50rem;
  text-wrap: pretty;
  margin: 1.1rem 0 0;
  font-size: 1.06rem;
  color: var(--muted);
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  line-height: 1.35;
  color: var(--walnut);
  max-width: 38rem;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

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

.visually-hidden,
.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.anchor {
  position: relative;
  top: -6rem;
  display: block;
}

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

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

/* ---------- Boutons et liens ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 0.95rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.1rem;
}

.text-link:hover {
  color: var(--walnut);
}

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

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

.brand img {
  width: 3rem;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}

.brand-name small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--gold);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

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

.site-nav .nav-cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
}

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

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem);
  background-image:
    linear-gradient(rgba(27, 58, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 58, 138, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.hero-sub {
  display: block;
  margin-top: 1.1rem;
  font-style: italic;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--walnut);
}

.hero-lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.06rem;
  color: var(--muted);
}

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

.hero-phone {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

@media (min-width: 48.01rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}

/* Dessin vivant au trait noir */

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

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

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

.dessin.is-drawn .s {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.55, 0, 0.25, 1) var(--d, 0s);
}

.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;
}

/* ---------- L'atelier ---------- */

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

.atelier-quote {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

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

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

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

.quote {
  margin: 0;
}

.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.3;
  color: var(--walnut);
}

.prose h2 {
  margin-bottom: 1.4rem;
}

.prose p {
  max-width: 36rem;
}

.prose .text-link {
  display: inline-block;
  margin-top: 0.6rem;
}

/* ---------- Réalisations ---------- */

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

.portrait {
  position: relative;
}

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

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 18px 40px -24px rgba(51, 36, 27, 0.55);
}

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

.portrait-intro p:not(.lead) {
  max-width: 36rem;
  color: var(--muted);
}

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

.realisation summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 1.4rem 0;
  list-style: none;
  cursor: pointer;
}

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

.realisation summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.25s;
}

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

.r-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.r-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.r-body {
  display: grid;
  grid-template-columns: minmax(0, 32rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.r-text {
  max-width: 30rem;
}

.r-facts {
  margin: 0 0 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.r-facts > div + div {
  margin-top: 1rem;
}

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

.r-facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--ink);
}

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

/* Images agrandissables */

.zoom {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.zoom img {
  width: 100%;
  box-shadow: 0 16px 36px -22px rgba(51, 36, 27, 0.5);
}

.zoom::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(246, 238, 228, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3a8a' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 1.2rem no-repeat;
  box-shadow: 0 4px 12px rgba(51, 36, 27, 0.18);
}

figcaption {
  margin-top: 0.8rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Savoir-faire ---------- */

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

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

.pillar-num {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
}

.pillars h3 {
  margin-bottom: 0.8rem;
}

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

.checklist {
  list-style: none;
  margin-top: 1.1rem;
}

.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.05rem;
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}

/* Moodboard : image et texte de même hauteur */

.craft {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  margin-top: clamp(4.5rem, 8vw, 6.5rem);
}

.moodboard .zoom {
  overflow: hidden;
  box-shadow: 0 16px 36px -22px rgba(51, 36, 27, 0.5);
}

.moodboard .zoom img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  box-shadow: none;
}

.mood-text h3 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 1.3rem;
}

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

.mood-text .checklist {
  max-width: 30rem;
}

/* IA ou architecte */

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

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

.vs-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 0.4rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.vs-row h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

.vs-row p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.vs-head {
  padding: 0.9rem 0;
}

.vs-head span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.vs-head span:last-child {
  color: var(--ink);
}

.vs-conclusion {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.compare-note {
  grid-row: 1 / span 2;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 2.1vw, 1.8rem);
  line-height: 1.3;
  color: var(--walnut);
}

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

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

/* ---------- Sélection ---------- */

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

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

.selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding-left: clamp(1.5rem, 4vw, 3rem);
}

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

.selection-text p:not(.lead) {
  max-width: 36rem;
}

.salons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
}

.selection-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 16px 36px -22px rgba(51, 36, 27, 0.5);
}

/* ---------- Partenaires ---------- */

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

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

.partners article:first-child {
  padding-left: 0;
  border-left: 0;
}

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

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

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

/* ---------- Méthode : parcours ---------- */

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

/* fil doré reliant les phases */
.route::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 1px;
  background: var(--gold-soft);
}

.route-phase {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 13rem) minmax(0, 1fr);
  gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.route-phase:last-child {
  padding-bottom: 0;
}

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

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

.route-name {
  padding-top: 0.15rem;
  font-size: clamp(1.6rem, 2.2vw, 1.9rem);
  line-height: 1.1;
}

.route-name span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
}

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

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

.route-steps h4 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.route-n {
  flex: none;
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--coral);
}

.route-steps p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Territoires ---------- */

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

.places h3 {
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold);
}

.places ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.6rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- Demande de rappel ---------- */

.section-ink {
  background: var(--ink-deep);
  color: rgba(246, 238, 228, 0.86);
}

.section-ink h2 {
  color: var(--paper);
}

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

.cb-lead {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  font-size: 1.06rem;
  color: rgba(246, 238, 228, 0.8);
}

.cb {
  max-width: 46rem;
  margin: 0 auto;
}

.cb-progress {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.cb-progress span {
  height: 2px;
  background: rgba(246, 238, 228, 0.2);
  transition: background 0.3s;
}

.cb-progress span.is-on {
  background: var(--gold);
}

.cb-count {
  display: none;
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--gold);
}

.cb.is-stepped .cb-progress {
  display: grid;
}

.cb.is-stepped .cb-count {
  display: block;
}

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

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

.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-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: var(--paper);
}

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

.cb-q {
  margin: 2.2rem 0 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper);
}

.cb-hint {
  margin: 0 0 1.6rem;
  color: rgba(246, 238, 228, 0.75);
}

/* Accord de recontact */

.cb-consent {
  position: relative;
  margin: 0 0 1.6rem;
}

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

.cb-consent label {
  position: relative;
  display: block;
  padding-left: 2rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(246, 238, 228, 0.88);
  cursor: pointer;
}

.cb-consent label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(246, 238, 228, 0.6);
  transition: background 0.2s, border-color 0.2s;
}

.cb-consent input:checked + label::before {
  border-color: var(--gold);
  background: var(--gold) 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='%23172f72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat;
}

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

.cb-consent a {
  margin-left: 0.3rem;
  color: rgba(246, 238, 228, 0.65);
  font-size: 0.85rem;
}

.cb-consent.is-missing label {
  color: #f1b7a6;
}

.cb-consent.is-missing label::before {
  border-color: #f1b7a6;
}

/* Choix uniques : liste éditoriale */

.cb-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  border-top: 1px solid rgba(246, 238, 228, 0.18);
}

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

.cb-option {
  position: relative;
  display: block;
  padding: 1rem 2rem 1rem 0;
  border-bottom: 1px solid rgba(246, 238, 228, 0.18);
  cursor: pointer;
}

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

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

.cb-text {
  display: block;
}

.cb-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--paper);
  transition: color 0.2s;
}

.cb-text small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(246, 238, 228, 0.66);
}

/* repère de sélection */
.cb-option::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: -0.425rem;
  border: 1px solid rgba(246, 238, 228, 0.45);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cb-option:hover strong {
  color: var(--gold);
}

.cb-option:has(input:checked) strong {
  color: var(--gold);
}

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

.cb-option:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Choix courts et multiples : pastilles */

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

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

.cb-chip span {
  display: inline-block;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(246, 238, 228, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(246, 238, 228, 0.92);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cb-chip:hover span {
  border-color: var(--gold);
}

.cb-chip input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-deep);
  font-weight: 500;
}

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

/* Champs */

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

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

.cb-step > .cb-fields:first-of-type {
  margin-top: 0;
}

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

.cb-field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--paper);
}

.cb-opt {
  margin-left: 0.35rem;
  font-weight: 400;
  color: rgba(246, 238, 228, 0.6);
}

.cb-field input,
.cb-field select,
.cb-field textarea {
  display: block;
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgba(246, 238, 228, 0.4);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: 400 1rem/1.4 var(--sans);
}

.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 select option {
  color: var(--text);
  background: var(--paper);
}

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

.cb-field input::placeholder,
.cb-field textarea::placeholder {
  color: rgba(246, 238, 228, 0.42);
}

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

/* Navigation */

.cb-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.6rem;
}

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

.cb-back {
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: rgba(246, 238, 228, 0.75);
  font: 400 0.95rem var(--sans);
  cursor: pointer;
}

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

.cb .button {
  margin-left: auto;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink-deep);
}

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

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

.cb-call {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(246, 238, 228, 0.18);
  text-align: center;
  font-size: 0.95rem;
}

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

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

.cb-note {
  max-width: 40rem;
  margin: 0.8rem auto 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(246, 238, 228, 0.6);
}

/* ---------- Pages intérieures ---------- */

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

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

.page h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}

.page h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 2.4rem 0 0.7rem;
}

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

.intro {
  font-size: 1.1rem;
}

.page-cta {
  margin-top: 2.5rem;
}

.faq {
  margin-top: 2rem;
}

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

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

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

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

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

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

.faq details p {
  padding-bottom: 1.3rem;
  margin: 0;
}

/* ---------- Pied de page ---------- */

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.footer-logo {
  width: 12rem;
}

.footer-tagline {
  max-width: 20rem;
  margin-top: 1rem;
}

.footer-title {
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: var(--ink);
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-footer a:hover {
  color: var(--ink);
  border-color: var(--gold);
}

.footer-grid > div:first-child a {
  border: 0;
}

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

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

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

.mobile-cta {
  display: none;
}

/* ---------- Visionneuse ---------- */

.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.84);
}

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

.lightbox-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  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;
}

/* ==========================================================
   Écrans moyens
   ========================================================== */

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

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

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

@media (max-width: 64rem) {
  .site-nav li:not(:last-child) {
    display: none;
  }

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

  .partners article,
  .partners article:first-child {
    padding: 1.6rem 0 1.4rem;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .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;
  }
}

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

  .r-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .craft {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  }

  .selection {
    grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  }

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

  .atelier-quote {
    max-width: 40rem;
  }
}

@media (max-width: 44rem) {
  .portrait-intro,
  .r-body,
  .craft,
  .selection {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait-intro .portrait {
    max-width: 20rem;
  }

  .r-body,
  .craft {
    gap: 1.8rem;
  }

  .moodboard {
    max-width: 28rem;
  }
}

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

  .compare-note {
    grid-row: auto;
  }

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

  .selection {
    padding-left: 0;
  }

  #selection::before {
    bottom: auto;
    width: 100%;
    height: 1.5rem;
    border-right: 0;
    border-bottom: 2px solid var(--gold);
    box-shadow: none;
  }

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

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

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

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

/* ==========================================================
   Téléphones
   ========================================================== */

@media (max-width: 48rem) {
  body {
    padding-bottom: calc(3.6rem + env(safe-area-inset-bottom));
  }

  html {
    scroll-padding-bottom: 4.5rem;
  }

  .site-nav {
    display: none;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px -12px rgba(51, 36, 27, 0.35);
  }

  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.6rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
  }

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

  .route::before {
    left: 1.25rem;
    top: 1.25rem;
  }

  .route-phase {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 1.2rem 1rem;
  }

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

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

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

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

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

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

@media (max-width: 40rem) {
  .brand img {
    width: 2.5rem;
  }

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

  .site-header .wrap {
    min-height: 3.9rem;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-phone {
    margin-inline: auto;
  }

  .atelier-quote {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 1rem;
  }

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

  .vs-head {
    display: none;
  }

  .vs-row p:nth-of-type(1)::before {
    content: "Image générée par IA : ";
    font-weight: 500;
  }

  .vs-row p:nth-of-type(2)::before {
    content: "Notre projet : ";
    font-weight: 500;
    color: var(--ink);
  }

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

  .cb .button {
    flex: 1;
  }

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

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

  .cb-call a {
    display: block;
    margin: 0.3rem 0 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
