/*
Theme Name: Adam
Theme URI: http://adam.test
Author: Elena
Description: Un thème personnalisé pour WordPress
Version: 1.0
*/

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

/* === TYPO PAR DÉFAUT === */
body {
  font-family: "georgiapro", serif;
  color: black;
  background-color: white;
}

/* === HEADER GLOBAL === */
header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: transparent;
  z-index: 10;
}

/* === MENU DE NAVIGATION === */
nav {
  flex: 1;
}

nav ul {
  list-style: none;
  margin-left: 50px;
  display: flex;
  gap: 40px;
}

nav a {
    font-family: "georgiapro", sans-serif;
    font-weight: 400;
    font-style: normal;
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 16px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: black;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav li.current-menu-item a::after {
  width: 100%;
}

/* === LOGO PRINCIPAL CENTRÉ === */
.site-branding {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo img,
.custom-logo {
  height: 60px;
  width: auto;
  display: block;
}

/* === LOGOS SECONDAIRES === */
.additional-logos {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  margin-right: 50px;
}

.additional-logos img {
  height: 25px;
  width: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    gap: 20px;
    padding: 20px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    gap: 20px;
    margin-bottom:50px;
  }

  .additional-logos {
    justify-content: center;
    margin-right: 0;
  }

  .site-branding {
    order: -1;
  }


}

/* === VIDÉO PLEIN ÉCRAN === */
.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

.home-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* === TEXTE EN DESSOUS DE LA VIDÉO === */
.home-texts-below {
    margin-top:75px;
  background-color: white;
  display: flex;
  margin-left:155px;
  margin-right:155px;
  justify-content:space-between ;
  font-family: "georgiapro", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.home-texts-below h1 {
  font-size: 40px;
}

.home-texts-below h2 {
  font-size: 40px;
  background-color: #58709A;
  color: white;
  padding:8px;
}

.projets-accueil {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* espace entre les blocs */
  margin-left: 51px;
  margin-right: 51px;
}

.bloc {
  flex: 0 0 calc(25% - 15px); /* largeur fixe à 4 colonnes */
  text-align: center;
  margin-top: 74px;
  box-sizing: border-box;
}

.projets-accueil .bloc img {
  width: 100%;
  height: 460px;       /* hauteur fixe */
  object-fit: cover;   /* recadrage */
  display: block;
}

.bloc h2{
  font-family: "georgiapro", sans-serif;
    font-weight: 700;
    font-style: normal;
  font-size: 18px;
  margin-top:16px;
}

.bloc p{
  font-family: "georgiapro", sans-serif;
    font-weight: 400;
    font-style: normal;
  font-size: 16px;
  margin-top:5px;
}

.btn-projets{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top:50px;
}

.btn-projets a {
  position: relative;
  overflow: hidden; /* cache ce qui dépasse */
  text-decoration: none;
  color: black;
  border: solid 1px black;
  padding: 8px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-projets a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #58709A; /* couleur de remplissage */
  color: white;
  z-index: -1;
  transition: height 0.4s ease;
  
}

.btn-projets a:hover::before {
  height: 100%;
}

.btn-projets a:hover {
  color: white; /* texte devient blanc sur fond noir */
}

.section-expertises {
  display: flex;
  justify-content: space-between;
  gap: 50px; /* espace entre les deux colonnes */
  font-family: "georgiapro", sans-serif;
  color: black;
  margin-top:80px;
  margin-left:51px;
  margin-right:157px;
}

.liste-expertises {
  flex: 1; /* colonne de gauche prend un espace */
  padding-left: 20px;
  font-weight: 500;
  font-size: 18px;
}

.liste-expertises li {
  margin-bottom: 15px;
}

.section-expertises > div.txt-expertises {
  flex: 1; /* colonne de droite prend aussi de la place */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-weight: 400;
  font-size: 16px;
}

.section-expertises h2 {
  font-weight: 400;
  font-size: 16px;
  margin-bottom:20px;
}

.section-expertises h3 {
  font-weight: 400;
  font-size: 16px;
  margin-top:20px;
}

.liste-expertises p {
  font-weight: 600;
  font-size: 40px;
}

.btn-expertises{
  display: flex;
  margin-top:20px;
  justify-content: right;
}

.btn-expertises a {
  position: relative;
  overflow: hidden; /* cache ce qui dépasse */
  text-decoration: none;
  color: black;
  border: solid 1px black;
  padding: 8px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-expertises a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #58709A; /* couleur de remplissage */
  color: white;
  z-index: -1;
  transition: height 0.4s ease;
  
}

.btn-expertises a:hover::before {
  height: 100%;
}

.btn-expertises a:hover {
  color: white; /* texte devient blanc sur fond noir */
}

.txt-expertises p{
    font-family: "georgiapro", sans-serif;
  font-weight: 400;
  font-size:16px;
  line-height: 140%;
}

.txt-expertises{
  margin-top:40px;
  text-align: right;
}

.liste-expertises h2 {
  position: relative;
  padding-left: 25px; /* espace pour le carré */
}

.liste-expertises h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background-color: #58709A; /* couleur du carré */
}

.projets-accueil a{
    text-decoration: none;
}


.home-texts-below {
  margin-top: 75px;
  background-color: white;
  display: flex;
  margin-left: 10vw;    /* marge dynamique relative à la largeur viewport */
  margin-right: 10vw;   /* pareil à droite */
  justify-content: space-between;
  font-family: "georgiapro", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.home-texts-below h1,
.home-texts-below h2 {
  font-size: clamp(30px, 4vw, 40px); /* taille min 30px, max 40px, responsive */
  white-space: nowrap;
}

.home-texts-below h2 {
  background-color: #58709A;
  color: white;
  padding: 8px;
}

/* Tablette jusqu'à 768px */
@media (max-width: 768px) {
  .home-texts-below {
    flex-direction: row;
    margin-left: 5vw !important;  /* marge plus petite */
    margin-right: 5vw !important;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .home-texts-below h1,
  .home-texts-below h2 {
    white-space: normal;
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-texts-below h2 {
    padding: 8px 16px !important;
    max-width: fit-content;
    width: auto;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .home-texts-below {
    flex-direction: column;
    margin-left: 16px !important;
    margin-right: 16px !important;
    gap: 20px;
    justify-content: flex-start !important;
    margin-top: 40px;
  }

  .home-texts-below h1,
  .home-texts-below h2 {
    font-size: 30px !important;
    white-space: normal;
  }

  .home-texts-below h2 {
    padding: 8px 16px !important;
    max-width: fit-content;
    width: auto;
  }
}







/* Entre 481px et 1024px - tablette et intermédiaire */
@media (max-width: 1024px) and (min-width: 481px) {
  .projets-accueil .bloc {
    flex: 1 1 45%; /* 2 en ligne */
    max-width: 45%;
  }
}
@media (max-width: 650px){
    .projets-accueil .bloc {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Mobile < 480px */
@media (max-width: 480px) {
  .projets-accueil {
    flex-direction: column;
    gap: 0px; /* moins d’espace */
    margin-left: 16px;
    margin-right: 16px;
  }

  .projets-accueil .bloc {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* Responsive pour la section expertises */

/* Tablette : largeur max 1024px */
@media (max-width: 1024px) {
  .section-expertises {
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
    gap: 30px;
  }

  .liste-expertises,
  .txt-expertises {
    flex: none; /* pour éviter prise d’espace flexible */
    padding-left: 0;
    text-align: left;
  }

  .liste-expertises p {
    font-size: 28px; /* un peu plus petit que sur grand écran */
  }

  .section-expertises h2,
  .section-expertises h3 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  .txt-expertises {
    margin-top: 0;
    text-align: left;
  }

  .btn-expertises {
    justify-content: flex-start;
  }
}






/* === BASE HEADER === */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  position: relative;
  background: white;
  z-index: 10;
}

/* Logo centré grâce à position absolue sur mobile */
.site-branding {
  margin: 0 auto;
  z-index: 2;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .site-branding {
    position: relative;
    z-index: 2;
  }

  .site-header {
    justify-content: center;
  }
}

/* Mobile : largeur max 480px */
@media (max-width: 480px) {
  .section-expertises {
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
    gap: 20px;
  }

  .liste-expertises p {
    font-size: 28px;
  }

  .section-expertises h2,
  .section-expertises h3 {
    font-size: 16px;
  }

  .txt-expertises p {
    font-size: 14px;
    line-height: 1.4;
  }

  .menu-burger {
    display: block !important;
  }
}

/* Menu burger caché par défaut */
.menu-burger {
  display: none;
  cursor: pointer;
  z-index: 110;
  position: absolute;
  top: 40px;
  right: 30px;
  transition: transform 0.4s ease;
}

/* Menu burger active : rotation */
.menu-burger.cross {
  transform: rotate(90deg);
}

.mobile-logos {
  display: none;
}

/* MENU MOBILE */
@media (max-width: 768px) {
  #menu-principal {
    /* display supprimé pour animation */
    flex-direction: column;
    gap: 50px;
    background-color: white;
    padding: 20px;
    position: fixed; /* prend tout l’écran */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;

    /* Centrer horizontalement, mais décaler verticalement */
    justify-content: flex-start;
    align-items: center;
    padding-top: 200px; /* espace en haut pour décaler un peu */

    /* Animation */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #menu-principal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-burger {
    display: block;
  }

  .menu-burger img {
    width: 30px;
    height: auto;
  }

  .cross img {
    width: 20px;
    height: auto;
  }

  body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100vw;
    touch-action: none; /* bloque scroll tactile */
  }

  #menu-principal {
    z-index: 100; /* inférieur à 110 du menu burger */
  }

  .mobile-logos {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .mobile-logos img {
    height: 25px;
    width: auto;
  }

  .additional-logos {
    display: none; /* Cacher les logos en haut sur mobile */
  }
}

@media (max-width: 1024px) {
  .bloc {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  nav a::after {
    display: none !important;
  }
}
