:root {
  --hauteur-menu: 70px;
  --color-titre: rgb(218, 211, 211);
  --color-text-1: rgba(0, 0, 0, 0.411);
  --color-text-2: rgb(0, 0, 0);
  --color-text-3: rgb(54, 54, 54);
  --color-text-4: #3b3b3b;
  --color-text-5: #9e9e9e;
}


/*-----------------------------Font-CSS----------------------------*/

.exo-lighter {
  font-family: "Exo", sans-serif;
  font-optical-sizing: auto;
  font-weight: lighter;
  font-style: normal;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-text-1);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-3);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-4);
}

/*-----------------------------Text-Align-CSS----------------------------*/

.center {
  text-align: center;
}

.justify {
  text-align: justify;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
}

/*-----------------------------Menu-CSS----------------------------*/

nav {
  width: 100%;
  margin-top: -0px;
  font-size: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}


nav > ul {
  display: flex;
  text-align: center;
  box-shadow: 0px 5px 5px 5px rgba(7, 11, 37, 0.685);
  height: var(--hauteur-menu);
}

nav ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav > ul > li {
  background-color: rgba(7, 11, 37, 0.685);
  backdrop-filter: blur(5px);
  position: relative;
  height: 100%;
  flex: 1;
}

nav > ul > li > a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

li a {
  text-decoration: none;
  color: var(--color-titre);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(7, 11, 37, 0.685);
}

.menu-deroulant > a::after {
  content: ">";
  font-size: 20px;
  margin-left: 7px;
  display: inline-block;
}

.menu-deroulant:hover > .sous-menu {
  animation: apparitionSousMenu 0.1s forwards;
}

.menu-deroulant:hover > a:after {
  animation: rotationFleche 0.1s linear forwards;
}

.sous-menu {
  margin-top: var(--hauteur-menu);
  width: 100%;
  text-align: left;
  background-color: rgba(7, 11, 37, 0.685);
  overflow: hidden;
  max-height: 0;
  display: block;
}

.sous-menu > li > a {
  height: 50px;
  padding-left: 20px;
  width: 100%;
  align-items: center;
  display: flex;
}

nav > ul > li:hover > a {
  color: var(--color-titre);
  transition: color 1s ease;
}

.sous-menu > li:hover {
  background-color: rgba(40,50,70,0.9);
  transform: translateX(0px);
  border-color: rgba(7, 11, 37, 0.685);
}

.sous-menu > li:hover > a {
  color: var(--color-titre);
}

@keyframes rotationFleche {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(90deg);
  }
}

@keyframes apparitionSousMenu {
  0% {
    box-shadow: 0px 3px 3px 1px rgba(20, 30, 50, 0.7);;
    border-top: 3px solid rgba(20, 30, 50, 0.7);
  }

  30% {
    box-shadow: 0px 3px 3px 1px rgba(20, 30, 50, 0.7);
  }

  100% {
    max-height: 50em;
    border-top: 3px solid rgba(20, 30, 50, 0.7);
    box-shadow: 0px 3px 3px 1px rgba(20, 30, 50, 0.7);
  }
}

/*------------------------------------------Mise en page--------------------------------*/

html,
body {
  height: 100%;
  margin: 0px;
  top: 0px;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background-image: url("/assets/img/FondTop.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

main {
  flex: 1;
}

* {
  margin: 0px;
  padding: 0px;
  font-family: "Exo", sans-serif;
}

  /*---------------------Fond Top-------------------*/

.hero-fixed {
  position: relative;
  min-height: 40vh;
  overflow: hidden;
}

.hero-scroll {
  position: relative;
  flex: 1;
  padding-top: 250px;
  padding-bottom: 0px;
  background: url("/assets/img/Fondmain.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-scroll::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.about {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.about-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 2%;
}

.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 2%;
}

.about-header {
  gap: 20px;
  display: flex;
  margin-left: 17%;
}

.about-content {
  display: flex;
  max-width: 65%;
  align-items: center;
  gap: 20px;
  margin-left: 10%;
}

.content {
  position: relative;
  z-index: 2;
}

.contact-calendar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  height: 100%;
}

.first-title {
  /*GROS TITRE EN DESSOU DU TERMINAL*/
  color: var(--color-titre);
  text-align: center;
  margin-top: 2%;
  flex-grow: 1;
  text-decoration: underline;
  font-size: 24px;
}

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

/*-------------------------Bloc about me gauche (HTML)-------------------*/
.photo {
  /*photo sur la meme ligne et a coté droite de "a propos"*/
  background-image: url("/assets/img/photo.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  aspect-ratio: 1/1;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  border: 5px solid var(--color-text-3);
  box-shadow: 0 4px 15px rgb(0, 0, 0);
  flex-shrink: 0;
}

.about-section-h2 {
  /*titre a propos a gauche centrer ,ligne en dessou du gros titre*/
  padding: 1%;
  white-space: nowrap;
  color: var(--color-titre);
  line-height: 1.6;
  border: 3px solid var(--color-text-3);
  border-radius: 20px;
  background: linear-gradient(90deg, var(--color-text-3), var(--color-text-2));
  box-shadow: 0 1px 10px var(--color-text-1);
}

.about-section-p {
  /*a propos, centrer ligne en dessou du titre section-h2*/
  padding: 1%;
  color: var(--color-titre);
  text-align: justify;
  line-height: 1.6;
  border: 3px solid var(--color-text-3);
  border-radius: 20px;
  background-color: rgba(7, 11, 37, 0.788);
  box-shadow: 0 4px 10px var(--color-text-1);
}

/*------------------------bloc about me droite (HTML)-------------------*/

.updates {
  flex: 1;
  width: 60%;
  gap: 20px;
  margin-left: 30%;
}

.updates h3 {
  color: var(--color-titre);
  text-align: center;
  border: 3px solid var(--color-text-3);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--color-text-3), var(--color-text-2));

  padding: 10px;
}

.updates-list {
  display: block;
  border: 3px solid var(--color-text-3);
  border-radius: 20px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 2%;
  padding: 10px;
  background-color: rgba(7, 11, 37, 0.95);
  list-style-type: none;
}

.updates-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-titre);
  background-color: rgba(20, 30, 50, 0.7);
  border: 1px solid rgba(100, 100, 100, 0.3);
  border-radius: 8px;
  padding: 12px 10px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.updates-list li:hover {
  background-color: rgba(40, 50, 70, 0.9);
  transform: translateX(5px);
  border-color: var(--color-text-3);
}

.date {
  color: var(--color-titre);
  font-weight: bold;
  white-space: nowrap;
  min-width: 50px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 5px;
}

.footer-section {
  margin-top: auto;
  text-align: center;
  color: var(--color-titre);
  padding: 1%;
  backdrop-filter: blur(5px);
}

/*----------------------Contact me gauche (HTML)----------------------------*/

.container-gauche {
  flex: 1;
  display: flex;
  gap: 20px;
  width: 50%;
  height: auto;
  min-height: 765px;
}

.contact-container {
  margin-left: 10%;
  padding: 40px;
  margin-top: 10%;
  flex-direction: column;
  background-color: rgba(7, 11, 37, 0.788);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-container h1 {
  text-align: center;
  margin-bottom: 10px;
}

.contact-container p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
  opacity: 0.9;
}

form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

form input {
  padding: 15px 14px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: white;
  color: black;
}

form textarea {
  resize: none;
  min-height: 150px;
  padding: 15px 14px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: white;
  color: black;
}

button {
  margin-top: 10px;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background: var(--color-text-4);
  color: var(--color-titre);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/*----------------------Contact me droite (HTML)----------------------------*/

.container-droit {
  flex: 1;
  display: flex;
  gap: 20px;
  width: 50%;
  height: 765px;
}

.calendar-container {
  flex-direction: column;
  width: 80%;
  padding: 40px;
  margin-top: 10%;
  margin-left: 2%;
  background-color: rgba(7, 11, 37, 0.788);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 10px;
}

iframe {
  border: 2px solid var(--color-text-3);
  border-radius: 10px;
  width: 100%;
  height: 550px;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/*----------------------Documentation--------------------*/


.h1-doc {
  margin: 40px 0;
  text-align: center;
  color: var(--color-titre);
  font-size: 32px;
}


.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;

  max-width: 1200px;
  margin: auto;
  padding: 0 20px 80px;
}

/* Carte */
.card {
  background: #020617;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 260px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}


.card-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
   max-width: 80px;
   max-height: 80px;
}

.card-text {
  text-align: center;
}

.card-text h2 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: var(--color-titre);
}

.card-text p {
  font-size: 14px;
  color: #94a3b8;
}


/*--------------------Terminal-CSS----------------------------*/

#command {
  caret-color: var(--color-titre);
}

.prompt::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  vertical-align: bottom;
}

.terminal {
  background-color: rgba(7, 11, 37, 0.788);
  color: var(--color-titre);
  padding: 0;
  width: 50%;
  margin-top: 2%;
  margin-left: 25%;
  height: 250px;
  border: 2px solid var(--color-text-4);
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.terminal-header {
  background: linear-gradient(90deg, var(--color-text-3), var(--color-text-2));
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  user-select: none;
  z-index: 2;
}

.terminal-title {
  color: var(--color-titre);
  font-size: 20px;
  font-weight: bold;
  flex: 1;
}

.terminal-buttons {
  display: flex;
  gap: 10px;
}

.terminal-btn {
  width: 36px;
  height: 30px;
  background: transparent;
  border: none;
  color: var(--color-titre);
  font-size: 30px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
}

.terminal-btn:hover {
  background: var(--color-text-3);
}

.terminal-btn.close:hover {
  background: #e81123;
}

.terminal-content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  padding: 10px;
  overflow: hidden;
  white-space: pre;
}

.prompt {
  margin-right: 10px;
  margin-top: 0px;
  margin-left: 0px;
}

.terminal input {
  background: none;
  border: none;
  color: var(--color-titre);

  outline: none;
  width: 80%;
}

#output {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 5px;
}

.input-line {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/*-----------------------------Responsive-CSS----------------------------*/

@media (max-width: 768px) {
  nav > ul {
    display: flex;
    text-align: justify;
    box-shadow: 0px 1px 2px 1px var(--color-text-3);
    height: var(--hauteur-menu);
  }

  .about-section-h2 {
    max-width: 35%;
    margin-left: auto;
    margin-right: auto;
  }

  .about-section-p {
    max-width: 35%;
    margin-left: auto;
    margin-right: auto;
  }

  .terminal {
    width: 98%;
    margin-left: 2.5%;
  }

  .updates {
    right: 20px;
    top: 60%;
    width: 450px;
  }
}

@media (max-width: 480px) {
  .about-section-h2 {
    max-width: 35%;
    padding: 3%;
  }

  .about-section-p {
    max-width: 35%;
    padding: 3%;
  }
}
