/* ALIZÉ HORSES — démo fictive Arkhan Digital */
:root {
  --ocean: #0e6b74;
  --ocean-dark: #0a4a51;
  --sand: #f6efe4;
  --sand-dark: #eadfca;
  --terra: #c96f3b;
  --terra-dark: #a85527;
  --ink: #22302f;
  --white: #ffffff;
  --ok: #2e8b57;
  --warn: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 74, 81, 0.12);
  font-size: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}
h1, h2, h3, .logo { font-family: Georgia, "Times New Roman", serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 228, 0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-dark);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.35rem; letter-spacing: 2px; color: var(--ocean-dark); font-weight: 700; }
.logo span { color: var(--terra); }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 0.95rem; }
.nav-links a:hover { color: var(--terra); }
.burger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ocean-dark); cursor: pointer; padding: 4px 8px; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--terra); color: var(--white); font-weight: 600;
  border: none; cursor: pointer; font-size: 0.95rem; transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ocean-dark); border: 2px solid var(--ocean); }
.btn.ghost:hover { background: var(--ocean); color: var(--white); }
.btn.small { padding: 8px 16px; font-size: 0.85rem; }
.btn.danger { background: var(--warn); }
.btn.ok { background: var(--ok); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
  min-height: 78vh; display: flex; align-items: center;
  background: linear-gradient(rgba(10, 74, 81, 0.55), rgba(10, 74, 81, 0.35)),
    linear-gradient(160deg, #0e6b74 0%, #2ba3ad 45%, #7fd0c9 75%, #f6efe4 100%);
  color: var(--white); text-align: center;
}
.hero .container { padding: 90px 20px; }
.hero .tagline { text-transform: uppercase; letter-spacing: 4px; font-size: 0.85rem; opacity: 0.9; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 18px 0 12px; line-height: 1.15; }
.hero p.sub { font-size: 1.15rem; max-width: 620px; margin: 0 auto 34px; opacity: 0.95; }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 8px; font-size: 2rem; color: var(--ocean-dark); }
.section-sub { text-align: center; color: #5c6b6a; margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .visuel { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--white); }
img.visuel { object-fit: cover; width: 100%; }
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card h3 { color: var(--ocean-dark); }
.card .prix { color: var(--terra); font-weight: 700; font-size: 1.1rem; margin-top: auto; }
.card .meta { font-size: 0.85rem; color: #6b7a79; }

/* Bandeau */
.bandeau { background: var(--ocean-dark); color: var(--white); text-align: center; }
.bandeau h2 { font-size: 1.8rem; margin-bottom: 12px; }
.bandeau p { max-width: 640px; margin: 0 auto 28px; opacity: 0.9; }

/* Infos pratiques */
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.info-box { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-box h3 { color: var(--ocean-dark); margin-bottom: 8px; font-size: 1.05rem; }

footer { background: var(--ink); color: #cfd8d7; padding: 46px 0; font-size: 0.9rem; text-align: center; }
footer .logo { color: var(--white); margin-bottom: 10px; }
footer .demo-note { margin-top: 16px; opacity: 0.6; font-size: 0.8rem; }

/* Formulaires / résa */
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
label { font-size: 0.85rem; font-weight: 600; color: var(--ocean-dark); display: block; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--sand-dark);
  border-radius: 10px; font-size: 0.95rem; background: #fdfbf7; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ocean); }
.slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.slot {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ocean);
  color: var(--ocean-dark); cursor: pointer; font-size: 0.9rem; background: var(--white);
}
.slot.selected { background: var(--ocean); color: var(--white); }
.slot.full { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.recap { background: var(--sand); border-radius: 10px; padding: 18px; margin-top: 18px; font-size: 0.95rem; }
.recap strong { color: var(--terra); }

/* Badges & tableaux */
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge.paye { background: #e2f3e9; color: var(--ok); }
.badge.rembourse { background: #fdeaea; color: var(--warn); }
.badge.attente { background: #fdf3e2; color: var(--terra-dark); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; color: var(--ocean-dark); border-bottom: 2px solid var(--sand-dark); padding: 10px 8px; }
td { padding: 12px 8px; border-bottom: 1px solid var(--sand); vertical-align: middle; }

/* Calendrier admin */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: flex; flex-direction: column; }
.stat .val { font-size: 1.5rem; font-weight: 700; color: var(--ocean-dark); font-family: Georgia, serif; }
.stat .lab { font-size: 0.78rem; color: #6b7a79; }
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-label { font-family: Georgia, serif; font-size: 1.15rem; color: var(--ocean-dark); margin-left: 10px; text-transform: capitalize; }
.cal-filtres select { width: auto; padding: 8px 12px; }
.legende { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; font-size: 0.82rem; }
.leg-item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 10px; border-radius: 999px; background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.leg-item.off { opacity: 0.35; }
.leg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.cal-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.cal-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(118px, 1fr)); min-width: 900px; }
.cal-corner { background: var(--white); }
.cal-head { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--ocean-dark); text-transform: uppercase; letter-spacing: 1px; padding: 12px 4px; border-bottom: 2px solid var(--sand-dark); }
.cal-head.today { color: var(--terra); }
.cal-hour { font-size: 0.72rem; color: #8a9695; text-align: right; padding: 6px 8px 0 0; border-top: 1px solid var(--sand); }
.cal-cell { border-top: 1px solid var(--sand); border-left: 1px solid var(--sand); min-height: 52px; padding: 3px; }
.cal-cell.today { background: #fdf9f0; }
.cal-cell.dragover { outline: 2px dashed var(--terra); outline-offset: -3px; background: #fdf3e2; }
.ev { border-left: 4px solid var(--ocean); border-radius: 7px; padding: 4px 7px; margin-bottom: 3px; font-size: 0.72rem; line-height: 1.35; cursor: pointer; }
.ev:active { cursor: grabbing; }
.ev strong { color: var(--ink); }
.ev .ev-h { font-weight: 700; color: var(--ocean-dark); }
.ev .ev-meta { display: block; color: #6b7a79; }
.ev.rembourse { opacity: 0.45; text-decoration: line-through; }
.cal-hint { font-size: 0.8rem; color: #6b7a79; margin-top: 10px; text-align: center; }

/* Planning admin */
.planning { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 20px; }
.day-col { background: var(--sand); border-radius: 10px; padding: 8px; min-height: 260px; }
.day-col h4 { font-size: 0.8rem; text-align: center; color: var(--ocean-dark); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.day-col.dragover { outline: 2px dashed var(--terra); outline-offset: -4px; }
.resa-chip {
  background: var(--white); border-left: 4px solid var(--ocean); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px; font-size: 0.78rem; cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.resa-chip.rembourse { border-left-color: var(--warn); opacity: 0.55; }
.resa-chip strong { display: block; color: var(--ocean-dark); }
.resa-chip .heure { color: var(--terra); font-weight: 700; }

/* Espace proprio */
.horse-card { display: flex; gap: 20px; align-items: center; }
.horse-avatar {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ocean), #2ba3ad);
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.timeline { list-style: none; margin-top: 14px; }
.timeline li { padding: 10px 0 10px 22px; border-left: 2px solid var(--sand-dark); position: relative; font-size: 0.9rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--terra);
}
.timeline .date { font-size: 0.75rem; color: #6b7a79; display: block; }

/* Modale paiement */
.modal-bg {
  position: fixed; inset: 0; background: rgba(14, 48, 47, 0.6); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-bg.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); max-width: 430px; width: 100%; padding: 30px; }
.stripe-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.stripe-badge { background: #635bff; color: #fff; font-weight: 700; border-radius: 6px; padding: 3px 10px; font-size: 0.8rem; }
.demo-tag {
  position: fixed; bottom: 14px; right: 14px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 8px 16px;
  border-radius: 999px; font-size: 0.75rem; opacity: 0.85;
}
@media (max-width: 900px) {
  .planning { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile ---- */
@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--sand); border-bottom: 1px solid var(--sand-dark);
    box-shadow: var(--shadow); padding: 10px 20px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 1rem; width: 100%; }
  .nav-links a.btn { text-align: center; margin-top: 8px; }
}
@media (max-width: 700px) {
  .logo { font-size: 1.1rem; letter-spacing: 1px; white-space: nowrap; }
  section { padding: 52px 0; }
  .section-title { font-size: 1.55rem; }
  .section-sub { font-size: 0.92rem; margin-bottom: 32px; }
  .hero { min-height: 68vh; }
  .hero .container { padding: 60px 20px; }
  .hero p.sub { font-size: 1rem; margin-bottom: 26px; }
  .hero .btn { display: block; margin: 10px auto 0; max-width: 280px; }
  .panel { padding: 20px; }
  .infos { gap: 14px; }
  .info-box { padding: 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .stat { padding: 12px 14px; }
  .stat .val { font-size: 1.2rem; }
  .cal-toolbar { justify-content: center; }
  .cal-label { width: 100%; text-align: center; margin: 6px 0 0; font-size: 1rem; }
  .cal-grid { grid-template-columns: 44px repeat(7, minmax(104px, 1fr)); min-width: 780px; }
  .cal-corner, .cal-hour { position: sticky; left: 0; background: var(--white); z-index: 2; }
  .cal-hour { border-right: 1px solid var(--sand-dark); }
  .demo-tag { font-size: 0.68rem; padding: 6px 12px; bottom: 10px; right: 10px; }
  .slots { gap: 8px; }
  .slot { padding: 8px 13px; font-size: 0.85rem; }
  table { font-size: 0.82rem; }
}
