/* Style CSS pour Agrid Sokjon Ovh - Site officiel du président Agrid SOKJON */

/* Reset et variables de base */
:root {
  --primary-color: #0a2463;  /* Bleu marine présidentiel */
  --secondary-color: #b4910e;  /* Or présidentiel */
  --accent-color: #8b0000;    /* Rouge bordeaux */
  --text-color: #333333;
  --light-bg: #f8f9fa;        /* Fond clair élégant */
  --dark-bg: #1a1a1a;         /* Fond sombre pour contraste */
  --border-radius: 2px;       /* Bords plus nets */
  --box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease;
  --header-height: 80px;
  --content-width: 1200px;
}

/* Typographie */
body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  margin-top: 0;
  color: var(--primary-color);
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  border-bottom: 1px solid var(--secondary-color);
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

p {
  margin-bottom: 1rem;
}

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

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

/* En-tête avec logo */
.eco-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  height: 60px;
  margin-right: 20px;
}

.eco-header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.eco-header nav a {
  color: white;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.eco-header nav a:hover {
  background-color: var(--secondary-color);
  color: var(--dark-bg);
}

/* Bannière et images */
.banner {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.president-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.president-portrait {
  width: 300px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.president-text {
  flex: 1;
}

.president-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Galerie d'images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item p {
  padding: 1rem;
  margin: 0;
  text-align: center;
  font-weight: 500;
  color: var(--primary-color);
}

/* Layout - Single Column Hero */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="flag" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="%23ffb300"/><rect x="0" y="0" width="8" height="20" fill="%232e7d32"/><rect x="12" y="0" width="8" height="20" fill="%23d32f2f"/></pattern></defs><rect width="100" height="100" fill="url(%23flag)" opacity="0.1"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: var(--dark-bg);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

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

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

/* En-tête présidentiel */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  margin-right: 15px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--primary-color);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-menu a:hover {
  background-color: var(--secondary-color);
  color: var(--dark-bg);
}

.nav-menu a.active {
  background-color: var(--secondary-color);
  color: var(--dark-bg);
}

/* Section principale */
.main-content {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Discours officiels */
.discours-item {
  background-color: white;
  border-left: 4px solid var(--secondary-color);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}

.discours-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.discours-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.discours-content {
  line-height: 1.8;
}

/* Galerie officielle */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.galerie-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.galerie-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.galerie-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.galerie-item:hover .galerie-caption {
  transform: translateY(0);
}

/* Formulaire de contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.2);
}

.textarea-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  font-size: 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Pied de page */
.footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p, .footer-section a {
  color: #ccc;
  margin-bottom: 0.8rem;
  display: block;
}

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

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* Classes forensiques partagées */
.gaia-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.eco-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  text-align: center;
}

/* Design responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-menu {
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Animations et transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Style spécifique pour les articles */
.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: #666;
  font-size: 0.9rem;
}

.article-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

.article-content blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin-left: 0;
  color: var(--primary-color);
  font-style: italic;
  background-color: rgba(46, 125, 50, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

/* Style pour les tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background-color: var(--secondary-color);
  color: var(--dark-bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag:hover {
  background-color: var(--accent-color);
  color: white;
}