/* Maison Rosendaël, vitrine (maisonrosendael.fr). Papier, encre et rose ancien ; Cormorant Garamond pour les titres, Source Serif 4
   pour le texte (licence OFL, servies d'ici : polices/LICENCES.txt). Clair et sombre selon le système, ou forcés par data-theme. */
@font-face { font-family: "Cormorant Garamond"; src: url("/polices/cormorant.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/polices/cormorant-italique.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/polices/source-serif.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/polices/source-serif-italique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --fond: #f4efe6; --papier: #fffdf8; --encre: #2b2620; --doux: #6b6258; --filet: #e3d9c8; --rose: #8a3b4a; --rose-fond: #f3e4e2; --sur-rose: #fffdf8;
  --ombre: 0 1px 2px rgba(60, 40, 20, .08), 0 10px 30px rgba(60, 40, 20, .08);
  --titre: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif; --texte: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mesure: 40rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --fond: #1b1815; --papier: #24201c; --encre: #eee6da; --doux: #b3a797; --filet: #3b342d; --rose: #dc97a4; --rose-fond: #3a2a2c; --sur-rose: #1b1815;
  --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3); color-scheme: dark; } }
:root[data-theme="dark"] {
  --fond: #1b1815; --papier: #24201c; --encre: #eee6da; --doux: #b3a797; --filet: #3b342d; --rose: #dc97a4; --rose-fond: #3a2a2c; --sur-rose: #1b1815;
  --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--encre); font: 1.125rem/1.68 var(--texte); font-optical-sizing: auto; text-rendering: optimizeLegibility; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evite { position: absolute; left: -9999px; top: 8px; background: var(--papier); padding: 8px 14px; z-index: 10; }
.evite:focus { left: 16px; }

/* en-tête */
.tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 72rem; margin: 0 auto; padding: 20px 24px; }
.marque { font: 600 1.05rem/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--encre); text-decoration: none; }
.marque span { color: var(--rose); }
.tete nav { display: flex; gap: 22px; font: .95rem/1 var(--sans); }
.tete nav a { color: var(--doux); text-decoration: none; }
.tete nav a:hover { color: var(--encre); }
@media (max-width: 640px) { .tete nav a:not(.bouton) { display: none; } }

/* boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--sans); padding: 14px 24px; border-radius: 999px; text-decoration: none;
  background: var(--rose); color: var(--sur-rose); border: 1px solid var(--rose); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.bouton:hover { transform: translateY(-1px); box-shadow: var(--ombre); }
.bouton.second { background: transparent; color: var(--encre); border-color: var(--filet); }
.tete .bouton { padding: 10px 18px; font-size: .92rem; color: var(--sur-rose); }

/* ouverture */
.ouverture { max-width: 72rem; margin: 0 auto; padding: 56px 24px 72px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.ouverture h1 { font: 500 clamp(2.6rem, 6vw, 4.6rem)/1.02 var(--titre); letter-spacing: -.01em; margin: 0 0 22px; }
.ouverture h1 em { color: var(--rose); font-style: italic; }
.ouverture .lede { font-size: 1.25rem; color: var(--doux); max-width: 32rem; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eventail { width: 100%; height: auto; color: var(--rose); }
@media (max-width: 860px) { .ouverture { grid-template-columns: 1fr; padding-top: 24px; gap: 28px; } .eventail { max-width: 420px; justify-self: center; order: -1; } }

/* sections */
.section { padding: 80px 24px; }
.section.papier { background: var(--papier); border-block: 1px solid var(--filet); }
.colonne { max-width: var(--mesure); margin: 0 auto; }
.large { max-width: 72rem; margin: 0 auto; }
.surtitre { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin: 0 0 14px; }
h2 { font: 500 clamp(2rem, 4.2vw, 3rem)/1.08 var(--titre); margin: 0 0 18px; }
h3 { font: 600 1.55rem/1.2 var(--titre); margin: 40px 0 10px; }
.chapeau { font-size: 1.2rem; color: var(--doux); margin: 0 0 36px; }
p { margin: 0 0 1.1em; }

/* récit */
.recit p { hyphens: auto; }
.recit .lettrine::first-letter { float: left; font: 500 4.6rem/.82 var(--titre); color: var(--rose); padding: 6px 10px 0 0; }
.source { display: block; font: .82rem/1.45 var(--sans); color: var(--doux); margin-top: -.5em; margin-bottom: 1.4em; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0 32px; border: 1px solid var(--filet); border-radius: 14px; overflow: hidden; background: var(--fond); }
.section:not(.papier) .deux { background: var(--papier); }
.deux > div { padding: 18px 20px; }
.deux > div + div { border-left: 1px solid var(--filet); }
.deux h4 { font: 600 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); margin: 0 0 8px; }
.deux p { font-size: 1rem; margin: 0; }
@media (max-width: 600px) { .deux { grid-template-columns: 1fr; } .deux > div + div { border-left: 0; border-top: 1px solid var(--filet); } }
.sceau { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; vertical-align: .2em; white-space: nowrap; }
.sceau::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sceau.prouve { color: var(--sur-rose); background: var(--rose); }
.sceau.probable { color: var(--rose); border: 1px solid var(--rose); }
.sceau.hypothese { color: var(--doux); border: 1px dashed var(--doux); }
.sceau.hypothese::before { background: transparent; border: 1px dashed currentColor; }
.bilan { margin-top: 36px; padding: 22px 24px; border-left: 3px solid var(--rose); background: var(--rose-fond); border-radius: 0 12px 12px 0; }
.bilan p:last-child { margin: 0; }

/* offre */
.marches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 24px; }
.marche { background: var(--papier); border: 1px solid var(--filet); border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ombre); }
.section.papier .marche { background: var(--fond); }
.marche h3 { margin: 0; font-size: 1.9rem; }
.prix { font: 500 2.2rem/1 var(--titre); color: var(--rose); margin: 0; }
.prix small { font: .9rem/1 var(--sans); color: var(--doux); }
.marche p { margin: 0; font-size: 1rem; }
.marche .objet { color: var(--doux); font-size: .95rem; border-top: 1px solid var(--filet); padding-top: 12px; margin-top: auto; }
.firmament { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; background: var(--encre); color: var(--fond); border-radius: 18px; padding: 28px 30px; margin: 0 0 24px; }
.firmament h3 { margin: 0; color: var(--fond); font-size: 1.9rem; }
.firmament p { margin: 0; color: color-mix(in srgb, var(--fond) 80%, transparent); font-size: 1rem; }
.firmament .prix { color: var(--fond); grid-row: 1 / span 2; grid-column: 2; text-align: right; }
.firmament .prix small { color: color-mix(in srgb, var(--fond) 70%, transparent); display: block; margin-top: 6px; }
@media (max-width: 860px) { .marches { grid-template-columns: 1fr; } .firmament { grid-template-columns: 1fr; } .firmament .prix { grid-row: auto; grid-column: auto; text-align: left; } }
.carte-prix { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 8px 0 16px; }
.carte-prix td { padding: 10px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.carte-prix td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
.note { font: .88rem/1.5 var(--sans); color: var(--doux); }

/* méthode */
.principes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; margin-top: 12px; }
.principes h3 { margin: 0 0 8px; font-size: 1.45rem; }
.principes p { font-size: 1rem; margin: 0; }
@media (max-width: 760px) { .principes { grid-template-columns: 1fr; } }

/* questions */
details.q { border-bottom: 1px solid var(--filet); }
details.q summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 1.25rem/1.3 var(--titre); }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--sans); color: var(--rose); }
details.q[open] summary::after { content: "–"; }
details.q p { font-size: 1.02rem; color: var(--encre); margin: 0 0 18px; }

/* formulaire */
.formulaire { background: var(--papier); border: 1px solid var(--filet); border-radius: 20px; padding: 32px; box-shadow: var(--ombre); display: grid; gap: 16px; }
.formulaire label { display: grid; gap: 6px; font: 600 .92rem/1.2 var(--sans); }
.formulaire label span { font-weight: 400; color: var(--doux); }
.formulaire input, .formulaire textarea { font: 1.05rem/1.4 var(--texte); color: var(--encre); background: var(--fond); border: 1px solid var(--filet); border-radius: 10px; padding: 12px 14px; width: 100%; }
.formulaire input:focus, .formulaire textarea:focus { border-color: var(--rose); outline: 2px solid color-mix(in srgb, var(--rose) 35%, transparent); outline-offset: 0; }
.formulaire .bouton { justify-self: start; }
.formulaire .note { margin: 0; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .deux-champs { grid-template-columns: 1fr; } .formulaire { padding: 22px 18px; } }

/* pied */
.pied { max-width: 72rem; margin: 0 auto; padding: 48px 24px 56px; display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; font: .9rem/1.6 var(--sans); color: var(--doux); }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
.pied a { color: var(--doux); }
.pied p { margin: 0; }
@media (max-width: 700px) { .pied { grid-template-columns: 1fr; } .pied nav { justify-content: flex-start; } }

/* pages de texte (conditions, mentions, confidentialité) */
.texte-legal { max-width: 44rem; margin: 0 auto; padding: 32px 24px 64px; }
.texte-legal h1 { font: 500 clamp(2.2rem, 5vw, 3.2rem)/1.08 var(--titre); margin: 0 0 8px; }
.texte-legal .maj { font: .9rem/1.4 var(--sans); color: var(--doux); margin: 0 0 32px; }
.texte-legal h2 { font-size: 1.7rem; margin: 40px 0 12px; }
.texte-legal h3 { font-size: 1.3rem; margin: 28px 0 8px; }
.texte-legal p, .texte-legal li { font-size: 1.02rem; }
.texte-legal ul, .texte-legal ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.texte-legal li { margin-bottom: .4em; }
.texte-legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .95rem; }
.texte-legal th, .texte-legal td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--filet); }
.texte-legal th { font: 600 .8rem/1.3 var(--sans); letter-spacing: .04em; color: var(--doux); }
.encadre { background: var(--papier); border: 1px solid var(--filet); border-radius: 14px; padding: 18px 22px; margin: 16px 0 24px; }
.a-completer { background: #fde9a8; color: #4a3b00; padding: 0 4px; border-radius: 3px; font-family: var(--sans); font-size: .9em; }
@media (max-width: 600px) { .texte-legal table, .texte-legal thead, .texte-legal tbody, .texte-legal tr, .texte-legal th, .texte-legal td { display: block; } .texte-legal thead { display: none; } .texte-legal td { border: 0; padding: 2px 0; } .texte-legal tr { border-bottom: 1px solid var(--filet); padding: 10px 0; } }

/* bientôt */
.bientot { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 24px; }
.bientot h1 { font: 500 clamp(2.4rem, 7vw, 4.4rem)/1.05 var(--titre); margin: 18px 0 14px; }
.bientot p { color: var(--doux); margin: 0 auto 10px; max-width: 30rem; }
.bientot .petit { font: .85rem/1.5 var(--sans); margin-top: 40px; }

/* au lieu d'attributs style= (interdits par la politique de sécurité) */
.chapeau.etroit { max-width: 44rem; }
.large.moyen { max-width: 56rem; }
.eventail .centre { fill: var(--papier); }
.bientot h1 em { color: var(--rose); font-style: italic; }
.marche .prix, .firmament .prix { font-size: 2.4rem; }
.formulaire .lib { font-weight: 600; color: var(--encre); } .formulaire .lib span { font-weight: 400; color: var(--doux); }
