/* General Styles */
html,
body {
  color: #fff;
  font-size: 105%;
  text-align: justify;
  font-family: "Nunito Sans", sans-serif;
  /* Fallback + gradient sans écrasement */
  background: linear-gradient(
    to bottom,
    #663a31 0%,
    #663a31 30%,
    #42200c 50%,
    #42200c 100%
  );
  /* color ground : 663a31 */
  /* color brown : 42200c */
  /* color dark brown : 371c0c */
  margin: 0%;
}

/* Titles (h1, h2, h3, etc.) */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Architects Daughter", cursive;
  color: #fff5f5;
  font-weight: bold;
  margin: 10px 0;
}

h1 {
  text-align: center;
  font-weight: 600;
  font-size: 300%;
}

h2 {
  text-align: center;
  font-weight: 600;
  font-size: 200%;
}

h3 {
  margin-top: 50px;
  font-size: 150%;
}

h4 {
  font-weight: 200;
}

h5 {
  font-size: 110%;
  font-weight: 500;
  margin-left: 22%;
}

/* Page Structure */
#main-section {
  display: flex;
  flex-wrap: wrap;
}

#left-section {
  flex: 0 0 300px;
  margin: 0 auto 20px;
}

#right-section {
  flex: 1;
  margin: 0 20px 20px 20px;
}

.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 0px 30px 0px;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-container {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.button-container a {
  padding: 10px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.button-container img {
  width: 30px;
  height: 30px;
}

.container h1 {
  text-align: center;
  margin: 10px 0px 30px 0px;
  margin-left: auto;
}

/* Typography */
em {
  color: #d2aa69;
  font-weight: bold;
}

code {
  color: lightgrey;
}

/* Navigation */
.navigation {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#page {
  color: white;
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 22px;
  text-decoration: none;
}

#page.active {
  color: #cca108;
}

#contenu_centrer {
  font-style: italic;
  margin-left: 400px;
}

#long {
  margin: 0 auto;
  border-spacing: 3rem 1rem;
}

/* Images */
#image_contenu_grande {
  height: 400px;
  width: auto;
}

#image_contenu {
  height: 255px;
  width: auto;
}

#image_contenu_petite {
  height: 180px;
  width: auto;
}

#image_contenu_minus {
  height: auto;
  width: 300px;
}

/* Gestion des images en format paysage */
#image_intro {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#image_intro_mobile {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#image_projet {
  width: auto;
}

#image_T {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
}

#image_T:hover {
  opacity: 1;
  background-color: #1e1e1e;
}

#invisibleImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#image_profil {
  z-index: 2;
  position: static;
  max-width: 100%;
  border-radius: 50%;
}

/* Header and Menu */
#haut {
  height: 25%;
  max-width: 100%;
}

#image_banniere {
  z-index: 1;
  width: 100%;
  height: auto;
}

#menu_home {
  margin-left: 18.7%;
}

#menu_home span {
  color: antiquewhite;
}

a {
  color: #cca108;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #e0b71a;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

a:hover {
  color: #e0b71a;
  filter: brightness(1.1);
}

a:hover img {
  transform: scale(1.1);
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#menu_premier li {
  display: inline;
  position: center;
}

#menu_home li {
  display: inline;
  position: center;
}

.changement_page {
  display: flex;
  justify-content: space-around;
  width: 415px;
  margin: auto;
  margin-top: 50px;
  color: darkgrey;
}

/* Sections */
#milieu {
  height: 50%;
  display: flex;
  justify-content: center;
  max-width: 1800px;
  margin-bottom: 5%;
}

#contenu {
  order: 2;
  margin-right: 5%;
  margin-left: 5%;
  max-width: 65%;
}

#menu_premier a {
  color: black;
  text-decoration: none;
}

#menu_premier a:visited {
  color: #371c0c;
}

#menu_premier a:hover {
  text-decoration: underline dotted;
  text-decoration-color: #371c0c;
}

#sujet {
  order: 2;
  margin: 0 5% 5%;
  max-width: 100%;
}

#sujet_panel {
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-left: 0%;
  min-height: 500px;
  order: 1;
}

#sujet_panel a {
  text-decoration: none;
}

.background {
  background-color: #42200c;
  order: 0;
  max-width: 100%;
  box-shadow: 10px 5px 5px 5px #371c0c;
  padding: 0px 0px 50px 0px;
}

.info {
  margin-bottom: 15px;
}

#pp {
  display: block;
  text-align: center;
  justify-content: space-between;
}

.links {
  text-align: center;
  width: 100px;
  padding: 30px 50px 0px 0px;
  height: auto;
}

figure {
  margin-right: 20px;
}

figcaption {
  margin-left: 10px;
  color: rgb(214, 214, 214);
}

.article_projet {
  display: flex;
  width: auto;
  height: 200px;
  justify-content: center;
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.78);
  visibility: hidden;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.25s ease;
}

.overlay:target {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.popup {
  width: min(950px, 92vw);
  max-height: calc(100vh - 80px);
  margin: 0;
  padding: 24px;
  background: #333;
  border-radius: 12px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 10000;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.popup h2 {
  margin-top: 0;
  color: white;
  font-family: "Architects Daughter", cursive;
}

.popup .close {
  position: absolute;
  top: 16px;
  right: 22px;
  transition: color 0.2s ease;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  z-index: 10001;
}

.popup .close:hover {
  color: #06d85f;
}

.popup .content {
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

.center {
  text-align: center;
}

#div_intro {
  text-align: center;
  margin-top: 3%;
  margin-bottom: 3%;
}

/* General Section Styles */
#about-me {
  margin: 0 auto;
  padding: 40px 5%;
  max-width: 95%;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Profile Section */
.about-profile {
  flex: 1;
  max-width: 35%;
  text-align: center;
  margin: auto;
}

.about-profile .profile-pictures {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.about-profile .profile-pictures img {
  border-radius: 50%;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-profile .profile-pictures img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.about-profile .profile-logo {
  width: 200px; /* Taille de la première image */
  height: auto;
}

.about-profile .profile-real {
  width: 150px; /* Taille plus petite pour la seconde image */
  height: auto;
}

/* Description Section */
.about-description {
  flex: 2;
  max-width: 60%;
  text-align: justify;
}

/* Skills List */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.skills-list li {
  margin: 10px 0;
  line-height: 1.5;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.skills-list strong {
  color: #d2aa69;
}

.social-links a {
  text-decoration: none;
  color: #cca108; /* links main color */
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.social-links a:hover {
  color: #e0b71a; /* hover color */
  transform: scale(1.1);
}

.social-links img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}

/* Button container */
.buttons {
  text-align: center;
  margin-top: 40px;
}

/* Generic button styling */
button,
.button,
.filter-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #371c0c; /* Brown border */
  background-color: #fff5f5; /* Light background */
  color: #42200c; /* Brown text */
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Hover effect for buttons */
button:hover,
.button:hover,
.filter-button:hover {
  background-color: #d2aa69;
  color: #371c0c;
}

/* Active state for buttons */
button.active,
.button.active,
.filter-button.active {
  background-color: #d2aa69;
  color: #371c0c;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Flexbox styling for filters or button groups */
.filters,
.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

/* Project cards */
.projet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 30px;
  padding: 20px;
  width: 246px;
  height: 380px;
  border: 2px solid #42200c;
  border-radius: 10px;
  background-color: #bfac93;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

/* Hover effect for project cards */
.projet:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  background-color: #d2aa69;
  width: 246px;
  min-width: 246px;
  transition-property: all;
  transition-duration: 0.5s;
  transition-delay: 0s;
}

/* Transition for project images */
.projet img {
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

/* Hover effect for project images */
.projet:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Title styling for project cards */
.projet h3.center {
  font-size: 24px;
  margin-top: 20px;
  color: #371c0c;
}

/* Subtitle styling for project cards */
.projet h4.center {
  font-size: 20px;
  color: #42200c;
}

.projet.hidden {
  display: none !important;
}

/* Carousel container */
#carousel {
  position: relative;
  height: 400px;
  top: 50%;
  overflow: hidden;
}

#carousel a:hover img {
  transform: none;
}

/* Carousel elements */
#carousel div {
  position: absolute;
  transition:
    transform 1s,
    left 1s,
    opacity 1s,
    z-index 0s;
  opacity: 1;
}

#carousel div img {
  width: 400px;
  transition: width 1s;
}

/* Hidden elements on the left */
#carousel div.hideLeft {
  left: 0%;
  opacity: 0;
  transform: translateY(50%) translateX(-50%);
}

#carousel div.hideLeft img {
  width: 200px;
}

/* Hidden elements on the right */
#carousel div.hideRight {
  left: 100%;
  opacity: 0;
  transform: translateY(50%) translateX(-50%);
}

#carousel div.hideRight img {
  width: 200px;
}

/* Previous element styling */
#carousel div.prev {
  z-index: 5;
  left: 30%;
  transform: translateY(50px) translateX(-50%);
}

#carousel div.prev img {
  width: 300px;
}

/* Second previous element styling */
#carousel div.prevLeftSecond {
  z-index: 4;
  left: 15%;
  transform: translateY(50%) translateX(-50%);
  opacity: 0.7;
}

#carousel div.prevLeftSecond img {
  width: 200px;
}

/* Selected (center) element styling */
#carousel div.selected {
  z-index: 10;
  left: 50%;
  transform: translateY(0px) translateX(-50%);
}

/* Next element styling */
#carousel div.next {
  z-index: 5;
  left: 70%;
  transform: translateY(50px) translateX(-50%);
}

#carousel div.next img {
  width: 300px;
}

/* Second next element styling */
#carousel div.nextRightSecond {
  z-index: 4;
  left: 85%;
  transform: translateY(50%) translateX(-50%);
  opacity: 0.7;
}

#carousel div.nextRightSecond img {
  width: 200px;
}

/* Social Links */
.social-links {
  margin-top: 20px;
  display: flex;
  gap: 25px;
  justify-content: flex-start;
}

.social-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 15px;
  transition: color 0.3s ease;
}

.social-links img {
  width: 50px;
  height: 50px;
  border-radius: 10%;
}

/* Footer General Styles */
#bas {
  width: 100%;
  color: #f5f5f5;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Footer container full width */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* Footer Sections */
.footer-about,
.footer-links,
.footer-social {
  flex: 1 1 33%;
  text-align: center;
}

.footer-about h4,
.footer-links h4,
.footer-social h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #cca108;
}

/* Footer Links */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cca108;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #e0b71a;
}

/* Social Media Links */
.footer-social {
  text-align: center;
}

.footer-social .social-link {
  margin: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f5f5f5;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.footer-social .social-link img {
  width: 40px;
  height: 40px;
  filter: brightness(0.9);
}

.footer-social .social-link:hover img {
  transform: scale(1.2);
  filter: brightness(1);
}

.footer-social .social-link:hover {
  color: #e0b71a;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #d6d6d6;
  border-top: 1px solid #5a2c1142;
  padding-top: 10px;
}

/* Featured project section */
#featured-project {
  padding: 20px 5% 70px 5%;
}

.featured-project-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 35px;
  background: linear-gradient(135deg, #4a2613 0%, #371c0c 100%);
  border: 2px solid #d2aa69;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.featured-project-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
}

.featured-badge {
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: #d2aa69;
  color: #371c0c;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#featured-project h3 {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 2.2rem;
  color: #fff5f5;
}

.featured-hook {
  font-size: 1.15rem;
  color: #fff5f5;
  font-weight: 700;
  margin-bottom: 20px;
}

.featured-list {
  margin: 20px 0 20px 20px;
  padding-left: 20px;
}

.featured-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.featured-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.featured-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  background-color: #d2aa69;
  color: #371c0c;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #d2aa69;
  transition: all 0.3s ease;
}

.featured-button:hover {
  background-color: #fff5f5;
  color: #371c0c;
  transform: translateY(-2px);
}

#qa-showcase {
  padding: 20px 5% 70px 5%;
}

.qa-showcase-card {
  max-width: 1100px;
}

.qa-popup {
  width: min(900px, 90%);
  max-height: 80vh;
  margin: 60px auto;
  padding: 30px;
  background: linear-gradient(135deg, #4a2613 0%, #371c0c 100%);
  border: 2px solid #d2aa69;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.qa-popup .content {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 10px;
}

.qa-ticket {
  margin-top: 25px;
  padding: 20px;
  background-color: rgba(255, 245, 245, 0.06);
  border: 1px solid rgba(210, 170, 105, 0.35);
  border-radius: 12px;
}

.qa-ticket h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.qa-ticket p {
  margin: 8px 0;
}

#qa-showcase {
  padding: 20px 5% 70px 5%;
}

.qa-showcase-card {
  max-width: 1100px;
}

.popup {
  margin: 60px auto;
  padding: 24px;
  background: #333;
  border-radius: 12px;
  width: min(950px, 92%);
  position: relative;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.qa-popup {
  max-height: 85vh;
  background: linear-gradient(135deg, #4a2613 0%, #371c0c 100%);
  border: 2px solid #d2aa69;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.qa-popup .content {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.qa-intro {
  margin-bottom: 25px;
  line-height: 1.7;
}

.qa-ticket {
  margin-top: 25px;
  padding: 20px;
  background-color: rgba(255, 245, 245, 0.06);
  border: 1px solid rgba(210, 170, 105, 0.35);
  border-radius: 12px;
}

.qa-ticket h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.qa-ticket-summary p {
  margin: 8px 0;
}

.qa-details {
  margin-top: 18px;
}

.qa-details summary {
  cursor: pointer;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #d2aa69;
  color: #371c0c;
  font-weight: bold;
  list-style: none;
  user-select: none;
}

.qa-details summary::-webkit-details-marker {
  display: none;
}

.qa-details summary:hover {
  background-color: #fff5f5;
}

.qa-details[open] summary {
  margin-bottom: 18px;
}

.qa-details-content {
  line-height: 1.7;
}

.qa-details-content p {
  margin: 12px 0;
}

.qa-details-content ol {
  margin: 10px 0 16px 22px;
  padding-left: 12px;
}

.qa-details-content li {
  margin-bottom: 8px;
}

.qa-image {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 18px auto 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(210, 170, 105, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body:has(#qa-popup:target) {
  overflow: hidden;
}

/*
RESPONSIVE PARTS
*/

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  #main-section {
    flex-direction: column;
  }

  #left-section,
  #right-section {
    flex: 1 1 100%;
    margin: 10px 0;
  }

  #about-me .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-profile,
  .about-description {
    max-width: 90%;
  }

  .about-profile .profile-logo,
  .about-profile .profile-real {
    width: 150px;
    height: auto;
  }

  .about-profile .profile-pictures {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .social-links {
    flex-direction: column;
    gap: 10px;
  }

  #carousel div img {
    width: 90%;
    height: auto;
  }

  .filters {
    flex-wrap: wrap;
    gap: 5px;
  }

  #bas .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-about,
  .footer-links,
  .footer-social {
    flex: 1 1 auto;
    margin: 10px 0;
  }

  #carousel {
    height: 300px;
  }

  #carousel div img {
    width: 280px;
    height: auto;
  }

  #carousel div.prev img,
  #carousel div.next img {
    width: 200px;
  }

  #carousel div.prevLeftSecond img,
  #carousel div.nextRightSecond img {
    width: 150px;
  }

  #carousel div.hideLeft img,
  #carousel div.hideRight img {
    width: 150px;
    opacity: 0.5;
    transform: scale(0.8);
    transition:
      transform 0.5s ease,
      opacity 0.5s ease;
  }

  .projet {
    margin: 5px 5px;
  }

  #contenu {
    max-width: 80%;
  }
}

/* Run zone */
#race-track {
  position: fixed;
  left: 0;
  width: 100%;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
}

/* Characters */
.runner {
  position: fixed;
  bottom: -10px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.guy {
  width: 85px;
  height: 85px;
}
.zombie {
  width: 100px;
  height: 100px;
}

/* Run animations */
@keyframes run-across {
  0% {
    left: -150px;
    opacity: 1;
  }
  100% {
    left: 100vw;
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 200%;
  }

  h2 {
    font-size: 150%;
  }

  h3 {
    font-size: 120%;
  }

  #image_intro {
    max-width: 100%;
  }

  .about-profile .profile-logo,
  .about-profile .profile-real {
    width: 150px;
    height: auto;
  }

  .about-profile .profile-pictures {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .skills-list li {
    font-size: 14px;
  }

  .filter-button {
    font-size: 12px;
    padding: 8px 12px;
  }

  #carousel {
    height: 250px;
  }

  #carousel div img {
    width: 220px;
    height: auto;
  }

  #carousel div.prev img,
  #carousel div.next img {
    width: 150px;
  }

  #carousel div.prevLeftSecond img,
  #carousel div.nextRightSecond img {
    width: 120px;
  }

  #carousel div.hideLeft img,
  #carousel div.hideRight img {
    width: 120px;
    opacity: 0.4;
    transform: scale(0.7);
    transition:
      transform 0.5s ease,
      opacity 0.5s ease;
  }

  .projet {
    width: 110px;
    height: 220px;
  }

  .projet:hover {
    width: 110px;
    min-width: unset;
  }

  .article_projet {
    height: 100px;
  }

  .projet h4.center {
    margin-top: 5px;
    font-size: 14px;
  }

  .projet h3.center {
    font-size: 18px;
  }

  .featured-project-card {
    padding: 25px 20px;
  }

  #featured-project h3 {
    font-size: 1.8rem;
  }

  .featured-hook {
    font-size: 1rem;
  }

  .qa-popup {
    width: 94%;
    padding: 20px;
  }

  .qa-ticket {
    padding: 16px;
  }

  .qa-ticket h3 {
    font-size: 1.05rem;
  }

  .qa-details summary {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 90%;
  }

  .container h1 {
    font-size: 150%;
    margin: 10px 0;
  }

  .about-profile .profile-pictures {
    flex-direction: row;
    justify-content: center;
    gap: 5px;
  }

  .about-profile .profile-logo,
  .about-profile .profile-real {
    width: 100px;
    height: auto;
  }

  .social-links a {
    font-size: 12px;
  }

  .footer-about p,
  .footer-links ul {
    font-size: 12px;
  }

  #carousel {
    height: 200px;
  }

  #carousel div img {
    width: 180px;
    height: auto;
  }

  #carousel div.prev img,
  #carousel div.next img {
    width: 120px;
  }

  #carousel div.prevLeftSecond img,
  #carousel div.nextRightSecond img {
    width: 100px;
  }

  #carousel div.hideLeft img,
  #carousel div.hideRight img {
    width: 100px;
    opacity: 0.3;
    transform: scale(0.6);
    transition:
      transform 0.5s ease,
      opacity 0.5s ease;
  }
}
