/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* En-tête */
header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ajouter ces styles au début de la section En-tête */
.title-container {
  text-align: center;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1rem;
}

.profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.1);
}

.name {
  font-size: 2.5rem;
  color: white;
  margin: 0;
  font-weight: 300;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2.5em;
  font-weight: 300;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.nav-link.active {
  background-color: #e74c3c;
  font-weight: bold;
}

/* Styles pour les menus déroulants */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #34495e;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 5px;
  z-index: 1;
  margin-top: 5px;
  left: 0;
}

/* Style supplémentaire pour le menu déroulant */
.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #3498db;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn .fa-chevron-down {
  margin-left: 5px;
  font-size: 0.8em;
}

/* Menu déroulant principal */
.main-dropdown {
  position: relative;
  z-index: 1000;
}

.menu-button {
  background: #3498db;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.menu-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.menu-button i {
  font-size: 1.2rem;
}

/* Style pour les sous-menus */
.submenu-container {
  position: relative;
  display: block;
}

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

.submenu-container .menu-item::after {
  content: '\f054';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.7em;
  margin-left: 5px;
}

.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #2c3e50;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 2;
  border-radius: 0 5px 5px 0;
}

.submenu a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.submenu a:hover {
  background-color: #3498db;
}

.submenu-container:hover .submenu {
  display: block;
}

/* Ajustement pour le menu principal */
.dropdown-content {
  position: relative;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Ajout d'une marge au bas du contenu principal pour éviter que le footer fixe ne cache du contenu */
main {
  margin-bottom: 120px;
}

/* Styles pour la page d'accueil */
.welcome-section {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 3rem;
}

.welcome-section h1 {
  font-size: 5em;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.welcome-section p {
  font-size: 1.2em;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.8;
}

.featured-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.feature-card i {
  font-size: 2.5em;
  color: #3498db;
  margin-bottom: 1rem;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.cv-download-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.cv-download-link i {
  font-size: 1.2rem;
}

/* Styles pour le toggle de langue CV */
.language-toggle {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.toggle-container {
  display: flex;
  background-color: #f0f0f0;
  border-radius: 30px;
  padding: 5px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.toggle-option {
  padding: 12px 25px;
  cursor: pointer;
  z-index: 1;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  border-radius: 25px;
  user-select: none;
}

.toggle-option.active {
  color: white;
}

.slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(50% - 5px);
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 25px;
  transition: transform 0.3s ease;
}

.slider.fr {
  transform: translateX(0);
}

.slider.en {
  transform: translateX(100%);
}

/* Styles pour les affichages de CV */
.cv-content {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.cv-content.active {
  display: block;
}

/* Styles pour la page About Me */
.about-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-header h1 {
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 1rem;
}

.divider {
  height: 3px;
  width: 60px;
  background: #3498db;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card i {
  font-size: 2.5em;
  color: #3498db;
  margin-bottom: 1rem;
}

.about-card h2 {
  color: #2c3e50;
  font-size: 1.5em;
  margin-bottom: 1rem;
  border-bottom: none;
}

.about-card p {
  color: #666;
  line-height: 1.6;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.skills-section {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-item {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.skill-item i {
  font-size: 2.5em;
  color: #3498db;
  margin-bottom: 1rem;
}

.skill-item:hover {
  transform: translateY(-3px);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #3498db;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.cta-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Styles pour la page Architecture */
.architecture-section {
  margin-bottom: 3rem;
}

.architecture-section h2 {
  color: #2c3e50;
  font-size: 1.8em;
  margin-bottom: 1.5rem;
}

.content-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.content-card p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.image-wrapper {
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

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

.full-width-image:hover {
  transform: scale(1.02);
}

.validation-section {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
}

.validation-section h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.validator-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.about-card p {
  color: #666;
  line-height: 1.6;
}

.video-container {
  margin: 1rem 0;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Styles pour la page Plan du site */
.sitemap-section {
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.sitemap-section h2 {
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.sitemap-section h2 i {
  color: #3498db;
}

.sitemap-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-box {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.info-box .description {
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box i {
  color: #3498db;
  font-size: 1.2em;
}

/* Style supplémentaire pour les liens */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
}

/* Style pour les tableaux */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f9fa;
  color: #2c3e50;
}

tr:hover {
  background-color: #f5f5f5;
}

/* Style pour les formulaires */
input, textarea, button {
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}

/* Styles pour les citations */
blockquote {
  border-left: 4px solid #3498db;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
}

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

/* Styles pour la page de téléchargement PDF */
.pdf-container {
  max-width: 800px;
  margin: 0 auto;
}
.pdf-frame {
  width: 100%;
  height: 800px;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-bottom: 20px;
}
.download-section {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.download-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  margin: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}
.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}
.download-button i {
  margin-right: 8px;
}
.language-selector {
  text-align: center;
  margin-bottom: 20px;
}
.language-button {
  background: #f0f0f0;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}
.language-button.active {
  background: #3498db;
  color: white;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}
.pdf-view {
  display: none;
}
.pdf-view.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.validator-badge {
  height: 31px;
  transition: transform 0.3s ease;
}

.validator-badge:hover {
  transform: scale(1.1);
}

/* Styles pour la page Aspect Technique */
.technical-section {
  margin-bottom: 3rem;
}

.technical-section h2 {
  color: #2c3e50;
  font-size: 1.8em;
  margin-bottom: 1.5rem;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.performance-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.performance-card:hover {
  transform: translateY(-5px);
}

.performance-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.performance-card h3 {
  color: #2c3e50;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2em;
}

/* Styles pour la page CV */
.cv-section {
  margin-bottom: 3rem;
}

.cv-container {
  width: 100%;
  height: 800px;
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cv-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cv-link-container {
  text-align: center;
  margin-top: 2rem;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.cv-link-container h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.3em;
}

.cv-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.home-container {
  flex: 1;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px;
}

/* Sections générales */
section {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  animation: fadeIn 0.5s ease-out;
}

h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 2em;
  font-weight: 400;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

h3 {
  color: #34495e;
  margin: 1rem 0;
  font-size: 1.5em;
  font-weight: 500;
}

/* Éléments spécifiques */
.progress-items, .rwd-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.progress-item, .rwd-explanation, .rwd-implementation, .rwd-testing {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.progress-item:hover, .rwd-explanation:hover {
  transform: translateY(-5px);
}

/* Listes */
ul {
  list-style-position: inside;
  margin-left: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Images */
.rwd-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Validation badges */
.validation-section {
  text-align: center;
  margin-top: 2rem;
}

.validator-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.badge {
  transition: transform 0.3s ease;
}

.badge:hover {
  transform: scale(1.1);
}

/* Footer content */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.footer-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.footer-link i {
  font-size: 1.1rem;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Style pour la page de téléchargement */
.download-page-link {
  text-align: center;
  margin-top: 20px;
}

.section-intro {
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: center;
}

.back-link {
  text-align: center;
  margin-top: 30px;
}

/* Modification du footer pour apparaître seulement en bas de page */
.modern-footer {
  background: linear-gradient(90deg, #2c3e50, #3498db);
  padding: 1rem 0;
  width: 100%;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: auto;
  position: static;
}

/* Conteneur principal */
.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px 120px 20px;
}

/* Amélioration de la section projets */
.project-section {
  padding: 3rem 1rem;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin: 2rem 0;
}

.project-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  position: relative;
}

.project-section h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #3498db;
  margin: 0.5rem auto;
  border-radius: 2px;
}

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

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: 1.5rem;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.project-image i {
  font-size: 4rem;
  color: #3498db;
  opacity: 0.8;
}

.project-card h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  color: #2c3e50;
  font-weight: 600;
}

.project-card p {
  color: #636e72;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background: #e9f5fe;
  color: #3498db;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: #3498db;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.project-link i {
  margin-right: 0.4rem;
}

.project-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Style pour la grande image */
/* Style pour la grande image */
.large-item {
  grid-column: span 2; /* S'étend sur 2 colonnes si possible */
}

.large-item img {
  width: 100%;
  height: auto;
}

/* Styles pour la section vidéo */
.video-demonstration {
  margin-top: 2rem;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.video-demonstration h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  margin: 1.5rem 0;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-caption {
  text-align: center;
  color: #666;
  font-style: italic;
  margin-top: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
.profile-container {
  flex-direction: column;
  gap: 10px;
}

.profile-image {
  width: 60px;
  height: 60px;
}

.name {
  font-size: 2rem;
}

.main-nav ul {
  flex-direction: column;
}

.nav-link {
  display: block;
  text-align: center;
}

.dropdown-content {
  position: static;
  width: 100%;
  margin-top: 0;
  padding-left: 20px;
}

.dropdown-content a {
  padding: 8px 10px;
}

/* Menu principal déroulant en mobile */
.main-menu {
  position: absolute;
  width: 90%;
  max-width: 300px;
  left: 50%;
  transform: translateX(-50%);
}

.menu-button i {
  font-size: 1.2rem;
}

.main-menu {
  display: none;
  position: absolute;
  background-color: #34495e;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 5px;
  z-index: 1;
  margin-top: 5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 0;
}

.menu-item {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  text-align: left;
}

.menu-item:hover {
  background-color: #3498db;
}

.menu-item.first {
  font-weight: bold;
}

/* Sous-menus sur mobile */
.submenu {
  position: static;
  background-color: #34495e;
  box-shadow: none;
  margin-left: 20px;
  border-radius: 0;
  width: auto;
}

.submenu-container .menu-item::after {
  content: '\f078';
}

/* Toggle de langue en mobile */
.toggle-container {
  width: 90%;
  max-width: 300px;
}

.toggle-option {
  padding: 10px 15px;
  font-size: 0.9rem;
}

/* Styles PDF pour mobile */
.pdf-frame {
  height: 500px;
}

.language-button {
  padding: 8px 15px;
  margin: 0 5px;
  font-size: 0.9rem;
}

.download-section {
  padding: 20px;
}

.download-button {
  padding: 10px 20px;
  margin: 10px;
}

/* Ajustements pour la section projets en mobile */
.projects-grid {
  grid-template-columns: 1fr;
}

.project-card {
  margin-bottom: 1.5rem;
}

.project-links {
  flex-direction: column;
  gap: 0.8rem;
}

/* Responsive pour les galeries d'images et vidéos */
.gallery-grid {
  grid-template-columns: 1fr;
}

.large-item {
  grid-column: span 1;
}

.video-demonstration {
  padding: 1.5rem;
}
}

@media (max-width: 480px) {
h1 {
  font-size: 1.8em;
}

.welcome-section h1 {
  font-size: 2em;
}

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

.about-header h1 {
  font-size: 1.8em;
}

.about-card h2 {
  font-size: 1.3em;
}

.video-container {
  margin: 0.5rem 0;
}

.cv-container {
  height: 500px;
}

.cv-link-container {
  padding: 1rem;
}

.menu-button {
  padding: 8px 16px;
  font-size: 14px;
}

.main-menu {
  width: 90%;
  max-width: 250px;
}

/* Toggle de langue en très petit écran */
.toggle-container {
  max-width: 150px;
}

.toggle-option {
  padding: 8px 12px;
  font-size: 0.8rem;
}

/* PDF styles for very small screens */
.pdf-frame {
  height: 400px;
}

.download-button {
  padding: 8px 16px;
  font-size: 0.9rem;
  margin: 8px 0;
  width: 100%;
  text-align: center;
}

.language-button {
  padding: 6px 12px;
  font-size: 0.8rem;
  margin: 0 3px;
}

.language-selector {
  margin-bottom: 15px;
}

/* Ajustements pour la section projets en mobile mini */
.project-section h2 {
  font-size: 1.5rem;
}

.project-image {
  height: 100px;
}

.project-image i {
  font-size: 3rem;
}

.project-card {
  padding: 1rem;
}

.project-card h3 {
  font-size: 1.1rem;
}

.project-details {
  margin-bottom: 0.5rem;
}

.project-tag {
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
}

.project-link {
  font-size: 0.8rem;
}

.video-demonstration {
  padding: 1rem;
}

.video-demonstration h3 {
  font-size: 1.2rem;
}

.video-caption {
  font-size: 0.9rem;
}
}

/* Styles spécifiques pour la page Dashboard Gaming */
.project-page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
}

.project-hero {
  background: white;
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.project-hero h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 400;
}

.project-subtitle {
  color: #636e72;
  font-size: 1.2rem;
}

.project-overview, .project-tech, .conclusion {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.project-info h2, .project-tech h2, .conclusion h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 2em;
  font-weight: 400;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.project-features h3, .tech-category h3, .conclusion h3 {
  color: #34495e;
  margin: 1rem 0;
  font-size: 1.5em;
  font-weight: 500;
}

.project-features ul {
  list-style-type: none;
  margin-left: 0;
}

.project-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.project-features li i {
  color: #3498db;
  margin-right: 10px;
  margin-top: 3px;
}

.project-image-container {
  margin: 2rem 0;
  text-align: center;
}

.project-mockup {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-caption {
  margin-top: 1rem;
  color: #7f8c8d;
  font-style: italic;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-category {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
}

.video-demonstration {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background: #f8f9fa;
}

.video-container {
  position: relative;
  padding-bottom: 40%; /* Réduit de 56.25% à 40% */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  margin: 1.5rem auto;
  max-width: 80%; /* Ajout de max-width pour réduire la taille */
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain */
}

.project-buttons {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-back:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}
/* Styles pour la galerie de captures d'écran */
.project-screenshots {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.project-screenshots h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 2em;
  font-weight: 400;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.screenshot-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.screenshot-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
}

.screenshot-caption {
  padding: 1rem;
  background-color: #fff;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-radius: 0 0 10px 10px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .screenshots-gallery {
      grid-template-columns: 1fr;
  }
}
/* Styles pour les images zoomables - Base */
.zoomable-image {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: block;
  width: 100%;
  height: auto;
}

.zoom-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px;
  border-radius: 50%;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Rendre l'icône de zoom toujours visible sur les appareils tactiles */
@media (hover: none) {
  .zoom-icon {
      opacity: 0.7;
      padding: 10px;
      font-size: 16px;
  }
}

.zoomable-image:hover .zoom-icon {
  opacity: 1;
}

/* Modal styles - Base */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: 0 auto;
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation: zoom 0.3s ease;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes zoom {
  from {transform: translateY(-50%) scale(0.1)}
  to {transform: translateY(-50%) scale(1)}
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

/* Adaptation pour tablette */
@media (max-width: 768px) {
  .modal-content {
      max-width: 95%;
      max-height: 75vh;
  }
  
  .close-modal {
      top: 10px;
      right: 15px;
      font-size: 36px;
  }
  
  #modalCaption {
      font-size: 14px;
      max-height: 15vh;
      overflow-y: auto;
  }
}

/* Adaptation pour mobile */
@media (max-width: 480px) {
  .zoom-icon {
      padding: 8px;
      font-size: 14px;
      right: 8px;
      bottom: 8px;
  }
  
  .modal-content {
      max-width: 98%;
      max-height: 65vh;
  }
  
  .close-modal {
      top: 5px;
      right: 10px;
      font-size: 32px;
  }
  
  #modalCaption {
      width: 95%;
      font-size: 12px;
      padding: 5px 0;
      max-height: 20vh;
      overflow-y: auto;
  }
}

.close-modal:hover {
  color: #bbb;
}

#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: auto;
  max-height: 150px;
  position: relative;
}
/* Styles pour les pages "contenu en préparation" */
.coming-soon-container {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 50px 30px;
  text-align: center;
  max-width: 800px;
  margin: 50px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.coming-soon-icon {
  font-size: 80px;
  color: #adb5bd;
  margin-bottom: 30px;
}

.coming-soon-title {
  font-size: 28px;
  color: #343a40;
  margin-bottom: 20px;
}

.coming-soon-message {
  font-size: 16px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  background-color: #4a6fa5;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.back-link:hover {
  background-color: #3d5d89;
}

