@font-face {
    font-family: 'HelveticaNow'; /*a name to be used later*/
    src: url('font/HelveticaNowDisplay-Thin.ttf'); /*URL to font*/
}

@font-face {
    font-family: 'HelveticaNowBI'; /*a name to be used later*/
    src: url('font/HelveticaNowDisplay-BoldIta.ttf'); /*URL to font*/
}

@font-face {
    font-family: 'WulkanDispay'; /*a name to be used later*/
    src: url('wulkan-display/WulkanDisplayBold.ttf'); /*URL to font*/
}

@font-face {
    font-family: 'WulkanDispayI'; /*a name to be used later*/
    src: url('wulkan-display/WulkanDisplayItalic.ttf'); /*URL to font*/
}

/* 
==================================================
  RESET / BASE
==================================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    font-family: 'HelveticaNow', sans-serif;
    font-size: x-large;
    color: #ffffff;
    background-color: #0f0f0f;
    line-height: 1.4;
    overflow-x: hidden;
  }
  
  img, video {
    max-width: 100%;
    display: block;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Variables de couleurs */
  :root {
    --main-bg-color: #0f0f0f;
    --accent-color: #d95f02;
    --accent-color-light: #f57c32;
    --text-color: #ffffff;
    --secondary-text-color: #aaaaaa;
  }
  
  /* 
  ==================================================
    BARRE DE MENU À GAUCHE
  ==================================================
  */
  .left-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100vh;
    background-color: var(--main-bg-color);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    z-index: 999;
  }
  
  /* Logo "AE" */
  .logo {
    font-family: 'WulkanDispay', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
  }
  
  /* Burger menu centré dans la barre */
  .burger-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
  }
  
  .burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
  }
  
  /* 
  ==================================================
    OVERLAY DU MENU
  ==================================================
  */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 15, 15, 0.95);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .close-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
    transform-origin: center;
  }
  
  .close-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .close-bar:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .mobile-nav-links {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  
  .mobile-nav-links li {
    margin: 15px 0;
  }
  
  .mobile-nav-links li a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s;
  }
  
  .mobile-nav-links li a:hover {
    color: var(--accent-color-light);
  }
  
  .mobile-nav-overlay.show {
    left: 0;
  }
  
  /* 
  ==================================================
    SECTIONS (Disposition verticale)
  ==================================================
  */
  /* Augmentation du padding à gauche (et margin-left conservé pour décalage global) */
  section {
    width: 100%;
    padding: 40px 50px 150px 100px;
    box-sizing: border-box;
    margin-left: 50px;
  }
  
  /* HERO */
  .hero-section {
    background: linear-gradient(135deg, #1c1c1c, #0f0f0f);
    position: relative;
    min-height: 100vh;
    overflow: visible;
    display: flex;
    align-items: center;
  }
  
  .hero-content {
    margin-left: 100px;
    flex: 1 1 500px;
    max-width: 600px;
    z-index: 2;
  }
  
  .hero-title {
    font-family: "WulkanDispayI";
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
  }
  
  .highlight {
    color: var(--accent-color);
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    margin-left: 5%;
    max-width: 650px;
    line-height: 1.6;
  }
  
  .btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: "HelveticaNow";
  }
  
  .btn-primary:hover {
    background-color: var(--accent-color-light);
  }
  
  /* Photo agrandie dans le Hero, positionnée à droite avec débordement */
  .hero-photo {
    position: absolute;
    right: -50px;
    top: 40%;
    z-index: 1;
  }
  
  .hero-photo img {
    width: 600px;
    height: 600px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
  }
  
  /* PORTFOLIO */
  .featured-section {
    background-color: #1c1c1c;
    padding-right: 100px;
  }
  
  .section-text {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-left: 50px;
    color: var(--text-color);
  }
  
  .section-subtitle {
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-bottom: 40px;
  }

  .section-subtitle2 {
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-bottom: 40px;
  }
  
  /* Organisation en 3 colonnes pour les projets */
  .project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .project-item {
    background-color: #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .project-item:hover {
    transform: translateY(-5px);
  }
  
  .project-media video {
    width: 100%;
    display: block;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--accent-color);
  }
  
  .project-description {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
  }
  
  /* ABOUT */
  /* Note : Pour la section À propos, on ne souhaite pas d'effet parallax sur le texte */
  .about-section {
    background-color: #0f0f0f;
  }
  
  .about-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 50px;
  }

  .services-list {
    padding-left: 60px;
  }
  
  /* CONTACT */
  .contact-section {
    background-color: #1c1c1c;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 10px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
  }
  
  input[type="text"]::placeholder,
  input[type="email"]::placeholder,
  textarea::placeholder {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: medium;
    color: #999;
  }
  
  textarea {
    resize: vertical;
  }
  
  /* FOOTER */
  .main-footer {
    background-color: #0f0f0f;
    text-align: center;
    padding: 20px;
    color: var(--secondary-text-color);
    font-size: 0.8rem;
    margin-left: 150px;
  }
  
  /* 
  ==================================================
    SLIDE-IN EFFECT POUR LE TEXTE
  ==================================================
  */
  .slide-in {
    opacity: 0;
    transform: translateX(-100px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  }
  
  .slide-in.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* 
  ==================================================
    MEDIA QUERIES
  ==================================================
  */
  @media (max-width: 768px) {
    .left-bar {
      width: 100%;
      height: 60px;
      border-right: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      padding-top: 0;
    }
    
    .logo {
      font-size: 1.5rem;
      margin: 0 20px;
    }
    
    .burger-menu {
      position: static;
      margin: 0 auto;
      transform: none;
    }
    
    section {
      margin-left: 0;
      padding: 80px 20px;
    }
    
    .main-footer {
      margin-left: 0;
    }
  }
  
  /* 
  ==================================================
    EFFECT PARALLAX (les éléments avec la classe "parallax" utilisent leur data-speed)
  ==================================================
  */
  .parallax {
    will-change: transform;
  }

  @media (max-width: 768px) {
    /* Barre supérieure fixée en haut */
    .left-bar {
      width: 100%;
      height: 60px;
      border: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      position: fixed;
      top: 0;
      left: 0;
      padding: 0 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: var(--main-bg-color);
      z-index: 1000;
    }
    
    /* Logo centré : on masque le texte original et on affiche "Alex Editing" via un pseudo-élément */
    .logo {
      font-size: 1.5rem;
      color: var(--accent-color);
      text-indent: -9999px;
      position: relative;
    }
    
    .logo::after {
      content: "AE";
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      text-indent: 0;
      padding: 0%;
    }
    
    /* Burger menu positionné à droite et centré verticalement */
    .burger-menu {
      position: absolute;
      right: -30%;
      top: 50%;
      transform: translateY(-50%);
      margin: 0;
    }
    
    /* Réduction et repositionnement de la photo du Hero */
    .hero-photo {
      top: 15px;          /* En dessous du menu fixe */
      left: -30px;        /* Partiellement coupée par le bord gauche */
      right: auto;
      transform: none;    /* Effet parallax désactivé en mobile */
    }
    
    .hero-photo img {
      width: 250px;       /* Taille réduite pour mobile */
      height: 250px;
      border: 3px solid var(--accent-color);
    }
    
    /* Pour éviter que la section Hero ne soit masquée sous le menu fixe */
    .hero-section {
      margin-top: 70px;
    }
    
    /* Adaptation générale des sections pour mobile */
    section {
      margin-left: 0;
      padding: 80px 40px;
    }
    
    .main-footer {
      margin-left: 0;
    }
    
    /* Adaptation de la section Featured Work */
    .featured-section {
      padding-right: 40px; /* Ajout d'une marge à droite */
    }
    
    .project-list {
      grid-template-columns: 1fr; /* Un projet par ligne */
    }
  }

  /* Bouton de changement de langue */
.lang-toggle {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--accent-color);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  font-family: 'HelveticaNow', sans-serif;
  font-size: 0.9rem;
  margin: 10px auto;
  display: block;
}

.lang-toggle:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: scale(1.05);
}

/* Gestion de l'affichage des contenus par langue */
body.lang-en .lang-en {
  display: inline;
}

body.lang-en .lang-fr {
  display: none;
}

body.lang-fr .lang-en {
  display: none;
}

body.lang-fr .lang-fr {
  display: inline;
}