/* 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;
}

.propos{
    text-decoration:underline;
    text-underline-offset: 0.4em; /* Espacement entre le texte et le soulignement */
}

p {
    font-family: "Manrope", sans-serif;
    font-weight: 300;
    margin:0;
    font-size: 0.8em;
    text-align: justify;
}

h3 {
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 0.9em;

}

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;
}
main {
    display: grid;
    opacity: 0;
    transition: opacity 0.5 ease; /* Transition de 1 secondes */
    padding-top: 2.5vw;
    padding-bottom: 2.5vw;
    padding-left: 12%;
    padding-right: 12%;
    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 */
}



.container{
    display: grid;
    grid-template-columns: 50% 50%;
    margin:auto;
    width: 100%;
    justify-items: right;
}


.container img{
    width: 100%;
    transition: transform 0.5s ease; /* Transition fluide */
}
a {
    text-decoration: none;
    margin-inline: auto;
    white-space: nowrap;
    color: #30435e;
  }

  
.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;


  }

  .img_bio{
    width: 80%;
  }