/* ==== base.css ==== */
/* Variables & Reset */
:root {
  --color-primary: #0d1b2a;      /* Bleu nuit */
  --color-secondary: #1b263b;    /* Bleu très foncé */
  --color-light: #f1f5f9;        /* Gris très clair */
  --color-gray: #9ca3af;
  --color-dark-gray: #4b5563;
  --radius: 16px;
  --shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==== Header & Navigation ==== */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo img {
  height: 80px;
}

.nav ul {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  color: var(--color-secondary);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ==== Sections communes ==== */
.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-primary);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ==== Contact (commun à index.html) ==== */
.contact .section-title {
  color: var(--color-primary);
}

.contact-info h3, .contact-info h4 {
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
}

.contact-info p, .contact-info address {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ==== Smooth Scroll Global ==== */
html {
  scroll-behavior: smooth;
}

/* ==== SweetAlert2 — Style AIOUAZ ==== */
.swal2-border-radius {
  border-radius: 16px !important;
  box-shadow: 0 12px 40px -8px rgba(13, 27, 42, 0.3) !important;
}

.swal2-icon-large {
  width: 5rem !important;
  height: 5rem !important;
}

.swal2-btn-primary {
  background: #0d1b2a !important;
  color: white !important;
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  transition: transform 0.2s;
}
.swal2-btn-primary:hover {
  transform: scale(1.05);
}

/* Pour compatibilité ancien iOS / certains navigateurs */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ==== Footer ==== */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* ==== Responsive Mobile ==== */
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 1.5rem 0;
  }

  .nav ul.active {
    display: flex;
  }

  .nav ul li {
    margin: 0.75rem 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.875rem; }
}