/* styles ici */

/* Importer la police personnalisée */
@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Manrope:wght@200..800&display=swap');

html{
    height: 100%;
}
body {
    font-family: "Manrope", sans-serif;
    background-color: #ffffff;
    cursor: url('../medias/cursor.png'), auto;
    height: 100%;
    padding: 0;
    margin: 0;
}
a:hover, button:hover {
  cursor: url('../medias/click_pointer.png'), pointer;
}

p {
    font-family: "Manrope", sans-serif;
    font-weight: 300;
    margin:0;
    font-size: 0.8em;
    text-align: justify;
    line-height: 2;
    color: #30435e;
}

h3 {
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    color: #30435e;

}

header {
    display: grid;
    grid-template-columns: 1fr 7fr 0.5fr 0fr 0.5fr 0.1fr 0.1fr;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5 ease; /* Transition de 1 secondes */
    padding-block: 1vw;
    padding-inline: 3vw;
    text-align: right;
    gap: 1em;
}
header.loaded {
    opacity: 1;
}

  header a {
    text-decoration: none;
    margin-inline: auto;
    white-space: nowrap
  }


  .menu {
    
    font-size: 0.9em;

    color:#324862;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    margin-block: auto;
    margin-inline: auto;
     } 


.contact{
    width: auto;
}
.portfolio{
    font-family: "Calistoga", serif;
    font-size: 2.2rem;
    color:#324862;
}
@supports (font: -apple-system-body) { 
  .portfolio {
    font-weight: 900; /* un peu plus épais pour compenser */
  }
}
main {
    display: grid;
    opacity: 0;
    transition: opacity 0.5 ease; /* Transition de 1 secondes */
    padding-top: 2.5vw;
    padding-bottom: 2.5vw;
    padding-left: 5%;
    padding-right: 5%;
    margin-top: auto;
    margin-bottom: auto;
    text-align: left;

}
main.loaded {
    opacity: 1;
}


.langue select {
    font-size: 1em;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color:#324862;
}

#language-selector:focus {
    outline: none;
    border: none;
}
#language-selector {
    text-align: right; /* Aligne le texte à droite */
}
#language-selector option {
    text-align: center; /* Centre le texte dans les options du menu */
}


.col1{
    position: static;
    background: white; /* important pour éviter de voir l’arrière-plan défiler */
    z-index: 1;
    width: 70%;

}
.container{
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
    width: 100%;
}

.container video{
    height: auto;
    width: 100%;
    margin-top: auto;
    margin-bottom: 4em;
    transition: transform 0.5s ease; /* Transition fluide */
}
.container img{
    height: auto;
    width: 100%;
    margin-top: auto;
    margin-bottom: 4em;
    transition: transform 0.5s ease; /* Transition fluide */
}
.clickable-image{
  cursor: url('../medias/click_pointer.png'), pointer;
}

/* fond plein écran (lightbox) */
.lightbox {
  display: none; /* masqué au début */
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

/* image en grand */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;

}

/* bouton de fermeture */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


a {
    text-decoration: none;
    margin-inline: auto;
    white-space: nowrap;
    color: #30435e;
  }
#images{
    text-align: center;
}

.has-menu {
  position: relative;
}

/* Le menu caché de base */
.mega-menu {
  position: absolute;
  left:0%;
  text-align: left;
  background: white;
  padding: 20px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 999;
}

/* Hover classique */
.has-menu:hover .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu_projets_titles{
    color : #b3b3b3;
    transition: color 0.2s ease;
}
.menu_projets_titles:hover {
    color : #30435e;
}

/* ===========================
   HAMBURGER BUTTON (mobile)
=========================== */
.mobile-nav a {
    text-decoration: none;
    color: #30435e;
    margin-inline: auto;
    white-space: nowrap;
    flex: 1;
}

.hamburger {
  display: none; /* visible seulement mobile */
  position: fixed;
  top: 2%;
  left: 3%;
  z-index: 2000;
  width: 35px;
  height: 26px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.35s ease;
}

.hamburger span {
  width: 100%;
  height: 4px;
  background: #000;
  border-radius: 2px;
}

/* ===========================
   MOBILE PANEL (plein écran)
=========================== */
.mobile-panel {
  display: flex;
  position: fixed;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1500;
  justify-content: center;
  align-items: center;
  opacity: 0;

  /* Animation haut*/
  transform: translateY(-100%);
  transition : transform 0.35s ease-in-out, opacity 0.25s ease-in-out;
}

.mobile-panel.active_phone {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  font-size: clamp(1vw, 4vw, 6vw);
  white-space: nowrap;
}

.menu_hamburger{
  width: 58%;
  margin-left: 2vw;
}
.hamburger.active_phone {
  transform: rotate(90deg);
}

  .menu_phone {
    
    font-size: 1.4em;
    color: #30435e;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    margin-block: auto;
    margin-inline: auto;


  }