/*
Theme Name: Mon thème personnalisé
Theme URI: https://http://kuro-webdev.local/
Author: kuro
Description: le css de mon portfolio
Version: 1.0.0
*/

/*font*/
/* Lato font pour titre header et footer */
@font-face {
    font-family: 'Lato';
    src: url('fonts/lato/Lato-Black.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Lato';
    src: url('fonts/lato/Lato-Black.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Lato';
    src: url('fonts/lato/Lato-Black.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
/* Ubuntu font pour le contenu du site */
@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/ubuntu/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Variables CSS */
:root {
    --background-gris-clair: #f5f5f5;
    --box-shadow-ombre-clair: -3px 5px 20px rgba(0, 0, 0, 0.2);
}

body {
    background-color: #b0b0b0;
    margin: 0;
    cursor: default;
}

/* Modal pour les mentions légales */
#legalModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none; /* <- cacher par défaut */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-contentMl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background: white;
  padding: 20px;
  width: 500px;
  border-radius: 30px;
  text-align: center;
}

.modal-contentMl h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 30px;
  margin-bottom: 15px;
}

.modal-contentMl p, .modal-contentMl a {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 20px;
}

#acceptModal {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

#acceptModal:hover {
  background: #333;
}

/* pour les titres */
.titre {
  text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 40px;
    margin: 0;
}

/* pour bloxs de texte de la home page */
.bloc-texte {
    box-sizing: border-box;
    width: 1690px;
    padding: 20px 35px;
    margin-bottom: 50px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    background-color: var(--background-gris-clair);
    box-shadow: var(--box-shadow-ombre-clair);
    border-radius: 30px 30px 30px 30px;
  }

/*header*/
header {
    display: flex;
    justify-content: center;
    position: fixed;
    padding: 5px 0 6px 0;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #333333;
}

.header-container {
  width: 1280px;
  display: flex;
  justify-content: space-between;
}


.admin-bar header {
    top: var(--wp-admin--admin-bar--height);
}

.en-tete{
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo {
    height: 80px !important;
    border-radius: 50px !important;
}

.home_page {
    text-decoration: none;
    color: inherit;
}

/*menu*/
.menu-groupe {
    display: flex;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 20px;
    font-style: italic;
    gap: 15px;
}

.menu {
    text-decoration: none;
    color: white;
    font-weight: 600;
}

.menu:hover {
  text-shadow: 5px 5px 10px #4400ff;
}

/*modal formulaire*/
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0 0 0 / 80%);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 2px solid #000000;
    border-radius: 4%;
    width: 20%;
    display: flex;
    justify-content: center;
  }

  #myBtn {
    cursor: pointer;
  }

  /*formulaire*/
  .wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
    height: 40px;
    width: 263px;
    border: solid #B8BBC2 1px;
    border-radius: 8px;
  }

  .wpcf7-form-control.wpcf7-textarea {
    width: 263px;
    height: 210px;
    border: solid #B8BBC2 1px;
    border-radius: 8px;
    resize: none;
  }

  .wpcf7-spinner {
    display: none;
  }

  .wpcf7-submit {
    width: 269px;
    height: 50px;
    background-color: #000000;
    color: white;
    cursor: pointer;
    border: none;
  }

  /*hero-header*/
  .hero-header {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
    margin-top: 93px;
    margin-bottom: 50px;
  }

  .banniere {
    position: absolute;
    width: 100%;
  }

  .hero-header h1 {
    z-index: 10;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 50px;
    color: white;
    opacity: 0;
    transform: translateY(-50px);
    animation: tomber 1.5s ease-in-out forwards;
  }
  @keyframes tomber {
    0% {
      opacity: 0;
      transform: translateY(-50px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .introportfolio {
    z-index: 10;
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateX(150px);
    animation: monter 1.5s ease-in-out forwards;
  }
  @keyframes monter {
    0% {
      opacity: 0;
      transform: translateX(150px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }


/*archive-projet*/
  .archive-projet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 301px);
    padding: 50px 30px;
    margin-top: 93px;
  }

  .vitrine-archive {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1690px;
    gap: 30px;
    margin-top: 20px;
  }

  /*les projets en vitrine*/
  .contenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
  }

  /*single-projet*/
  .bloc-projet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .section-projet {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 50px;
  }

  .cadre_single {
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    width: 1550px;
    display: flex;
    justify-content: center;
    border-radius: 30px;
    background: var(--background-gris-clair);
    box-shadow: var(--box-shadow-ombre-clair);
    margin-bottom: 50px;
  }

  .description-projet {
    width: 600px;
    height: 500px;
    padding: 20px 40px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--background-gris-clair);
    border-radius: 30px 30px 30px 30px;
    box-shadow: -3px 5px 20px rgba(0, 0, 0, 0.3);
  }

  .descrition-realisation {
    width: 1550px;
    padding: 40px 80px;
    margin-bottom: 50px;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    font-size: 20px;
    background-color: var(--background-gris-clair);
    border-radius: 30px 30px 30px 30px;
    box-shadow: -3px 5px 20px rgba(0, 0, 0, 0.3);
  }

  .description-projet h3, .descrition-realisation h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 30px;
    text-align: center;
  }

  .single-photo {
    width: 900px;
    height: 500px;
    border-radius: 30px;
    box-shadow: -3px 5px 12px rgba(0, 0, 0, 0.5);
  }

  .contact-carrousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
  }

  .zone-contact {
    width: 600px;
    height: 240px;
    padding: 20px 40px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--background-gris-clair);
    border-radius: 30px 30px 30px 30px;
    box-shadow: -3px 5px 20px rgba(0, 0, 0, 0.3);
  }

  .zone-contact h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 30px;
    margin: 0px;
  }

  .btmc, .btos {
    display: inline-grid;
    align-items: center;
    width: 269px;
    height: 50px;
    background-color: #000000;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'ubuntu', sans-serif;
    font-weight: 400;
    font-size: 20px;
  }

  .btmc:hover, .btos:hover {
    background-color: #CCCCCC;
    color: black;
    transition: background-color 0.3s ease;
  }

  /*carousel*/
  .carrousel {
    width: 900px;
    height: 240px;
    padding: 20px 40px;
    box-sizing: border-box;
    background-color: var(--background-gris-clair);
    border-radius: 30px 30px 30px 30px;
    box-shadow: -3px 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .mySwiper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
  }

  .swiper-wrapper {
    display: flex;
  }

  .carrousel .swiper-slide {
    width: 260px !important;
  }

  .carrousel .mySwiper .swiper-slide a {
    display: flex;
    justify-content: center;
  }

  /* Slides */
  .mySwiper .swiper-slide a {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9; /* ratio 16:9 */
  }

  /* Images */
  .mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* recadre proprement */
    transition: transform .35s ease;
  }

  /* Hover */
  .mySwiper .swiper-slide a:hover img {
    transform: scale(1.03);
  }

  /* Flèches */
  .mySwiper .swiper-button-next,
  .mySwiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(2px);
  }
  .mySwiper .swiper-button-next::after,
  .mySwiper .swiper-button-prev::after {
    font-size: 18px;
    color: #fff;
  }

  /*les projets en vitrine*/
  .vitrine {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1690px;
    gap: 30px;
    margin-top: 20px;
  }

  .vitrine-projet {
    display: flex;
    justify-content: center;
    object-fit: cover;
    width: 400px;
    height: 250px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: -3px 5px 12px rgba(0,0,0,0.5);
    cursor: pointer;
  }

  .vitrine-projet img {
    width: 100%;
    height: 100%;
  }

  .nom-projet {
    position: absolute;
    display: flex;
    justify-content: center;
    border-radius: 30px;
    background-color: #CCCCCC;
    bottom: 0;
    color: rgb(0, 0, 0);
    opacity: 0.8;
    text-align: center;
    padding: 10px 20px;
    font-family: 'ubuntu', sans-serif;
    font-weight: 400;
    font-size: 20px;
  }

  .descrition-code {
    position: absolute;
    display: flex;
    justify-content: center;
    border-radius: 30px;
    background-color: #CCCCCC;
    top: 0;
    width: 80%;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 10px;
    font-family: 'ubuntu', sans-serif;
    font-weight: 400;
    font-size: 16px;
  }

  /* Masquer uniquement le texte de la description */
  .vitrine-projet .descrition-code {
    opacity: 0;
    transition: opacity 0.3s;
  }

  /* Afficher la description au survol du projet */
  .vitrine-projet:hover .descrition-code, .vitrine-projet:hover .nom-projet {
    opacity: 1;
  }

   /* hover pour les projets en vitrine */
  .vitrine-projet:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /*cadre et decoration des titres*/
  .cadre {
    display: flex;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    padding: 20px 35px;
    width: 1690px;
    border-radius: 30px;
    margin-bottom: 50px;
    background: var(--background-gris-clair);
    box-shadow: var(--box-shadow-ombre-clair);
  }

  .coin {
    position: absolute;
    width: 100px;
    height: 80px;
    pointer-events: none;
  }
  
  .coin img {
    position: absolute;
    width: 40px;
    transition: z-index 0.3s;
    transform: rotate(-10deg);
  }
  
  /* Positions */
  .coin-top-left {
    top: -10px;
    left: -10px;
  }
  
  .coin-bottom-right {
    bottom: -10px;
    right: -10px;
  }

  /*Parcours*/
  .zoneParcours {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    margin: 20px;
  }

  /*mensions-legales cgv*/
  .classLegal {
    box-sizing: border-box;
    width: 1400px;
    padding: 20px 30px;
    background-color: var(--background-gris-clair);
    box-shadow: var(--box-shadow-ombre-clair);
    border-radius: 30px 30px 30px 30px;
  }

  .titreLegal {
    text-align: center;
  }

  .classLegal h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 20px;
  }

  .classLegal p, .classLegal li, .classLegal ul, .classLegal a {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 20px;
  }

  .classLegal li {
    margin: 0;
  }

  /*footer*/
  .footer {
    display: flex;
    align-items: center; 
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 20px;
    color: white;
    background-color: #333333;
    height: 100px;
    width: 100%;
  }

  .footer a {
    text-decoration: none;
    color: white;
  }

  footer a:hover {
    text-shadow: 5px 5px 10px #4400ff;
  }

/*media queries*/
/* Pour les écrans de 500px et moins */
@media (max-width: 500px) {
  /* Pour le header */
    header {
      position: static;
      padding: 5px 0 6px 0;
      top: 0px;
      left: 0;
      width: 100%;
      z-index: 100;
      background-color: #333333;
    }

    .header-container {
      justify-content: center;
      width: 100%;
      gap: 200px;
      
    }

    .logo {
      height: 60px;
    }

    .menu-groupe {
      display: none;
    }

    .openbtn {
      display: flex;
      align-items: center;
      cursor: pointer;
      z-index: 1001;
    }

    .sidenav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(10, 10, 10, 0.97);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transform: scale(0);
      transition: transform 0.3s ease-in-out;
      z-index: 1000;
    }

    .sidenav.active {
    transform: scale(1);
  }

  .sidenav .menu {
    color: white;
    font-size: 24px;
    margin: 20px 0;
  }

  /* Burger icon */
  .burger-icon {
    margin-right: 20px;
  }

  .burger-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: all 0.3s;
    transform-origin: center;
  }

  .burger-icon.active .top_barre {
    transform: rotate(45deg);
    margin: 0px;
  }

  .burger-icon.active .mid_barre {
    opacity: 0;
    margin: 0px;
  }

  .burger-icon.active .bottom_barre {
    transform: rotate(-45deg) translate(3px, -5px);
    margin: 0px;
  }

    /*hero-header*/
    .hero-header {
      height: 86px;
      margin: 0;
    }

    .hero-header h1 {
      font-size: 35px;
    }

    .introportfolio {
      font-size: 15px;
    }

    /* Pour les titres */
    .titre {
      font-size: 30px;
    }

    .cadre {
      width: 100%;
      margin-bottom: 15px;
      padding: 20px 20px;
    }

    /* Pour les blocs de texte de la home page */
    .bloc-texte {
      width: 100%;
      padding: 15px 20px;
      font-size: 15px;
      margin-bottom: 15px;
    }

    /*contenu de la page*/
    .contenu {
      padding: 30px 30px 15px 30px;
    }

    /* Pour les projets en vitrine */
    .vitrine {
      width: 100%;
    }

    .vitrine-projet {
      width: 100%;
      height: 200px;
    }

    /* pour la zone parcours */
    .zoneParcours {
      margin: 0;
      padding: 15px 30px 30px 30px;
    }

    /* archive-projet */
    .archive-projet {
      padding: 30px 30px;
      margin-top: 0;
    }

    /* page single-projet */
    .cadre_single {
      width: 100%;
      margin-bottom: 30px;
    }

    .bloc-projet {
      width: 100%;
      flex-direction: column;
    }

    .section-projet {
      flex-direction: column-reverse;
      align-items: center;
      gap: 30px;
      margin-bottom: 30px;
    }

    .description-projet {
      width: 100%;
      height: auto;
      padding: 20px 20px;
    }

    .single-photo {
      width: 100%;
      height: 250px;
    }

    .descrition-realisation {
      width: 100%;
      padding: 20px;
    }

    .contact-carrousel {
      flex-direction: column;
      width: 100%;
    }

    .carrousel {
      width: 100%;
    }

    .zone-contact {
      width: auto;
    }

    /*modal formulaire*/
    .modal-content {
      width: 70%;
    }

    /* modal mentions legales */
    #legalModal {
      width: 100%;
    }

    .modal-contentMl {
      width: 85%;
    }

    /* mensions-legales cgv */
    .classLegal {
      width: 100%;
    }

    /* footer */
    .footer {
      font-size: 15px;
    }

    .copyright {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
}