/* =========================================================
   RESET & BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #0b1131;
  background: linear-gradient(to bottom, #ffffff 85%, transparent 100%);
  line-height: 1.8;
  overflow-x: hidden;
}
html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   TITRES & CONTAINERS
========================================================= */
h1, h2, h3,
.section-title,
.skills-subtitle {
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1.4px;
}

p, span, li, a, button {
  font-family: "Poppins", sans-serif;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  position: relative;
  z-index: 3;
}

/* =========================================================
   HEADER
========================================================= */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo img {
  height: clamp(40px, 8vw, 70px);
  width: auto;
  display: block;
}

.logo-name {
  font-size: 22px;
  font-weight: bold;
  color: #ff0000;
}

.logo-surname {
  font-size: 22px;
  font-weight: bold;
  color: #000;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 30px);
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #000;
  font-size: clamp(16px, 1.8vw, 20px); /* ⬆️ taille augmentée */
  font-weight: 600; /* ⬆️ texte un peu plus marqué */
  letter-spacing: 0.3px;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ff0000;
  text-decoration: underline;
}

.contact-btn {
  display: inline-block;
  background-color: #1a1a1a;
  color: #fff !important; /* ✅ Force le texte en blanc même sur les <a> */
  border: none;
  padding: clamp(8px, 1vw, 12px) clamp(18px, 2vw, 28px);
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 600;
  text-decoration: none !important; /* ✅ Retire le soulignement du lien */
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
  background-color: #ff0000;
  color: #fff; /* ✅ Assure aussi le blanc au survol */
  transform: scale(1.05);
}

/* =========================================================
   MULTILINGUE (FR / EN) — version agrandie
========================================================= */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 16px; /* plus d’espace entre FR et EN */
  font-weight: 700;
  margin-right: 24px;
}

.lang-option {
  cursor: pointer;
  font-size: clamp(18px, 1.6vw, 22px); /* ⬆️ texte plus grand */
  color: #6b6b6b;
  position: relative;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.lang-option:hover {
  color: #ff0000;
  transform: scale(1.05);
}

.lang-option.active {
  color: #e0433f;
}

.lang-option.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px; /* plus épais */
  background-color: #e0433f;
  border-radius: 4px;
}

/* =========================================================
   HERO (VIDÉO PLEIN ÉCRAN)
========================================================= */
.hero {
  background-color: #000;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* correspond à 16:9 */
  min-height: 100vh;
  min-width: 177.77vh; /* si l’écran est plus haut que large */
  transform: translate(-50%, -50%);
  border: none;
}



@media (max-width: 1400px) {
  .hero { height: 1100px; }
  .hero iframe { min-height: 1100px; }
}

@media (max-width: 1200px) {
  .hero { height: 950px; }
  .hero iframe { min-height: 950px; }
}

@media (max-width: 992px) {
  .hero { height: 750px; }
  .hero iframe { min-height: 750px; }
}

@media (max-width: 768px) {
  .hero { height: 550px; }
  .hero iframe { min-height: 550px; }
}

@media (max-width: 480px) {
  .hero { height: 400px; }
  .hero iframe { min-height: 400px; }
}

/* =========================================================
   ABOUT SECTION
========================================================= */
.about {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
  background-color: transparent;
  z-index: 5;
  overflow: visible;
}

.about .container {
  display: block;
  width: 100%;
}

.about-content {
  text-align: left;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 500;
  text-decoration: underline 3px #000;
  text-underline-offset: 6px;
  margin-bottom: clamp(25px, 5vh, 35px);
  letter-spacing: 1.8px;
  text-align: left;
  margin-left: clamp(-10px, -5vw, -60px);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
}

.about-text {
  margin-bottom: 25px;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 2;
  color: #222;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.98) 10%,
    rgba(255, 255, 255, 0.95) 40%,
    rgba(255, 255, 255, 0.92) 70%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border-radius: 12px;
  padding: 40px 45px;
  text-align: left;
  width: 100%;
  max-width: 100%;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}
.about-text p {
  margin-bottom: 25px;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 2;
  color: #222;
}
.highlight-red {
  color: #e60000;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #e60000; /* couleur de la barre */
  text-decoration-thickness: 3px; /* épaisseur uniforme */
  text-underline-offset: 4px;     /* espace entre le texte et la barre */
}
@media (max-width: 992px) {
  .about-text p {
    font-size: 20px;
    line-height: 1.9;
    padding: 35px 30px;
    width: 95%;
  }
  .section-title {
    text-align: center;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .about-text p {
    width: 92%;
    font-size: 18px;
    text-align: justify;
  }
}

/* =========================================================
   MY SKILLS SECTION — colonnes alignées horizontalement
========================================================= */
.skills {
  position: relative;
  background-color: transparent;
  padding: clamp(60px, 8vw, 140px) 0 clamp(100px, 10vw, 180px);
  z-index: 5;
  overflow: visible;
}

#skills h2 {
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 800;
  color: #0a0f2b;
  text-transform: uppercase;
  margin-bottom: clamp(35px, 5vh, 50px);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 18px;
  border-radius: 8px;
  display: inline-block;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4vw, 70px);
  max-width: 1300px;
  margin: 0 auto;
  align-items: stretch; /* ✅ aligne toutes les colonnes sur la même hauteur */
}

.skills-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* ✅ force une hauteur identique */
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 40px 35px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.skills-column:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.9);
}

/* Supprime le titre "Outils / Tools" */
.skills-column:nth-child(3) .skills-subtitle {
  visibility: hidden; /* garde la hauteur du titre mais le rend invisible */
}
.skills-subtitle {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  color: #0b1131;
  text-transform: uppercase;
  text-decoration: underline 2px #0b1131;
  text-underline-offset: 5px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 6px;
  align-self: flex-start;
}

.skill-label {
  font-size: clamp(19px, 2.1vw, 21px);
  font-weight: 600;
  color: #0b1131;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
}

.skill-bar {
  background-color: rgba(189,189,189,0.8);
  height: 14px;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 20px;
}

.skill-fill {
  height: 100%;
  background-color: #e0433f;
  border-radius: 50px;
  transition: width 0.4s ease;
}

/* Responsive Skills */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PROJECTS SECTION — cartes uniformisées
========================================================= */
.projects {
  position: relative;
  z-index: 5;
  padding: clamp(60px, 10vw, 100px) 0;
  background-color: transparent;
  overflow: visible;
}

.projects .section-title {
  margin-left: clamp(-10px, -5vw, -60px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(25px, 4vw, 50px);
  margin-top: 50px;
}

/* --- Cartes de projets uniformisées --- */
.project-card {
  position: relative;
  width: 100%;
  height: clamp(250px, 30vw, 350px); /* ✅ taille fixe et responsive */
  border-radius: 14px;
  overflow: hidden;
  background-color: rgba(216, 216, 216, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ image couvre toute la carte */
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

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

.project-card:hover img {
  transform: scale(1.08);
}

/* --- Bouton “Charger plus” --- */
.load-more-btn {
  display: block;
  margin: 50px auto 0;
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  padding: clamp(12px, 2vw, 16px) clamp(45px, 8vw, 70px);
  font-size: clamp(15px, 2vw, 17px);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.load-more-btn:hover {
  background-color: #000;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card {
    height: clamp(220px, 35vw, 300px);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    height: clamp(200px, 40vw, 280px);
  }
}

/* =========================================================
   ZOOM IMAGE PROJET (LIGHTBOX)
========================================================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.lightbox.active img {
  transform: scale(0.85);
}

.project-card img {
  cursor: zoom-in;
}

/* =========================================================
   DÉCORATIONS
========================================================= */
.skills-decoration-left {
  position: absolute;
  top: 40px;
  left: calc(-1600px);
  width: 2600px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}

.skills-decoration-left img {
  width: 100%;
  transform: rotate(270deg);
}

.skills-decoration-right {
  position: absolute;
  bottom: -400px;
  right: -50%;
  width: clamp(800px, 24vw, 1500px);
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

.skills-decoration-right img {
  width: 100%;
  transform: rotate(-10deg);
}
/* =========================
   MENU BURGER (mobile)
========================= */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200; /* au-dessus du menu */
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* État ouvert (croix) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1700px) {
  .skills-decoration-left {
  position: absolute;
  top: 40px;
  left: calc(-1700px);
  width: 2500px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
  }
  .skills-decoration-right {
  position: absolute;
  bottom: -400px;
  right: -35%;
  width: clamp(700px, 22vw, 1400px);
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
  }
}
@media (max-width: 1400px) {
  .skills-decoration-left {
  position: absolute;
  top: 40px;
  left: calc(-1650px);
  width: 2400px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
  }
  .skills-decoration-right {
  position: absolute;
  bottom: -400px;
  right: -35%;
  width: clamp(600px, 20vw, 1300px);
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
  }
}
@media (max-width: 1200px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(380px, 1fr)); }
  .skills-decoration-left {
  position: absolute;
  top: 40px;
  left: calc(-1750px);
  width: 2500px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
  }
  .skills-decoration-right {
  position: absolute;
  bottom: -400px;
  right: -50%;
  width: clamp(700px, 22vw, 1400px);
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
  }
}

@media (max-width: 992px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .section-title { text-align: center; font-size: 36px; margin-left: 0; }
  .about-text {
    padding: 30px 20px; /* moins de marge interne */
    width: 95%;
    margin: 0 auto;
  }

  .about-text p {
    width: 100%;
    font-size: 18px;
    text-align: justify;
  }
  .skills-decoration-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-title { font-size: 30px; }
  .project-card { min-height: 200px; }
  .load-more-btn { font-size: 16px; }
  .about-text {
    width: 98%;
    padding: 25px 15px;
  }
}
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    order: -1; /* place le logo au-dessus du burger/menu */
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo img {
    margin: 0 auto;
  }
}

/* Menu mobile */
@media (max-width: 992px) {
.header {
    position: relative;
    padding: 15px 0;
  }

  .header .container {
    display: flex;
    justify-content: center; /* ✅ centre le logo */
    align-items: center;
    position: relative;
  }

  /* --- Logo centré --- */
  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1; /* permet de centrer sans décaler le burger */
  }

  .logo img {
    height: 60px;
    width: auto;
    margin: 0 auto;
  }

  /* --- Burger à droite --- */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 300;
    position: absolute;
    right: 20px; /* ✅ le place à droite */
    top: 50%;
    transform: translateY(-50%);
  }

  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* État croix */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  /* --- Menu mobile --- */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    z-index: 200;
  }

  .nav.active {
    transform: translateX(0);
  }
}
.no-scroll {
  overflow: hidden;
  height: 100vh; /* 🔒 bloque le scroll même sur mobile */
}
@media (max-width: 768px) {
  .hero {
    height: 380px; /* ✅ Réduction de la hauteur */
  }

  .video-background iframe {
    height: 380px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 300px; /* ✅ encore plus compact sur petit écran */
  }

  .video-background iframe {
    height: 300px;
  }
}
@media (max-width: 768px) {
  .video-background iframe {
    object-fit: cover;
    width: 120%;
  }
}
