/* Danse Après Travail — feuille de styles */
[hidden] { display: none !important; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff") format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff") format("woff"); font-weight: 300 700; font-display: swap; }

:root {
  --green: #2f4a3f;
  --green-dark: #1e3229;
  --green-soft: #3e5f51;
  --sage: #8fa898;
  --beige: #efe6d8;
  --beige-dark: #e3d6c1;
  --milk: #fbf8f2;
  --terra: #c0704d;
  --terra-dark: #a65a39;
  --gold: #b89255;
  --ink: #23302a;
  --muted: #5d6a63;
  --line: #ddd2bf;
  --ok: #2e7d4f;
  --err: #b3402a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(30, 50, 41, .10);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--milk); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--green-dark); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: .8rem; display: inline-block; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font: 600 .98rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); color: #fff; }
.btn-dark { background: var(--green); color: var(--milk); }
.btn-dark:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--milk); border-color: var(--green); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--green-dark); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--err); cursor: pointer; font: inherit; font-size: .9rem; padding: 0; text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-dark); }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--beige); display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 500; }
.menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--terra); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--green); text-decoration: none; }
.cart-link:hover { border-color: var(--green); }
.cart-link svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--terra); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[data-count="0"] { display: none; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green); }
.burger svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .menu { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--milk); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: none; }
  .menu.open { display: flex; }
  .menu li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions .btn { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--green-dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,34,28,.88) 0%, rgba(20,34,28,.6) 45%, rgba(20,34,28,.15) 100%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(80px, 13vw, 160px) 0 clamp(70px, 10vw, 130px); max-width: 640px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.2rem; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 26px; font-size: .92rem; color: rgba(255,255,255,.75); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--gold); }

.page-hero { background: var(--beige); padding: 70px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 680px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* Sections */
section { padding: clamp(60px, 8vw, 100px) 0; }
.section-alt { background: var(--beige); }
.section-dark { background: var(--green); color: var(--beige); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: rgba(239,230,216,.85); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.rounded-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/2; }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 3/2; overflow: hidden; background: var(--beige); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.5rem; margin-bottom: .35em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--green-dark); line-height: 1; }
.price small { font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--beige); color: var(--green); letter-spacing: .02em; }
.tag-terra { background: #f5e2d8; color: var(--terra-dark); }
.facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--sage); flex: none; }

.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section-dark .feature { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.feature-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--beige); color: var(--terra); display: grid; place-items: center; margin-bottom: 16px; }
.section-dark .feature-icon { background: rgba(184,146,85,.18); color: var(--gold); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.35rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.section-dark .feature p { color: rgba(239,230,216,.8); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.5rem; display: grid; place-items: center; }
.step h3 { font-size: 1.3rem; }

.style-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.style-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.style-card:hover img { transform: scale(1.04); }
.style-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,34,28,.85)); }
.style-card div { position: relative; z-index: 1; padding: 26px; }
.style-card h3 { color: #fff; font-size: 2rem; margin-bottom: .2em; }
.style-card p { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; }
.style-card:hover { color: #fff; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--green-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--terra); font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* CTA */
.cta { border-radius: 28px; padding: clamp(40px, 6vw, 70px); background: var(--green); color: var(--beige); display: grid; grid-template-columns: 1.5fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(184,146,85,.4); }
.cta h2 { color: #fff; }
.cta p { color: rgba(239,230,216,.85); margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 34px; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: .55em 1.1em; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--sans); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.filters-label { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 6px; }
.empty { text-align: center; padding: 50px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Course detail */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.sticky { position: sticky; top: 100px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.spec div { background: var(--beige); border-radius: 14px; padding: 14px 16px; }
.spec dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.spec dd { margin: 2px 0 0; font-weight: 600; color: var(--green-dark); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--green-dark); }
.req { color: var(--terra); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(47,74,63,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink); }
.check input { margin-top: 5px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--err); font-size: .85rem; margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-ok { background: #e5f2ea; color: #1f5a37; }
.alert-err { background: #f8e4de; color: #8c2f1b; }
.alert-info { background: #eef1ec; color: var(--green-dark); }
.alert[hidden] { display: none; }

/* Slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; cursor: pointer; font: 600 .95rem var(--sans); color: var(--green-dark); }
.slot small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.slot:hover { border-color: var(--green); }
.slot[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.slot[aria-pressed="true"] small { color: var(--beige); }
.slots-empty { color: var(--muted); font-size: .92rem; padding: 14px; background: var(--beige); border-radius: 12px; }

/* Progress */
.progress { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 36px; counter-reset: p; }
.progress li { flex: 1; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); position: relative; padding-top: 40px; }
.progress li::before { counter-increment: p; content: counter(p); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--beige); border: 1.5px solid var(--line); display: grid; place-items: center; z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::after { display: none; }
.progress li.done, .progress li.active { color: var(--green-dark); }
.progress li.done::before { background: var(--green); color: #fff; border-color: var(--green); content: "✓"; }
.progress li.active::before { background: var(--terra); color: #fff; border-color: var(--terra); }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 110px; height: 80px; object-fit: cover; border-radius: 12px; }
.cart-item h3 { font-size: 1.3rem; margin-bottom: 4px; }
.cart-item .qty { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-top: 8px; }
.cart-item .qty select { width: auto; padding: .35em .7em; }
.cart-item .line-total { text-align: right; }
@media (max-width: 600px) { .cart-item { grid-template-columns: 70px 1fr; } .cart-item img { width: 70px; height: 56px; } .cart-item .line-total { grid-column: 1 / -1; text-align: left; } }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.1rem; }
.summary-total span:last-child { font-family: var(--serif); font-size: 1.7rem; color: var(--green-dark); }

/* Legal */
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--beige); }
.placeholder { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; }

/* Footer */
.site-footer { background: var(--green-dark); color: rgba(239,230,216,.82); padding: 70px 0 30px; font-size: .94rem; }
.site-footer a { color: rgba(239,230,216,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-mark { background: var(--gold); color: var(--green-dark); }
.site-footer .brand-name small { color: rgba(239,230,216,.6); }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.contact-line svg { width: 16px; height: 16px; margin-top: 5px; color: var(--gold); flex: none; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(239,230,216,.15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(239,230,216,.6); }

.icon { width: 1em; height: 1em; vertical-align: -.125em; }
.loading { opacity: .6; pointer-events: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 600px) {
  .brand-name { font-size: 1.2rem; }
  .brand-name small { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.15rem; }
  .hero-media img { object-position: 85% center; opacity: .55; }
  .hero-note { flex-direction: column; gap: 6px; }
}
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { object-position: 70% center; }
@media (max-width: 600px) { .hero-media img { object-position: 60% center; opacity: 1; } .hero::after { background: linear-gradient(180deg, rgba(20,34,28,.55) 0%, rgba(20,34,28,.85) 60%); } }
/* Photos verticales : cadrer sur les visages */
.card-media img[src$=".jpg"], .style-card img[src$=".jpg"], .rounded-img img[src$=".jpg"], .cart-item img[src$=".jpg"] { object-position: 50% 22%; }
.detail .rounded-img { aspect-ratio: 4 / 3; }
.legal-block { gap: 4px !important; font-size: .9rem; }
