/* ============================================================
   SITECAMPING.COM - CSS COMPLET POUR ONE-PAGE
   Design System Moderne & Responsive
   ============================================================ */

/* Variables et Reset */
:root {
  --primary: #2D5016;
  --primary-light: #4A7C2C;
  --primary-dark: #1a3009;
  --accent: #E8A76A;
  --accent-light: #F5C997;
  --accent-dark: #D4934F;
  --dark: #1F2937;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.6;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.25rem;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
  color: var(--dark);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header Navigation */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--accent-dark);
  box-shadow: var(--shadow-lg);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section.bg-light {
  background-color: var(--gray-50);
}

.section.bg-primary {
  background-color: var(--primary);
  color: var(--white);
}

.section.bg-primary h2 {
  color: var(--white);
}

.section.bg-primary p {
  color: rgba(255, 255, 255, 0.9);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
}

/* Campings Grid */
.campings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.camping-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.camping-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.camping-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.camping-card-content {
  padding: 1.5rem;
}

.camping-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.location {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--primary-light);
  color: var(--white);
}

/* Three Columns */
.three-cols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.col-item {
  text-align: center;
  padding: 2rem;
}

.col-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.col-item h3 {
  margin-bottom: 1rem;
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.guide-item {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.guide-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.guide-item h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.guide-list {
  list-style: none;
  margin: 1.5rem 0;
}

.guide-list li {
  padding-left: 1.5rem;
  position: relative;
}

.guide-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Regions Grid */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.region-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.region-card:hover {
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent);
}

.region-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.region-camping {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 1rem 0;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.link:hover {
  color: var(--accent-dark);
}

/* Types Grid */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.type-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.type-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.type-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.type-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.type-highlights {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.type-highlights span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--gray-100);
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--gray-700);
}

/* Annuaire */
.annuaire-search {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.annuaire-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.annuaire-results {
  margin-top: 2rem;
}

.annuaire-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.annuaire-item:hover {
  box-shadow: var(--shadow-lg);
}

.annuaire-item-left img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.annuaire-item-right h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.annuaire-location {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.annuaire-meta {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.annuaire-note {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .annuaire-item {
    flex-direction: column;
  }
  
  .annuaire-item-left img {
    width: 100%;
    height: 200px;
  }
}

/* Gerants Section */
.gerants-spotlight {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.spotlight-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.gerants-spotlight h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.gerants-spotlight p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
}

.gerants-spotlight a {
  color: var(--accent-light);
}

.gerants-spotlight .btn {
  margin-top: 1rem;
}

.gerants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gerant-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.gerant-card:hover {
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
}

.gerant-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gerant-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.gerants-faq {
  margin-top: 3rem;
}

.gerants-faq h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.faq-item h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
}

.stats h2 {
  color: var(--white);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Newsletter */
.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group textarea {
  min-height: 150px;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 2rem;
}

.mb-lg {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .annuaire-search {
    flex-direction: column;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .btn {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
  animation: slideUp 0.6s ease-in-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
