/* ========================================
   1. VARIABLES & FONTS
   ======================================== */

:root {
  --bordeaux: #40030B;
  --rose-fond: #F4E6E7;
  --taupe: #AC9494;
  --beige-clair: #EFE9E1;
  --blanc: #FFFFFF;
  --texte: #2A1A1A;
}

@font-face {
  font-family: "Marvella Luxe";
  src: url("fonts/MarvellaLuxe.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* ========================================
   2. RESET & BASE
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll; /* Force toujours la scrollbar */
}


body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--rose-fond);
  color: var(--texte);
  min-height: 100vh;
  overflow-x: hidden; /* Empêche le scroll horizontal */
}

/* ========================================
   3. MODE SOMBRE
   ======================================== */

body.dark-mode {
  --rose-fond: #40030B;
  --bordeaux: #F4E6E7;
  --texte: #FFFFFF;
  --beige-clair: #5a0a13;
  --blanc: #40030B;
  --taupe: #EFE9E1;
}

body.dark-mode .projet-card {
  background-color: var(--beige-clair);
  border: 1px solid rgba(244, 230, 231, 0.1);
}

body.dark-mode .titre-page, 
body.dark-mode .modale-titre {
  color: var(--bordeaux);
}

body.dark-mode .icone-mode {
  filter: invert(1) brightness(2);
}

body.dark-mode .competence-bandeau {
  background-color: transparent;
}

body.dark-mode .competence-item {
  background-color: #F4E6E7;
  color: #40030B;
}

body.dark-mode .competence-titre-cat {
  color: #F4E6E7;
}
/* Ajoute ça dans body.dark-mode */

body.dark-mode .recherche-card {
  background-color: var(--beige-clair);
  border: 1px solid rgba(244, 230, 231, 0.1);
}

body.dark-mode .recherche-numero {
  color: var(--bordeaux);
  opacity: 0.4;
}

body.dark-mode .recherche-titre {
  color: var(--bordeaux);
}

/* ========================================
   4. HEADER & NAVBAR
   ======================================== */

.entete {
  padding: 20px 0;
}

.navigation {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 32px;
  background-color: var(--blanc);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 12px 30px rgba(64, 3, 11, 0.05);
  position: relative; /* AJOUTE */
  width: 100%; /* AJOUTE */
}

/* Logo */
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--bordeaux);
  font-family: "Marvella Luxe", "Fira Code", system-ui;
  font-size: 1.4rem;
  line-height: 1.1;
}

/* Liens de navigation */
.navigation-liens {
  list-style: none;
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  margin-left: auto;
  font-weight: 600;
}

.navigation-liens a {
  text-decoration: none;
  color: var(--texte);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.navigation-liens a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--bordeaux);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.navigation-liens a:hover {
  color: var(--bordeaux);
}

.navigation-liens a:hover::after {
  width: 100%;
}

/* Bouton mode sombre */
.bouton-mode {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.icone-mode {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.bouton-mode:hover .icone-mode {
  transform: scale(1.1);
}

/* Menu hamburger (caché par défaut sur desktop) */
.menu-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.barre {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--bordeaux);
  border-radius: 3px;
  transition: 0.3s;
}

/* Overlay pour menu mobile */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* ========================================
   5. HERO SECTION
   ======================================== */

.page-accueil {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 0;
}

.hero-contenu {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 48px;
}

/* Texte gauche */
.hero-texte {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-nom {
 
 font-family: "Marvella Luxe", "Fira Code", system-ui;
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bordeaux);
  
}

.hero-description {
  font-family: "Fira Code", monospace;
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 40rem;
}

/* Boutons */
.hero-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bouton-primaire,
.bouton-secondaire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--bordeaux);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.bouton-primaire {
  background-color: var(--bordeaux);
  color: var(--blanc);
}

.bouton-secondaire {
  background-color: transparent;
  color: var(--bordeaux);
}

.bouton-primaire:hover {
  background-color: #5c0712;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(64, 3, 11, 0.25);
}

.bouton-secondaire:hover {
  background-color: var(--beige-clair);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(64, 3, 11, 0.15);
}

/* Profil droite */
.hero-profil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
   min-width: 280px; /* Largeur minimale fixe */
  width: 100%;
}

.hero-photo-wrapper {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bordeaux);
  box-shadow: 0 18px 40px rgba(64, 3, 11, 0.25);
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Supprime TOUTE animation sur la photo */
.hero-photo-wrapper,
.hero-photo-wrapper *,
.hero-photo {
  animation: none !important;
  transform: none !important;
}

.hero-role {

font-family: "Fira Code", monospace;
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bordeaux);
  min-height: 3rem; /* Fixe la hauteur minimale */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Prend toute la largeur */
}

/* ========================================
   6. BANDEAU STAGE
   ======================================== */

.bandeau-stage {
  background-color: var(--bordeaux);
  color: var(--blanc);
  padding: 14px 0;
  margin-top: 0;
  margin-bottom: 24px;
  overflow: hidden;
}

.bandeau-contenu {
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.bandeau-contenu p {
  display: inline-flex;
  padding-left: 100%;
  animation: defilement 40s linear infinite;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

@keyframes defilement {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ========================================
   7. RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 768px) {
  
  /* Navbar plus compacte sur mobile */
  .entete {
    padding: 25px 10px;
  }

  .navigation {
    padding: 8px 16px;
    gap: 12px; /* Réduit pour que mode sombre + hamburger soient proches */
  }

  .logo {
    font-size: 1.1rem;
    margin-right: auto; /* Pousse tout à droite */
  }

  /* Bouton mode sombre collé au hamburger */
  .bouton-mode {
    display: flex;
  }

  /* Afficher le menu hamburger */
  .menu-hamburger {
    display: flex;
    padding: 4px;
  }

  .barre {
    width: 24px;
    height: 2px;
  }

  /* Menu fullscreen moderne */
  .navigation-liens {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--bordeaux) 0%, #5a0a13 100%);
    
    margin-left: 0 !important;
    gap: 0 !important;
    
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), 
                opacity 0.5s ease;
    z-index: 1000;
  }

  .navigation-liens.active {
    transform: translateY(0);
    opacity: 1;
  }

  .navigation-liens li {
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .navigation-liens.active li:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }

  .navigation-liens.active li:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  .navigation-liens.active li:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
  }

  .navigation-liens a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blanc);
    display: block;
    padding: 20px 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: all 0.3s ease;
  }

  .navigation-liens a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background-color: var(--rose-fond);
    transition: width 0.3s ease;
  }

  .navigation-liens a:hover {
    color: var(--rose-fond);
    padding-left: 60px;
  }

  .navigation-liens a:hover::before {
    width: 40px;
  }

  .navigation-liens a::after {
    display: none;
  }

  /* Animation hamburger en X */
  .menu-hamburger.active .barre {
    background-color: var(--blanc);
  }

  .menu-hamburger.active .barre:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-hamburger.active .barre:nth-child(2) {
    opacity: 0;
  }

  .menu-hamburger.active .barre:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Pas d'overlay avec fullscreen */
  .overlay {
    display: none !important;
  }

  /* Hero responsive */
  .hero-contenu {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-profil {
    order: -1;
  }

  .hero-photo-wrapper {
    width: 210px;
    height: 210px;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .page-accueil {
    padding-inline: 20px;
  }

  .bandeau-contenu p {
    font-size: 0.8rem;
  }
}

  
/* ========== PAGE PROJETS ========== */
.page-projets {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 100px;
  background: var(--rose-fond);
  min-height: 100vh;
}

.titre-page {
  font-family: "Marvella Luxe", "Fira Code", cursive;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  text-align: center;
  color: var(--bordeaux);
  margin-bottom: 48px;
  font-style: italic;
  position: relative;
}

.titre-page::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--bordeaux), transparent);
  margin: 16px auto 0;
  border-radius: 999px;
}

/* ========== FILTRES ========== */
.filtres-projets {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.filtre-bouton {
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--bordeaux);
  background-color: transparent;
  color: var(--bordeaux);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filtre-bouton:hover {
  background: rgba(64, 3, 11, 0.1);
  transform: translateY(-2px);
}

.filtre-bouton.actif {
  background-color: var(--bordeaux);
  color: var(--blanc);
  box-shadow: 0 4px 12px rgba(64, 3, 11, 0.3);
}

/* ========== GRILLE PROJETS ========== */
.galerie-projets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.projet-card {
  height: 420px;
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease;
  box-shadow: 0 8px 24px rgba(64, 3, 11, 0.12);
}

.projet-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 32px 64px rgba(64, 3, 11, 0.25);
}

/* Image */
.mockup-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.mockup-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.projet-card:hover .mockup-container img {
  transform: scale(1.15);
}

/* Overlay infos */
.projet-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, 
    rgba(10, 3, 6, 0.98) 0%, 
    rgba(10, 3, 6, 0.85) 50%,
    rgba(10, 3, 6, 0.3) 75%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.projet-card:hover .projet-info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.projet-info h3 {
  color: var(--blanc);
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.projet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.projet-tags span {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--blanc);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Bouton */
.carte-lien {
  align-self: flex-start;
  background: #F4E6E7;
  color: var(--bordeaux);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(64, 3, 11, 0.4);
}

.carte-lien:hover {
  box-shadow: 0 8px 24px rgba(64, 3, 11, 0.6);
  transform: translateY(-2px) translateX(4px);
}

/* ========== MODALE ========== */
.modale-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(64, 3, 11, 0.75); /* Ton bordeaux */
  backdrop-filter: blur(8px);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modale-overlay.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modale-contenu {
  background: #F4E6E7; /* Ton fond beige/rose */
  color: #1a1a1a;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(64, 3, 11, 0.4);
  animation: modalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlide {
  from { transform: translateY(50px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Bouton Fermer */
.modale-fermer {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(64, 3, 11, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--bordeaux);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modale-fermer:hover {
  background: var(--bordeaux);
  color: white;
  transform: rotate(90deg);
}

/* Titre */
.modale-titre {
  font-family: 'Marvella Luxe', serif; /* TA police */
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin: 0;
  padding: 24px 60px 20px 24px;
  border-bottom: 2px solid rgba(64, 3, 11, 0.1);
}

/* Carrousel */
.modale-carrousel {
  position: relative;
  width: 100%;
  height: 420px;
  background: #ffffff; /* Fond blanc pour les images */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carrousel-images {
  width: 100%;
  height: 100%;
  position: relative;
}

.carrousel-slide-popup {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.carrousel-slide-popup.active {
  opacity: 1;
  z-index: 2;
}

.carrousel-slide-popup img,
.carrousel-slide-popup video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.carrousel-fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(64, 3, 11, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrousel-fleche:hover {
  background: var(--bordeaux);
  transform: translateY(-50%) scale(1.1);
}

.carrousel-gauche { left: 16px; }
.carrousel-droite { right: 16px; }

.carrousel-compteur {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(64, 3, 11, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 5;
}

/* Tags */
.modale-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 2px solid rgba(64, 3, 11, 0.1);
}

.tag {
  background: linear-gradient(135deg, var(--bordeaux), #5c0712);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(64, 3, 11, 0.2);
}

/* Infos rapides */
.modale-infos-rapides {
  display: flex;
  gap: 32px;
  padding: 16px 24px;
  background: rgba(64, 3, 11, 0.03);
  border-bottom: 2px solid rgba(64, 3, 11, 0.1);
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.info-label {
  font-weight: 700;
  color: var(--bordeaux);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}
.info-icon {
  font-size: 1.1rem;
}

.info-item span:not(.info-label) {
  color: #333;
  font-weight: 500;
}
/* Description */
.modale-description {
  padding: 24px;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 48px;
   font-family: "Fira Code", cursive;
  font-weight: 400;
}

.modale-description p {
  margin: 0;
}

/* Footer */
.modale-footer {
  padding: 20px 24px;
  background: rgba(64, 3, 11, 0.03);
  border-top: 2px solid rgba(64, 3, 11, 0.1);
  display: flex;
  gap: 12px;
  border-radius: 0 0 16px 16px;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--bordeaux);
  color: white;
}

.btn-primary:hover {
  background: #5c0712;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(64, 3, 11, 0.3);
}

.btn-secondary {
  background: #24292e;
  color: white;
}

.btn-secondary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .galerie-projets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-projets {
    padding: 60px 20px 80px;
  }
  
  .projet-card {
    height: 360px;
  }
   .modale-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modale-contenu {
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
  }

  .modale-titre {
    font-size: 1.4rem;
    padding: 20px 50px 16px 20px;
  }

  .modale-carrousel {
    height: 280px;
  }

  .carrousel-fleche {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .modale-infos-rapides {
    gap: 16px;
  }

  .info-item {
    font-size: 0.85rem;
  }

  .modale-footer {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

/* ========================================
   MODE SOMBRE MODALE PROJETS (VERSION CLAIRE)
   ======================================== */

body.dark-mode .modale-overlay {
  background: rgba(64, 3, 11, 0.75);
}

body.dark-mode .modale-contenu {
  background: var(--blanc);
  color: var(--texte);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Bouton Fermer */
body.dark-mode .modale-fermer {
  background: var(--beige-clair);
  color: var(--bordeaux);
}

body.dark-mode .modale-fermer:hover {
  background: var(--bordeaux);
  color: var(--blanc);
}

/* Titre */
body.dark-mode .modale-titre {
  color: var(--bordeaux);
  border-bottom: 2px solid var(--beige-clair);
}

/* Carrousel */
body.dark-mode .modale-carrousel {
  background: var(--beige-clair);
}

body.dark-mode .carrousel-fleche {
  background: var(--bordeaux);
  color: var(--blanc);
  border: 2px solid var(--blanc);
}

body.dark-mode .carrousel-fleche:hover {
  background: #5c0712;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 12px rgba(64, 3, 11, 0.4);
}

body.dark-mode .carrousel-compteur {
  background: var(--bordeaux);
  color: var(--blanc);
}

/* Tags */
body.dark-mode .modale-tags {
  background: var(--blanc);
  border-bottom: 2px solid var(--beige-clair);
}

body.dark-mode .tag {
  background: var(--blanc);
  color: var(--rose-fond);
  border: 2px solid var(--bordeaux);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Infos rapides */
body.dark-mode .modale-infos-rapides {
  background: var(--beige-clair);
  border-bottom: 2px solid var(--beige-clair);
}

body.dark-mode .info-label {
  color: var(--bordeaux);
}

body.dark-mode .info-item span:not(.info-label) {
  color: var(--texte);
}

/* Description */
body.dark-mode .modale-description {
  color: var(--texte);
  background: var(--blanc);
}

/* Footer */
body.dark-mode .modale-footer {
  background: var(--beige-clair);
  border-top: 2px solid var(--beige-clair);
}

body.dark-mode .btn-primary {
  background: var(--bordeaux);
  color: var(--blanc);
}

body.dark-mode .btn-primary:hover {
  background: #5c0712;
  box-shadow: 0 8px 20px rgba(64, 3, 11, 0.4);
}

body.dark-mode .btn-secondary {
  background: var(--blanc);
  color: var(--bordeaux);
  border: 2px solid var(--bordeaux);
}

body.dark-mode .btn-secondary:hover {
  background: var(--bordeaux);
  color: var(--blanc);
  box-shadow: 0 4px 12px rgba(64, 3, 11, 0.3);
}

body.dark-mode .projet-info h3 {
  
  color: #FFFFFF;
}

body.dark-mode .projet-tags span {
  color: #F4E6E7;
}

body.dark-mode .carte-lien {
  background: var(--bordeaux);
  color: var(--blanc);
}


/* ========================================
   PAGE QUI SUIS-JE - BASE
   ======================================== */

.page-qui-suis-je {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.titre-page {
  font-family: "Marvella Luxe", "Fira Code", cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  color: var(--bordeaux);
  margin-bottom: 48px;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ========================================
   BLOC INTRO (texte + photo)
   ======================================== */

.bloc-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
  background-color: transparent !important;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(64, 3, 11, 0.08);
} 

.intro-texte {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-texte p {
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--texte);
  margin: 0;
}

.intro-texte strong {
  color: var(--bordeaux);
  font-weight: 600;
}

.intro-photo {
  width: 100%;
 
}

.photo-presentation {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(64, 3, 11, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-presentation:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(64, 3, 11, 0.2);
}

/* ========================================
   COMPÉTENCES
   ======================================== */

.section-competences {
  margin-bottom: 80px;
}

.competence-categorie {
  margin-bottom: 48px;
  font-family: "Marvella Luxe", "Fira Code", cursive;
}

.competence-titre-cat {
  font-size: 1.3rem;
  color: var(--bordeaux);
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.competence-bandeau {
  background-color: transparent;
  padding: 20px 0;
  overflow: hidden;
  border-radius: 12px;
}

.competence-defilement {
  display: flex;
  gap: 40px;
  animation: defilement-competences 10s linear infinite;
}

.competence-defilement-reverse {
  animation: defilement-competences-reverse 10s linear infinite;
}

.competence-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background-color: var(--blanc);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bordeaux);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.competence-item:hover {
  transform: scale(1.05);
}

.competence-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@keyframes defilement-competences {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes defilement-competences-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
/* ========== PARCOURS ========== */


.section-parcours {
    margin-bottom: 48px;
   font-family: "Marvella Luxe", "Fira Code", cursive;

}
.titre-section {
 font-size: 1.3rem;
  color: var(--bordeaux);
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.frise-chronologique {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 48px;
}

.frise-chronologique::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(to bottom, var(--bordeaux), var(--taupe));
  border-radius: 999px;
}

.etape-frise {
  position: relative;
  margin-bottom: 48px;
}

.etape-point {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 20px;
  height: 20px;
  background-color: var(--bordeaux);
  border: 4px solid var(--rose-fond);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bordeaux);
  transition: all 0.3s ease;
}

.etape-frise:hover .etape-point {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px var(--bordeaux);
}

.etape-contenu {
  background-color: var(--blanc);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(64, 3, 11, 0.08);
  transition: all 0.3s ease;
}

.etape-frise:hover .etape-contenu {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(64, 3, 11, 0.15);
}

.etape-annee {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--taupe);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.etape-titre {
  font-size: 1.15rem;
  color: var(--bordeaux);
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.etape-description {
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--texte);
  margin: 0;
}

/* ========== VALEURS ========== */
/* ========== VALEURS (VERSION COURTE) ========== */

.section-valeurs {
  margin-bottom: 80px;
   font-family: "Marvella Luxe", "Fira Code", cursive;
}

.grille-valeurs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.carte-valeur {
  background: linear-gradient(135deg, var(--blanc) 0%, var(--beige-clair) 100%);
  padding: 36px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(64, 3, 11, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.carte-valeur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bordeaux), var(--taupe));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.carte-valeur:hover::before {
  transform: scaleX(1);
}

.carte-valeur:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(64, 3, 11, 0.2);
  border-color: var(--bordeaux);
}

.valeur-icone {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bordeaux);
  border-radius: 50%;
  color: var(--blanc);
  transition: all 0.3s ease;
}

.carte-valeur:hover .valeur-icone {
  transform: scale(1.1) rotate(5deg);
  background-color: #5c0712;
}

.valeur-icone svg {
  width: 28px;
  height: 28px;
}

.valeur-titre {
  font-size: 1.15rem;
  color: var(--bordeaux);
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.valeur-description {
  font-family: "Fira Code", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--texte);
  margin: 0;
}

/* ========== RECHERCHE DE STAGE ========== */

.section-recherche-stage {
  margin-bottom: 80px;
   font-family: "Marvella Luxe", "Fira Code", cursive;
}

.recherche-intro {
  text-align: center;
  font-family: "Fira Code", monospace;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texte);
  max-width: 750px;
  margin: 0 auto 48px;
}

.grille-recherche {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 auto 48px;
  max-width: 1000px;
}

.recherche-card {
  background-color: var(--blanc);
  padding: 36px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(64, 3, 11, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.recherche-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(64, 3, 11, 0.15);
}

.recherche-numero {
  font-family: "Marvella Luxe", "Fira Code", monospace;
  font-size: 3rem;
  color: var(--bordeaux);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.3;
}

.recherche-titre {
  font-size: 1.2rem;
  color: var(--bordeaux);
  font-weight: 600;
  margin: 0 0 12px 0;
}

.recherche-description {
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--texte);
  margin: 0;
}

.recherche-cta {
  text-align: center;
}

/* ========================================
   RESPONSIVE VALEURS + RECHERCHE
   ======================================== */

@media (max-width: 900px) {
  .grille-valeurs {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grille-recherche {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .carte-valeur {
    padding: 28px 24px;
  }

  .valeur-icone {
    width: 48px;
    height: 48px;
  }

  .valeur-icone svg {
    width: 24px;
    height: 24px;
  }

  .valeur-titre {
    font-size: 1.05rem;
  }

  .valeur-description {
    font-size: 0.85rem;
  }

  .recherche-card {
    padding: 32px 24px;
  }

  .recherche-numero {
    font-size: 2.5rem;
  }

  .recherche-intro {
    font-size: 0.9rem;
    padding: 0 16px;
  }
}

/* ========================================
   RESPONSIVE QUI SUIS-JE
   ======================================== */

@media (max-width: 900px) {
  .page-qui-suis-je {
    padding: 32px 20px 48px;
  }

  .bloc-intro {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }

  .intro-photo {
    order: -1;
  }

  .photo-presentation {
    max-width: 280px;
    width: 100%;

  }

  .grille-valeurs {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .frise-chronologique {
    padding-left: 40px;
  }

  .frise-chronologique::before {
    left: 10px;
  }

  .etape-point {
    left: -35px;
    width: 16px;
    height: 16px;
  }

  .etape-contenu {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .titre-page {
    margin-bottom: 32px;
  }

  .bloc-intro {
    padding: 24px 20px;
  }

  .intro-texte p {
    font-size: 0.9rem;
  }
/* Photo encore plus petite sur mobile */
  .photo-presentation {
    max-width: none;
    width: 70%;
  }

  .grille-competences {
    gap: 12px;
  }

  .competence-item {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .competence-logo {
    width: 22px;
    height: 22px;
  }

  .frise-chronologique {
    padding-left: 32px;
  }

  .etape-titre {
    font-size: 1.05rem;
  }

  .carte-valeur {
    padding: 28px 20px;
  }

  .valeur-icone {
    font-size: 2.5rem;
  }
}

/* PHOTO CENTRÉE EN MOBILE */
@media (max-width: 768px) {
  .photo-presentation {
    margin: 0 auto;
    display: block;
  }

}



/* ========================================
   BOUTON CV
   ======================================== */

.cta-cv {
  text-align: center;
  margin: 48px 0 64px 0;
}

.bouton-icone-cv {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* ========================================
   BOUTON RETOUR EN HAUT
   ======================================== */

.retour-haut {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background-color: var(--bordeaux);
  color: var(--blanc);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(64, 3, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* CHANGE CES LIGNES POUR TESTER */
  opacity: 1 !important;           /* ← Force visible */
  visibility: visible !important;  /* ← Force visible */
  
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
   margin-bottom: 0;
}


.retour-haut.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.retour-haut:hover {
  background-color: #5c0712;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(64, 3, 11, 0.4);
}

.retour-haut svg {
  width: 24px;
  height: 24px;
}

/* Mode sombre */
body.dark-mode .retour-haut {
  background-color: var(--beige-clair);
  color: var(--bordeaux);
}

body.dark-mode .retour-haut:hover {
  background-color: #7a1520;
}

/* Mobile */
@media (max-width: 768px) {
  .retour-haut {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }

  .retour-haut svg {
    width: 20px;
    height: 20px;
  }

  .cta-cv {
    margin: 32px 0 48px 0;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--bordeaux);
  color: var(--blanc);
  padding: 24px 0;
  margin-top: 80px;
}

.footer-contenu {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-contenu p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-lien {
  color: var(--blanc);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-lien:hover {
  border-bottom-color: var(--blanc);
}


/* ========================================
   RESPONSIVE - QUI SUIS-JE COMPLET
   ======================================== */

@media (max-width: 1024px) {
  .grille-recherche {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .recherche-card:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .page-qui-suis-je {
    padding: 32px 20px 48px;
    overflow-x: hidden;
  }

  .bloc-intro {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }

  .intro-photo {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .grille-valeurs,
  .grille-recherche {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .recherche-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .carte-valeur:hover {
    transform: translateY(-4px);
  }

  .recherche-card:hover {
    transform: translateY(-4px);
  }

  .frise-chronologique {
    padding-left: 40px;
    padding-right: 20px;
    max-width: calc(100% - 40px);
  }

  .frise-chronologique::before {
    left: 10px;
  }

  .etape-point {
    left: -35px;
    width: 16px;
    height: 16px;
  }

  .etape-contenu {
    padding: 20px;
  }

  .etape-frise:hover .etape-contenu {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .competence-bandeau {
    padding: 20px 0;
    background: linear-gradient(90deg, var(--rose-fond) 0%, transparent 50%, var(--rose-fond) 100%);
  }

  .competence-item {
    padding: 14px 28px;
    font-size: 1rem;
    gap: 14px;
    border: 2px solid var(--beige-clair);
    box-shadow: 0 4px 12px rgba(64, 3, 11, 0.1);
  }

  .competence-logo {
    width: 36px;
    height: 36px;
  }

  .competence-defilement {
    gap: 20px;
    animation: defilement-mobile 20s linear infinite;
  }

  @keyframes defilement-mobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

@media (max-width: 600px) {
  .page-qui-suis-je {
    padding: 32px 16px 48px;
  }

  .section-valeurs,
  .section-recherche-stage {
    padding: 0 16px;
  }

  .titre-page {
    margin-bottom: 32px;
    font-size: 1.6rem;
  }

  .bloc-intro {
    padding: 24px 20px;
  }

  .intro-texte p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .intro-photo {
    max-width: 100%;
  }

  .photo-presentation {
    width: 70%;
    margin: 0 auto;
  }

  .frise-chronologique {
    padding-left: 35px;
    padding-right: 16px;
    max-width: calc(100vw - 56px);
  }

  .frise-chronologique::before {
    left: 8px;
  }

  .etape-point {
    left: -30px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--rose-fond);
  }

  .etape-contenu {
    padding: 18px 14px;
  }

  .etape-titre {
    font-size: 1rem;
    line-height: 1.3;
  }

  .etape-annee {
    font-size: 0.8rem;
  }

  .etape-description {
    font-size: 0.85rem;
  }

  .grille-valeurs,
  .grille-recherche {
    padding: 0;
    max-width: 100%;
  }

  .carte-valeur {
    padding: 28px 20px;
    max-width: 100%;
  }

  .carte-valeur:hover {
    transform: translateY(0);
  }

  .valeur-icone {
    width: 48px;
    height: 48px;
  }

  .valeur-icone svg {
    width: 24px;
    height: 24px;
  }

  .valeur-titre {
    font-size: 1.05rem;
  }

  .valeur-description {
    font-size: 0.85rem;
  }

  .recherche-card {
    padding: 28px 20px;
    max-width: 100%;
  }

  .recherche-card:hover {
    transform: translateY(0);
  }

  .recherche-numero {
    font-size: 2.5rem;
  }

  .recherche-titre {
    font-size: 1.1rem;
  }

  .recherche-description {
    font-size: 0.85rem;
  }

  .recherche-intro {
    font-size: 0.9rem;
    padding: 0 16px;
    max-width: 100%;
  }

  .bouton-primaire {
    width: 100%;
    max-width: 300px;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .footer-contenu {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-qui-suis-je {
    padding: 24px 12px 40px;
  }

  .section-valeurs,
  .section-recherche-stage {
    padding: 0 12px;
    margin-bottom: 60px;
  }

  .titre-page {
    font-size: 1.4rem;
  }

  .titre-section {
    font-size: 1.2rem;
  }

  .competence-item {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .competence-logo {
    width: 32px;
    height: 32px;
  }

  .competence-defilement {
    animation: defilement-mobile-rapide 15s linear infinite;
  }

  @keyframes defilement-mobile-rapide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .frise-chronologique {
    padding-left: 30px;
    padding-right: 12px;
    max-width: calc(100vw - 48px);
  }

  .etape-point {
    left: -26px;
    width: 12px;
    height: 12px;
  }

  .etape-contenu {
    padding: 16px 12px;
  }

  .etape-titre {
    font-size: 0.95rem;
  }

  .etape-description {
    font-size: 0.82rem;
  }

  .carte-valeur {
    padding: 24px 16px;
  }

  .valeur-icone {
    width: 44px;
    height: 44px;
  }

  .valeur-titre {
    font-size: 1rem;
  }

  .valeur-description {
    font-size: 0.82rem;
  }

  .recherche-card {
    padding: 24px 18px;
  }

  .recherche-numero {
    font-size: 2rem;
  }

  .recherche-titre {
    font-size: 1rem;
  }

  .recherche-description {
    font-size: 0.82rem;
  }

  .recherche-intro {
    font-size: 0.85rem;
    padding: 0 8px;
  }

  .bouton-primaire {
    padding: 11px 20px;
    font-size: 0.88rem;
  }
}




/* ========================================
   PAGE CONTACT
   ======================================== */

.page-contact {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.contact-intro {
  text-align: center;
  font-family: "Fira Code", monospace;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texte);
  max-width: 650px;
  margin: -16px auto 48px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ========== FORMULAIRE ========== */

.contact-formulaire {
  background-color: var(--blanc);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(64, 3, 11, 0.08);
}

.formulaire-titre {
  font-size: 1.5rem;
  color: var(--bordeaux);
  font-weight: 700;
  margin: 0 0 28px 0;
}

.form-groupe {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--beige-clair);
  background-color: var(--rose-fond);
  color: var(--texte);
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(42, 26, 26, 0.4);
  font-size: 0.9rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
  background-color: var(--blanc);
  box-shadow: 0 0 0 4px rgba(64, 3, 11, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-erreur {
  display: block;
  color: #c41e3a;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 18px;
}

.form-bouton {
  width: 100%;
  padding: 16px 24px;
  background-color: var(--bordeaux);
  color: var(--blanc);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 32px;
}

.form-bouton:hover {
  background-color: #5c0712;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(64, 3, 11, 0.3);
}

.bouton-icone {
  width: 20px;
  height: 20px;
}

.form-succes {
  display: none;
  margin-top: 20px;
  padding: 16px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.form-succes.visible {
  display: block;
}

/* ========== COORDONNÉES ========== */

.contact-coordonnees {
  background: linear-gradient(135deg, var(--blanc) 0%, var(--beige-clair) 100%);
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(64, 3, 11, 0.08);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 32px;
}

.coordonnees-titre {
  font-size: 1.5rem;
  color: var(--bordeaux);
  font-weight: 700;
  margin: 0 0 8px 0;
}

.coordonnee-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background-color: var(--blanc);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coordonnee-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(64, 3, 11, 0.1);
}

.coordonnee-icone-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--bordeaux);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coordonnee-icone {
  width: 24px;
  height: 24px;
  color: var(--blanc);
}

.coordonnee-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coordonnee-label {
  font-size: 0.8rem;
  color: var(--taupe);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coordonnee-texte {
  font-size: 0.95rem;
  color: var(--texte);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.coordonnee-texte:hover {
  color: var(--bordeaux);
}

.separateur-coordonnees {
  height: 2px;
  background: linear-gradient(90deg, var(--bordeaux), transparent);
  margin: 8px 0;
}

/* Réseaux sociaux */
.reseaux-sociaux {
  display: flex;
  gap: 12px;
}

.reseau-lien {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background-color: var(--blanc);
  border-radius: 12px;
  text-decoration: none;
  color: var(--texte);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.reseau-lien:hover {
  border-color: var(--bordeaux);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(64, 3, 11, 0.15);
}

.reseau-icone {
  width: 28px;
  height: 28px;
  color: var(--bordeaux);
}

/* Disponibilité */
.disponibilite {
  margin-top: 8px;
}

.disponibilite-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background-color: #cfcfcf;
  border-radius: 12px;
  border-left: 4px solid #68202a;
}

.disponibilite-dot {
  width: 10px;
  height: 10px;
  background-color: #68202a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.disponibilite-texte {
  font-size: 0.9rem;
  color: 40030B;
  font-weight: 600;
}

/* ========================================
   MODE SOMBRE CONTACT
   ======================================== */

body.dark-mode .contact-formulaire,
body.dark-mode .coordonnee-item,
body.dark-mode .reseau-lien {
  background-color: var(--beige-clair);
  border-color: rgba(244, 230, 231, 0.1);
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
  background-color: #5a0a13;
  border-color: rgba(244, 230, 231, 0.2);
  color: var(--blanc);
}

body.dark-mode .form-input::placeholder,
body.dark-mode .form-textarea::placeholder {
  color: rgba(244, 230, 231, 0.4);
}

body.dark-mode .formulaire-titre,
body.dark-mode .coordonnees-titre {
  color: var(--bordeaux);
}

body.dark-mode .disponibilite-badge {
  background-color: rgba(212, 237, 218, 0.2);
  border-left-color: var(--beige-clair);
}

/* ========================================
   RESPONSIVE CONTACT
   ======================================== */

@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-coordonnees {
    position: static;
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding: 32px 20px 48px;
  }

  .contact-intro {
    font-size: 0.9rem;
    margin: -8px auto 32px;
  }

  .contact-formulaire,
  .contact-coordonnees {
    padding: 28px 20px;
  }

  .formulaire-titre,
  .coordonnees-titre {
    font-size: 1.3rem;
  }

  .form-groupe {
    margin-bottom: 20px;
  }

  .form-input,
  .form-textarea {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .form-bouton {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .coordonnee-item {
    padding: 14px;
    gap: 12px;
  }

  .coordonnee-icone-wrapper {
    width: 44px;
    height: 44px;
  }

  .coordonnee-icone {
    width: 22px;
    height: 22px;
  }

  .coordonnee-texte {
    font-size: 0.9rem;
    word-break: break-word;
  }

  .reseaux-sociaux {
    flex-direction: column;
    gap: 10px;
  }

  .reseau-lien {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 18px;
  }

  .reseau-icone {
    width: 24px;
    height: 24px;
  }

  .disponibilite-badge {
    padding: 12px 16px;
  }

  .disponibilite-texte {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .page-contact {
    padding: 24px 16px 40px;
  }

  .titre-page {
    font-size: 1.8rem;
  }

  .contact-intro {
    font-size: 0.85rem;
    padding: 0 8px;
  }

  .contact-formulaire,
  .contact-coordonnees {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .formulaire-titre,
  .coordonnees-titre {
    font-size: 1.2rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-input,
  .form-textarea {
    padding: 11px 14px;
    font-size: 0.88rem;
  }

  .form-textarea {
    min-height: 100px;
  }

  .form-bouton {
    padding: 13px 18px;
    font-size: 0.9rem;
  }

  .bouton-icone {
    width: 18px;
    height: 18px;
  }

  .coordonnee-item {
    padding: 12px;
    gap: 10px;
  }

  .coordonnee-icone-wrapper {
    width: 40px;
    height: 40px;
  }

  .coordonnee-icone {
    width: 20px;
    height: 20px;
  }

  .coordonnee-label {
    font-size: 0.75rem;
  }

  .coordonnee-texte {
    font-size: 0.85rem;
  }

  .reseaux-sociaux {
    gap: 8px;
  }

  .reseau-lien {
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  .reseau-icone {
    width: 22px;
    height: 22px;
  }

  .disponibilite-badge {
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .disponibilite-texte {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Fix pour les très petits écrans */
@media (max-width: 360px) {
  .page-contact {
    padding: 20px 12px 32px;
  }

  .contact-formulaire,
  .contact-coordonnees {
    padding: 20px 16px;
  }

  .form-input,
  .form-textarea {
    font-size: 0.85rem;
  }

  .coordonnee-texte {
    font-size: 0.8rem;
  }
}



/* ========== PAGE MERCI ========== */

.page-merci {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 32px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merci-contenu {
  text-align: center;
  background-color: var(--blanc);
  padding: 60px 48px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(64, 3, 11, 0.12);
  max-width: 600px;
}

.merci-icone {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 24px;
}

.merci-titre {
  font-family: "Marvella Luxe", "Fira Code", cursive;
  font-size: 2.2rem;
  color: var(--bordeaux);
  margin-bottom: 16px;
  font-style: italic;
}

.merci-texte {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--texte);
  margin-bottom: 32px;
}

.bouton-retour {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--bordeaux);
  color: var(--blanc);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.bouton-retour:hover {
  background-color: #5c0712;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(64, 3, 11, 0.3);
}











/* ========================================
   PAGE CV
   ======================================== */

.page-cv {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px;
  min-height: calc(100vh - 120px);
}

.cv-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.titre-page {
  font-family: "Marvella Luxe", monospace;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--bordeaux);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Boutons d'action */
.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Viewer PDF (desktop uniquement) */
.cv-viewer {
  width: 100%;
  max-width: 900px;
  height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(64, 3, 11, 0.15);
  background-color: var(--blanc);
}

.cv-embed {
  width: 100%;
  height: 100%;
  border: none;
}

/* Message mobile (caché par défaut) */
.cv-mobile-message {
  display: none;
  padding: 24px;
  background-color: var(--beige-clair);
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
}

.cv-mobile-message p {
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  color: var(--texte);
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE CV MOBILE
   ======================================== */

@media (max-width: 768px) {
  
  .page-cv {
    padding: 24px 16px;
  }

  .cv-container {
    gap: 24px;
  }

  /* Cacher le viewer PDF sur mobile */
  .cv-viewer {
    display: none;
  }

  /* Afficher le message mobile */
  .cv-mobile-message {
    display: block;
  }

  /* Boutons full width sur mobile */
  .cv-actions {
    width: 100%;
    flex-direction: column;
  }

  .cv-actions .bouton-primaire,
  .cv-actions .bouton-secondaire {
    width: 100%;
    justify-content: center;
  }
}


/* ========================================
   PAGE MENTIONS LÉGALES
   ======================================== */

.page-mentions {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.mentions-section {
  margin-bottom: 48px;
  padding: 32px;
  background-color: var(--blanc);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(64, 3, 11, 0.08);
}

.mentions-section h2 {
  font-family: "Fira Code", monospace;
  font-size: 1.4rem;
  color: var(--bordeaux);
  margin-bottom: 16px;
  font-weight: 600;
}

.mentions-section p {
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--texte);
  margin-bottom: 16px;
}

.mentions-section ul {
  list-style: none;
  padding-left: 0;
}

.mentions-section ul li {
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--texte);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.mentions-section ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--bordeaux);
  font-weight: 600;
}

.mentions-section a {
  color: var(--bordeaux);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.mentions-section a:hover {
  color: var(--taupe);
  text-decoration: underline;
}

.mentions-retour {
  text-align: center;
  margin-top: 48px;
}

/* Mode sombre */
body.dark-mode .mentions-section {
  background-color: var(--rose-fond);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .page-mentions {
    padding: 32px 20px 48px;
  }

  .mentions-section {
    padding: 24px 20px;
  }

  .mentions-section h2 {
    font-size: 1.2rem;
  }

  .mentions-section p,
  .mentions-section ul li {
    font-size: 0.9rem;
  }
}



/* Carte stage : version INTÉGRÉE aux autres cartes */
.projet-card.projet-stage {
  /* Exactement comme tes autres cartes, juste un fond très très clair */
  background: #faf7f8;
  border: 1px solid rgba(0, 0, 0, 0.02);
  
  /* Padding un peu plus aéré pour le texte */
  padding: 2rem;
}

/* Tag "Stage 2025–2026" discret */
.projet-stage-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f3e9ed;
  color: #5a3a4a;
}

/* Titre plus compact */
.projet-stage h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: inherit;
}

/* Texte condensé */
.projet-stage p {
  margin: 0.3rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Pas de ::before ::after, pas d'animations, rien de "spécial" */
.projet-stage {
  display: none;
}