/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}


body {
    background-color: #f4f7fc; /* Fond clair pour contraster avec le bleu-vert */
    color: #333;
    line-height: 1.6;
}
body::before {
  content: "";
  display: block;
  height: 240px; /* correspond exactement à la hauteur de l'en-tête */
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header Styles */
header {
  background-color: #006f5f;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style pour la navigation */
nav ul {
  width: 100%;/* Prend toute la largeur de l'écran */
  display: flex; /* Aligne les éléments en ligne */
  flex-direction: row; /* Aligne les éléments de gauche à droite */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 150px; /* Ajoute de l'espace entre les éléments */
  background-color:rgba(0, 0, 0, 0.5); /* Noir avec 50% de transparence */
  margin-top: 2px; /* ajuste selon ton besoin */  
  /* D'autres styles : padding, display, etc. */
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}



/* Menu principal en pleine largeur */
.menu {
  display: flex;
  flex-direction: row-reverse; /* Aligne de droite à gauche */
  justify-content: flex-start; /* Aligne les éléments à droite */
  gap: 20px;
  background-color: #009688;
  padding: 15px 30px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Conteneur pour les liens du menu si tu veux encore mieux contrôler */
nav .menu-links {
  display: flex;
  gap: 5px; /* Espace entre les liens */
}

/* Liens du menu */
nav a {
  color: #000000; /* Noir */
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bold;
  transition: background 0.3s ease;
}

/* Effet au survol */
nav a:hover {
  background-color: #009688; /* bleu vert pur au survol */
  border-radius: 4px;
}


/* Hero Section */
.hero {
    background-image: url(https://raw.githubusercontent.com/DANDJEKPO/Secs-Ddk-site-web/refs/heads/main/3.jpg); /* Remplacer par une image propre */
    background-size: cover;
    background-position: center;
    color: white;
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

.hero p {
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.hero .cta-button {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #006f5f; /* Bleu-vert sombre */
    color: white;
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero .cta-button:hover {
    background-color: #00796b; /* Bleu-vert plus foncé au survol */
}

/* Section Styles */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    font-size: 36px;
    font-weight: 300;
    color: #006f5f; /* Bleu-vert sombre */
    margin-bottom: 30px;
    letter-spacing: 1px;
}

section p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

/* Card Layout for Content */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #006f5f; /* Bleu-vert sombre */
}

.card p {
    font-size: 16px;
    color: #666;
}

/* Footer Styles */
footer {
    background-color: #006f5f; /* Bleu-vert très sombre */
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

footer p {
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 300px) {
    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    section h2 {
        font-size: 28px;
    }

    section p {
        font-size: 16px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}

/* Animation du texte qui clignote */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 2s step-start infinite;
    
}

/* Conteneur pour faire défiler le texte */
.scroll-text-wrapper {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

/* Animation du texte qui défile de manière fluide */
@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

/* Rotation de l'icône */NT TRES
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.rotate {
    font-size: 30px;
    display: inline-block;
    animation: rotate 2s infinite linear;
}
.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* Réduit l'espacement pour éviter le débordement */
    padding: 0 10px; /* Ajoute un peu de padding horizontal */
}

.logo img {
    height: 60px; /* Taille fixe pour l'image */
    width: auto;
    max-width: 100%; /* Garantit que l'image ne dépasse pas la largeur de son conteneur */
}
.logo-titre {
    gap: 20px; /* espace entre logo et titre */
}


html, body {
    width: 100%;
    scroll-behavior: smooth; /* Défilement fluide */
    margin: 0; /* Retire les marges par défaut */
    overflow-x: hidden; /* empêche le scroll horizontal */
}

/* Reset */
* {A 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HEADER */
header {
  background-color: #1e7c7c;
  color: #fff;
  padding: 2px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Ajustement automatique pour mobiles */
@media (max-width: 768px) {
  header {
    padding: 2px 5px;
  }
}


/* IMAGES */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* FORMS */
input, textarea, select, button {
  width: 50%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
/* RESPONSIVE */
@media (max-width: 300px) {
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #1e7c7c;
    padding: 10px 0;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  main h1 {
    font-size: 1.4rem;
  }
.notre-discipline {
  padding: 40px 20px;
  background-color: #f0f9f8;
  text-align: center;
}

.notre-discipline h2 {
  color: #00796b;
  margin-bottom: 30px;
  font-size: 28px;
}

.discipline-galerie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.discipline-item {
  max-width: 200px;
}

.discipline-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.discipline-item p {
  margin-top: 10px;
  color: #333;
  font-size: 16px;
}

  main p, main li {
    font-size: 0.95rem;
  }
}
/* Cible uniquement l'élément qui contient l'en-tête */
.davinci-header-container {
  position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      margin: 0;        /* Supprime toute marge extérieure */
    padding: 0;       /* Supprime tout padding interne */
    height: 120px;     /* Définir une hauteur spécifique pour l'en-tête */
}

/* Menu Hamburger */
.menu-toggle {
  display: none; /* Masqué par défaut */
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 9999; /* Assure que le bouton soit au-dessus */
}

.bar {
  width: 25px;
  height: 5px;
  background-color: #333; /* Couleur des barres */
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Affichage du bouton sur mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* Affiche le bouton sur mobile */
  }

  nav ul {
    display: none; /* Masque le menu sur mobile */
    flex-direction: column; /* Les éléments du menu se placent en colonne */
    gap: 5px; /* Espace entre les éléments du menu */
    width: 100%; /* Assure que le menu occupe toute la largeur */
  }

  nav.active ul {
    display: flex; /* Affiche le menu quand activé */
  }
}














#blog-accueil {
  padding: 40px;
  background-color: #f5f5f5;
  text-align: center;
}

#blog-accueil h2 {
  margin-bottom: 30px;
  font-size: 28px;
}

.blog-card {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-card img {
  width: 200px;
  height: auto;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
  text-align: left;
}

.blog-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.blog-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

.blog-content .btn {
  background-color: #2c7be5;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
}

.blog-content .btn:hover {
  background-color: #195ec4;
}
