/* Resapax — vitrine, même famille visuelle que Staffy (getstaffy.fr) */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --creme: #f7f1e3; --creme-2: #efe7d4; --papier: #fffdf8; --encre: #1a1a1a; --gris: #5f5a50; --ligne: #e4dccb;
  --or: #b19763; --or-fonce: #7d6538;
  --lilas: #c3aee9; --rose: #f4b6c2; --peche: #f9bb98; --jaune: #f9dc93; --vert: #b9d3b8; --bleu: #a6cfe8;
  --err: #9b2c20; --err-bg: #f6e1dc;
  --arc: linear-gradient(90deg, var(--lilas), var(--rose), var(--peche), var(--jaune), var(--vert), var(--bleu));
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--encre); background: var(--creme); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }
h1 em, h2 em { color: var(--or-fonce); font-style: italic; }
p { margin: 0 0 1em; }
a { color: var(--or-fonce); }
a:hover { color: var(--encre); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--papier); padding: .6rem 1rem; }
.muted { color: var(--gris); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--or-fonce); margin: 0 0 .9rem; }
.center { text-align: center; }
.center h2 { margin-inline: auto; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; background: var(--encre); color: var(--creme); font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--encre); cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { background: #333; border-color: #333; color: var(--creme); }
.btn-ghost { background: transparent; color: var(--encre); }
.btn-ghost:hover { background: var(--encre); color: var(--creme); }
.btn-small { min-height: 42px; padding: .45em 1.15em; font-size: .95rem; white-space: nowrap; }
.btn-light { background: var(--creme); color: var(--encre); border-color: var(--creme); }
.btn-light:hover { background: var(--papier); color: var(--encre); border-color: var(--papier); }

/* En-tête */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(247, 241, 227, .93); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.head-row { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.logo { font-family: var(--sans); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; text-decoration: none; background: var(--arc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover { color: transparent; }
.main-nav { display: flex; gap: 1.6rem; margin-left: .5rem; }
.main-nav a { color: var(--encre); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--or-fonce); }
.site-head .btn { margin-left: auto; }
@media (max-width: 800px) { .main-nav { display: none; } }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.lead { font-size: 1.12rem; color: var(--gris); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin: 1.6rem 0 .9rem; }
.hero-actions .link { font-weight: 700; color: var(--encre); }
.hero-note { color: var(--gris); font-size: .93rem; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

/* Fenêtre d'application (comme les captures de Staffy) */
.appwin { margin: 0; background: var(--papier); border-radius: 16px; box-shadow: 0 30px 70px rgba(60, 45, 20, .16), 0 2px 0 rgba(0, 0, 0, .03); overflow: hidden; border: 1px solid var(--ligne); }
.appbar { display: flex; align-items: center; gap: .45rem; padding: .65rem .9rem; background: var(--creme-2); font-size: .78rem; color: var(--gris); }
.appbar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.appbar i:nth-child(1) { background: #f4a5a0; } .appbar i:nth-child(2) { background: #f6d28a; } .appbar i:nth-child(3) { background: #a9d3a6; }
.appbar span { margin-left: .5rem; }

/* Plan de salle animé */
.plan { padding: 1.1rem 1.1rem .9rem; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.plan-day { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.plan-count { color: var(--gris); font-size: .9rem; font-variant-numeric: tabular-nums; }
.plan-count [data-count] { color: var(--encre); font-weight: 800; }
.plan-incoming { height: 46px; margin-bottom: .7rem; position: relative; }
.ticket { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .7rem; height: 42px; padding: 0 .95rem; border-radius: 10px; background: var(--encre); color: var(--creme); font-size: .92rem; white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.ticket .tk-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--jaune); }
.ticket .tk-name { font-family: var(--hand); font-size: 1.35rem; line-height: 1; }
.ticket .tk-note { color: #cfc6b2; font-size: .82rem; }
.plan-done { margin: 0; height: 42px; display: flex; align-items: center; font-weight: 700; color: var(--or-fonce); }
.plan-rooms { display: grid; grid-template-columns: 1.25fr 1fr; gap: .8rem; }
.room { border-radius: 12px; padding: .7rem; background: var(--creme); }
.room-name { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or-fonce); }
.tables { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.t { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 62px; border: 1.5px dashed #d6ccb6; border-radius: 10px; background: var(--papier); transition: background-color .4s ease, border-color .4s ease; }
.t b { position: absolute; top: 4px; left: 8px; font-size: .72rem; color: var(--gris); font-weight: 700; }
.t i { font-style: normal; font-family: var(--hand); font-size: 1.3rem; line-height: 1.05; text-align: center; padding: 0 .3rem; }
.t i small { display: block; font-family: var(--sans); font-size: .7rem; color: #4d473c; }
.t6, .t8 { grid-column: span 2; }
.t.full { border-style: solid; border-color: transparent; }
.t.full.c1 { background: var(--lilas); } .t.full.c2 { background: var(--rose); } .t.full.c3 { background: var(--peche); }
.t.full.c4 { background: var(--jaune); } .t.full.c5 { background: var(--vert); } .t.full.c6 { background: var(--bleu); }
.t.land { animation: land .5s ease; }
@keyframes land { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.appwin figcaption { font-size: .78rem; color: var(--gris); padding: 0 1.1rem .9rem; }
@media (max-width: 480px) { .plan-rooms { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .t.land { animation: none; } .t { transition: none; } }

/* Bande d'arguments */
.bande { padding: 0 0 1rem; }
.bande ul { list-style: none; margin: 0; padding: 1.1rem 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; background: var(--papier); border: 1px solid var(--ligne); border-radius: 999px; }
.bande li { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .98rem; }
@media (max-width: 760px) { .bande ul { border-radius: 18px; } }

/* Blocs */
.bloc { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.bloc.alt { background: var(--papier); }
.bloc-lead { color: var(--gris); font-size: 1.08rem; max-width: 40rem; margin-bottom: 2.4rem; }
.center .bloc-lead { margin-inline: auto; }

/* Cartes de fonctions */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card { background: var(--papier); border: 1px solid var(--ligne); border-radius: 18px; padding: 1.5rem; }
.card p { margin: 0; color: var(--gris); font-size: .97rem; }
.card h3 { margin-top: .9rem; }
.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.ico svg { width: 20px; height: 20px; }
.ico.c1 { background: var(--lilas); } .ico.c2 { background: var(--rose); } .ico.c3 { background: var(--peche); }
.ico.c4 { background: var(--jaune); } .ico.c5 { background: var(--vert); } .ico.c6 { background: var(--bleu); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Listes cochées */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.4 2.4L12 5.2' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.checks strong { font-weight: 700; }

/* Une soirée */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.2rem; padding: 1.1rem 0; border-top: 1px solid var(--ligne); }
.timeline li:last-child { border-bottom: 1px solid var(--ligne); }
.timeline time { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.timeline time span { display: inline-block; padding: .15rem .55rem; border-radius: 8px; }
.timeline li:nth-child(1) time span { background: var(--lilas); } .timeline li:nth-child(2) time span { background: var(--rose); }
.timeline li:nth-child(3) time span { background: var(--peche); } .timeline li:nth-child(4) time span { background: var(--jaune); }
.timeline li:nth-child(5) time span { background: var(--vert); } .timeline li:nth-child(6) time span { background: var(--bleu); }
.timeline h3 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: .25rem; }
.timeline p { margin: 0; color: var(--gris); font-size: .97rem; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

/* Bloc sombre */
.histoire { background: var(--encre); color: var(--creme); }
.histoire .eyebrow { color: var(--jaune); }
.histoire h2 { color: var(--creme); }
.histoire p { color: #d9d1bf; max-width: 40rem; font-size: 1.05rem; }
.histoire a { color: var(--jaune); }

/* Comparatif */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 600; margin-bottom: .8rem; color: var(--gris); }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
thead th { font-size: .92rem; color: var(--gris); font-weight: 600; }
tbody th { font-weight: 600; }
.compare { max-width: 54rem; background: var(--papier); border: 1px solid var(--ligne); border-radius: 18px; padding: 1.2rem 1.2rem .4rem; }
.compare thead th:nth-child(2), .compare tbody td:nth-child(2) { background: #f3ecdc; }
.compare thead th:nth-child(2) { color: var(--encre); font-weight: 800; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.source { font-size: .86rem; color: var(--gris); margin-top: .9rem; }
.aside { max-width: 44rem; margin-top: 1.8rem; color: var(--gris); }

/* Tarif */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 60rem; margin: 0 auto; }
.price { position: relative; background: var(--creme); border: 1px solid var(--ligne); border-radius: 18px; padding: 2.1rem 1.8rem 1.8rem; display: flex; flex-direction: column; overflow: hidden; }
.price::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--arc); }
.price h3 { margin-bottom: .2rem; }
.price-main { background: var(--papier); box-shadow: 0 24px 60px rgba(60, 45, 20, .14); }
.amount { display: flex; align-items: flex-start; gap: .6rem; font-family: var(--serif); font-weight: 700; font-size: 3.4rem; line-height: 1; margin: .5rem 0 .4rem; font-variant-numeric: tabular-nums; }
.amount span { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--gris); line-height: 1.3; margin-top: .45rem; max-width: 9rem; }
.per-month { margin: 0 0 .2rem; font-weight: 700; color: var(--or-fonce); }
.badge { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .75rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--jaune); }
.price .checks { margin: 1.2rem 0 1.6rem; flex: 1; }
.price .btn { align-self: flex-start; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }
.yearly { max-width: 46rem; margin: 3rem auto 0; }
.yearly td strong { font-weight: 800; }
.included { max-width: 60rem; margin: 3rem auto 0; }
.included h3 { text-align: center; }
.included .checks { columns: 2 20rem; column-gap: 2.5rem; margin-top: 1.4rem; }
.included .checks li { break-inside: avoid; }
.soon { color: var(--gris); background: var(--creme); border-radius: 12px; padding: .9rem 1.1rem; margin-top: 1rem; font-size: .95rem; }

/* Questions */
.faq { max-width: 52rem; margin: 0 auto; }
.faq details { background: var(--papier); border: 1px solid var(--ligne); border-radius: 14px; margin-bottom: .7rem; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .75rem; font-size: 1.5rem; font-weight: 400; color: var(--or-fonce); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.1rem; color: var(--gris); }

/* Dernier bloc : formulaire */
.final { background: var(--encre); color: var(--creme); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.final h2 { color: var(--creme); }
.final .eyebrow { color: var(--jaune); }
.final-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.final-grid > div p { color: #d9d1bf; max-width: 30rem; }
.final a:not(.btn) { color: var(--jaune); }
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; } }

.form { background: var(--papier); color: var(--encre); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1rem; }
.page .form { border: 1px solid var(--ligne); }
.form a { color: var(--or-fonce) !important; }
.form-narrow { max-width: 26rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--gris); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form select, .form textarea { width: 100%; font: inherit; font-weight: 400; font-size: 1rem; padding: .7rem .85rem; min-height: 48px; border: 1px solid #d3c9b3; border-radius: 10px; background: #fff; color: var(--encre); }
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--or-fonce); outline: 3px solid rgba(177, 151, 99, .35); outline-offset: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.choice legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.form .choice label, .form .consent { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; }
.form input[type=radio], .form input[type=checkbox] { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--encre); flex: none; }
.consent { font-size: .92rem; color: var(--gris); }
.form .btn { justify-self: start; }
.form-errors { background: var(--err-bg); color: var(--err); border-radius: 10px; padding: .8rem 1rem; }
.form-errors p { margin: 0 0 .3rem; font-weight: 700; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pages simples */
.band.page { padding: clamp(3rem, 6vw, 5rem) 0; }
.page .wrap { max-width: 860px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.lead-page { font-size: 1.1rem; color: var(--gris); }

/* Administration */
.admin .wrap { max-width: 1180px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.filters a[aria-current] { font-weight: 700; color: var(--encre); text-decoration: none; }
.table-scroll { overflow-x: auto; background: var(--papier); border: 1px solid var(--ligne); border-radius: 16px; }
.admin-table { min-width: 760px; font-size: .95rem; }
.admin-table select { font: inherit; padding: .4rem; border-radius: 8px; border: 1px solid #d3c9b3; }
.empty { background: var(--papier); border: 1px dashed #d3c9b3; border-radius: 16px; padding: 2rem; color: var(--gris); }

/* Pied de page */
.site-foot { background: var(--creme-2); color: var(--gris); padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-foot a { color: var(--encre); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.foot-brand { display: inline-block; margin-bottom: .4rem; }
.foot-title { color: var(--encre); font-weight: 700; margin-bottom: .5rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .35rem; }
.foot-legal { border-top: 1px solid var(--ligne); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.bande li::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: none; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.4 2.4L12 5.2' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.bande li:nth-child(2)::before { background-color: var(--peche); } .bande li:nth-child(3)::before { background-color: var(--lilas); } .bande li:nth-child(4)::before { background-color: var(--bleu); }
