/* Style moderne et épuré avec couleur équilibrée */


/* Importer une police Google Fonts (optionnel) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Appliquer la police à tout le site */
body {
    font-family: 'Roboto', Arial, sans-serif;
}

/* Appliquer la police sur les boutons et liens */
button, .btn, a {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: bold;
}

/* Appliquer la police sur les titres */
h1, h2, h3 {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: bold;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #ffffff;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Menu de navigation moderne */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    padding: 15px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

/* Sections pleine largeur */
section {
    width: 100%;
    padding: 80px 10%;
}

h1, h2 {
    color: #222;
    font-weight: 600;
    margin-bottom: 15px;
}

p {
    font-size: 18px;
    color: #292929;
}

/* Réduction de la taille des icônes */
.icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.icons .icon {
    width: 50px;
    height: auto;
}

/* Boutons */
.btn {
    background: #007bff;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.btn:hover {
    background: #0056b3;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 20px;
    background: #000000;
    color: #fffefe;
    font-size: 14px;
}
/* Réduction de la taille du logo */
.logo {
    height: 60px;  /* Ajuste la hauteur du logo */
    width: auto;   /* Garde les proportions */
    margin-right: 20px; /* Espace entre le logo et le menu */
}

/* Réduction des icônes */
.icons img {
    width: 50px;  /* Taille des icônes */
    height: auto; /* Garde le ratio */
    margin: 5px;  /* Espacement entre les icônes */
}
/* Réduction de l'espace entre les sections */
section {
    padding: 40px 10%;  /* Avant : 80px, réduit à 40px */
}

/* Ajustement des titres */
h1, h2 {
    margin-bottom: 10px; /* Réduit l'espace sous les titres */
}

/* Ajustement des paragraphes */
p {
    margin-bottom: 10px; /* Réduit l'espace entre les paragraphes */
}

/* Espacement réduit sous le menu */
header {
    margin-bottom: 15px; /* Avant : 20px, réduit à 15px */
}

.card {
    background: #f8f8f8; /* Fond léger */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    padding: 10px; /* Réduction du padding */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    width: 120px; /* Réduction de la largeur */
    margin: 10px; /* Espacement entre les cards */
}

/* Effet au survol */
.card:hover {
    transform: translateY(-3px); /* Légère élévation */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style des images dans les cards */
.card img {
    width: 50px; /* Réduction de la taille des images */
    height: auto;
    margin-bottom: 5px;
}

/* Style du texte */
.card p {
    font-size: 14px; /* Texte plus petit */
    font-weight: bold;
    color: #333;
}

/* Conteneur des projets */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 40px 10%;
}

/* Style des cards des projets */
.project-card {
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;  /* Largeur réduite */
    height: 260px; /* Hauteur réduite */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Effet au survol */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Style des vidéos */
.clickable-video {
    width: 100%;
    height: 100px; /* Hauteur ajustée */
    border-radius: 5px;
}

/* Ajustement du titre pour éviter qu'il prenne trop de place */
.project-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}
/* Réduction de la taille des images dans la galerie */
.image-gallery img {
    width: 300px; /* Taille réduite */
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

/* Effet au survol */
.image-gallery img:hover {
    transform: scale(1.1);
}

/* Conteneur des images */
.image-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

/* Réduction de la taille de la vidéo */
.demo-video {
    width: 60%; /* Avant : 70%, maintenant 60% */
    max-width: 600px; /* Largeur maximale */
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
}
/* Formulaire de contact */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Champs du formulaire */
input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Bouton */
.btn {
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    transition: background 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: #0056b3;
}
/* Conteneur des projets */
.projects-container {
    display: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Style des cards de projet */
/* Conteneur des projets */
.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Style des cards de projet */
.project-card {
    width: 280px;
    height: 320px; /* Ajout d'une hauteur fixe */
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Style des images */
.project-card img {
    width: 100%;
    height: 180px; /* Fixe la hauteur pour toutes les images */
    object-fit: contain; /* Garde le ratio et évite le crop */
    background: #fff;
    padding: 10px; /* Ajoute un peu d'espace pour éviter que l'image colle aux bords */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Contenu de la card */
.card-content {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Titre de projet */
.project-card h3 {
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}

/* Effet au survol */
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* Section présentation vidéo */
.demo-video {
    width: 80%;
    max-width: 800px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Conteneur des captures d'écran */
.image-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.image-gallery img {
    width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}
.container {
    width: 90%;
    max-width: 1200px;
  }
  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* Écrans petits (téléphones) */
@media screen and (max-width: 768px) {
    body {
      font-size: 14px;
    }
    .container {
      flex-direction: column; /* Empile les éléments verticalement */
    }
    img {
      width: 100%; /* Pour que les images ne dépassent pas */
      height: auto;
    }
  }
  body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
  }
  
  .dark-mode header,
  .dark-mode footer,
  .dark-mode section {
    background-color: #1e1e1e;
    color: #f0f0f0;
  }
  
  .dark-mode .nav-links a {
    color: #f0f0f0;
  }
  
  .dark-mode .btn {
    background-color: #333;
    color: #fff;
  }
  
  .dark-mode .btn:hover {
    background-color: #555;
  }
  