@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=DM+Serif+Display&display=swap');

:root {
  --depot-anthracite: #1F2937;
  --brass-gold: #A16207;
  --coal-charcoal: #374151;
  --linen-cream: #F5F5DC;
  --signal-red: #991B1B;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--depot-anthracite);
  background: var(--linen-cream);
}

h1, h2, h3, h4, .logo-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
}

a { color: var(--brass-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--signal-red); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  background: var(--depot-anthracite);
  border-bottom: 4px solid var(--brass-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--linen-cream);
  text-decoration: none;
}

.logo-link:hover { color: var(--brass-gold); }

.logo-emblem {
  width: 48px;
  height: 48px;
  border: 3px solid var(--brass-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--coal-charcoal);
  color: var(--brass-gold);
}

.logo-text { font-size: 1.25rem; color: var(--linen-cream); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--linen-cream);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brass-gold);
  border-bottom-color: var(--brass-gold);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--depot-anthracite) 0%, var(--coal-charcoal) 100%);
  color: var(--linen-cream);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 3px dashed var(--brass-gold);
  border-radius: 50%;
  opacity: 0.15;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--linen-cream);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.2rem;
  max-width: 820px;
  opacity: 0.95;
}

.hero-slogan {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--brass-gold);
  font-style: italic;
  color: var(--brass-gold);
  max-width: 720px;
}

/* Sections */
section { padding: 3.5rem 0; }

section:nth-child(even) { background: rgba(31, 41, 55, 0.04); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--depot-anthracite);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--coal-charcoal);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Cards & Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid rgba(161, 98, 7, 0.3);
  border-top: 4px solid var(--brass-gold);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--brass-gold);
}

.card-code {
  display: inline-block;
  background: var(--depot-anthracite);
  color: var(--brass-gold);
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--brass-gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--signal-red);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brass-gold);
  color: var(--brass-gold);
}

.btn-outline:hover {
  background: var(--brass-gold);
  color: var(--white);
}

.cta-block {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--depot-anthracite);
  color: var(--linen-cream);
}

.cta-block h2 { color: var(--linen-cream); margin-bottom: 1rem; }
.cta-block p { margin-bottom: 1.5rem; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Disclaimer */
.disclaimer-box {
  background: rgba(153, 27, 27, 0.08);
  border: 2px solid var(--signal-red);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.disclaimer-box strong { color: var(--signal-red); }

/* Timeline / Horaire */
.horaire-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.horaire-table th,
.horaire-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(161, 98, 7, 0.25);
}

.horaire-table th {
  background: var(--depot-anthracite);
  color: var(--linen-cream);
  font-family: 'DM Serif Display', serif;
}

.horaire-table tr:hover td { background: rgba(161, 98, 7, 0.06); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--coal-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.4);
  background: var(--white);
  color: var(--depot-anthracite);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brass-gold);
  border-color: var(--brass-gold);
}

.form-group textarea { min-height: 160px; resize: vertical; }

.form-notice {
  font-size: 0.9rem;
  color: var(--coal-charcoal);
  margin-top: 1rem;
}

.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-success { background: rgba(161, 98, 7, 0.1); border-color: var(--brass-gold); }
.alert-error { background: rgba(153, 27, 27, 0.1); border-color: var(--signal-red); }

/* Footer */
.site-footer {
  background: var(--depot-anthracite);
  color: var(--linen-cream);
  padding: 3rem 0 1.5rem;
  border-top: 4px solid var(--brass-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: var(--brass-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--linen-cream); opacity: 0.85; }
.footer-grid a:hover { color: var(--brass-gold); opacity: 1; }

.footer-tagline {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--coal-charcoal);
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-legal {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--depot-anthracite);
  color: var(--linen-cream);
  padding: 1.25rem 1.5rem;
  z-index: 1000;
  border-top: 3px solid var(--brass-gold);
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-text { flex: 1; min-width: 280px; font-size: 0.95rem; }

.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.cookie-actions .btn { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

.btn-cookie-accept { background: var(--brass-gold); color: var(--white); border: none; cursor: pointer; }
.btn-cookie-refuse { background: transparent; border: 1px solid var(--linen-cream); color: var(--linen-cream); cursor: pointer; }
.btn-cookie-custom { background: var(--coal-charcoal); color: var(--linen-cream); border: none; cursor: pointer; }

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.7);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.visible { display: flex; }

.cookie-modal-content {
  background: var(--linen-cream);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  border-top: 4px solid var(--brass-gold);
}

.cookie-modal-content h3 { margin-bottom: 1rem; }

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(161, 98, 7, 0.2);
}

.cookie-option input { width: auto; }

/* Page header */
.page-header {
  background: var(--coal-charcoal);
  color: var(--linen-cream);
  padding: 2.5rem 0;
}

.page-header h1 { color: var(--linen-cream); font-size: clamp(1.75rem, 3vw, 2.5rem); }

.breadcrumb {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.75;
}

.breadcrumb a { color: var(--brass-gold); }

/* Content prose */
.prose { max-width: 780px; }
.prose p { margin-bottom: 1.25rem; }
.prose h2 { margin: 2rem 0 1rem; color: var(--brass-gold); font-size: 1.5rem; }
.prose h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 1rem 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
  min-height: 50vh;
}

.error-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--signal-red);
  margin-bottom: 1rem;
}

.error-emblem {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

/* Team */
.team-card {
  text-align: center;
  padding: 2rem;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--coal-charcoal);
  border: 3px solid var(--brass-gold);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--brass-gold);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 0.75rem; }
  .hero { padding: 2.5rem 0; }
  section { padding: 2.5rem 0; }
}
