/* Variables CSS */
:root {
  --primary-color: #1a2c5b; /* Bleu marine profond pour une allure sérieuse */
  --secondary-color: #3b5998; /* Bleu académique moderne */
  --accent-color: #e67e22; /* Orange subtil pour les accents */
  --background-color: #fafafa; /* Fond légèrement plus clair et propre */
  --text-color: #2d2d2d; /* Texte sombre pour contraste optimal */
  --text-secondary: #5f6a7d; /* Gris bleuté pour texte secondaire */
  --font-heading: 'Roboto', sans-serif; /* Police moderne et professionnelle */
  --font-body: 'Lora', serif; /* Police élégante pour le corps */
  --font-size-base: 1.125rem; /* Base conservée */
  --spacing-unit: 1.5rem; /* Unité d'espacement standardisée */
}

/* Réinitialisation */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: var(--font-size-base);
  overflow-x: hidden; /* Éviter défilement horizontal indésirable */
}

/* Liens */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  margin: var(--spacing-unit) 0;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: var(--spacing-unit);
}

.secondary-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Boutons */
.button {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Conteneur principal */
.container {
  width: 100%;
  max-width: 1280px; /* Légèrement plus large pour contenu moderne */
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Grille responsive */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-unit);
}

/* En-tête */
.pkp_structure_head {
  background: linear-gradient(120deg, var(--primary-color) 30%, var(--secondary-color));
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.pkp_structure_head::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 50%;
}

.pkp_site_name .is_img img {
  max-height: 120px;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease;
}

.pkp_site_name .is_img img:hover {
  transform: scale(1.05);
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--spacing-unit);
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-menu {
  display: flex;
  gap: 2rem;
}

.navbar-menu a {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
}

.navbar-menu a:hover {
  color: var(--accent-color);
}

.navbar-toggle {
  display: none;
  font-size: 1.75rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

/* Cartes */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-unit);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Pied de page */
.pkp_structure_footer_wrapper {
  background: var(--primary-color);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  font-size: 0.95rem;
}

.pkp_structure_footer_wrapper a {
  color: var(--accent-color);
  font-weight: 500;
}

.pkp_structure_footer_wrapper a:hover {
  color: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }

  .container {
    padding: 0 1rem;
  }

  .pkp_structure_head {
    padding: 2rem 0;
  }

  .pkp_site_name .is_img img {
    max-height: 90px;
  }

  .navbar {
    padding: 1rem;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-menu.active {
    display: flex;
  }

  .card {
    padding: 1rem;
  }

  .pkp_structure_footer_wrapper {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}