/* Olea Mogador — feuille de style du site public
   Propriétés logiques (inline-start / inline-end) : l'arabe bascule en RTL sans règles dédiées. */

:root {
  --cream: #faf7ef;
  --sage: #e6ead4;
  --sage-deep: #d3dab8;
  --olive: #56652a;
  --olive-soft: #7d8c48;
  --olive-dark: #262e1b;
  --olive-night: #1d2415;
  --mustard: #dcae33;
  --mustard-soft: #f1d27b;
  --ink: #20251a;
  --muted: #5d6450;
  --line: #cdd3b6;
  --white: #fff;
  --danger: #a13a25;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 1px 2px rgb(38 46 27 / .06), 0 8px 24px rgb(38 46 27 / .06);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

html[dir="rtl"] {
  --font-display: "Amiri", "Instrument Serif", serif;
  --font-body: "Noto Sans Arabic", "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Typographie ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.15; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.35; letter-spacing: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--olive-soft); }
html[dir="rtl"] h1 em, html[dir="rtl"] h2 em { font-style: normal; }
.on-dark h2 em, .on-dark h1 em { color: var(--mustard); }
p { margin: 0 0 1em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-size: .8rem; font-weight: 600;
}
.chip::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--olive); }
.chip--mustard::before { background: var(--mustard); }
.on-dark .chip { background: rgb(255 255 255 / .1); color: var(--cream); }
.on-dark .chip::before { background: var(--mustard); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--olive-dark); color: var(--cream); }
.btn--dark:hover { background: var(--olive); }
.btn--outline { border-color: var(--olive-dark); color: var(--olive-dark); background: transparent; }
.btn--outline:hover { background: var(--olive-dark); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--olive-dark); }
.btn--ghost-light { border-color: rgb(250 247 239 / .5); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--olive-dark); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .88rem; }
.arrow { width: 1em; height: 1em; flex: none; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .92rem; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

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

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(250 247 239 / .92); backdrop-filter: blur(10px); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand__name { display: block; font-family: "Instrument Serif", serif; font-size: 1.25rem; letter-spacing: .14em; line-height: 1; color: var(--olive-dark); }
.brand__tag { display: block; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); margin-top: .3rem; }

.main-nav { display: flex; gap: 1.4rem; margin-inline-start: auto; }
.main-nav a { font-size: .9rem; font-weight: 500; text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--mustard); }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sage); flex: none; }
.lang-switch a { min-width: 34px; height: 30px; display: grid; place-items: center; border-radius: 999px; font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--olive-dark); color: var(--cream); }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sage); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--olive-dark); }

@media (max-width: 1060px) {
  .main-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.2rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding-block: .8rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .header-actions .btn { display: none; }
  .brand__tag { display: none; }
  .brand img { width: 40px; height: 40px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.panel {
  background: var(--sage);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 5vw, 4rem);
}
.panel--dark { background: var(--olive-dark); color: var(--cream); position: relative; overflow: hidden; }
.panel--dark .muted, .panel--dark .lead { color: rgb(250 247 239 / .72); }
.panel--mustard { background: var(--mustard); }
.band { background: var(--sage); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head > div { max-width: 40rem; }
.section-head .chip { margin-bottom: 1.2rem; }
.section-head .lead { margin: 0; max-width: 26rem; }

.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .7rem; }
.card p:last-child { margin-bottom: 0; }
.card--dark { background: rgb(255 255 255 / .07); box-shadow: none; }

.num {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line); margin-bottom: 1.2rem;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--olive);
}

.medals { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.medal { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem; border-radius: 999px; background: var(--white); font-size: .85rem; font-weight: 600; }
.medal i { width: .7rem; height: .7rem; border-radius: 50%; }
.medal--premium i { background: var(--olive-dark); box-shadow: 0 0 0 2px var(--mustard); }
.medal--or i { background: #d4a72c; }
.medal--argent i { background: #a9adb0; }
.medal--bronze i { background: #b0703c; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-block: 1.4rem 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__art { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 1rem; min-height: 460px; }
.arch {
  position: relative; border-radius: 999px; overflow: hidden;
  background: var(--sage-deep);
  display: grid; place-items: center;
}
.arch svg { width: 70%; height: auto; color: var(--olive); opacity: .9; }
.arch:nth-child(1) { height: 70%; background: linear-gradient(180deg, #dfe5c7, #c5cf9f); }
.arch:nth-child(2) { height: 100%; background: linear-gradient(180deg, #e8ecd9, #b9c48f); }
.arch:nth-child(3) { height: 62%; background: linear-gradient(180deg, #f0e3b6, #d8b754); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.stamp {
  position: absolute; inset-inline-start: -1rem; bottom: 1.5rem;
  width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--mustard); color: var(--olive-dark);
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.05;
  transform: rotate(-10deg); box-shadow: var(--shadow); padding: 1rem;
}
html[dir="rtl"] .stamp { font-style: normal; transform: rotate(10deg); }
.stamp--closed { background: var(--olive-dark); color: var(--cream); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: clamp(2rem, 5vw, 3.5rem); padding: .6rem; border-radius: var(--radius-lg); background: var(--sage); }
.fact { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: var(--radius-md); background: rgb(255 255 255 / .55); }
.fact__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; color: var(--olive); }
.fact__icon svg { width: 18px; height: 18px; }
.fact small { display: block; font-size: .75rem; color: var(--muted); }
.fact strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 300px; max-width: 520px; }
  .stamp { inset-inline-start: .5rem; width: 104px; height: 104px; font-size: 1.05rem; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Étapes « Comment participer » ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; counter-reset: step; }
.step__num { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-family: var(--font-display); font-style: italic; font-size: 3rem; line-height: 1; color: var(--olive); }
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps > :last-child .step__num::after { display: none; }
.step h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step__num::after { display: none; } }

/* ---------- Festival ---------- */

.festival { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.festival .card { display: flex; flex-direction: column; padding: .8rem .8rem 1.5rem; }
.festival .card > :not(.visual) { padding-inline: .8rem; }
.festival .card h3 { margin-top: 1.2rem; font-size: 1.45rem; }
.festival .card p { font-size: .92rem; color: var(--muted); }
.festival .card--feature { grid-row: span 2; }
.festival .card--feature .visual { flex: 1; min-height: 260px; }
.visual { border-radius: calc(var(--radius-lg) - 8px); min-height: 170px; display: grid; place-items: center; background: linear-gradient(160deg, #dfe5c7, #c2cc97); color: var(--olive); overflow: hidden; }
.visual svg { width: 44%; max-width: 150px; opacity: .85; }
.visual--mustard { background: linear-gradient(160deg, #f4e6b8, #dcb44a); color: var(--olive-dark); }
.visual--night { background: linear-gradient(160deg, #3a4527, #232b18); color: var(--mustard); }
.visual--sea { background: linear-gradient(160deg, #e2e7df, #aebfb5); color: #3f5a55; }
.card--cta { background: var(--olive-dark); color: var(--cream); justify-content: space-between; text-decoration: none; padding: 1.5rem !important; }
.card--cta .round { width: 44px; height: 44px; border-radius: 50%; background: var(--mustard); display: grid; place-items: center; color: var(--olive-dark); }
.card--cta h3 { font-size: 1.8rem !important; }
.card--cta h3 em { color: var(--mustard); }
.card--cta:hover { background: var(--olive); }
@media (max-width: 900px) {
  .festival { grid-template-columns: 1fr 1fr; }
  .festival .card--feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .festival { grid-template-columns: 1fr; }
  .festival .card--feature { grid-column: auto; }
}

/* ---------- Programme ---------- */

.leaf-deco { position: absolute; inset-inline-end: -40px; top: -30px; width: 320px; color: rgb(250 247 239 / .06); pointer-events: none; }
.day-card { background: rgb(255 255 255 / .07); border-radius: var(--radius-lg); padding: 1.6rem; }
.day-card .tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--mustard); color: var(--olive-dark); font-size: .75rem; font-weight: 700; margin-bottom: 1.1rem; }
.day-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.day-card p { font-size: .9rem; color: rgb(250 247 239 / .72); margin: 0; }

.timeline { display: grid; gap: 1.2rem; }
.timeline-day { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.timeline-day__date .tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--mustard); font-size: .75rem; font-weight: 700; margin-bottom: .8rem; }
.timeline-day__date h3 { font-size: 1.7rem; }
.timeline-day__date p { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
.slot { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding-block: .9rem; border-top: 1px solid var(--sage); }
.slot:first-child { border-top: 0; padding-top: 0; }
.slot time { font-weight: 700; font-size: .88rem; color: var(--olive); font-variant-numeric: tabular-nums; }
.slot h4 { margin: 0 0 .2rem; font-size: 1rem; }
.slot p { margin: 0; font-size: .92rem; color: var(--muted); }
.slot ul { margin: .4rem 0 0; padding-inline-start: 1.1rem; font-size: .92rem; color: var(--muted); }
.badge { display: inline-block; margin-inline-start: .4rem; padding: .05rem .55rem; border-radius: 999px; background: var(--sage); font-size: .75rem; font-weight: 600; color: var(--olive); vertical-align: middle; }
@media (max-width: 760px) {
  .timeline-day { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Jury, partenaires ---------- */

.jury-card { text-align: center; }
.jury-card .oval { width: 100%; aspect-ratio: 4 / 5; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%; background: linear-gradient(180deg, #e3e8cd, #c5cf9f); display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--olive); }
.jury-card .oval svg { width: 38%; opacity: .8; }

.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.partner { display: grid; place-items: center; height: 110px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.partner img { max-height: 76px; width: auto; object-fit: contain; }
.partners-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }

/* ---------- CTA ---------- */

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 em { color: var(--olive-dark); }
.cta p { margin: .6rem 0 0; }

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

.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin-top: 1.2rem; }
.page-hero .lead { margin-top: 1.2rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 2.6rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { font-weight: 700; }

.rules-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: .2rem; padding: 1.2rem; border-radius: var(--radius-lg); background: var(--sage); }
.toc a { padding: .45rem .7rem; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.toc a:hover { background: var(--white); }
@media (max-width: 900px) { .rules-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.callout { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-md); background: var(--white); border-inline-start: 4px solid var(--mustard); margin-block: 1.4rem; }
.callout p:last-child { margin: 0; }

.deadline-list { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.deadline-list li { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-md); background: var(--white); margin: 0; }
.deadline-list strong { color: var(--olive); }
@media (max-width: 560px) { .deadline-list li { grid-template-columns: 1fr; gap: .1rem; } }

.results-cat { margin-bottom: 2.5rem; }
.results-cat h2 { font-size: 2rem; margin-bottom: 1rem; }
.result-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius-md); background: var(--white); margin-bottom: .6rem; }
.result-row h3 { font-size: 1.3rem; }

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

.site-footer { background: var(--olive-night); color: rgb(250 247 239 / .78); margin-top: clamp(3rem, 7vw, 5rem); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand__name { color: var(--cream); }
.site-footer .brand__tag { color: var(--mustard); }
.site-footer .brand img { background: var(--cream); border-radius: 50%; padding: 3px; }
.site-footer h4 { margin: 0 0 1rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mustard); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(250 247 239 / .12); font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > :first-child { grid-column: auto; } }

/* ---------- Messages ---------- */

.flash { margin-block: 1rem; padding: .9rem 1.2rem; border-radius: var(--radius-md); background: var(--white); border-inline-start: 4px solid var(--olive); font-weight: 500; }
.flash--error { border-color: var(--danger); color: var(--danger); }

/* ---------- Inscription ---------- */

.reg-header .site-header__inner { gap: 1rem; }
.draft-state { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) { .draft-state { display: none; } }

.reg-shell { margin-block: 1rem 3rem; }
.reg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.reg-head h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); margin-top: 1.2rem; }
.reg-head p { max-width: 22rem; color: var(--muted); margin: 0; }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-block: 2.2rem 2rem; padding: 0; list-style: none; }
.progress li { font-size: .85rem; color: var(--muted); }
.progress li::before { content: ""; display: block; height: 6px; border-radius: 99px; background: var(--white); margin-bottom: .8rem; }
.progress li.is-done { color: var(--ink); font-weight: 600; }
.progress li.is-done::before { background: var(--olive); }
.progress li.is-current { color: var(--ink); font-weight: 700; }
.progress li.is-current::before { background: var(--mustard); }
@media (max-width: 640px) {
  .progress li { font-size: 0; }
  .progress li.is-current { font-size: .8rem; grid-column: 1 / -1; order: 5; }
}

.reg-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.2rem; align-items: start; }
.reg-main { display: grid; gap: 1rem; }
.reg-aside { display: grid; gap: 1rem; position: sticky; top: 96px; }
@media (max-width: 960px) { .reg-layout { grid-template-columns: 1fr; } .reg-aside { position: static; } }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); }
.form-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
.form-card__head h2 { font-size: 2rem; }
.req-note { font-size: .8rem; color: var(--muted); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.2rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; margin-bottom: .45rem; font-size: .9rem; font-weight: 600; }
.field label .opt, .field .label .opt { font-weight: 400; color: var(--muted); }
.req { color: var(--mustard); }
.input, .select {
  width: 100%; min-height: 50px; padding: .7rem 1rem;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: #f6f7ef; color: var(--ink);
  font: 400 1rem/1.3 var(--font-body);
}
.input::placeholder { color: #9aa08b; }
.input:focus, .select:focus { outline: none; border-color: var(--olive); background: var(--white); box-shadow: 0 0 0 4px rgb(86 101 42 / .12); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2320251a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-inline-end: 2.6rem; }
html[dir="rtl"] .select { background-position: left 1rem center; }
.hint { margin: .4rem 0 0; font-size: .78rem; color: var(--muted); }
.error { margin: .4rem 0 0; font-size: .82rem; color: var(--danger); font-weight: 500; }
.has-error .input, .has-error .select { border-color: var(--danger); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 50px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #f6f7ef; cursor: pointer; font-size: .95rem; }
.choice input { accent-color: var(--olive); width: 18px; height: 18px; margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--olive); background: var(--sage); }
.choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }

.dropzone { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border: 1.5px dashed var(--olive-soft); border-radius: 14px; background: #f6f7ef; cursor: pointer; }
.dropzone:hover { background: var(--sage); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 20px; flex: none; color: var(--olive); }
.dropzone strong { display: block; color: var(--olive); font-size: .92rem; }
.dropzone span { font-size: .78rem; color: var(--muted); }
.dropzone.has-file { border-style: solid; border-color: var(--olive); background: var(--sage); }

.oil-row { display: flex; align-items: center; gap: 1rem; background: var(--white); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; }
.oil-row__check { width: 38px; height: 38px; border-radius: 50%; background: var(--olive); color: var(--white); display: grid; place-items: center; flex: none; }
.oil-row__body { flex: 1; min-width: 0; }
.oil-row h3 { font-size: 1.3rem; }
.oil-row p { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.oil-row__actions { display: flex; gap: 1rem; align-items: center; }
.oil-row__actions a, .oil-row__actions button { background: none; border: 0; padding: 0; font: 600 .85rem var(--font-body); color: var(--olive); cursor: pointer; text-decoration: none; }
.oil-row__actions button { color: var(--ink); }
@media (max-width: 560px) { .oil-row { flex-wrap: wrap; } .oil-row__actions { width: 100%; padding-inline-start: 54px; } }

.add-oil { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; border: 1.5px dashed var(--olive-soft); border-radius: 999px; font-weight: 600; color: var(--olive); text-decoration: none; }
.add-oil:hover { background: rgb(255 255 255 / .5); }
.add-oil--disabled { color: var(--muted); border-color: var(--line); cursor: default; font-weight: 500; text-align: center; padding: .6rem 1.2rem; font-size: .9rem; }

.reg-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; font-size: .95rem; }
.back-link svg { width: 16px; }
html:not([dir="rtl"]) .back-link svg { transform: scaleX(-1); }

.summary-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem; }
.summary-card h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.summary-card dl { margin: 0; display: grid; gap: .8rem; }
.summary-card dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; font-weight: 600; text-align: end; }
.summary-card .total { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .4rem; align-items: baseline; }
.summary-card .total dt { color: var(--ink); font-weight: 600; }
.summary-card .total dd { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--olive); }
.info-card { background: var(--olive-dark); color: rgb(250 247 239 / .85); border-radius: var(--radius-lg); padding: 1.6rem; font-size: .9rem; }
.info-card h2 { font-size: 1.6rem; color: var(--cream); margin-bottom: 1rem; }
.info-card strong { color: var(--mustard); font-weight: 600; }
.info-card p:last-child { margin: 0; }

.recap-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.recap-table th, .recap-table td { padding: .8rem .4rem; text-align: start; border-bottom: 1px solid var(--sage); vertical-align: top; }
.recap-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.recap-table td:last-child, .recap-table th:last-child { text-align: end; white-space: nowrap; }
.recap-table tfoot td { border-bottom: 0; font-weight: 700; }
.table-wrap { overflow-x: auto; }

.checkbox { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--olive); flex: none; }

.code-badge { display: inline-block; padding: .3rem .8rem; border-radius: 10px; background: var(--sage); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .04em; direction: ltr; unicode-bidi: isolate; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--white); margin-bottom: 1.2rem; }
.success-mark svg { width: 30px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .9rem; }
.checklist .num { margin: 0; flex: none; width: 32px; height: 32px; font-size: 1rem; background: var(--sage); border: 0; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}
