:root {
  --blue: #0f2f5f;
  --blue-dark: #081b38;
  --orange: #f28c28;
  --light: #f4f7fb;
  --text: #132033;
  --muted: #66758a;
  --white: #ffffff;
  --border: #dfe8f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--light);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.notice {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #7c2d12;
  padding: 10px 24px;
  text-align: center;
  font-size: 14px;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--blue);
}

.logo span {
  color: var(--orange);
}

.nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav a {
  color: var(--blue-dark);
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.hero {
  background: linear-gradient(135deg, #0f2f5f 0%, #123f7a 62%, #f28c28 100%);
  color: var(--white);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 14px;
}

.badge.dark {
  background: #eaf2ff;
  color: var(--blue);
  border-color: #d5e5ff;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 22px;
}

.hero p,
.page-hero p {
  max-width: 780px;
  font-size: 21px;
  line-height: 1.55;
  margin: 0 0 30px;
}

.page-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.page-hero .section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 900;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-secondary {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.28);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section h1,
.section h2 {
  color: var(--blue);
  margin: 0 0 16px;
}

.section h1 {
  font-size: 42px;
}

.section h2 {
  font-size: 34px;
}

.section p {
  font-size: 18px;
  line-height: 1.65;
}

.section-intro {
  max-width: 780px;
  color: var(--muted);
  margin-bottom: 34px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(15,47,95,.07);
}

.card-link {
  transition: transform .18s ease, box-shadow .18s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(15,47,95,.13);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 22px;
}

.card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 32px;
  align-items: center;
}

.highlight-box {
  background: var(--blue);
  color: var(--white);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(15,47,95,.18);
}

.highlight-box strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}

.highlight-box span {
  display: block;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
}

.site-footer {
  background: #071529;
  color: rgba(255,255,255,.78);
  padding: 34px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--white);
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .grid,
  .split {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,.78);
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.page-hero-strong {
  background:
    radial-gradient(circle at 85% 20%, rgba(242,140,40,.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
}

.btn-light {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid var(--border);
}

.process-section {
  padding-top: 30px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(15,47,95,.06);
}

.process-step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 16px;
}

.process-step h3 {
  color: var(--blue);
  margin: 0 0 10px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tags-list span {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--blue);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(15,47,95,.05);
}

.emphasis-card {
  background: linear-gradient(135deg, #0f2f5f, #123f7a);
  color: #ffffff;
}

.emphasis-card h3 {
  color: #ffffff;
}

.emphasis-card p {
  color: rgba(255,255,255,.82);
}

.cta-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-bottom: 64px;
  box-shadow: 0 24px 80px rgba(15,47,95,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-panel h2 {
  margin-top: 0;
}

.cta-panel p {
  max-width: 760px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.hivernage-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hivernage-rules span {
  display: inline-block;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--blue);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 800;
}

.success-box,
.error-box {
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.success-box {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.error-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #7f1d1d;
}

.reservation-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(15,47,95,.09);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row {
  margin-bottom: 18px;
}

.reservation-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 18px;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.reservation-form textarea {
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

@media (max-width: 800px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.hivernage-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hivernage-rules span {
  display: inline-block;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--blue);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 800;
}

.success-box,
.error-box {
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.success-box {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.error-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #7f1d1d;
}

.reservation-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(15,47,95,.09);
}

.compact-form {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.form-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row {
  margin-bottom: 18px;
}

.reservation-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 18px;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15,47,95,.07);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f8fbff;
  color: var(--blue);
}

.mini-danger {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fee2e2;
  color: #7f1d1d;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 800px) {
  .form-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.inline-admin-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-admin-form select {
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-action,
.mini-warning {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.mini-action {
  background: #dbeafe;
  color: #1e3a8a;
}

.mini-warning {
  background: #fef3c7;
  color: #92400e;
}

.is-cancelled {
  opacity: .55;
  background: #f8fafc;
}

.is-cancelled td {
  text-decoration: line-through;
}

.admin-discreet-line {
  text-align: right;
  margin: 12px 0 0;
}

.admin-discreet-link {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
}

.admin-discreet-link:hover {
  color: var(--orange);
}

.admin-logout-form {
  text-align: right;
  margin-bottom: 18px;
}

.new-client-strip {
  padding-top: 28px;
  padding-bottom: 18px;
}

.new-client-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 14px 40px rgba(15,47,95,.06);
}

.new-client-card strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  margin-bottom: 4px;
}

.new-client-card span {
  color: var(--muted);
  font-size: 15px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 21, 41, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.simple-modal {
  position: relative;
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 120px rgba(0,0,0,.28);
}

.simple-modal h2 {
  color: var(--blue);
  margin: 0 0 10px;
}

.simple-modal p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.modal-close:hover {
  color: var(--orange);
}

@media (max-width: 700px) {
  .new-client-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Correction modale nouveau client : hidden doit vraiment masquer la fenêtre */
.modal-backdrop[hidden] {
  display: none !important;
}
