@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&family=Poppins&display=swap');
body {
  padding: 0 2%;
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: whitesmoke;
  color: #b39822;
  font-size: 16px;
  line-height: 1.6;
}
/* Container du flipbook */
.flipbook-container {
  perspective: 2000px;
  max-width: 90vw;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

/* Zone des boutons */
.navigation {
  text-align: center;
  margin-bottom: 15px;
}

.navigation button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 90px;
}

/* Flipbook zone */
.flipbook {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  /* ratio paysage (ajustable à 4/3, 16/9, etc.) */
}

/* Pages individuelles */
.page {
  position: absolute;
  width: 100%;
  height: 100%;
  margin-top: 20px;
  background: rgb(224, 105, 8);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transform-origin: left;
  transform-style: preserve-3d;
  transition: transform 1s ease;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 30px;
}

/* Face visible de chaque page */
.page-front {
  width: 100%;
  height: 100%;
  margin-top: 0; 
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.page-front strong {
  color: white;
  font-weight: bold;
}
.page-front img {
  width: 100%;
  height: auto;
  max-height: 60%;
  object-fit: cover;
  border-radius: 4px;
}

/* Quand on tourne la page */
.page.flipped {
  transform: rotateY(-180deg);
  z-index: 0 !important;
}
.section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.section h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #2c3e50;
}
/* Responsiveness sur petits écrans */
@media (max-width: 600px) {
  .navigation button {
    font-size: 14px;
    padding: 8px 16px;
  }

  .page-front h2 {
    font-size: 18px;
  }

  .page-front p {
    font-size: 14px;
  }
}
/* Effet de fade-in pour le texte */
.fade-in-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease forwards;
  animation-delay: 0.3s;
}

/* Effet pour l'image */
.fade-in-image {
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInImage 2s ease forwards;
  animation-delay: 1s;
}

/* Animation du texte */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation de l’image */
@keyframes fadeInImage {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
h2 {
  margin-top: 0;
  color: #222;
}
p {
  font-size: 1rem;
  color: white;
  background-color: #dd6707;
  border-radius: 10px;
}
img {
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.buttons {
  margin-top: 15px;
  text-align: center;
}
button {
  background: #007bff;
  margin-top: 20px;
  border: none;
  color: white;
  padding: 10px 18px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}
button:hover:not(:disabled) {
  background: #0056b3;
}
button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.page-number {
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  color: #666;
}
/* Scrollbar styling for pages */
.page::-webkit-scrollbar {
  width: 6px;
}
.page::-webkit-scrollbar-thumb {
  background: #e5e9ec;
  border-radius: 3px;
}
.page::-webkit-scrollbar-track {
  background: #eee;
}
/* NAVIGATION */
nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(19, 206, 159);
  padding: 40px;
  border-radius: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 10px 0 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
    display: flex;
    background-color: #232f3f; /* bleu */
    color: white;
    font-size: 1.2rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links li a:hover {
  background-color: magenta; /* bleu plus foncé au survol */
    transform: scale(1.1);
}
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content select {
  background-color: #fff;
  border-radius: 10px;
}

.modal-content textarea {
  resize: vertical;
}

.consent-label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
}

.modal-content button {
  padding: 10px;
  background-color: #f0c040;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background-color: #c9a533;
}
/* Fond sombre */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998;
  display: none;
}

/* Menu à gauche */
#menu-left, #menu-right {
  position: fixed;
  top: 0;
  width: 250px;
  height: 100%;
  background-color: #111;
  color: white;
  z-index: 999;
  transition: 0.3s ease;
  padding-top: 60px;
}

#menu-left {
  left: -250px;
}

#menu-right {
  right: -250px;
}

/* Liens du menu */
.menu-content a {
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  display: block;
  transition: 0.3s;
}

.menu-content a:hover {
  background-color: #575757;
  border-radius: 8px;
}

.menu-toggle {
  font-size: 6px;      /* Taille de la police standard */
  padding: 10px 20px;    /* Espacement intérieur pour un bon confort de clic */
  background-color: #007BFF;  /* Bleu standard Bootstrap-like */
  color: white;          /* Texte blanc */
  border: none;          /* Pas de bordure par défaut */
  border-radius: 4px;    /* Bords légèrement arrondis */
  cursor: pointer;       /* Curseur pointeur */
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: #0056b3; /* Un bleu plus foncé au survol */
}
#toggle-left {
  left: 20px;
}

#toggle-right {
  right: 20px;
}

.form-message {
  font-size: 14px;
  min-height: 20px;
  margin-top: 5px;
}
/* MODALE */
#popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  padding: 40px;
}

.modal-content {
  background: white;
  margin: auto;
  padding: 30px;
  max-width: 600px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 10px #0003;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button[type="submit"] {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

#confirmation-message {
  color: green;
  font-weight: bold;
  display: none;
  margin-top: 15px;
}

/* Modal et formulaire */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: Arial, sans-serif;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="date"],
.modal-content input[type="time"] {
  padding: 8px 10px;
  border: 1.5px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="date"]:focus,
.modal-content input[type="time"]:focus {
  border-color: #f0c040;
  outline: none;
}

.consent-label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.modal-content button[type="submit"] {
  padding: 10px;
  background-color: #f0c040;
  color: #222;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-content button[type="submit"]:hover {
  background-color: #c9a533;
}

.form-message {
  margin-top: 8px;
  font-size: 14px;
  color: red;
  min-height: 18px;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  max-height: 90vh; /* Hauteur max visible de la modale */
  width: 90%;
  max-width: 500px;
  padding: 20px;
  border-radius: 10px;
  overflow-y: auto; /* ✅ Scroll si le contenu dépasse */
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Tu peux aussi fixer une hauteur minimum */
@media (min-height: 600px) {
  .modal-content {
    min-height: 400px;
  }
}

/* === MODAL GLOBAL === */

/* === FERMETURE (X) === */
.modal-content .close {
  position: absolute;
  top: 12px;
  right: 15px;
  color: #444;
  font-size: 28px;
  cursor: pointer;
}

.modal-content .close:hover {
  color: #e74c3c;
}

/* === TITRE === */
.modal-content h2 {
  margin-bottom: 20px;
  color: #333;
}

/* === CHAMPS DE SAISIE === */
.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  transition: border 0.3s ease;
  font-size: 16px;
}

.modal-content input:focus {
  outline: none;
  border-color: #3498db;
  background-color: #fff;
}

/* === BOUTON === */
.modal-content button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background-color: #b0d387;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #9da1a3;
}

.profile img {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  z-index: 1000;
}
.slide-track {
  display: flex;
  width: calc(300px * 12); /* Ajuste selon le nombre d’images */
  animation: scroll 40s linear infinite;
}

.slide {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 300px;
  margin: 20px auto;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  transition: transform 30s ease;
  margin-top: 20px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.bouton-lien {
  display: inline-block;
  background-color: #4271a0; /* Bleu */
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.bouton-lien:hover {
  background-color: #b6b9b0; /* Bleu foncé */
  text-decoration: none;
}

button {
    background-color: #3173c4; /* bleu */
    color: white;
    font-size: 1.2rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  button:hover {
    background-color: #e1e4e7; /* bleu plus foncé au survol */
    transform: scale(1.1); /* effet zoom */
  }
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.skills-section {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.skills-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #006837;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-weight: bold;
  color: #333;
  transition: transform 0.2s, background-color 0.3s;
  font-size: 1.1em;
}

.skill:hover {
  transform: translateY(-5px);
  background-color: #e0f4e9;
  color: #006837;
}

/* Header */
header {
  background-color: lightgray;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 40px; /* Ajoute de l’espace sous le header */
}

header h1 {
  color: green;
  font-size: 28px;
  position: fixed;
}

header p {
  font-size: 18px;
  margin-top: 10px;
}
.description-img img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
}
.project  {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 200px;
}

/* Projets */
.projets-section, .projects-section {
  margin: 40px 0;
  text-align: center;
}

.Projets, .projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.project img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.footer-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.footer {
  display: flex;
  flex-direction: column; /* Stack vertically by default */
  align-items: center;
  text-align: center;
  gap: 20px;
}
.footer-text {
  background-color: #e8f5e9;
  border-left: 6px solid #2e7d32;
  padding: 30px;
  margin: 40px 0;
  border-radius: 10px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

.footer-text .history {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  white-space: pre-line;
}

.footer-text strong {
  display: inline-block;
  margin-top: 20px;
  font-size: 1.1em;
  color: #006837;
}
.footer-img {
  text-align: center;
  margin-top: 30px;
  padding: 10px;
  background-color: #f4f4f4;
  border-top: 2px solid #ccc;
}

.footer-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.footer-img img:hover {
  transform: scale(1.03);
}

.footer-img img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.contact {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 40px;
  background-color: #1e1e2f; /* fond général du footer */
  color: white;
}

.column {
  background-color: #2a2a3b; /* fond de chaque bloc */
  padding: 20px;
  border-radius: 10px;
  margin: 10px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.column h3 {
  color: #f9b233;
  margin-bottom: 15px;
}

.column p {
  margin: 8px 0;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.column p:hover {
  transform: translateX(10px);
  color: #f9b233;
}
/* Conteneur NAV si présent */
nav {
  align-items: center;
}
/* === Menu Toggle (Mobile) === */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* === Navigation de base === */
.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Desktop : Liens actifs alignés à droite */
.nav-links.active {
  margin-left: auto;
  background-color: transparent;
  font-size: 1.2rem;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Survol des liens */
.nav-links.active:hover {
  background-color: rgba(107, 197, 33, 0.2);
  transform: scale(1.05);
}

/* Liens internes */
.nav-links li a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  padding: 8px 12px;
  transition: background-color 0.3s ease;
}

/* Hover */
.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Conteneur NAV si présent */
nav {
  align-items: stretch;
}
@media (min-width: 769px) {
  .nav-links {
    margin-left: auto;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;              /* caché par défaut */
    flex-direction: column;
    position: fixed;            /* fixé sur l’écran */
    top: 0;
    right: 0;                  /* aligné à droite */
    height: 100vh;             /* prend toute la hauteur */
    width: 250px;              /* largeur fixe ou ajustable */
    background-color: #1a1a1a;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;          /* scroll si trop long */
    border-radius: 0 0 0 8px;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;             /* affiché quand actif */
  }
}
/* === Responsive : Mobile === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: forestgreen;
    color: white;
    padding: 10px 15px;
    z-index: 1100;
    border: none;
    border-radius: 5px;
  }

  .nav-links {
    display: none; /* caché par défaut */
    flex-direction: column;
    align-items: flex-start;
    background-color: #1a1a1a;
    position: fixed;
    top: 60px;
    right: 0;
    width: 80%;
    padding: 20px;
    z-index: 1000;
    border-radius: 0 0 0 8px;
  }

  .nav-links.active {
    display: flex;
  }
}
/* === Responsive (mobile) === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgb(231, 119, 14);
    color: white;
    padding: 10px 15px;
    z-index: 1100;
    border: none;
    border-radius: 5px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .nav-links.active {
    margin-left: 0;
    width: 100%;
  }
}
.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: auto;
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
}

/* Animation fade */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from { opacity: 0.4 } 
  to { opacity: 1 }
}
/* Style de la vidéo */
#background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}

/* Contenu par-dessus la vidéo */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: black;
  padding-top: 20vh;
  font-family: Arial, sans-serif;
  background-color: #d3d7db;
}
.form-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
  }

  .form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #e8eaeb;
  }

  .form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
  }

  .form-container input[type="text"],
  .form-container input[type="email"],
  .form-container select,
  .form-container textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
  }

  .form-container textarea {
    resize: vertical;
  }

  .form-container input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
  }

  .form-container button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4caf50;
  }