/* --- Réinitialisation et Thème --- */
:root {
  --primary-color: #005a9c; /* Bleu Riviera */
  --secondary-color: #ffa500; /* Touche de soleil (orange) */
  --text-dark: #333;
  --text-light: #fdfdfd;
  --bg-light: #fdfdfd;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}
.logo span {
  color: var(--primary-color);
}
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}
nav li {
  margin-left: 25px;
}
nav a {
  text-decoration: none;
  color: #555;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
nav a:hover {
  color: var(--primary-color);
}
nav a.cta-button-nav {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 18px;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
nav a.cta-button-nav:hover {
  background-color: #004170;
  color: var(--text-light);
  transform: scale(1.05);
}

/* --- Section Hero (AMÉLIORÉ) --- */
.hero {
  height: 70vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 90, 156, 0.2) 0%,
    rgba(255, 165, 0, 0.1) 100%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  padding: 30px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin: 0 0 20px 0;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.95;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
  margin-top: 10px;
}

.hero-cta:hover {
  background-color: #ff8c00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

/* --- Section Titre --- */
.section-title {
  text-align: center;
  margin: 80px auto 50px auto;
  animation: fadeIn 0.8s ease-out;
  display: block;
  width: 100%;
}

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

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 auto 16px auto;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  text-align: center;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-title p {
  font-size: 1.15rem;
  color: var(--text-medium);
  max-width: 650px;
  margin: 24px auto 0 auto;
  line-height: 1.6;
  text-align: center;
}

/* --- Grille d'articles (Cartes) --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-content {
  padding: 25px;
}
.card-category {
  display: inline-block;
  background-color: #e6f0ff;
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 15px 0 10px 0;
}
.card-content h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}
.card-content h3 a:hover {
  color: var(--primary-color);
}
.card-content p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}
.card-read-more {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.card-read-more:hover {
  color: #004170;
}

/* --- Appel à l'action Principal (CTA) --- */
.main-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%);
  color: var(--text-light);
  padding: 60px 30px;
  margin-top: 80px;
  text-align: center;
  border-radius: 12px;
}
.main-cta h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin: 0 0 15px 0;
}
.main-cta p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}
.cta-button-main {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}
.cta-button-main:hover {
  background-color: #ff8c00;
  transform: scale(1.05);
}

/* --- Footer --- */
footer {
  background-color: #222;
  color: #ccc;
  padding: 50px 0;
  margin-top: 80px;
  text-align: center;
}
.footer-links {
  margin-top: 15px;
  margin-bottom: 15px;
}
.footer-links a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--secondary-color);
}
footer p {
  font-size: 0.9rem;
  margin: 0;
}
footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: var(--secondary-color);
}

/* --- STYLES POUR PAGES SIMPLES --- */
.simple-page-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.simple-page-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* --- STYLES POUR ARTICLES --- */
.article-content {
  max-width: 800px;
  margin: 60px auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}
.article-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}
.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.article-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}
.article-content ul {
  margin: 20px 0;
  padding-left: 30px;
}
.article-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}
.article-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

/* --- Adaptation Mobile (Responsive) --- */
@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    height: 60vh;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-cta {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav li {
    margin-left: 10px;
  }

  .article-content,
  .simple-page-content {
    padding: 25px;
    margin: 40px 20px;
  }
}
