/* variables  */
:root {

  --bk1-color: #2C3E50;
  --bk2-color: #18BC9C;
  --bk3-color: #d2ecec;
  --carousel-control-color: var(--bk2-color);
}

/* DEBUT comportement général */
html {
  scroll-behavior: smooth;
}

html body {
  padding: 2%;
  background-color: rgba(226, 251, 237, 0.318) ;
  
}

svg {
  width: 3rem;
  height: 3rem;
}

body a {
  color: inherit;
  text-decoration: none;
}

main section {
  width: 100%;
}

/* les h1 des sections parcour projet interet et competence */
section h1 {
  color: white;
  text-align: center;
  font-family: "Montserrat";
  font-weight: bold;
  background-color: var(--bk2-color);
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
  font-family: "Lato", sans-serif;
  font-weight: bold;
}

section h3 {
  font-family: "Lato", sans-serif;
  font-size: medium;
}

section p {
  font-family: "Raleway", sans-serif;
}

div.col h2,
section#moi h2 {
  font-size: 2.3vw;
}

.container {
  width: 50%;
  height: 5rem;
  background-color: var(--bk3-color);
  font-size: medium;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container h3 {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
  margin: 0;
}

/* FIN comportement général */




/* DEBUT MODALS */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

body .modal-content {
  margin: auto;
  margin-top: 5%;
  display: block;
  width: 80%;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  background-color: var(--bk1-color) ;

}

div#qr-modal div#caption,
.modal-caption {
  width: 80%;
  margin: auto;
  display: block;
  max-width: 700px;
  text-align: center;
  color: #f1f1f1;
  padding: 10px 0;
  height: 150px;
}

/* modal bouton fermeture */
span.close {
  position: absolute;
  top: 1%;
  right: 4%;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001;
}

span.close:hover,
span.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* FIN MODALS */



/* DEBUT header  */
header {
  display: flex;
  justify-content: space-between;
}

header div {
  display: flex;
  justify-content: space-around;

}

header div h1 {
  width: 100%;
  margin: 0;
  padding: 0.5rem;
  margin-bottom: 5%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header section h2 {
  width: 100%;
  background-color: var(--bk2-color);
  color: white;
  height: 5rem;
  padding: 0.5rem;
  padding-top: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* partie gauche Nom Photo */
header section#pres {
  width: 65%;
  display: flex;
  flex-direction: column;
}

header div#photo {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;

}

header div#photo img {
  width: 48%;
  border-radius: 8px;

}

/* partie droite Info */

header section#info {
  width: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

section#info div,
section#info a {
  width: 100%;
  height: 19%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 7%;
  align-items: center;
  margin: 0.3rem;
}

section#info a.container h3 {
  font-size: larger;
  font-weight: bold;
}

section#info div svg,
section#info a svg {
  width: 5rem;
  height: 5rem;
  padding: 1rem;
  background-color: var(--bk3-color);
  border-radius: 8px;
}

/* les boutons DL et QR */
section#info div#button {
  width: 100%;
  justify-content: space-around;
}

section#info div#button svg {
  width: 50%;
  height: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* hover du header  */
section#info a.container:hover h3 {
  color: white;
  transition: color 0.3s ease;
}

section#info a.container:hover {
  background-color: var(--bk1-color);
  cursor: pointer;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

section#info a.container:hover svg,
#button svg:hover {
  background-color: var(--bk1-color);
  color: white;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}





/* la nav */

nav {
  margin: 3% 0;
  background-color: var(--bk2-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;

}

nav li {
  background-color: var(--bk3-color);
  margin: 0 1rem;
  width: 19%;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav a {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 1.6vw;
  color: #333;
  padding: 1rem 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav a:hover,
nav a.active {
  background-color: var(--bk1-color);
  color: white ;
  font-size: 1.7vw;
}

nav#mobile {
  display: none;
}

/* Styles pour le menu burger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  position: sticky;
  top: 0;
  right: 0;
  z-index: 101;
}

div#mobile-title {
  background-color: var(--bk2-color);
  color: white;
  text-align: center;
  padding: 0.5rem;
  display: none;

}

div#mobile-title h1 {
  font-family: "Montserrat";
  font-weight: bold;
  margin: 0;
}

div#mobile-title button {
  color: white;
  background-color: var(--bk1-color);
  border-radius: 8px;
}

/* nav mobile  */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    box-shadow: none;
  }

  div#mobile-title {
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  header section div#titre {
    display: none;
  }

  div#mobile-title h1 {
    width: 84%;

  }

  div#mobile-title button {
    width: 15%;

  }

  nav {
    margin: 0;
  }

  nav#mobile {

    position: fixed;
    top: 5rem;
    right: 2%;
    background-color: var(--bk2-color);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;

  }

  nav#mobile.active {
    display: block;
    width: 96%;
    max-height: 600px;
    z-index: 300;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
  }

  nav#mobile ul {
    flex-direction: column;
    align-items: center;
  }

  nav#mobile ul li {
    width: 90%;
    margin: 1%;
  }

  nav a {
    font-size: medium;
    font-weight: bold;
  }

  nav a:hover,
  nav a.active {
    font-size: large;

  }

}



/* presentation rapide  */
section#moi {
  display: flex;
  font-family: "Lato-bold", sans-serif;
  justify-content: space-between;

}

section#moi section {

  width: 33%;
  text-align: center;

}


section#moi section h2 {

  margin: 5%;
  background-color: var(--bk2-color);
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section#moi section ul {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  height: 60%;
  margin: 5%;
  background-color: var(--bk3-color);
  list-style: none;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section#moi section ul li {
  padding-left: 1.5rem;
}

section#moi section p {
  height: 60%;
  margin: 5%;
  background-color: var(--bk3-color);
  text-align: justify;
  padding: 1.5rem;
  border-radius: 8px;
  padding-top: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

/* compétence  */

section#competence {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

section#competence div.col {
  display: flex;
  justify-content: space-around;
}

section#competence h1 {
  margin: 3% 1.5%;
}



/* HARD  */



section.hard div.col section {
  width: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

section.hard div.col section h2 {
  width: 100%;
  background-color: #18bc9b98;
  color: white;
  margin-top: 2%;
  margin-bottom: 2%;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section.hard div.col section article {
  width: 90%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10%;
  margin-top: 2%;
  margin-bottom: 2%;
  background-color: var(--bk3-color);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* SOFT  */


section.soft div.col div {
  width: 49%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

section.soft div.col section article {
  width: 90%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10%;
  margin-top: 2%;
  margin-bottom: 2%;
  background-color: var(--bk3-color);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



section#competence section.soft div.page div.L a.container,
section#competence section.soft div.page div.R a.container {

  width: 90%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10%;
  margin-top: 2%;
  margin-bottom: 2%;
  background-color: var(--bk3-color);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}






/* parcour */
section#parcour {
  display: flex;
  justify-content: space-between;
  margin-top: 3%;
  align-items: flex-start;

}

section#parcour div {
  display: flex;
  align-items: center;
  gap: 3%;
}

section#parcour p {
  flex-direction: row;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

section#parcour img {

  width: 60px;
  height: 60px;
  margin: 2%;
  border: #333;
  border-style: groove;
  background-color: white;

}

section#parcour .entreprise,
section#parcour .ecole {

  width: 48%;

}

section#parcour div {
  display: flex;
  margin: 5%;
  background-color: var(--bk3-color);
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

/* projet */
section#projet {
  display: flex;
  justify-content: space-between;
  margin-top: 3%;
}

section#projet img {
  border-radius: 8px;
  flex-direction: row;
  width: 86%;
  height: 50%;
}



section#projet h5,
section#projet p {

  color: #333;
  margin-bottom: 0;

}

section#projet .pro,
section#projet .perso {
  width: 48%;
}

section#projet .pro div,
section#projet .perso div {
  background-color: var(--bk3-color);
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


section#projet .pro div.carousel-caption,
section#projet .perso div.carousel-caption,
section#projet .pro div.carousel-indicators,
section#projet .perso div.carousel-indicators {
  box-shadow: none;
}


/* carrousel projet  */
div#carouselPersoCaptions,
div#carouselProCaptions {
  margin: 5% auto;
  padding: 0;
  width: 90%;
  height: auto;
  display: flex;
  align-items: center;
}




.carousel-item {
  height: 400px;
  display: flex;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-top: 8%;
  background-color: #333;

}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--carousel-control-color);
  border-radius: 8px;
}
#carouselProCaptions .carousel-control-next,
#carouselProCaptions .carousel-control-prev,
#carouselPersoCaptions .carousel-control-next,
#carouselPersoCaptions .carousel-control-prev {
    bottom: 5%;
    align-items: end;

}

.carousel-control-next,
.carousel-control-prev {
    bottom: 5%;
    align-items: end;

}

/* DEBUT centres d'interet */
section#interet {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1%;
}

section#interet img {
  width: 90%;
  min-height: 38%;
  flex-direction: column;
  background-color: var(--bk3-color);
  margin: 5%;
  padding: 2%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



section#interet p {
  border-radius: 8px;
  

  text-align: left;
  background-color: var(--bk3-color);
  margin: 5%;
  padding: 5%;
}

section#interet .it,
section#interet .pop,
section#interet .voyage,
section#interet .activite {
  width: 24%;
  flex-direction: row;
  text-align: center;
}

/* FIN centres d'interet */

/* bouton contact */

.contact-link {
  margin-top: 2%;
  display: block;

  text-decoration: none;

  color: black;

  padding: 1rem;

  text-align: center;



  transition: background-color 0.3s ease, color 0.3s ease;
  
}

.contact-link:hover {
  background-color: var(--bk2-color);


}

#contact h1 {
  color: white;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;

}

#contact h1:hover {

  color: black;

}

@media (max-width: 768px) {
  html body {
    padding-top: 0 ;
  }

  header {
    flex-direction: column;
    margin-top: 2%;
  }

  header section#pres,
  header section#info {
    width: 100%;
  }

  header section#info {
    width: 100%;
    margin-top: 5%;
  }

  header section#pres div#photo {
    flex-direction: column;
    align-items: center;
  }

  header section#info div {
    flex-direction: row;
    align-items: center;
  }

  section#info div#button {
    width: 81%;
    
  }
  section#info div#button svg{
    height: 5rem;
  }

  section#moi {
    flex-direction: column;
    align-items: center;
  }

  section#moi section {
    width: 100%;
  }
  section#moi section h2 {
    font-size: 1.5rem;
  }

  section div.col {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  section.hard div.col section {
    width: 100%;
    padding: 0.5rem;
  }
  section.hard div.col section h2 {
    font-size: 1.5rem;
  }



  section#parcour {
    flex-direction: column;
    align-items: center;
  }

  section#parcour div {
    margin: 5% 2%;
  }

  section#parcour section.entreprise h1,
  section#parcour section.ecole h1 {
    margin: 3% 1.5%;

  }

  section#parcour section.entreprise,
  section#parcour section.ecole {
    width: 100%;
  }

  section#projet {

    flex-direction: column;
    align-items: center;
  }

  section#projet .pro,
  section#projet .perso {
    width: 100%;
  }

  section#interet {
    flex-direction: column;
    align-items: center;
  }

  section#interet .it,
  section#interet .pop,
  section#interet .voyage,
  section#interet .activite {
    width: 100%;
  }
}