/* --- VARIABLES ET REINITIALISATION --- */
:root {
  --primary: #1e3a8a;       /* Bleu foncé technique */
  --secondary: #0284c7;     /* Bleu air/cyan moderne */
  --dark: #0f172a;          /* Texte sombres */
  --light-bg: #f8fafc;      /* Fond gris très clair */
  --card-bg: #ffffff;
  --text: #334155;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Défilement fluide lors du clic sur le menu */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.6;
}

/* --- EN-TÊTE ET NAVIGATION --- */
.header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#site-logo {
  height: 120px;
  width: auto;
  display: block;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--secondary);
}

.nav .btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav .btn-nav:hover {
  background: var(--secondary);
  color: #fff;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: #ffffff;
  color: var(--primary);
  font-weight: bold;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- STRUCTURE GÉNÉRALE --- */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 4rem 1.5rem;
}

.bg-light {
  background-color: var(--light-bg);
  border-radius: 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #64748b;
  font-size: 1.1rem;
}

/* --- GRILLES ET CARTES --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* --- GRILLE A 3 COLONNES --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.text-center {
  text-align: center;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* --- CONTACT --- */
.contact-card {
  background: var(--primary);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-card .address {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-item {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  width: 100%;
  max-width: 350px;
  transition: background 0.2s;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: #64748b;
  font-size: 0.9rem;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav a {
    margin: 0 0.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
  
  /* Ajustement de la taille du logo sur smartphone */
  #site-logo {
    height: 60px;
  }
}