/* Cap’ — feuille de style du site
   Couleurs et typographies issues de la charte Cap’. */

@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Baskervville"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/baskervville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Baskervville"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/baskervville-latin-400-italic.woff2") format("woff2"); }

:root {
  --papier: #F4EFE6;
  --beige: #E6DED1;
  --balt-blanc: #DDD6CB;
  --brun: #4A382B;
  --dreche: #8A6E55;
  --encre: #2A211B;
  --texte: #4A3F37;
  --mention: #6A5E54;
  --filet: #D8CFC2;
  --champ: #C9BDAB;
  --serif: "Baskervville", "Libre Baskerville", Georgia, serif;
  --sans: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  --marge: 48px;
  --largeur: 1344px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--sans); font-size: 16px; line-height: 1.6; font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; }
a { color: var(--encre); }
a:hover { color: var(--dreche); }
:focus-visible { outline: 2px solid var(--brun); outline-offset: 3px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding-left: var(--marge); padding-right: var(--marge); }
.mention { margin: 0; font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--mention); }
.mention--forte { font-weight: 900; }
.titre { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 50px; }
.texte { margin: 0; color: var(--texte); }
.visuel { position: relative; overflow: hidden; background: var(--beige); }
.visuel img { width: 100%; height: 100%; object-fit: cover; }

/* Boutons */
.bouton { display: inline-block; background: var(--brun); color: var(--papier); text-decoration: none; padding: 18px 32px; border: 0; border-radius: 2px; font-family: var(--sans); font-size: 15px; line-height: 20px; font-weight: 600; cursor: pointer; }
.bouton:hover { background: var(--encre); color: var(--papier); }
.bouton--contour { background: transparent; color: var(--brun); border: 1px solid var(--brun); padding: 11px 18px; font-size: 14px; }
.bouton--contour:hover { background: var(--brun); color: var(--papier); }

/* En-tête */
.entete { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.signature { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brun); }
.signature img { height: 30px; width: auto; }
.signature .logo-clair { display: none; }
.signature span { font-weight: 900; font-size: 26px; line-height: 26px; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--brun); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--brun); border-radius: 2px; padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--brun); background: rgba(244, 239, 230, .85); }
.menu summary::-webkit-details-marker { display: none; }
.menu__liste { position: absolute; right: 0; top: calc(100% + 8px); background: var(--papier); border: 1px solid var(--filet); display: flex; flex-direction: column; min-width: 230px; padding: 6px 0; }
.menu__liste a { padding: 14px 20px; text-decoration: none; font-size: 15px; }
.menu__liste a:last-child { font-weight: 600; color: var(--brun); }

/* Ouverture */
.ouverture { position: relative; min-height: 820px; min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--beige); overflow: hidden; }
.ouverture picture, .ouverture__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ouverture__contenu { position: relative; width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 72px; }
.ouverture h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8vw, 110px); line-height: .95; letter-spacing: -.02em; transform: translateY(28px); }
.ouverture__achat { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ouverture__edition { color: var(--brun); font-weight: 600; }

/* Introduction */
.intro { max-width: 1000px; margin: 0 auto; padding: 160px var(--marge); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.intro__accroche { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 4vw, 52px); line-height: 1.2; }
.intro .texte { font-size: 17px; line-height: 28px; max-width: 600px; }

/* Sections produit */
.objet { padding-bottom: 160px; display: flex; flex-direction: column; gap: 140px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 72px; align-items: center; }
.duo__texte { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.duo .visuel { aspect-ratio: 4 / 5; }
.serie .duo .visuel { aspect-ratio: 1 / 1; }
.duo .visuel--paysage { aspect-ratio: 5 / 4; }

.coloris { padding-bottom: 160px; }
.coloris__entete { max-width: 720px; margin: 0 auto; padding: 0 var(--marge) 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.coloris__entete .texte { font-size: 17px; line-height: 28px; }
.coloris__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 8px; }
.coloris figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.coloris .visuel { aspect-ratio: 4 / 5; }
.coloris figcaption { text-align: center; }

.serie { padding-bottom: 160px; }

/* Fabrication */
.fabrication { background: var(--brun); color: var(--papier); }
.fabrication__contenu { padding-top: 112px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 56px; }
.fabrication .titre { max-width: 760px; }
.fabrication .mention { color: var(--papier); }
.lieux { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.lieu { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--dreche); padding-top: 20px; }
.lieu p { margin: 0; }
.lieu__nom { font-size: 20px; line-height: 28px; font-weight: 500; }
.lieu__role { font-size: 15px; line-height: 24px; color: var(--beige); }
.fabrication__photo { aspect-ratio: 2 / 1; background: #3A2C22; }

/* Designer */
.designer { max-width: 1000px; margin: 0 auto; padding: 96px var(--marge) 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 56px; align-items: center; }
.designer .visuel { aspect-ratio: 4 / 5; max-width: 360px; width: 100%; }
.designer__texte { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.designer .titre { font-size: 36px; line-height: 42px; }

/* Fiche technique */
.fiche { padding-top: 112px; padding-bottom: 112px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; }
.plan { margin: 16px 0 0; position: relative; aspect-ratio: 560 / 345; }
.plan img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cote { position: absolute; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.cote--l { left: 24%; top: 10.5%; transform: translate(-50%, -130%); }
.cote--p { left: 60.6%; top: 10.5%; transform: translate(-50%, -130%); }
.cote--h { left: 79.5%; top: 59.2%; transform: translate(0, -50%); }
.caracteristiques { margin: 0; display: grid; grid-template-columns: minmax(120px, 200px) 1fr; border-top: 1px solid var(--filet); line-height: 24px; }
.caracteristiques dt { padding: 18px 0; border-bottom: 1px solid var(--filet); }
.caracteristiques dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--filet); }

/* Précommande */
.precommande { border-top: 1px solid var(--filet); }
.precommande__grille { padding-top: 128px; padding-bottom: 128px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 80px; align-items: start; }
.precommande__infos { display: flex; flex-direction: column; gap: 28px; }
.precommande h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 76px; line-height: 76px; letter-spacing: -.01em; }
.prix { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: .02em; }
.prix span { font-weight: 400; color: var(--mention); }
.etapes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--filet); }
.etapes li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--filet); line-height: 24px; }
.etapes .mention { padding-top: 3px; }

/* Formulaire */
.formulaire { display: flex; flex-direction: column; gap: 28px; background: var(--beige); padding: 44px; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ label, .formulaire legend { font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--mention); font-weight: 500; }
.champ input, .champ textarea { font-family: var(--sans); font-size: 16px; color: var(--encre); background: var(--papier); border: 1px solid var(--champ); border-radius: 2px; padding: 13px 14px; resize: vertical; width: 100%; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--brun); outline-offset: 1px; }
.formulaire fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.formulaire legend { padding: 0 0 10px; }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pastille { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid var(--champ); border-radius: 2px; padding: 12px 16px; min-height: 48px; font-size: 15px; cursor: pointer; background: var(--papier); }
.pastille input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pastille:has(input:checked) { border-color: var(--brun); box-shadow: inset 0 0 0 1px var(--brun); }
.pastille:has(input:focus-visible) { outline: 2px solid var(--brun); outline-offset: 1px; }
.pastille__couleur { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.coche { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--mention); }
.coche input { width: 18px; height: 18px; accent-color: var(--brun); margin: 1px 0 0; flex: none; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .bouton { min-height: 54px; }
.formulaire .bouton:disabled { opacity: .6; cursor: wait; }
.statut { margin: 0; font-size: 15px; line-height: 22px; }
.statut:empty { display: none; }
.statut--ok { padding: 16px; background: var(--papier); border-left: 3px solid var(--brun); }
.statut--erreur { padding: 16px; background: var(--papier); border-left: 3px solid #9B3B2A; }

/* Pied de page */
.pied { border-top: 1px solid var(--filet); }
.pied__contenu { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.pied__signature { display: flex; align-items: flex-end; gap: 16px; color: var(--brun); }
.pied__signature img { height: 56px; width: auto; }
.pied__signature strong { display: block; font-weight: 900; font-size: 28px; line-height: 28px; letter-spacing: -.02em; }
.pied__signature span { font-family: var(--serif); font-size: 17px; line-height: 22px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }

/* Pages légales */
.legal-entete { border-bottom: 1px solid var(--filet); }
.legal-entete .entete__barre { padding-top: 18px; padding-bottom: 18px; }
.legal { max-width: 760px; margin: 0 auto; padding: 96px var(--marge) 128px; }
.legal h1 { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 66px; letter-spacing: -.01em; }
.legal h2 { margin: 56px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 36px; }
.legal h3 { margin: 24px 0 6px; font-size: 15px; line-height: 22px; font-weight: 600; }
.legal p, .legal li { font-size: 15px; line-height: 26px; color: var(--texte); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal a { color: var(--brun); }
.encadre { border: 1px solid var(--champ); padding: 24px 28px; margin: 16px 0; }

/* Téléphone */
@media (max-width: 640px) {
  :root { --marge: 20px; }
  .nav { display: none; }
  .menu { display: block; }
  .entete__barre { padding-top: 14px; padding-bottom: 14px; }
  .titre { font-size: 34px; line-height: 40px; }
  .ouverture { min-height: 0; display: block; background: var(--papier); }
  .ouverture picture { position: relative; display: block; aspect-ratio: 1 / 1; }
  .ouverture__contenu { flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 36px; padding-bottom: 8px; }
  .ouverture h1 { font-size: 54px; transform: none; }
  .ouverture__achat { width: 100%; }
  .ouverture__achat .bouton { width: 100%; text-align: center; }
  .intro { padding: 88px var(--marge); }
  .objet { padding-bottom: 88px; gap: 72px; }
  .duo { gap: 28px; }
  .duo--inverse .duo__texte { order: 1; }
  .coloris { padding-bottom: 88px; }
  .coloris__entete { padding-bottom: 32px; }
  .coloris__grille { grid-template-columns: 1fr 1fr; }
  .serie { padding-bottom: 88px; }
  .fabrication__contenu { padding-top: 72px; padding-bottom: 48px; gap: 36px; }
  .fabrication__photo { aspect-ratio: 3 / 2; }
  .designer { padding: 72px var(--marge) 24px; gap: 28px; }
  .fiche { padding-top: 72px; padding-bottom: 72px; gap: 32px; }
  .caracteristiques { grid-template-columns: 1fr; }
  .caracteristiques dt { padding: 16px 0 0; border-bottom: 0; }
  .caracteristiques dd { padding: 4px 0 16px; }
  .precommande__grille { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  .precommande h2 { font-size: 44px; line-height: 46px; }
  .formulaire { padding: 24px; }
  .pied__contenu { padding-top: 40px; padding-bottom: 40px; }
  .legal { padding-top: 56px; padding-bottom: 88px; }
  .legal h1 { font-size: 40px; line-height: 44px; }
}

/* Navigation des pages légales */
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.legal-nav a { color: var(--brun); text-decoration: none; }
.legal-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.legal-nav .bouton--contour:hover { color: var(--papier); }
@media (max-width: 640px) { .legal-nav a:not(.bouton) { display: none; } }

/* Mention du fabricant, en bas du pied de page */
.pied__fabricant { flex-basis: 100%; margin: -16px 0 0; font-size: 11px; line-height: 16px; color: var(--mention); text-align: right; }
@media (max-width: 640px) { .pied__fabricant { text-align: left; } }

/* Voile léger sur la photo pleine largeur de la section Fabrication */
.fabrication__photo::after { content: ""; position: absolute; inset: 0; background: rgba(74, 56, 43, .28); pointer-events: none; }
