/* ============================================
   choisir-mon-chien.fr - Styles principaux
   Palette: #1A237E (bleu marine), #FFFFFF, #FDD835 (jaune)
   Police: Poppins (Google Fonts)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1A237E;
  --navy-light: #283593;
  --navy-dark: #0D1642;
  --yellow: #FDD835;
  --yellow-dark: #F9A825;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F4;
  --gray-200: #E8EAED;
  --gray-400: #9AA0A6;
  --gray-600: #5F6368;
  --gray-800: #3C4043;
  --text: #1C1C1E;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(26,35,126,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-cta {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
}

.nav-cta:hover {
  background: var(--yellow-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  background: var(--navy-dark);
  padding: 16px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { flex-direction: column; gap: 4px; display: flex; }
.mobile-menu ul li a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}
.mobile-menu ul li a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1565C0 100%);
  color: var(--white);
  padding: 80px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253,216,53,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253,216,53,0.15);
  border: 1px solid rgba(253,216,53,0.4);
  color: var(--yellow);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--yellow); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(253,216,53,0.4);
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(253,216,53,0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(26,35,126,0.08);
  color: var(--navy);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== CARDS DE CATÉGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--yellow));
  transform: scaleX(0);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.category-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: auto;
  transition: var(--transition);
}

.card-link:hover { gap: 10px; }

/* ===== RACE CARDS ===== */
.races-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.race-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.race-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.race-photo {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.race-photo svg {
  width: 80px;
  height: 80px;
  opacity: 0.9;
}

.race-info {
  padding: 20px;
}

.race-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.race-info p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.5;
}

.race-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-size-petit { background: #E3F2FD; color: #1565C0; }
.badge-size-moyen { background: #E8F5E9; color: #2E7D32; }
.badge-size-grand { background: #FFF3E0; color: #E65100; }

.badge-caractere-calme { background: #F3E5F5; color: #6A1B9A; }
.badge-caractere-joueur { background: #E0F7FA; color: #00695C; }
.badge-caractere-protecteur { background: #FFEBEE; color: #C62828; }
.badge-caractere-affectueux { background: #FCE4EC; color: #AD1457; }

.badge-allergie { background: #FFF9C4; color: #F57F17; }

.race-stars {
  display: flex;
  gap: 2px;
}

.star { color: var(--yellow-dark); font-size: 0.9rem; }
.star.empty { color: var(--gray-200); }

/* ===== FILTRES ===== */
.filters-bar {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235F6368' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--navy);
}

.filter-reset {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  align-self: flex-end;
}

.filter-reset:hover { background: var(--navy-light); }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
  display: none;
}

/* ===== QUIZ ===== */
.quiz-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-progress {
  margin-bottom: 32px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.progress-count {
  font-weight: 700;
  color: var(--navy);
}

.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--yellow));
  border-radius: 50px;
  transition: width 0.5s ease;
}

.quiz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-step h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.quiz-step .step-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.quiz-option {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quiz-option:hover {
  border-color: var(--navy);
  background: rgba(26,35,126,0.03);
  transform: translateY(-2px);
}

.quiz-option.selected {
  border-color: var(--navy);
  background: rgba(26,35,126,0.06);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.option-emoji { font-size: 2rem; }
.option-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.option-desc { font-size: 0.75rem; color: var(--gray-600); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.btn-quiz-prev, .btn-quiz-next {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-quiz-prev {
  background: var(--gray-100);
  color: var(--gray-600);
}

.btn-quiz-prev:hover { background: var(--gray-200); }

.btn-quiz-next {
  background: var(--navy);
  color: var(--white);
  margin-left: auto;
}

.btn-quiz-next:hover {
  background: var(--navy-light);
  transform: translateX(4px);
}

.btn-quiz-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Quiz Results */
.quiz-results {
  display: none;
  animation: fadeIn 0.5s ease;
}

.quiz-results.show { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.results-header p { color: var(--gray-600); }

.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.result-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: var(--transition);
}

.result-card.top {
  border-color: var(--yellow);
}

.result-card-photo {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.top-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--yellow);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}

.result-card-body {
  padding: 20px;
  background: var(--white);
}

.result-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.result-card-body p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.match-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
}

.match-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--yellow));
  border-radius: 50px;
}

.match-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.btn-restart {
  display: block;
  text-align: center;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
}

.btn-restart:hover { background: var(--gray-200); }

/* ===== HERO PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 60px 20px 70px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.page-hero h1 span { color: var(--yellow); }

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.breadcrumb-inner a { color: var(--navy); transition: var(--transition); }
.breadcrumb-inner a:hover { color: var(--navy-light); }
.breadcrumb-inner span { color: var(--gray-400); }

/* ===== CONTENU ARTICLE ===== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--gray-800);
}

.article-content ul, .article-content ol {
  padding-left: 0;
  margin-bottom: 20px;
}

.article-content ul li, .article-content ol li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--gray-800);
  line-height: 1.6;
}

.article-content ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-size: 0.6rem;
  top: 10px;
}

.article-content ol {
  counter-reset: list;
}

.article-content ol li {
  counter-increment: list;
}

.article-content ol li::before {
  content: counter(list);
  position: absolute;
  left: 0;
  color: var(--white);
  background: var(--navy);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 8px;
}

.callout {
  background: linear-gradient(135deg, rgba(26,35,126,0.06), rgba(26,35,126,0.02));
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.callout.warning {
  background: rgba(253,216,53,0.1);
  border-left-color: var(--yellow-dark);
}

.callout.success {
  background: rgba(46,125,50,0.06);
  border-left-color: #2E7D32;
}

.callout h4 {
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.callout p { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--navy); }
.faq-item.open { border-color: var(--navy); }

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  gap: 16px;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-item.open .faq-icon { background: var(--yellow); color: var(--navy); transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ===== CONTACT FORM ===== */
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(26,35,126,0.08);
}

.form-group textarea { resize: vertical; min-height: 140px; }

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

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,35,126,0.3);
}

/* ===== SECTION BG ALTERNÉE ===== */
section.bg-gray { background: var(--gray-50); }
section.bg-navy {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}
section.bg-navy .section-tag { background: rgba(253,216,53,0.15); color: var(--yellow); }
section.bg-navy .section-header h2 { color: var(--white); }
section.bg-navy .section-header p { color: rgba(255,255,255,0.7); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-band p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===== RACE INFO TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
}

.info-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
}

.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: var(--gray-50); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--yellow); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.8rem; }
.footer-bottom a { color: var(--yellow); }

/* ===== CHIP TAGS ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  background: rgba(26,35,126,0.08);
  color: var(--navy);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ===== DOG SVG ILLUSTRATION ===== */
.dog-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* ===== 404 ===== */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.page-404 .code-404 {
  font-size: 8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 h1 { font-size: 1.8rem; margin-bottom: 16px; }
.page-404 p { color: var(--gray-600); margin-bottom: 32px; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, rgba(26,35,126,0.06), rgba(253,216,53,0.08));
  border: 1px solid rgba(26,35,126,0.12);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
}

.highlight-box h3 {
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  section { padding: 60px 0; }
  .quiz-card { padding: 24px 20px; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 80px; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .filters-bar { flex-direction: column; }
  .quiz-options { grid-template-columns: 1fr 1fr; }
}
