/* Charte reprise de rotary-drappier.odoo.com : Inter / Inter Tight, or #F3B265, nuit #111827, gris #F3F2F2 */
:root {
  --gold: #F3B265;
  --gold-hover: #f5be7c;
  --gold-soft: #fdf1e2;
  --rotary-orange: #F7A81B;
  --night: #111827;
  --black: #020609;
  --gray: #F3F2F2;
  --line: #e4e2e0;
  --muted: #6b7280;
  --white: #FFFFFF;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --ko: #b91c1c;
  --ko-soft: #fee2e2;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(17, 24, 39, .08), 0 8px 24px rgba(17, 24, 39, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--night);
  background: var(--white);
  line-height: 1.5;
}
h1, h2, h3 { font-family: "Inter Tight", "Inter", sans-serif; line-height: 1.2; margin: 0 0 .5rem; }
a { color: var(--night); }

/* ---------- En-tête ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--night); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: "Inter Tight", sans-serif; font-size: 1.45rem; font-weight: 700; color: #17458F; letter-spacing: -.01em; }
.brand-text span { font-size: .8rem; letter-spacing: .14em; color: #4b5563; margin-top: .2rem; }
.brand svg { width: 40px; height: 40px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .4rem .2rem; }
.nav a:hover { color: #b7752a; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 16px; }

/* ---------- Bandeau ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 48px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin: .4rem 0 1rem; }
.hero p { color: #d1d5db; max-width: 54ch; }
.hero-visual { position: relative; z-index: 1; padding-bottom: 7rem; }
.hero-photo { margin: 0 0 0 auto; width: 88%; position: relative; }
.hero-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  border: 4px solid var(--gold);
}
.hero-card {
  background: var(--gold); color: var(--night); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  position: absolute; left: 0; bottom: 0; width: 78%;
}
.hero-card dl { margin: 0; display: grid; gap: .7rem; }
.hero-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.hero-card dd { margin: 0; font-weight: 600; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section.block { padding: 48px 0; }
section.alt { background: var(--gray); }
.lead { font-size: 1.05rem; color: #374151; max-width: 70ch; }
.lead p { margin: 0 0 .9rem; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card + .card { margin-top: 1.25rem; }
.card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.card h2 .num {
  display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--gold); font-size: .9rem;
}
.hint { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }

/* Affiche */
.poster-section { background: var(--night); color: var(--white); }
.poster-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 3rem; align-items: center; }
.poster { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transform: rotate(-1.5deg); }
.poster img { display: block; width: 100%; height: auto; }
.poster-text h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .3rem 0 .6rem; }
.two-half { color: #6aaab4; white-space: nowrap; font-size: 1.1em; }
.two-half sup, .two-half sub { font-size: .45em; }
.poster-date { color: var(--gold); font-weight: 600; font-size: 1.1rem; }
.credits { display: grid; gap: .7rem; margin: 1.5rem 0; }
.credits dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #9ca3af; }
.credits dd { margin: 0; font-weight: 600; }
.poster-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.poster-section .hint a { color: #d1d5db; }

/* Formules de partenariat */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tier { position: relative; }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier label {
  position: relative; display: flex; flex-direction: column; height: 100%; cursor: pointer; overflow: hidden;
  background: var(--white); border: 2px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tier label:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.tier input:checked + label { border-color: var(--night); box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.tier input:focus-visible + label { outline: 3px solid var(--night); outline-offset: 3px; }
.tier-band { display: block; height: 10px; }
.tier.diamond .tier-band { background: linear-gradient(90deg, #bfdbfe, #60a5fa, #e0f2fe, #3b82f6); }
.tier.gold .tier-band { background: linear-gradient(90deg, #fde68a, #F3B265, #fef3c7, #d97706); }
.tier.silver .tier-band { background: linear-gradient(90deg, #f3f4f6, #9ca3af, #e5e7eb, #6b7280); }
.tier.bronze .tier-band { background: linear-gradient(90deg, #f1c9a5, #b87333, #e8b88c, #8a4b20); }
.tier-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.tier .name { font-weight: 800; letter-spacing: .14em; font-size: .8rem; }
.tier.diamond .name { color: #1d4ed8; }
.tier.gold .name { color: #b45309; }
.tier.silver .name { color: #4b5563; }
.tier.bronze .name { color: #8a4b20; }
.tier .price { font-family: "Inter Tight", sans-serif; font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin: .15rem 0 .8rem; }
.perks { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .9rem; display: grid; gap: .45rem; flex: 1; }
.perks li { display: flex; gap: .55rem; align-items: flex-start; }
.perks li::before {
  content: "✓"; flex: none; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-top: .05rem;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: .72rem; font-weight: 800;
}
.perks li.no { color: #9ca3af; }
.perks li.no::before { content: "–"; background: var(--gray); color: #9ca3af; }
.pick {
  display: block; text-align: center; font-weight: 600; font-size: .9rem; border-radius: 8px; padding: .55rem;
  background: var(--gray); color: var(--night); transition: background .15s;
}
.pick .on { display: none; }
.tier label:hover .pick { background: var(--gold-soft); }
.tier input:checked + label .pick { background: var(--night); color: var(--white); }
.tier input:checked + label .pick .on { display: inline; }
.tier input:checked + label .pick .off { display: none; }
.ribbon {
  position: absolute; top: 30px; right: -46px; width: 180px; transform: rotate(40deg); text-align: center;
  background: var(--night); color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .25rem 0;
}
.clear-tier { margin-top: .8rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }

/* Lignes de quantités */
.qty-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.qty-row:last-child { border-bottom: 0; }
.qty-row .label strong { display: block; }
.qty-row .label small { color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 2.4rem; height: 2.4rem; border: 0; background: var(--gray); font-size: 1.2rem; cursor: pointer; color: var(--night); }
.stepper button:hover { background: var(--gold); }
.stepper input { width: 3.2rem; text-align: center; border: 0; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-total { min-width: 5.5rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Formulaire */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; }
.field label .req { color: var(--ko); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=search], textarea, select {
  font: inherit; color: var(--night); background: var(--white);
  border: 1px solid #d1d5db; border-radius: 8px; padding: .65rem .8rem; width: 100%;
}
textarea { resize: vertical; min-height: 4.5rem; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111827' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .9rem center; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.radios { display: flex; gap: 1.2rem; flex-wrap: wrap; padding-top: .3rem; }
.radios label { font-weight: 500; display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.radios input { accent-color: var(--night); width: 1.1rem; height: 1.1rem; }

/* Récapitulatif */
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.summary { position: sticky; top: 88px; }
.summary h2 { font-size: 1.15rem; }
.summary ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.summary li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary li.included { color: var(--muted); font-size: .85rem; border-bottom-style: none; padding-top: 0; }
.summary .empty { color: var(--muted); font-size: .92rem; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; font-family: "Inter Tight", sans-serif; font-size: 1.5rem; font-weight: 700; margin: .5rem 0 1.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; border-radius: 8px; padding: .75rem 1.3rem; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; transition: background .15s;
}
.btn-primary { background: var(--gold); color: #212529; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-dark { background: var(--night); color: var(--white); }
.btn-dark:hover { background: #1f2937; }
.btn-outline { background: var(--white); border-color: #d1d5db; color: var(--night); }
.btn-outline:hover { border-color: var(--night); }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.alert { border-radius: 8px; padding: .8rem 1rem; font-size: .92rem; margin-bottom: 1rem; }
.alert-error { background: var(--ko-soft); color: var(--ko); }
.alert-info { background: var(--gold-soft); color: #7c4a12; }

/* Confirmation */
.confirm { max-width: 720px; margin: 0 auto; text-align: center; }
.confirm .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2rem; }
.pay-box { text-align: left; background: var(--gray); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.pay-box dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; margin: 0; align-items: center; }
.pay-box dt { color: var(--muted); font-size: .88rem; }
.pay-box dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; background: var(--white); border: 2px dashed var(--gold); border-radius: 6px; padding: .25rem .6rem; letter-spacing: .02em; }
.mail-choices { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .25rem; }
.copy { border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; font-size: .82rem; text-decoration: underline; }

/* Pied de page */
.site-footer { background: var(--night); color: #d1d5db; padding: 36px 0; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer a { color: var(--gold); }
.members { font-size: .8rem; color: #9ca3af; line-height: 1.6; }

/* ---------- Admin ---------- */
.admin-main { padding: 32px 0 64px; background: var(--gray); min-height: calc(100vh - 66px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--white); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { display: block; font-family: "Inter Tight", sans-serif; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.stat.gold { background: var(--gold); }
.stat.gold small { color: #5b3a12; }
.numbering { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: -0.5rem 0 1.2rem; font-size: .88rem; color: var(--muted); }
.numbering label { display: inline-flex; align-items: center; gap: .15rem; font-weight: 600; color: var(--night); }
.numbering input { width: 4.5rem; padding: .3rem .45rem; font: inherit; border: 1px solid #d1d5db; border-radius: 6px; }
.numbering small { color: var(--ok); font-weight: 600; }
.mail-ok { color: var(--ok); font-size: .85rem; }
.mail-ko { color: var(--ko); font-size: .85rem; }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar input[type=search] { flex: 1 1 240px; }
.toolbar select { width: auto; }
.tabs { display: inline-flex; background: var(--white); border-radius: 8px; padding: 3px; border: 1px solid var(--line); }
.tabs button { border: 0; background: none; font: inherit; font-size: .9rem; padding: .45rem .8rem; border-radius: 6px; cursor: pointer; color: var(--muted); }
.tabs button.active { background: var(--night); color: var(--white); }

.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafafa; white-space: nowrap; }
tr.row { cursor: pointer; }
tr.row:hover td { background: #fffaf3; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .mono { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; white-space: nowrap; }
.badge { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge.paye { background: var(--ok-soft); color: var(--ok); }
.badge.en_attente { background: var(--warn-soft); color: var(--warn); }
.badge.annule { background: var(--ko-soft); color: var(--ko); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .1rem .45rem; border-radius: 4px; background: var(--gold-soft); color: #7c4a12; }
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.detail td { background: #fffaf3; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.detail-grid dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: 0; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; white-space: pre-wrap; }
.detail-grid table td, .detail-grid table th { padding: .35rem .4rem; background: transparent; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.actions input[type=date], .actions input[type=text] { width: auto; padding: .4rem .6rem; }
.inline-field { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }

.login { max-width: 380px; margin: 10vh auto 0; }
.login h1 { font-size: 1.5rem; }

@media (max-width: 900px) {
  .hero .wrap, .layout, .site-footer .wrap, .poster-grid { grid-template-columns: 1fr; }
  .poster { max-width: 360px; margin: 0 auto; }
  .summary { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tiers, .grid-2 { grid-template-columns: 1fr; }
  .poster-grid { gap: 2rem; }
  .qty-row { grid-template-columns: 1fr auto; }
  .qty-row .line-total { grid-column: 2; }
  .brand-text strong { font-size: 1.2rem; }
  .hero { padding: 40px 0 64px; }
  .hero-visual { padding-bottom: 0; }
  .hero-photo { width: 100%; }
  .hero-card { position: relative; width: auto; margin: -3rem .75rem 0; }
  .hide-sm { display: none; }
}
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
}
