/* ===== Variables & Reset ===== */
:root {
  --primary: #e85d04;
  --primary-dark: #d00000;
  --primary-light: #f48c06;
  --secondary: #1b4332;
  --secondary-light: #2d6a4f;
  --accent: #40916c;
  --bg: #fafafa;
  --bg-alt: #f0f4f1;
  --text: #1a1a1a;
  --text-muted: #555;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #121714;
  --bg-alt: #1a211c;
  --text: #f4f7f5;
  --text-muted: #d0d8d3;
  --white: #1c2420;
  --border: #3a4a42;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --secondary: #8fd4b0;
  color-scheme: dark;
}

html[data-theme="dark"] .header,
html[data-theme="dark"] .card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .day-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .about-card-inner {
  background: #1c2420;
  color: var(--text);
}

/* Texte toujours lisible sur les bandes sombres */
.hero,
.page-hero,
.hero-video .hero-content,
.tarifs-hero,
.tour-hero {
  color: #fff !important;
}
.hero h1,
.hero-desc,
.page-hero h1,
.page-hero p,
.hero-badge {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.hero h1 span { color: #ffb703 !important; }

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
  background: #151c19 !important;
  color: #f4f7f5 !important;
  border-color: #3a4a42 !important;
}
html[data-theme="dark"] .form-group input.is-invalid,
html[data-theme="dark"] .form-group select.is-invalid,
html[data-theme="dark"] .form-group textarea.is-invalid {
  background: #2a1616 !important;
  color: #fff !important;
  border-color: #ff6b6b !important;
}
html[data-theme="dark"] .form-group input.is-valid,
html[data-theme="dark"] .form-group select.is-valid,
html[data-theme="dark"] .form-group textarea.is-valid {
  background: #15241c !important;
  color: #fff !important;
}
html[data-theme="dark"] .form-group .field-error { color: #ff8a8a; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,93,4,0.35);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: #fff5f0;
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.logo-icon { font-size: 1.5rem; }
.logo-text strong { color: var(--primary); }
.nav {
  display: flex;
  gap: 1.75rem;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--primary-light); }
.hero-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-light);
}
.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,93,4,0.15);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.card-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}
.card-link:hover { text-decoration: underline; }

/* ===== About ===== */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-list {
  margin: 1.5rem 0 2rem;
}
.about-list li {
  padding: 0.4rem 0;
  font-weight: 500;
  color: var(--secondary-light);
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about-card-inner {
  padding: 2rem;
}
.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--secondary);
}
.about-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.about-card a { color: var(--primary); font-weight: 600; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}
.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Footer compact ===== */
.footer {
  background: #14261c;
  color: rgba(255,255,255,0.82);
  padding-top: 0.85rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  padding-bottom: 0.7rem;
}
.footer-logo { margin-bottom: 0; color: #fff; }
.footer-logo .logo-img { height: 28px !important; }
.footer-col p { display: none; }
.footer-col h4 { display: none; }
.footer-col ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
}
.footer-col ul li { margin: 0; font-size: 0.85rem; }
.footer-col a:hover { color: var(--primary-light); }
.footer-col:last-child p { display: block; margin: 0; font-size: 0.85rem; line-height: 1.35; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.45rem 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.65;
}
html[data-theme="dark"] .footer { background: #0d1612; }

/* Formulaires */
.form-page { padding: 1.5rem 0 2.25rem; }
.form-card {
  background: var(--white);
  color: var(--text);
}
.form-section {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0.35rem 0 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.form-section:first-child { border-top: none; padding-top: 0; }
.form-group { margin-bottom: 0.85rem; }
.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.4rem;
  accent-color: var(--primary);
}

/* ===== Page specific ===== */
.page-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* Price tables */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.price-table th,
.price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: #f8faf8; }
.price-tag {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Tournees */
.tournees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tournee-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.tournee-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.tournee-card ul li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Calculator */
.calc-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  margin: 0 auto;
}
.calc-result {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.calc-result .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal-content h2 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin: 2rem 0 0.75rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.legal-content ul { padding-left: 1.25rem; list-style: disc; }

/* ===== Admin styles ===== */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--secondary);
  color: var(--white);
  padding: 1.5rem 0;
}
.admin-logo {
  padding: 0 1.5rem 1.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.admin-main {
  background: var(--bg-alt);
  padding: 2rem;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.admin-header h1 {
  font-size: 1.5rem;
  color: var(--secondary);
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.admin-table th {
  background: #f5f7f5;
  font-weight: 600;
  color: var(--secondary);
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #d8f3dc; color: #1b4332; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
}
.login-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-box h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}
.login-box .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Stats cards admin */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.stat-card .label { font-size: 0.85rem; color: var(--text-muted); }
.stat-card .value { font-size: 1.75rem; font-weight: 800; color: var(--secondary); margin-top: 0.25rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 1rem;
  }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
}


/* ===== Hero vidéo flammes ===== */
.hero-video {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: #1a0a00;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 18, 14, 0.72) 0%,
    rgba(0, 0, 0, 0.58) 45%,
    rgba(232, 93, 4, 0.28) 100%
  );
}
.hero-video .hero-content {
  position: relative;
  z-index: 1;
}
.hero-video .hero-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.hero-video .btn-outline {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.hero-video .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}
@media (max-width: 768px) {
  .hero-video { min-height: 70vh; padding: 4rem 0 3.5rem; }
}


/* Logo image */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-logo .logo-img {
  height: 40px;
}
@media (max-width: 600px) {
  .logo-img { height: 40px; }
  .logo-text { font-size: 1rem; }
}


/* Validation formulaires */
.form-group .field-error {
  display: none;
  color: #c1121f;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
}
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #c1121f !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12) !important;
}
.form-group input.is-valid,
.form-group select.is-valid,
.form-group textarea.is-valid {
  border-color: #2d6a4f !important;
  background: #f4faf6 !important;
}


/* Accessibilité */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  background: var(--secondary, #1b4332);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--primary, #e85d04);
  outline-offset: 2px;
}
.nav-link:focus-visible,
.btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary, #e85d04);
  outline-offset: 2px;
}
