@charset "UTF-8";
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    color: white;
    padding: 0;
    margin: 0;
    border: 0;
    background-color: #191726;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
  }
  /* Custom Scrollbar */
  #mainpage::-webkit-scrollbar {
    width: 10px;
    background-color: #191726;
  }
  #mainpage::-webkit-scrollbar-track {
    background-color: #191726;
  }
  #mainpage::-webkit-scrollbar-thumb {
    background-color: rgba(27, 48, 89, 0.7);
    border-radius: 5px;
  }
  #mainpage::-webkit-scrollbar-thumb:hover {
    background-color: rgb(27, 48, 89);
  }
  #mainpage {
    /* animation stylée image keyframe */
    /*  Style pour les badges des technologies */
    /* Design harmonieux inspiré de CodePen - S'intègre parfaitement au thème spatial */
    /* Anciens styles du formulaire supprimés - remplacés par le design moderne */
    /* Design moderne du footer - Thème spatial riche et organisé */
    /* Responsive design */
  }
  #mainpage * {
    border: 0;
    margin: 0;
    padding: 0;
  }
  #mainpage #menu-toggle {
    display: none;
  }
  #mainpage .loader {
    width: 80px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 9999;
  }
  #mainpage .loader .loader-bar {
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #1b3059, #4a90e2);
    border-radius: 3px;
    position: absolute;
    animation: loaderWave 1.2s ease-in-out infinite;
  }
  #mainpage .loader .loader-bar:nth-child(1) {
    left: 0;
    animation-delay: 0s;
  }
  #mainpage .loader .loader-bar:nth-child(2) {
    left: 12px;
    animation-delay: 0.1s;
  }
  #mainpage .loader .loader-bar:nth-child(3) {
    left: 24px;
    animation-delay: 0.2s;
  }
  #mainpage .loader .loader-bar:nth-child(4) {
    left: 36px;
    animation-delay: 0.3s;
  }
  #mainpage .loader .loader-bar:nth-child(5) {
    left: 48px;
    animation-delay: 0.4s;
  }
  #mainpage .loader .loader-bar:nth-child(6) {
    left: 60px;
    animation-delay: 0.5s;
  }
  #mainpage .loader .loader-bar:nth-child(7) {
    left: 72px;
    animation-delay: 0.6s;
  }
  #mainpage .loader .loader-text {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 25px;
    color: #1b3059;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    animation: loaderFade 2s ease-in-out infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  @keyframes loaderWave {
    0%, 40%, 100% {
      transform: scaleY(0.4);
      opacity: 0.7;
    }
    20% {
      transform: scaleY(1);
      opacity: 1;
    }
  }
  @keyframes loaderFade {
    0%, 100% {
      opacity: 0.6;
    }
    50% {
      opacity: 1;
    }
  }
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  @keyframes pulse {
    0%, 100% {
      opacity: 0.6;
    }
    50% {
      opacity: 1;
    }
  }
  #mainpage header {
    display: block;
    position: fixed;
    width: 100%;
    height: 8vh;
    margin: 0;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0);
    transition: 0.5s;
    left: 0;
    right: 0;
    margin: auto;
  }
  #mainpage header.scrolled {
    background-color: rgba(27, 48, 89, 0.7);
    height: 8vh;
    transition: 0.5s;
  }
  #mainpage .burger-icon {
    display: none;
  }
  #mainpage #menu {
    height: 6vh;
    margin-top: 1vh;
    padding: 0;
    /* Remove default padding */
    list-style-type: none;
    /* Remove default list styles */
  }
  #mainpage #menu > li {
    display: inline-block;
    height: 6vh;
    /* Adjusted height to match the menu height */
    margin-right: 1vw;
    /* Adjusted margin for spacing between menu items */
  }
  #mainpage #menu > li:last-child {
    margin-right: 0;
    /* Remove right margin for the last menu item */
  }
  #mainpage #menu > li:nth-last-of-type(3) > a,
  #mainpage #menu > li:nth-last-of-type(2) > a {
    margin: 0;
    padding: 0;
  }
  #mainpage #menu > li > a > img {
    width: 3vw;
    max-height: 6vh;
    margin-right: 0.5vw;
    /* Adjusted margin for spacing between flags */
    vertical-align: middle;
    /* Align images vertically with text */
    transition: 0.3s;
  }
  #mainpage #menu > li > a:hover > img {
    transform: scale(1.2, 1.2);
    transform: rotate3d(1, 1, 1, 360deg);
  }
  #mainpage #menu > li > a > #telechargement {
    padding: 0;
    margin-right: 0.5vw;
    width: 2vw;
    height: auto;
    max-height: 4vh;
  }
  #mainpage #menu > li > a > #home {
    width: 2vw;
    height: auto;
    max-height: 4vh;
  }
  #mainpage #menu > li > a {
    font-size: 1.4vw;
    color: white;
    text-decoration: none;
    padding: 1vh 1vw;
    /* Ajustement du rembourrage pour les éléments du menu */
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    /* Aligner le texte verticalement au centre */
    transition: 0.5s;
  }
  #mainpage #menu > li > a:hover {
    color: #3671BF;
  }
  #mainpage #menu > li:first-child > a:hover {
    background-color: unset;
    color: white;
  }
  #mainpage #menu > li:nth-last-child(-n+3) {
    float: right;
  }
  #mainpage #menu > li:nth-last-child(-n+3) > a {
    font-size: 1.4vw;
    color: white;
    text-decoration: none;
    padding-left: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    transition: 0.5s;
  }
  #mainpage #menu > li:nth-last-child(-n+3) > a:hover {
    color: #3671BF;
  }
  #mainpage #telechargerLayout {
    display: none;
  }
  #mainpage main {
    display: block;
    position: relative;
    /* float: right; */
    width: 100vw;
    margin: 0;
    z-index: 2;
  }
  #mainpage h2 {
    font-size: 4em;
    margin-left: 14vw;
    padding-top: 12vh;
    margin-bottom: 12vh;
    color: #F2EC91;
    opacity: 1;
    text-shadow: 0 0 50px rgb(0, 0, 0);
  }
  #mainpage h2:first-of-type {
    padding-top: 9vh;
  }
  #mainpage .section-header {
    position: relative;
    margin: 8vh 0 6vh 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  #mainpage .futuristic-title-container {
    position: relative;
    display: inline-block;
    text-align: center;
  }
  #mainpage .futuristic-title {
    position: relative;
    font-size: 3.5em;
    font-weight: 700;
    color: #F2EC91;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
    display: inline-block;
    text-shadow: 0 0 10px rgba(242, 236, 145, 0.8), 0 0 20px rgba(74, 144, 226, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 1px rgba(242, 236, 145, 0.9);
    animation: titleGlow 3s ease-in-out infinite alternate;
  }
  #mainpage .title-text {
    position: relative;
    z-index: 2;
    display: block;
    transform: translateY(0);
    transition: all 0.3s ease;
  }
  #mainpage .title-line {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #4A90E2;
    border-radius: 2px;
    animation: lineExpand 1.5s ease-out 0.5s forwards, lineFadeOut 0.5s ease-out 3s forwards;
  }
  @keyframes titleGlow {
    0% {
      text-shadow: 0 0 10px rgba(242, 236, 145, 0.8), 0 0 20px rgba(74, 144, 226, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    100% {
      text-shadow: 0 0 15px rgb(242, 236, 145), 0 0 30px rgba(74, 144, 226, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
  }
  @keyframes lineExpand {
    0% {
      width: 0;
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      width: 100%;
      opacity: 1;
    }
  }
  @keyframes lineFadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  #mainpage .futuristic-title:hover .title-text {
    transform: translateY(-2px);
    text-shadow: 0 0 30px rgba(242, 236, 145, 0.6);
  }
  #mainpage .futuristic-title {
    animation: titleSlideIn 1s ease-out, titleGlow 3s ease-in-out infinite alternate 1s;
  }
  #mainpage .futuristic-title.animate-in {
    animation: titleSlideIn 1s ease-out, titleGlow 3s ease-in-out infinite alternate 1s;
  }
  #mainpage .futuristic-title-container.hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  #mainpage .futuristic-title-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  @keyframes titleSlideIn {
    0% {
      opacity: 0;
      transform: translateY(50px) scale(0.8);
    }
    50% {
      opacity: 0.7;
      transform: translateY(-10px) scale(1.05);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  #mainpage .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  #mainpage .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  #mainpage .slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
  }
  #mainpage .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
  }
  #mainpage .slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
  }
  #mainpage .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
  }
  #mainpage .scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
  }
  #mainpage .scale-in.visible {
    opacity: 1;
    transform: scale(1);
  }
  #mainpage .delay-1 {
    transition-delay: 0.1s;
  }
  #mainpage .delay-2 {
    transition-delay: 0.2s;
  }
  #mainpage .delay-3 {
    transition-delay: 0.3s;
  }
  #mainpage .delay-4 {
    transition-delay: 0.4s;
  }
  #mainpage .delay-5 {
    transition-delay: 0.5s;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage .futuristic-title {
    font-size: 2.5em;
  }
  #mainpage .futuristic-title-container::before,
  #mainpage .futuristic-title-container::after {
    display: none;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 480px) {
  #mainpage .futuristic-title {
    font-size: 2em;
    letter-spacing: 0.05em;
  }
}
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage .text {
    text-align: justify;
    font-size: 2.6vh;
    width: 54vw;
    margin-left: 10vw;
    color: #F1F2EE;
    background-color: #1B3059;
    padding: 2vh 4vw;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-bottom: 1vh;
    transition: 0.5s;
  }
  #mainpage .text:hover {
    background-color: #04040E;
    color: #F1F2EE;
    transform: scale(1.06, 1.06);
    margin-top: 2vh;
    margin-bottom: 2vh;
  }
  #mainpage #acceuil {
    padding-top: 6vh;
    width: 100vw;
    height: 100vh;
    background-image: url(../img/terre_acceuil.jpg);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 0;
    padding-top: 8vh;
    margin: 0;
    border: 0;
    color: white;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
  }
  #mainpage #acceuil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(27, 48, 89, 0.1) 0%, rgba(27, 48, 89, 0.3) 30%, rgba(27, 48, 89, 0.5) 60%, rgba(27, 48, 89, 0.7) 80%, rgba(27, 48, 89, 0.9) 100%);
    z-index: 1;
    transition: opacity 0.8s ease-out;
  }
  #mainpage #acceuil > * {
    position: relative;
    z-index: 2;
  }
  #mainpage #acceuil {
    position: relative; /* Pour le positionnement absolu du paragraphe */
  }
  #mainpage #acceuil > p {
    font-size: 2vh;
    padding: 1.2rem;
    width: 50vw;
    text-align: justify;
    color: #F2EC91;
    background: rgba(4, 4, 14, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(242, 236, 145, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: "Consolas", monospace;
    line-height: 1.6;
    /* Positionnement absolu */
    position: absolute;
    top: 15vh;
    left: 2vw;
    min-height: 10vh;
    z-index: 10;
  }
  #mainpage #acceuil > p::before {
    content: "> ";
    color: #4A90E2;
    font-weight: bold;
    margin-right: 0.5rem;
  }
  #mainpage #acceuil > p::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: rgba(74, 144, 226, 0.05);
    border-bottom: 1px solid rgba(242, 236, 145, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  #mainpage #acceuil > p::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 10px;
    width: 12px;
    height: 12px;
    background: #FF605C;
    border-radius: 50%;
    box-shadow: 20px 0 0 #FFBD44, 40px 0 0 #00CA4E;
    z-index: 1;
  }
  #mainpage .typing-cursor {
    color: #4A90E2;
    font-weight: bold;
    animation: blink 1s infinite;
    margin-left: 2px;
    display: inline-block;
    position: relative;
    top: -1px;
  }
  @keyframes blink {
    0%, 50% {
      opacity: 1;
    }
    51%, 100% {
      opacity: 0;
    }
  }
  @keyframes scanline {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(100%);
    }
  }
  #mainpage #acceuil > p::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(74, 144, 226, 0.15), transparent);
    animation: scanline 6s linear infinite;
    pointer-events: none;
  }
  #mainpage #acceuil > h1:nth-of-type(3) {
    margin-top: 40vh;
    max-width: 90vw;
    font-size: 20vh;
    animation: simpleFadeIn 1.5s ease-out 0.5s both;
    color: #F2EC91;
    opacity: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  #mainpage #acceuil > h1:last-of-type {
    font-size: 25vh;
    max-width: 90vw;
    animation: simpleFadeIn 1.5s ease-out 1s both;
    color: #F2EC91;
    opacity: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  #mainpage #acceuil > h1 {
    margin: 0;
    padding: 0;
    margin-left: 1vw;
    text-shadow: 0 0 30px rgba(242, 236, 145, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
  }
  #mainpage .layout {
    display: none !important;
  }
  #mainpage .section-header:first-of-type {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, rgba(27, 48, 89, 0.8) 0%, rgba(27, 48, 89, 0.9) 50%, rgb(27, 48, 89) 100%);
    margin-top: -5vh;
    padding-top: 5vh;
    padding-bottom: 2vh;
  }
  #mainpage .section-header:not(:first-of-type) {
    background: none;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  @keyframes simpleFadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px) translateZ(0);
    }
    100% {
      opacity: 1;
      transform: translateY(0) translateZ(0);
    }
  }
  #mainpage #photo_profil {
    position: relative;
    float: right;
    margin-right: 5vw;
    z-index: 2;
    width: 17vw;
    /* Beau contour d'image */
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border: 3px solid #F1F2EE;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(#4384CC, #F1F2EE);
    transition: 0.5s;
    animation: zoom 0.7s ease-in-out;
  }
  #mainpage #photo_profil:hover {
    transform: scale(1.2, 1.2);
    background: none;
  }
  @keyframes zoom {
    0% {
      transform: scale(1, 1);
    }
    50% {
      transform: scale(1.2, 1.2);
    }
    100% {
      transform: scale(1, 1);
    }
  }
  #mainpage .badge {
    display: inline-flex;
    /* Changement de flex à inline-flex pour s'adapter au contenu */
    align-items: center;
    margin: 5px;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 14px;
    max-width: 200px;
    /* Limitation de la largeur maximale du badge */
    white-space: nowrap;
    /* Empêche le texte de passer à la ligne */
  }
  #mainpage .badge img {
    height: 20px;
    margin-right: 8px;
  }
  #mainpage .badge span {
    font-size: 14px;
    font-weight: bold;
    color: #F1F2EE;
  }
  #mainpage .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 1200px) {
  #mainpage .skills-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
}
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage .skill-category {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
  }
  #mainpage .category-title {
    color: #F2EC91;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(242, 236, 145, 0.3);
  }
  #mainpage .skill-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  #mainpage .skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  #mainpage .skill-item:last-child {
    margin-bottom: 0;
  }
  #mainpage .skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  #mainpage .skill-header:hover {
    background: rgba(67, 132, 204, 0.1);
  }
  #mainpage .skill-name {
    color: #F1F2EE;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
  }
  #mainpage .skill-level {
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.8rem;
  }
  #mainpage .skill-level.advanced {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(242, 236, 145, 0.3);
    border: 1px solid rgba(242, 236, 145, 0.5);
  }
  #mainpage .skill-level.intermediate {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.3), rgba(212, 192, 90, 0.3));
    color: #F2EC91;
    box-shadow: 0 2px 6px rgba(242, 236, 145, 0.2);
    border: 1px solid rgba(242, 236, 145, 0.4);
  }
  #mainpage .skill-level.beginner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  #mainpage .toggle-icon {
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(242, 236, 145, 0.1);
  }
  #mainpage .skill-item.active .toggle-icon {
    transform: rotate(45deg);
  }
  #mainpage .skill-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.1);
  }
  #mainpage .skill-item.active .skill-details {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
  }
  #mainpage .skill-details p {
    color: #E0E0E0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    padding: 1rem 1.2rem 0.8rem 1.2rem;
  }
  #mainpage .skill-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1.2rem 1rem 1.2rem;
  }
  #mainpage .skill-tech span {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .skill-tech span:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
  }
  #mainpage .skill-category {
    padding: 1rem;
  }
  #mainpage .category-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  #mainpage .skill-header {
    padding: 0.8rem 1rem;
  }
  #mainpage .skill-name {
    font-size: 0.9rem;
  }
  #mainpage .skill-level {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    margin-right: 0.5rem;
  }
  #mainpage .toggle-icon {
    font-size: 1rem;
    width: 20px;
    height: 20px;
  }
  #mainpage .skill-details p {
    font-size: 0.85rem;
    padding: 0.8rem 1rem 0.6rem 1rem;
  }
  #mainpage .skill-tech {
    padding: 0 1rem 0.8rem 1rem;
    gap: 0.3rem;
  }
  #mainpage .skill-tech span {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
}
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage .projects-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    align-items: start;
  }
  #mainpage .project-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  #mainpage .project-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  #mainpage .project-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  #mainpage .project-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  #mainpage .project-card {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: fit-content;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
  }
  #mainpage .project-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  #mainpage .project-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  #mainpage .project-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  #mainpage .project-card:nth-child(4) {
    animation-delay: 0.4s;
  }
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  #mainpage .project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A, #F2EC91);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  #mainpage .project-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 236, 145, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  #mainpage .project-card:hover::before {
    transform: scaleX(1);
  }
  #mainpage .project-card:hover::after {
    opacity: 1;
  }
  #mainpage .project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  #mainpage .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  #mainpage .project-title {
    color: #F2EC91;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
    line-height: 1.3;
  }
  #mainpage .project-year {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.2), rgba(212, 192, 90, 0.2));
    color: #F2EC91;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(242, 236, 145, 0.3);
    white-space: nowrap;
    margin-left: 1rem;
  }
  #mainpage .project-role {
    color: #B0C4DE;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(67, 132, 204, 0.1);
    border-radius: 10px;
    border-left: 3px solid #4384CC;
  }
  #mainpage .project-description {
    color: #E0E0E0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
  }
  #mainpage .project-responsibilities {
    margin-bottom: 1.5rem;
  }
  #mainpage .project-responsibilities h4 {
    color: #F2EC91;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mainpage .project-responsibilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #mainpage .project-responsibilities li {
    color: #E0E0E0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
  }
  #mainpage .project-responsibilities li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4384CC;
    font-size: 0.7rem;
  }
  #mainpage .project-technologies {
    margin-top: 1.5rem;
  }
  #mainpage .project-technologies h4 {
    color: #F2EC91;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mainpage .project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  #mainpage .project-badges .badge {
    display: inline-flex;
    align-items: center;
    margin: 5px;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 14px;
    max-width: 200px;
    white-space: nowrap;
  }
  #mainpage .project-badges .badge img {
    height: 20px;
    margin-right: 8px;
  }
  #mainpage .project-badges .badge span {
    font-size: 14px;
    font-weight: bold;
    color: #F1F2EE;
  }
  #mainpage .project-image-container {
    position: relative;
    display: block;
    margin: 1rem auto;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    max-width: 350px;
    width: 100%;
    text-align: center;
  }
  #mainpage .project-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
  }
  #mainpage .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
  }
  #mainpage .zoom-icon {
    font-size: 2rem;
    color: #F2EC91;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  #mainpage .project-image-container:hover .image-overlay {
    opacity: 1;
  }
  #mainpage .project-image-container:hover .project-image {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  }
  #mainpage .iframe-preview {
    margin-top: 1rem;
    cursor: pointer;
  }
  #mainpage .iframe-placeholder {
    background: linear-gradient(135deg, rgba(67, 132, 204, 0.1), rgba(242, 236, 145, 0.1));
    border: 2px dashed rgba(67, 132, 204, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
  }
  #mainpage .iframe-placeholder:hover {
    background: linear-gradient(135deg, rgba(67, 132, 204, 0.2), rgba(242, 236, 145, 0.2));
    border-color: rgba(67, 132, 204, 0.5);
    transform: translateY(-2px);
  }
  #mainpage .iframe-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  #mainpage .iframe-placeholder h4 {
    color: #F2EC91;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  #mainpage .iframe-placeholder p {
    color: #E0E0E0;
    margin-bottom: 1.5rem;
  }
  #mainpage .view-button {
    background: linear-gradient(135deg, #4384CC, #F2EC91);
    color: #1B3059;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 132, 204, 0.3);
  }
  #mainpage .view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 132, 204, 0.4);
  }
  #mainpage .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
  }
  #mainpage .modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    background: #1B3059;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
  }
  #mainpage .modal-content.iframe-modal {
    height: 80vh;
  }
  #mainpage .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #F2EC91;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  #mainpage .close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
  }
  #mainpage #modalImage {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
  }
  #mainpage .modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
  }
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: scale(0.8) translateY(-50px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage .projects-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
  }
  #mainpage .project-card:nth-child(1),
  #mainpage .project-card:nth-child(2),
  #mainpage .project-card:nth-child(3),
  #mainpage .project-card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
  #mainpage .project-card {
    padding: 1.5rem;
  }
  #mainpage .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
  #mainpage .project-year {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  #mainpage .project-title {
    font-size: 1.2rem;
  }
  #mainpage .project-description {
    font-size: 0.9rem;
  }
  #mainpage .project-badges {
    justify-content: center;
  }
  #mainpage .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  #mainpage .modal-content.iframe-modal {
    height: 70vh;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 480px) {
  #mainpage .projects-container {
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }
  #mainpage .project-card {
    padding: 1rem;
  }
  #mainpage .project-title {
    font-size: 1.1rem;
  }
  #mainpage .modal-content {
    width: 98%;
    margin: 5% auto;
  }
  #mainpage .modal-content.iframe-modal {
    height: 60vh;
  }
  #mainpage .close {
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 25px;
  }
}
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage .timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
  }
  #mainpage .timeline {
    position: relative;
    padding: 2rem 0;
  }
  #mainpage .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #F2EC91, #D4C05A, #F2EC91);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(242, 236, 145, 0.3);
  }
  #mainpage .timeline-item {
    position: relative;
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  #mainpage .timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
  }
  #mainpage .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
    text-align: right;
  }
  #mainpage .timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
    text-align: left;
  }
  #mainpage .timeline-marker {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border: 4px solid #1B3059;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 20px rgba(242, 236, 145, 0.5);
    transition: all 0.3s ease;
  }
  #mainpage .timeline-marker:hover {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 30px rgba(242, 236, 145, 0.8);
  }
  #mainpage .timeline-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #1B3059;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  #mainpage .timeline-content {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
  }
  #mainpage .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  #mainpage .timeline-content::before {
    content: "";
    position: absolute;
    top: 2rem;
    width: 0;
    height: 0;
    border: 15px solid transparent;
  }
  #mainpage .timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: #2A4B76;
  }
  #mainpage .timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: #2A4B76;
  }
  #mainpage .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  #mainpage .timeline-title {
    color: #F2EC91;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
  }
  #mainpage .timeline-period {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.2), rgba(212, 192, 90, 0.2));
    color: #F2EC91;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(242, 236, 145, 0.3);
    white-space: nowrap;
    margin-left: 1rem;
  }
  #mainpage .timeline-company {
    color: #B0C4DE;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(67, 132, 204, 0.1);
    border-radius: 10px;
    border-left: 3px solid #4384CC;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
  }
  #mainpage .company-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
  }
  #mainpage .company-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
  }
  #mainpage .timeline-description {
    color: #E0E0E0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
  }
  #mainpage .timeline-projects {
    margin-top: 1.5rem;
  }
  #mainpage .subtimeline {
    margin-top: 1.5rem;
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }
  #mainpage .subtimeline.expanded {
    max-height: 2000px;
    transition: max-height 0.4s ease-in;
  }
  #mainpage .subtimeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(242, 236, 145, 0.6), rgba(212, 192, 90, 0.6));
    border-radius: 1px;
  }
  #mainpage .subtimeline-item {
    position: relative;
    margin: 2rem 0;
    padding-left: 3rem;
  }
  #mainpage .subtimeline-marker {
    position: absolute;
    left: 11px;
    top: 0.5rem;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border: 3px solid #1B3059;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px rgba(242, 236, 145, 0.4);
    transition: all 0.3s ease;
  }
  #mainpage .subtimeline-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(242, 236, 145, 0.6);
  }
  #mainpage .subtimeline-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(67, 132, 204, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  #mainpage .subtimeline-content:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(67, 132, 204, 0.4);
    transform: translateX(5px);
  }
  #mainpage .subtimeline-content.collapsed {
    padding: 1rem 1.5rem;
  }
  #mainpage .subtimeline-content.collapsed .mission-details,
  #mainpage .subtimeline-content.collapsed .technologies-used {
    display: none;
  }
  #mainpage .subtimeline-content.collapsed .subtimeline-description {
    margin-bottom: 0;
  }
  #mainpage .subtimeline-toggle {
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    background: rgba(67, 132, 204, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 1rem;
  }
  #mainpage .subtimeline-content.collapsed .subtimeline-toggle {
    transform: rotate(0deg);
  }
  #mainpage .subtimeline-content:not(.collapsed) .subtimeline-toggle {
    transform: rotate(45deg);
  }
  #mainpage .subtimeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
  #mainpage .subtimeline-title {
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
  }
  #mainpage .subtimeline-description {
    color: #E0E0E0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  #mainpage .mission-details {
    margin-top: 1rem;
  }
  #mainpage .mission-details h5 {
    color: #B0C4DE;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mainpage .mission-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #mainpage .mission-details li {
    color: #E0E0E0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    padding-left: 1.2rem;
    position: relative;
  }
  #mainpage .mission-details li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4384CC;
    font-size: 0.7rem;
  }
  #mainpage .technologies-used {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(67, 132, 204, 0.2);
  }
  #mainpage .technologies-used h6 {
    color: #B0C4DE;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage .subtimeline::before {
    left: 15px;
  }
  #mainpage .subtimeline-item {
    padding-left: 2.5rem;
  }
  #mainpage .subtimeline-marker {
    left: 6px;
    width: 16px;
    height: 16px;
  }
  #mainpage .subtimeline-content {
    padding: 1rem;
  }
  #mainpage .subtimeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
  #mainpage .subtimeline-period {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  #mainpage .subtimeline-title {
    font-size: 1.1rem;
  }
}
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage .project-toggle {
    background: rgba(67, 132, 204, 0.1);
    border: 1px solid rgba(67, 132, 204, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  #mainpage .project-toggle:hover {
    background: rgba(67, 132, 204, 0.2);
    border-color: rgba(67, 132, 204, 0.5);
  }
  #mainpage .project-toggle h4 {
    color: #F2EC91;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #mainpage .project-toggle .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }
  #mainpage .project-toggle.active .toggle-icon {
    transform: rotate(45deg);
  }
  #mainpage .project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 1rem;
  }
  #mainpage .project-toggle.active + .project-details {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
  }
  #mainpage .project-details p {
    color: #E0E0E0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    padding: 1rem;
  }
  #mainpage .project-images {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  #mainpage .project-image {
    position: relative;
    width: 200px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  #mainpage .project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }
  #mainpage .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  #mainpage .project-image:hover img {
    transform: scale(1.1);
  }
  #mainpage .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  #mainpage .project-image:hover .image-overlay {
    opacity: 1;
  }
  #mainpage .zoom-icon {
    color: #F2EC91;
    font-size: 1.5rem;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage .timeline::before {
    left: 30px;
  }
  #mainpage .timeline-item:nth-child(odd) .timeline-content,
  #mainpage .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }
  #mainpage .timeline-marker {
    left: 30px;
  }
  #mainpage .timeline-content::before {
    left: -30px !important;
    right: auto !important;
    border-right-color: #2A4B76 !important;
    border-left-color: transparent !important;
  }
  #mainpage .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
  #mainpage .timeline-period {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  #mainpage .timeline-content {
    padding: 1.5rem;
  }
  #mainpage .project-images {
    flex-direction: column;
    align-items: center;
  }
  #mainpage .project-image {
    width: 100%;
    max-width: 300px;
    height: 150px;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 480px) {
  #mainpage .timeline-container {
    padding: 1rem 0;
  }
  #mainpage .timeline-content {
    padding: 1rem;
    margin-left: 50px;
  }
  #mainpage .timeline-marker {
    left: 25px;
    width: 16px;
    height: 16px;
  }
  #mainpage .timeline::before {
    left: 25px;
    width: 3px;
  }
  #mainpage .timeline-title {
    font-size: 1.2rem;
  }
  #mainpage .timeline-period {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
  #mainpage .company-logo {
    height: 24px;
    max-width: 80px;
  }
  #mainpage .timeline-company {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    gap: 0.6rem;
  }
}
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage .academic-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
  }
  #mainpage .academic-container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: rotate 20s linear infinite;
    pointer-events: none;
  }
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  #mainpage .academic-mindmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 4rem 0;
  }
  #mainpage .academic-center {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 40px rgba(242, 236, 145, 0.4);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  #mainpage .academic-center::before {
    content: "🎓";
    font-size: 3rem;
    animation: bounce 1s ease-in-out infinite;
  }
  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  #mainpage .academic-center-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
  }
  #mainpage .academic-branches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 1000px;
  }
  #mainpage .academic-branch {
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: branchAppear 0.8s ease-out forwards;
  }
  #mainpage .academic-branch:nth-child(1) {
    animation-delay: 0.2s;
  }
  #mainpage .academic-branch:nth-child(2) {
    animation-delay: 0.4s;
  }
  #mainpage .academic-branch:nth-child(3) {
    animation-delay: 0.6s;
  }
  #mainpage .academic-branch:nth-child(4) {
    animation-delay: 0.8s;
  }
  @keyframes branchAppear {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  #mainpage .academic-node {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(242, 236, 145, 0.2);
    overflow: hidden;
    cursor: pointer;
  }
  #mainpage .academic-node::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A, #F2EC91);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  #mainpage .academic-node::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 236, 145, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  #mainpage .academic-node:hover::before {
    transform: scaleX(1);
  }
  #mainpage .academic-node:hover::after {
    opacity: 1;
  }
  #mainpage .academic-node:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  #mainpage .academic-node-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  #mainpage .academic-node-title {
    color: #F2EC91;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
  }
  #mainpage .academic-node-status {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1B3059;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(242, 236, 145, 0.3);
  }
  #mainpage .academic-node-institution {
    color: #B0C4DE;
    font-size: 1rem;
    font-weight: 500;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  #mainpage .academic-node-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
  }
  #mainpage .academic-node-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.1) rotate(5deg);
  }
  #mainpage .academic-node-period {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    display: inline-block;
    margin: 0.5rem 0;
  }
  #mainpage .academic-node-image {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
    margin: 1rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .academic-node-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  }
  #mainpage .academic-node-description {
    color: #E0E0E0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
  }
  #mainpage .academic-node-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
  }
  #mainpage .academic-node-skill {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .academic-node-skill:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(67, 132, 204, 0.2);
  }
  #mainpage .academic-connector {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: linear-gradient(180deg, #F2EC91, #D4C05A);
    z-index: 5;
  }
  #mainpage .academic-connector::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #F2EC91;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(242, 236, 145, 0.5);
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage .academic-branches {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }
  #mainpage .academic-center {
    width: 100px;
    height: 100px;
  }
  #mainpage .academic-center::before {
    font-size: 2.5rem;
  }
  #mainpage .academic-node {
    padding: 1.5rem;
  }
  #mainpage .academic-node-title {
    font-size: 1.2rem;
  }
  #mainpage .academic-node-image {
    height: 120px;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 480px) {
  #mainpage .academic-container {
    padding: 1rem 0.5rem;
  }
  #mainpage .academic-center {
    width: 80px;
    height: 80px;
  }
  #mainpage .academic-center::before {
    font-size: 2rem;
  }
  #mainpage .academic-center-text {
    font-size: 1rem;
    bottom: -25px;
  }
  #mainpage .academic-node {
    padding: 1rem;
  }
  #mainpage .academic-node-title {
    font-size: 1.1rem;
  }
  #mainpage .academic-node-institution {
    font-size: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  #mainpage .academic-node-image {
    height: 100px;
  }
}
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage .presentation > h3 {
    font-size: 1em;
    margin-bottom: 2vh;
    color: #3671BF;
    font-size: 1.1em;
    font-weight: bold;
  }
  #mainpage .presentation {
    -ms-text-size-adjust: none;
    font-size: 3vh;
    width: 60vw;
    margin-left: 10vw;
    color: #F1F2EE;
    background-color: #24446D;
    padding: 2vh;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-bottom: 1vh;
    transition: 0.5s;
  }
  #mainpage .presentation:hover {
    background-color: #04040E;
    transform: scale(1.08, 1.08);
    margin-top: 2vh;
    margin-bottom: 2vh;
  }
  #mainpage #stackOverflow:hover {
    transform: scale(1, 1);
    background-color: #24446D;
  }
  #mainpage .presentation > p {
    text-align: justify;
    margin-top: 2vh;
    margin-bottom: 2vh;
  }
  #mainpage #contact {
    display: block;
    position: fixed;
    z-index: 1;
    width: 5vw;
    height: 40vh;
    background-color: black;
    bottom: 0;
    right: 0;
    border-top-left-radius: 60px;
    transition: 0.5s;
    opacity: 0.3;
  }
  #mainpage #contact:hover {
    border: solid 5px #F2EC91;
    border-bottom: 0;
    border-right: 0;
    z-index: 2;
    opacity: 1;
  }
  #mainpage #contact > .contact > img {
    width: 3vw;
    height: 3vw;
    margin-top: 6vh;
    margin-right: 1vw;
    border: 0;
    border-radius: 10px;
    padding-left: 1vw;
    font-size: 2vh;
    transition: 0.5s;
    animation: zoom 0.7s ease-in-out;
  }
  #mainpage #contact > .contact > img:hover {
    transform: scale(1.2, 1.2);
  }
  #mainpage #voir_cv {
    /* style de bouton */
    display: block;
    position: relative;
    margin-left: 12vw;
    margin-top: 2vh;
    margin-bottom: 2vh;
    font-size: 1.2em;
    color: white;
    text-decoration: none;
    padding: 1vh 1vw;
    background-color: rgba(54, 113, 191, 0.7);
    text-align: center;
    border-radius: 10px;
    transition: 0.5s;
  }
  #mainpage #voir_cv:hover {
    transform: scale(1.08, 1.08);
    background-color: rgb(54, 113, 191);
    margin-top: 2vh;
    margin-bottom: 2vh;
  }
  #mainpage #video > video {
    display: none;
    position: relative;
    margin-left: 10vw;
    background-color: rgba(0, 0, 0, 0.2);
    transition: 0.5s;
    width: 80vw;
    max-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2vh;
  }
  #mainpage #data_analyse {
    display: block;
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
    transition: 0.5s;
    width: 60vw;
    height: 80vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }
  #mainpage .contact-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
  }
  #mainpage .contact-container .container {
    max-width: 100% !important;
    width: 100% !important;
  }
  #mainpage .contact-container .row {
    width: 100% !important;
    margin: 0 !important;
  }
  #mainpage .contact-container .col-lg-10,
  #mainpage .contact-container .col-xl-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  #mainpage .contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/planete-avec-anneau.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
  }
  #mainpage .contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(27, 48, 89, 0.4) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(67, 132, 204, 0.3) 0%, transparent 50%), linear-gradient(135deg, rgba(25, 23, 38, 0.8) 0%, rgba(27, 48, 89, 0.9) 50%, rgba(25, 23, 38, 0.8) 100%);
    backdrop-filter: blur(1px);
    z-index: 2;
  }
  #mainpage .contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
  }
  #mainpage .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(242, 236, 145, 0.6);
    border-radius: 50%;
    animation: floatSubtle 12s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(242, 236, 145, 0.3);
  }
  #mainpage .particle:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
  }
  #mainpage .particle:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
  }
  #mainpage .particle:nth-child(3) {
    left: 35%;
    animation-delay: 4s;
  }
  #mainpage .particle:nth-child(4) {
    left: 45%;
    animation-delay: 6s;
  }
  #mainpage .particle:nth-child(5) {
    left: 55%;
    animation-delay: 8s;
  }
  #mainpage .particle:nth-child(6) {
    left: 65%;
    animation-delay: 10s;
  }
  #mainpage .particle:nth-child(7) {
    left: 75%;
    animation-delay: 1s;
  }
  #mainpage .particle:nth-child(8) {
    left: 85%;
    animation-delay: 3s;
  }
  #mainpage .particle:nth-child(9) {
    left: 95%;
    animation-delay: 5s;
  }
  @keyframes floatSubtle {
    0%, 100% {
      transform: translateY(100vh) scale(0);
      opacity: 0;
    }
    10% {
      opacity: 0.8;
      transform: translateY(90vh) scale(1);
    }
    90% {
      opacity: 0.8;
      transform: translateY(10vh) scale(1);
    }
  }
  #mainpage .contact-card {
    position: relative;
    z-index: 4;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.15) 0%, rgba(25, 23, 38, 0.2) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(242, 236, 145, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(242, 236, 145, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
  }
  #mainpage .contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(242, 236, 145, 0.5), rgba(67, 132, 204, 0.5), rgba(242, 236, 145, 0.5), transparent);
    animation: shimmer 3s ease-in-out infinite;
  }
  @keyframes shimmer {
    0%, 100% {
      opacity: 0.3;
    }
    50% {
      opacity: 1;
    }
  }
  #mainpage .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(242, 236, 145, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  #mainpage .contact-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
  }
  #mainpage .contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #F2EC91;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
  }
  #mainpage .contact-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
  }
  #mainpage .contact-form {
    position: relative;
  }
  #mainpage .contact-form .form-group {
    margin-bottom: 1.5rem;
  }
  #mainpage .contact-form .row {
    margin-bottom: 0;
  }
  #mainpage .contact-form .row:not(:last-child) {
    margin-bottom: 1rem;
  }
  #mainpage .contact-form .row:last-child {
    margin-top: 1.5rem;
  }
  #mainpage .contact-form .col-md-6 {
    padding-left: 0;
    padding-right: 0.75rem;
    box-sizing: border-box;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: inline-block;
    vertical-align: top;
  }
  #mainpage .contact-form .col-md-6:first-child {
    padding-right: 0.375rem;
  }
  #mainpage .contact-form .col-md-6:last-child {
    padding-left: 0.375rem;
    padding-right: 0;
  }
  #mainpage .contact-form .col-12 {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  #mainpage .contact-form .row {
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }
  #mainpage .contact-form .form-control {
    min-width: 0;
    width: 100%;
  }
  #mainpage .contact-form .form-label {
    display: block;
    color: #F2EC91;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mainpage .contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(242, 236, 145, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
  }
  #mainpage .contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }
  #mainpage .contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #F2EC91;
    box-shadow: 0 0 0 2px rgba(242, 236, 145, 0.2), 0 4px 15px rgba(242, 236, 145, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    outline: none;
  }
  #mainpage .contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
  }
  #mainpage .contact-form .btn {
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    border: none;
    flex: 1;
    min-width: 140px;
  }
  #mainpage .contact-form .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
  }
  #mainpage .contact-form .btn:hover::before {
    left: 100%;
  }
  #mainpage .contact-form .btn-primary {
    background: linear-gradient(135deg, #4384CC, #3671BF);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 132, 204, 0.3);
  }
  #mainpage .contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #3671BF, #2A5A9B);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 132, 204, 0.4);
  }
  #mainpage .contact-form .btn-outline-primary {
    color: #F2EC91;
    border: 2px solid #F2EC91;
    background: transparent;
    box-shadow: 0 4px 15px rgba(242, 236, 145, 0.2);
  }
  #mainpage .contact-form .btn-outline-primary:hover {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1B3059;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 236, 145, 0.3);
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage .contact-container {
    padding: 1rem;
    min-height: 100vh;
  }
  #mainpage .contact-card {
    padding: 2.5rem 2.5rem;
    border-radius: 16px;
    max-width: 100%;
  }
  #mainpage .contact-title {
    font-size: 1.8rem;
  }
  #mainpage .contact-subtitle {
    font-size: 0.9rem;
  }
  #mainpage .contact-form .btn {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 1rem 1.5rem;
  }
  #mainpage .contact-form .d-flex {
    flex-direction: column;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 480px) {
  #mainpage .contact-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  #mainpage .contact-title {
    font-size: 1.6rem;
  }
  #mainpage .contact-form .form-control {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
}
@media screen and (min-aspect-ratio: 16/9) {
  #mainpage .footer {
    position: relative;
    min-height: 80vh;
    padding: 5rem 0 3rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(25, 23, 38, 0.95) 0%, rgba(27, 48, 89, 0.9) 30%, rgba(67, 132, 204, 0.8) 70%, rgba(25, 23, 38, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-top: 2px solid rgba(242, 236, 145, 0.3);
  }
  #mainpage .footer_video {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    filter: brightness(0.3) contrast(1.2);
  }
  #mainpage .footer_inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
  }
  #mainpage .c-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    width: 100%;
  }
  #mainpage .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
  }
  #mainpage .footer-item {
    display: flex;
    flex-direction: column;
  }
  #mainpage .footer-item.w-33 {
    grid-column: auto;
  }
  #mainpage .footer-item.w-50 {
    grid-column: 1/3;
  }
  #mainpage .footer-item.w-25 {
    grid-column: auto;
  }
  #mainpage .newsletter {
    margin-bottom: 2rem;
  }
  #mainpage .newsletter_title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #F2EC91;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
  }
  #mainpage .newsletter_subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 2rem 0;
    max-width: 500px;
  }
  #mainpage .contact_info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  #mainpage .contact_item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
  }
  #mainpage .contact_link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  #mainpage .contact_link:hover {
    color: #F2EC91;
    text-decoration: underline;
  }
  #mainpage .contact_item svg {
    width: 18px;
    height: 18px;
    fill: #F2EC91;
    flex-shrink: 0;
  }
  #mainpage .c-nav-tool_title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #F2EC91;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
  }
  #mainpage .c-nav-tool_title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    border-radius: 1px;
  }
  #mainpage .nav-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  #mainpage .nav-columns-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
  }
  #mainpage .c-nav-tool_list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #mainpage .c-nav-tool_item {
    margin-bottom: 1rem;
  }
  #mainpage .c-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0.4rem 0;
  }
  #mainpage .c-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    transition: width 0.3s ease;
  }
  #mainpage .c-link:hover {
    color: #F2EC91;
    transform: translateX(8px);
  }
  #mainpage .c-link:hover::before {
    width: 100%;
  }
  #mainpage .footer_section {
    margin-bottom: 2rem;
  }
  #mainpage .footer_section_title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2EC91;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  #mainpage .footer_section_content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
  }
  #mainpage .tech_stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  #mainpage .tech_badge {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .tech_badge:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
  }
  #mainpage .c-2 {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 3rem;
    align-items: center;
    padding-top: 3rem;
    border-top: 2px solid rgba(242, 236, 145, 0.2);
    margin-top: 3rem;
  }
  #mainpage .c-2 .layout_item {
    display: flex;
    align-items: center;
  }
  #mainpage .c-2 .layout_item:first-child {
    justify-content: flex-start;
  }
  #mainpage .c-2 .layout_item:nth-child(2) {
    justify-content: center;
  }
  #mainpage .c-2 .layout_item:last-child {
    justify-content: flex-end;
  }
  #mainpage .c-2 p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
  }
  #mainpage .flex {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  #mainpage .flex li {
    list-style: none;
  }
  #mainpage .flex a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 236, 145, 0.2);
  }
  #mainpage .flex a:hover {
    background: rgba(242, 236, 145, 0.2);
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 8px 20px rgba(242, 236, 145, 0.4);
  }
  #mainpage .flex svg {
    width: 22px;
    height: 22px;
    fill: #F2EC91;
    transition: all 0.3s ease;
  }
  #mainpage .flex a:hover svg {
    fill: #D4C05A;
    transform: rotate(8deg);
  }
  #mainpage .c-2 .c-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.2), rgba(212, 192, 90, 0.2));
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 236, 145, 0.3);
  }
  #mainpage .c-2 .c-link:hover {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    transform: translateY(-4px) scale(1.15);
    box-shadow: 0 10px 30px rgba(242, 236, 145, 0.5);
  }
  #mainpage .c-2 .c-link svg {
    width: 26px;
    height: 26px;
    fill: #F2EC91;
    transition: all 0.3s ease;
  }
  #mainpage .c-2 .c-link:hover svg {
    fill: #1B3059;
    transform: rotate(12deg);
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage .footer {
    min-height: 50vh;
    padding: 3rem 0 2rem 0;
  }
  #mainpage .footer_inner {
    padding: 0 1rem;
  }
  #mainpage .layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  #mainpage .w-50, #mainpage .w-25 {
    grid-column: 1;
  }
  #mainpage .newsletter_title {
    font-size: 1.2rem;
    text-align: center;
    max-width: 100%;
  }
  #mainpage .c-nav-tool_title {
    text-align: center;
    font-size: 1.1rem;
  }
  #mainpage .c-nav-tool_list {
    text-align: center;
  }
  #mainpage .c-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  #mainpage .c-2 .layout_item {
    justify-content: center;
  }
  #mainpage .flex {
    justify-content: center;
  }
}
@media screen and (min-aspect-ratio: 16/9) and (max-width: 480px) {
  #mainpage .footer {
    padding: 2rem 0 1.5rem 0;
  }
  #mainpage .newsletter_title {
    font-size: 1.1rem;
  }
  #mainpage .c-nav-tool_title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  #mainpage .c-link {
    font-size: 0.9rem;
  }
  #mainpage .flex a {
    width: 35px;
    height: 35px;
  }
  #mainpage .flex svg {
    width: 18px;
    height: 18px;
  }
  #mainpage .c-2 .c-link {
    width: 45px;
    height: 45px;
  }
  #mainpage .c-2 .c-link svg {
    width: 22px;
    height: 22px;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  /* Pour les portables */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    width: 100vw;
    overflow-x: hidden;
  }
  body {
    font-family: "Trebuchet MS", sans-serif;
    color: white;
    background-color: #191726;
  }
  .loader {
    width: 80px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 9999;
  }
  .loader .loader-bar {
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #1b3059, #4a90e2);
    border-radius: 3px;
    position: absolute;
    animation: loaderWave 1.2s ease-in-out infinite;
  }
  .loader .loader-bar:nth-child(1) {
    left: 0;
    animation-delay: 0s;
  }
  .loader .loader-bar:nth-child(2) {
    left: 12px;
    animation-delay: 0.1s;
  }
  .loader .loader-bar:nth-child(3) {
    left: 24px;
    animation-delay: 0.2s;
  }
  .loader .loader-bar:nth-child(4) {
    left: 36px;
    animation-delay: 0.3s;
  }
  .loader .loader-bar:nth-child(5) {
    left: 48px;
    animation-delay: 0.4s;
  }
  .loader .loader-bar:nth-child(6) {
    left: 60px;
    animation-delay: 0.5s;
  }
  .loader .loader-bar:nth-child(7) {
    left: 72px;
    animation-delay: 0.6s;
  }
  .loader .loader-text {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    color: #F2EC91;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    animation: loaderFade 2s ease-in-out infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .loader.show {
    display: block;
  }
  @keyframes loaderWave {
    0%, 40%, 100% {
      transform: scaleY(0.4);
      opacity: 0.7;
    }
    20% {
      transform: scaleY(1);
      opacity: 1;
    }
  }
  @keyframes loaderFade {
    0%, 100% {
      opacity: 0.6;
    }
    50% {
      opacity: 1;
    }
  }
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .delay-1 {
    animation-delay: 0.2s;
  }
  .delay-2 {
    animation-delay: 0.4s;
  }
  .delay-3 {
    animation-delay: 0.6s;
  }
  .delay-4 {
    animation-delay: 0.8s;
  }
  .delay-5 {
    animation-delay: 1s;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
  }
  .scale-in.visible {
    opacity: 1;
    transform: scale(1);
  }
  @keyframes scaleIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  .slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
  }
  .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
  }
  @keyframes slideInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
  }
  .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
  }
  @keyframes slideInRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .futuristic-title {
    animation: titleSlideIn 1s ease-out, titleGlow 3s ease-in-out infinite alternate 1s;
  }
  .futuristic-title.animate-in {
    animation: titleSlideIn 1s ease-out, titleGlow 3s ease-in-out infinite alternate 1s;
  }
  .futuristic-title-container.hidden {
    opacity: 0;
    transform: translateY(50px);
  }
  @keyframes titleSlideIn {
    from {
      opacity: 0;
      transform: translateY(50px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  @keyframes titleGlow {
    0% {
      text-shadow: 0 0 20px rgba(242, 236, 145, 0.5);
    }
    100% {
      text-shadow: 0 0 30px rgba(242, 236, 145, 0.8), 0 0 40px rgba(67, 132, 204, 0.3);
    }
  }
  .title-line {
    width: 0;
    height: 2px;
    background: #4A90E2;
    border-radius: 2px;
    animation: lineExpand 1.5s ease-out 0.5s forwards, lineFadeOut 0.5s ease-out 3s forwards;
  }
  @keyframes lineExpand {
    to {
      width: 100%;
    }
  }
  @keyframes lineFadeOut {
    to {
      opacity: 0;
    }
  }
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
  }
  /* Menu */
  #menu {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    padding-top: 8vh !important;
    padding-bottom: 20vh !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: transform !important;
    isolation: isolate !important;
  }
  .burger-icon {
    position: relative !important;
    font-size: 3em !important;
    margin-left: 2vw !important;
    z-index: 1001 !important;
  }
  #home {
    width: 4vw;
  }
  #menu > li {
    list-style: none;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  #menu > li a {
    text-decoration: none;
    color: white;
    transition: 0.5s;
  }
  #menu > li:not(:hover) {
    opacity: 0.5;
  }
  #menu > li > a:hover {
    color: rgb(0, 0, 0);
  }
  input[type=checkbox] {
    display: none;
  }
  input[type=checkbox]:checked + label + #menu {
    display: block;
  }
  li:last-of-type {
    display: none;
  }
  #menu > li:hover > a {
    color: rgb(49, 83, 255);
  }
  #menu .flag {
    margin-top: 10px;
    margin-bottom: 15px;
  }
  #menu .flag a {
    display: inline-block;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  #menu .flag a:hover {
    background: rgba(242, 236, 145, 0.2);
    transform: scale(1.1);
  }
  #flag_fr, #flag_en {
    width: 45px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }
  #flag_fr:hover, #flag_en:hover {
    border-color: rgba(242, 236, 145, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  input[type=checkbox]:checked + label + #menu > li a:focus {
    color: white;
  }
  #telechargerLayout {
    display: flex;
    float: right;
    margin-right: 5vw;
    margin-top: 2vh;
    color: white;
    text-decoration: none;
  }
  #telechargerLayout > img {
    display: flex;
    float: right;
    height: 3vh;
    margin-left: 1vw;
    margin-top: -0.5vh;
  }
  main {
    z-index: 1;
  }
  h2 {
    padding-top: 4vh;
    font-size: 7vw;
    text-align: center;
    margin-bottom: 20px;
    color: #F2EC91;
  }
  /* ===========================================
     STYLES POUR LA SECTION "QUI SUIS-JE" - SMARTPHONE
     =========================================== */
  .text {
    font-size: 3.2vw;
    width: 85vw;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.8) 0%, rgba(42, 75, 118, 0.7) 50%, rgba(25, 23, 38, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(242, 236, 145, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #E0E0E0;
    line-height: 1.6;
    text-align: justify;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A, #F2EC91);
    border-radius: 15px 15px 0 0;
  }
  .text:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.4);
  }
  .text a {
    color: #F2EC91 !important;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
  }
  .text a:hover {
    color: #D4C05A !important;
    border-bottom-color: #D4C05A;
    transform: translateY(-1px);
  }
  .text a:active {
    transform: translateY(0);
  }
  #acceuil {
    padding-top: 80px;
    background-image: url("../img/terre_acceuil.jpg");
    background-size: cover;
    color: white;
    text-align: center;
    height: 100vh;
    padding-left: 5vw;
    position: relative;
    overflow: hidden;
    z-index: -1 !important;
  }
  #acceuil > p {
    font-size: 2.8vw;
    opacity: 0.9;
    margin-top: 20px;
    margin-right: 5vw;
    padding: 1.2rem 1rem 1rem 1rem;
    width: 85vw;
    text-align: left;
    color: #F2EC91;
    background: rgba(4, 4, 14, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(242, 236, 145, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: "Consolas", monospace;
    line-height: 1.6;
    position: absolute;
    top: 50vh;
    left: 7.5vw;
    min-height: 12vh;
    z-index: 1 !important;
    margin: 0;
  }
  #acceuil > p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(74, 144, 226, 0.05);
    border-bottom: 1px solid rgba(242, 236, 145, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    z-index: 1;
  }
  #acceuil > p::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: #FF605C;
    border-radius: 50%;
    box-shadow: 16px 0 0 #FFBD44, 32px 0 0 #00CA4E;
    z-index: 2;
  }
  .terminal-prompt {
    color: #4A90E2;
    font-weight: bold;
    margin-right: 0.5rem;
  }
  .typing-cursor {
    color: #4A90E2;
    font-weight: bold;
    animation: blink 1s infinite;
    margin-left: 2px;
    display: inline-block;
    position: relative;
    top: -1px;
  }
  @keyframes blink {
    0%, 50% {
      opacity: 1;
    }
    51%, 100% {
      opacity: 0;
    }
  }
  @keyframes scanline {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(100%);
    }
  }
  .terminal-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(180deg, rgba(74, 144, 226, 0.15), transparent);
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 3;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  #acceuil > h1 {
    font-size: 15vw;
    margin-top: 20px;
    color: #F2EC91;
    animation: simpleFadeIn 1.5s ease-out 0.5s both;
    opacity: 0;
    transform: translateZ(0);
  }
  #acceuil > h1:nth-of-type(2) {
    margin-bottom: 15vh;
    animation: simpleFadeIn 1.5s ease-out 1s both;
    opacity: 0;
    transform: translateZ(0);
  }
  @keyframes simpleFadeIn {
    from {
      opacity: 0;
      transform: translateY(30px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  /* Titre du formulaire */
  /* Formulaire */
  /* Styles des champs de saisie */
  /* Styles des boutons */
  /* Image de fond */
  /*  Style pour les badges des technologies */
  /* ===========================================
     STYLES POUR LE FOOTER - SMARTPHONE
     =========================================== */
  /* Ajustement pour la deuxième grille du footer */
  /* ===========================================
     STYLES POUR LES COMPÉTENCES - SMARTPHONE
     =========================================== */
  /* ===========================================
     STYLES POUR LE PARCOURS ACADÉMIQUE - SMARTPHONE
     =========================================== */
  /* ===========================================
     STYLES POUR LES EXPÉRIENCES PROFESSIONNELLES - SMARTPHONE
     =========================================== */
  /* ===========================================
     STYLES POUR LES TIROIRS DE PROJETS - SMARTPHONE
     =========================================== */
  /* ===========================================
     STYLES POUR LA SECTION PROJETS - SMARTPHONE
     =========================================== */
  /* ===========================================
     STYLES POUR LA SECTION CONTACT - SMARTPHONE
     =========================================== */
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  #acceuil > p {
    font-size: 2.5vw;
    padding: 1rem 0.8rem 0.8rem 0.8rem;
    width: 90vw;
    left: 5vw;
    top: 20vh;
    min-height: 10vh;
  }
  #acceuil > p::after {
    top: 4px;
    left: 6px;
    width: 6px;
    height: 6px;
    box-shadow: 12px 0 0 #FFBD44, 24px 0 0 #00CA4E;
  }
  #acceuil > p::before {
    height: 15px;
  }
  .terminal-scanline {
    height: 12px;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  #degrade {
    width: 100vw;
    height: 3vh;
    background: linear-gradient(to bottom, rgb(3, 3, 11), rgb(109, 103, 103));
  }
  .layout {
    display: block;
  }
  .pc {
    display: none;
  }
  #photo_profil {
    margin-right: 7.5vw;
    margin-left: 7.5vw;
    width: 85vw;
    /* Beau contour d'image */
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border: 3px solid #F1F2EE;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(#4384CC, #F1F2EE);
  }
  #vitrine {
    width: 100%;
    margin-left: 0;
    display: block;
  }
  #vitrine > .vitre {
    background: linear-gradient(to top left, #4384CC, #2A4B76, #10121F);
    width: 85vw;
    margin-left: 7.5vw;
    padding: 1vh 7.5vw;
    margin-bottom: 20px;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }
  #vitrine > .vitre > h3 {
    font-size: 1.5em;
    color: white;
    margin-top: 2vh;
    margin-bottom: 2vh;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }
  .img_parcours {
    width: 90vw;
    margin-left: 5vw;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin-right: 0;
  }
  .logo {
    margin-left: 5%;
    width: 20%;
    margin-right: 0;
  }
  .parcours {
    margin-top: 20px;
  }
  .presentation {
    width: 85vw;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.9) 0%, rgba(42, 75, 118, 0.8) 50%, rgba(25, 23, 38, 0.95) 100%);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(242, 236, 145, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
  }
  .presentation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A, #4384CC, #F2EC91);
    border-radius: 20px 20px 0 0;
  }
  .presentation::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 236, 145, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .presentation:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(242, 236, 145, 0.5);
  }
  .presentation:hover::after {
    opacity: 1;
  }
  .presentation > h3 {
    font-size: 4.5vw;
    color: #F2EC91;
    margin: 0 0 1.5rem 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
  }
  .presentation > h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    border-radius: 2px;
  }
  .presentation > p {
    margin: 0;
    font-size: 3.2vw;
    color: #E0E0E0;
    line-height: 1.7;
    text-align: justify;
    font-weight: 400;
    letter-spacing: 0.3px;
  }
  .presentation > p a {
    color: #F2EC91 !important;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
  }
  .presentation > p a:hover {
    color: #D4C05A !important;
    border-bottom-color: #D4C05A;
    transform: translateY(-1px);
  }
  .presentation > p a:active {
    transform: translateY(0);
  }
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  .text {
    font-size: 2.8vw;
    padding: 1.2rem;
    margin: 0 auto 1.5rem auto;
  }
  .presentation {
    padding: 1.5rem;
    margin: 0 auto 1.5rem auto;
  }
  .presentation > h3 {
    font-size: 4vw;
    margin-bottom: 1.2rem;
  }
  .presentation > p {
    font-size: 2.8vw;
    line-height: 1.6;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  #contact {
    display: block;
    position: fixed;
    z-index: 1000;
    width: 8vw;
    height: 30vh;
    bottom: 0;
    right: 2vw;
  }
  #contact > .contact > img {
    width: 8vw;
    margin-top: 3vh;
    margin-right: 1vw;
    border: 0;
    border-radius: 10px;
    padding-left: 1vw;
    font-size: 2vh;
    transition: 0.5s;
    animation: zoom 0.7s ease-in-out;
  }
  #contact > .contact > img:hover {
    transform: scale(1.2, 1.2);
  }
  #voir_cv {
    /* style de bouton */
    display: block;
    position: relative;
    width: 40vw;
    margin-left: 30vw;
    margin-top: 2vh;
    margin-bottom: 2vh;
    font-size: 1.2em;
    color: white;
    text-decoration: none;
    padding: 1vh 1vw;
    background-color: rgba(0, 60, 255, 0.5);
    text-align: center;
    border-radius: 10px;
    transition: 0.5s;
  }
  #voir_cv:hover {
    background-color: rgba(0, 60, 255, 0.8);
    transform: scale(1.08, 1.08);
    margin-top: 2vh;
    margin-bottom: 2vh;
  }
  #video > video {
    display: none;
    position: relative;
    margin-left: 10vw;
    background-color: rgba(0, 0, 0, 0.2);
    transition: 0.5s;
    width: 80vw;
    max-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }
  #data_analyse {
    width: 90%;
    margin-left: 5%;
  }
  #formmail > h3 {
    font-size: 5vw;
    /* Taille de police ajustée */
    color: #ffffff;
    text-shadow: 0 0 10px rgb(0, 0, 0);
    text-align: center;
    /* Centrer le texte */
    margin-top: 10vh;
    /* Ajuster selon les besoins */
  }
  #formmail > #formulaire {
    width: 80vw;
    /* Largeur du formulaire ajustée */
    margin: 0 auto;
    /* Centrer le formulaire */
    background-image: url("../img/planete-avec-anneau.jpg");
    /* Chemin de l'image de fond */
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Ombre légère */
    padding: 5vh 3vw;
    /* Ajuster les marges internes */
    transition: 0.5s;
    position: relative;
    /* Position relative pour le positionnement de l'image de fond */
  }
  .group {
    margin-bottom: 5vh;
    /* Espacement entre les champs */
    position: relative;
    /* Position relative pour positionner les labels */
  }
  .group > input,
  .group > textarea {
    font-size: 4vw;
    /* Taille de police ajustée */
    width: 100%;
    /* Remplir la largeur disponible */
    padding: 3vh 2vw;
    /* Ajuster les marges internes */
    border: none;
    /* Supprimer la bordure */
    border-bottom: 2px solid #ccc;
    /* Ajouter une ligne de séparation */
    background-color: transparent;
    /* Fond transparent */
    transition: border-bottom-color 0.3s;
    /* Animation lors du focus */
  }
  .group > input:focus,
  .group > textarea:focus {
    outline: none;
    /* Supprimer la bordure de focus */
    border-bottom-color: #5264AE;
    /* Couleur de la ligne de séparation lors du focus */
  }
  .group > label {
    font-size: 4vw;
    /* Taille de police ajustée */
    color: #fff;
    /* Couleur du texte en blanc */
    font-weight: bold;
    /* Texte en gras */
    position: absolute;
    /* Position absolue pour le déplacement en haut lors du focus */
    top: 2vh;
    /* Ajuster la position */
    left: 2vw;
    /* Ajuster la position */
    transition: top 0.3s, font-size 0.3s, color 0.3s;
    /* Animation lors du focus */
  }
  input[type=submit],
  input[type=reset] {
    width: 50%;
    /* Largeur du bouton ajustée */
    font-size: 4vw;
    /* Taille de police ajustée */
    margin: 0 auto;
    /* Centrer le bouton */
    display: block;
    /* Afficher en tant que bloc */
    margin-top: 5vh;
    /* Espacement depuis le dernier champ */
    padding: 2vh;
    /* Ajuster les marges internes */
    border: none;
    /* Supprimer la bordure */
    border-radius: 5px;
    /* Ajouter une bordure arrondie */
    background-color: #5264AE;
    /* Couleur de fond */
    color: #fff;
    /* Couleur du texte */
    cursor: pointer;
    /* Curseur pointer */
    transition: background-color 0.3s;
    /* Animation lors du survol */
  }
  .group > input[type=submit]:hover,
  input[type=reset]:hover {
    background-color: #324080;
    /* Couleur de fond au survol */
  }
  #formmail {
    background-size: cover;
    /* Ajuster la taille de l'image */
    background-position: center;
    /* Centrer l'image */
    /* Hauteur minimale de l'élément */
    overflow: hidden;
    /* Empêcher le débordement de contenu */
  }
  .badge {
    display: inline-flex;
    /* Changement de flex à inline-flex pour s'adapter au contenu */
    align-items: center;
    margin: 5px;
    padding: 2px 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 8px;
    max-width: 200px;
    /* Limitation de la largeur maximale du badge */
    white-space: nowrap;
    /* Empêche le texte de passer à la ligne */
  }
  .badge img {
    height: 10px;
    margin-right: 8px;
  }
  .badge span {
    font-size: 8px;
    font-weight: bold;
    color: #F1F2EE;
  }
  .footer_video {
    max-width: 100vw;
  }
  .footer {
    position: relative;
    clear: both;
    min-height: 60vh;
    padding: 3rem 0.3rem 3rem 0.3rem;
    padding-right: 1.8rem;
    overflow: visible;
    background: linear-gradient(135deg, rgba(25, 23, 38, 0.95) 0%, rgba(27, 48, 89, 0.9) 30%, rgba(67, 132, 204, 0.8) 70%, rgba(25, 23, 38, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-top: 2px solid rgba(242, 236, 145, 0.3);
    z-index: 1;
    transition: 0.3s;
  }
  .footer_video {
    display: none;
  }
  #video,
  #video_cv {
    display: none;
  }
  .footer_inner {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    width: 100%;
  }
  .c-footer {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .footer-item {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .footer-item.w-33,
  .footer-item.w-50,
  .footer-item.w-25 {
    width: 100%;
  }
  .footer-grid:last-child {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(242, 236, 145, 0.2);
  }
  .newsletter {
    margin-bottom: 0;
    padding: 0;
  }
  .newsletter_title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F2EC91;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
  }
  .newsletter_subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    max-width: 100%;
  }
  .contact_info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0;
    padding: 0;
  }
  .contact_item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    padding: 0.2rem 0;
  }
  .contact_link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .contact_link:hover {
    color: #F2EC91;
    text-decoration: underline;
  }
  .contact_item svg {
    width: 14px;
    height: 14px;
    fill: #F2EC91;
    flex-shrink: 0;
  }
  .c-nav-tool {
    margin-bottom: 0;
    padding: 0;
    overflow: visible;
    height: auto;
    min-height: auto;
  }
  .c-nav-tool_title {
    font-size: 1rem;
    font-weight: 600;
    color: #F2EC91;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 0.4rem;
  }
  .c-nav-tool_title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    border-radius: 1px;
  }
  .nav-columns {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
    overflow: visible;
    height: auto;
    min-height: auto;
  }
  .nav-columns-3 {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
    overflow: visible;
    height: auto;
    min-height: auto;
  }
  .c-nav-tool_list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    height: auto;
    min-height: auto;
  }
  .c-nav-tool_item {
    margin-bottom: 0.6rem;
    display: block;
    overflow: visible;
    height: auto;
    min-height: auto;
    width: 40vw;
    display: inline-block !important;
  }
  .c-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0.2rem 0;
  }
  .c-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    transition: width 0.3s ease;
  }
  .c-link:hover {
    color: #F2EC91;
    transform: translateX(4px);
  }
  .c-link:hover::before {
    width: 100%;
  }
  .footer_section {
    margin-bottom: 0;
    padding: 0;
  }
  .footer_section_title {
    font-size: 1rem;
    font-weight: 600;
    color: #F2EC91;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 0.4rem;
  }
  .footer_section_title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    border-radius: 1px;
  }
  .footer_section_content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .footer_section_content p {
    margin-bottom: 0.6rem;
  }
  .footer_section_content p:last-child {
    margin-bottom: 0;
  }
  .footer_section_content strong {
    color: #F2EC91;
    font-weight: 600;
  }
  .tech_stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.6rem;
  }
  .tech_badge {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  .tech_badge:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
  }
  .c-2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(242, 236, 145, 0.2);
    margin-top: 1.5rem;
    text-align: center;
  }
  .c-2 .layout_item {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .c-2 p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 400;
  }
  .flex {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .flex li {
    list-style: none;
  }
  .flex a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s ease;
  }
  .flex a:hover {
    color: #F2EC91;
  }
  .footer_copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    text-align: center;
    margin-top: 1rem;
  }
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  .footer {
    padding: 2rem 0.3rem;
    min-height: 55vh;
  }
  .footer_inner {
    padding: 0 0.3rem;
  }
  .newsletter_title {
    font-size: 1.1rem;
  }
  .newsletter_subtitle {
    font-size: 0.75rem;
  }
  .contact_item {
    font-size: 0.7rem;
    gap: 0.5rem;
  }
  .contact_item svg {
    width: 12px;
    height: 12px;
  }
  .c-nav-tool_title,
  .footer_section_title {
    font-size: 0.9rem;
  }
  .c-link {
    font-size: 0.7rem;
  }
  .footer_section_content {
    font-size: 0.7rem;
  }
  .tech_badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }
  .c-2 p {
    font-size: 0.7rem;
  }
  .flex a {
    font-size: 0.7rem;
  }
  .footer_copyright {
    font-size: 0.65rem;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  .skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0.5rem;
    width: 100%;
  }
  .skill-category {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 12px;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    max-width: calc(100% - 2rem);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  .skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.5);
  }
  .category-title {
    color: #F2EC91;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(242, 236, 145, 0.3);
  }
  .skill-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .skill-item:last-child {
    margin-bottom: 0;
  }
  .skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .skill-header:hover {
    background: rgba(67, 132, 204, 0.1);
  }
  .skill-name {
    color: #F1F2EE;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
  }
  .skill-level {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 0.5rem;
    white-space: nowrap;
  }
  .skill-level.advanced {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(242, 236, 145, 0.3);
    border: 1px solid rgba(242, 236, 145, 0.5);
  }
  .skill-level.intermediate {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.3), rgba(212, 192, 90, 0.3));
    color: #F2EC91;
    box-shadow: 0 2px 6px rgba(242, 236, 145, 0.2);
    border: 1px solid rgba(242, 236, 145, 0.4);
  }
  .skill-level.beginner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .toggle-icon {
    color: #F2EC91;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(242, 236, 145, 0.1);
    flex-shrink: 0;
  }
  .skill-item.active .toggle-icon {
    transform: rotate(45deg);
  }
  .skill-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.1);
  }
  .skill-item.active .skill-details {
    max-height: 400px;
    transition: max-height 0.4s ease-in;
  }
  .skill-details p {
    color: #E0E0E0;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    padding: 0.8rem 1rem 0.6rem 1rem;
  }
  .skill-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0 1rem 0.8rem 1rem;
  }
  .skill-tech span {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  .skill-tech span:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
  }
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  .skills-grid {
    padding: 0.5rem 0.75rem;
  }
  .skill-category {
    padding: 0.8rem;
    max-width: calc(100% - 1.5rem);
  }
  .category-title {
    font-size: 0.9rem;
  }
  .skill-header {
    padding: 0.6rem 0.8rem;
  }
  .skill-name {
    font-size: 0.8rem;
  }
  .skill-level {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
  }
  .skill-details p {
    font-size: 0.75rem;
    padding: 0.6rem 0.8rem 0.5rem 0.8rem;
  }
  .skill-tech {
    padding: 0 0.8rem 0.6rem 0.8rem;
    gap: 0.25rem;
  }
  .skill-tech span {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  .skill-category {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
  }
  .skill-category.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .skill-category:nth-child(1) {
    transition-delay: 0.1s;
  }
  .skill-category:nth-child(2) {
    transition-delay: 0.2s;
  }
  .skill-category:nth-child(3) {
    transition-delay: 0.3s;
  }
  .skill-category:nth-child(4) {
    transition-delay: 0.4s;
  }
  @keyframes skillFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .skill-item {
    -webkit-tap-highlight-color: rgba(242, 236, 145, 0.2);
    tap-highlight-color: rgba(242, 236, 145, 0.2);
  }
  .skill-header:active {
    background: rgba(67, 132, 204, 0.2);
    transform: scale(0.98);
  }
  .skill-category,
  .skill-item {
    will-change: transform;
    backface-visibility: hidden;
  }
  .skill-name {
    line-height: 1.3;
  }
  .skill-details p {
    text-align: justify;
    hyphens: auto;
  }
  .academic-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0.5rem;
    width: 100%;
    overflow: hidden;
  }
  .academic-mindmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 2rem 0;
  }
  .academic-center {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 25px rgba(242, 236, 145, 0.4);
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 1.5rem;
  }
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  .academic-center::before {
    content: "🎓";
    font-size: 2rem;
    animation: bounce 1s ease-in-out infinite;
  }
  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }
  .academic-center-text {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #F2EC91;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
  }
  .academic-branches {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
  }
  .academic-branch {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
  }
  .academic-branch.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .academic-branch:nth-child(1) {
    transition-delay: 0.1s;
  }
  .academic-branch:nth-child(2) {
    transition-delay: 0.2s;
  }
  .academic-branch:nth-child(3) {
    transition-delay: 0.3s;
  }
  .academic-branch:nth-child(4) {
    transition-delay: 0.4s;
  }
  @keyframes branchAppear {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .academic-node {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 15px;
    padding: 1rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(242, 236, 145, 0.2);
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    max-width: calc(100% - 1rem);
    margin: 0 auto;
  }
  .academic-node::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A, #F2EC91);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  .academic-node::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 236, 145, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .academic-node:hover::before {
    transform: scaleX(1);
  }
  .academic-node:hover::after {
    opacity: 1;
  }
  .academic-node:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  .academic-node-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  .academic-node-title {
    color: #F2EC91;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
  }
  .academic-node-status {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1B3059;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(242, 236, 145, 0.3);
    align-self: flex-start;
  }
  .academic-node-institution {
    color: #B0C4DE;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .academic-node-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
  }
  .academic-node-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.1) rotate(5deg);
  }
  .academic-node-period {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    display: inline-block;
    margin: 0.3rem 0;
  }
  .academic-node-image {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0.8rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
  .academic-node-image:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }
  .academic-node-description {
    color: #E0E0E0;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    text-align: justify;
  }
  .academic-node-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.8rem;
  }
  .academic-node-skill {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  .academic-node-skill:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(67, 132, 204, 0.2);
  }
  .academic-connector {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1rem;
    background: linear-gradient(180deg, #F2EC91, #D4C05A);
    z-index: 5;
  }
  .academic-connector::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #F2EC91;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(242, 236, 145, 0.5);
  }
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  .academic-container {
    padding: 0.5rem 0.3rem;
  }
  .academic-center {
    width: 70px;
    height: 70px;
  }
  .academic-center::before {
    font-size: 1.8rem;
  }
  .academic-center-text {
    font-size: 0.8rem;
    bottom: -18px;
  }
  .academic-node {
    padding: 0.8rem;
    max-width: calc(100% - 0.5rem);
  }
  .academic-node-title {
    font-size: 1rem;
  }
  .academic-node-institution {
    font-size: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .academic-node-image {
    height: 100px;
  }
  .academic-node-description {
    font-size: 0.75rem;
  }
  .academic-node-skill {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  .academic-node {
    -webkit-tap-highlight-color: rgba(242, 236, 145, 0.2);
    tap-highlight-color: rgba(242, 236, 145, 0.2);
  }
  .academic-node:active {
    transform: scale(0.98);
  }
  .academic-node,
  .academic-branch {
    will-change: transform;
    backface-visibility: hidden;
  }
  .timeline-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0.5rem;
    width: 100%;
  }
  .timeline {
    position: relative;
    padding: 1rem 0;
  }
  .timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #F2EC91, #D4C05A, #F2EC91);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(242, 236, 145, 0.3);
  }
  .timeline-item {
    position: relative;
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    text-align: left;
  }
  .timeline-marker {
    position: absolute;
    left: 20px;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border: 3px solid #1B3059;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 15px rgba(242, 236, 145, 0.5);
    transition: all 0.3s ease;
  }
  .timeline-marker:hover {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 25px rgba(242, 236, 145, 0.8);
  }
  .timeline-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #1B3059;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .timeline-content {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    max-width: calc(100% - 2rem);
    width: 80%;
  }
  .timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  .timeline-content::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: -20px;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-right-color: #2A4B76;
  }
  .timeline-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  .timeline-title {
    color: #F2EC91;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
  }
  .timeline-period {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.2), rgba(212, 192, 90, 0.2));
    color: #F2EC91;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(242, 236, 145, 0.3);
    white-space: nowrap;
    align-self: flex-start;
  }
  .timeline-company {
    color: #B0C4DE;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(67, 132, 204, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4384CC;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .company-logo {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
  }
  .company-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
  }
  .timeline-description {
    color: #E0E0E0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: justify;
  }
  .subtimeline {
    margin-top: 1rem;
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }
  .subtimeline.expanded {
    max-height: 1500px;
    transition: max-height 0.4s ease-in;
  }
  .subtimeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(242, 236, 145, 0.6), rgba(212, 192, 90, 0.6));
    border-radius: 1px;
  }
  .subtimeline-item {
    position: relative;
    margin: 1.5rem 0;
    padding-left: 2.5rem;
  }
  .subtimeline-marker {
    position: absolute;
    left: 6px;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border: 2px solid #1B3059;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 10px rgba(242, 236, 145, 0.4);
    transition: all 0.3s ease;
  }
  .subtimeline-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(242, 236, 145, 0.6);
  }
  .subtimeline-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(67, 132, 204, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .subtimeline-content:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(67, 132, 204, 0.4);
    transform: translateX(3px);
  }
  .subtimeline-content.collapsed {
    padding: 0.8rem 1rem;
  }
  .subtimeline-content.collapsed .mission-details,
  .subtimeline-content.collapsed .technologies-used {
    display: none;
  }
  .subtimeline-content.collapsed .subtimeline-description {
    margin-bottom: 0;
  }
  .subtimeline-toggle {
    color: #F2EC91;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    background: rgba(67, 132, 204, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.8rem;
    flex-shrink: 0;
  }
  .subtimeline-content.collapsed .subtimeline-toggle {
    transform: rotate(0deg);
  }
  .subtimeline-content:not(.collapsed) .subtimeline-toggle {
    transform: rotate(45deg);
  }
  .subtimeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .subtimeline-title {
    color: #F2EC91;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.3;
  }
  .subtimeline-description {
    color: #E0E0E0;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
  }
  .mission-details {
    margin-top: 0.8rem;
  }
  .mission-details h5 {
    color: #B0C4DE;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .mission-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .mission-details li {
    color: #E0E0E0;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
  }
  .mission-details li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4384CC;
    font-size: 0.6rem;
  }
  .technologies-used {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(67, 132, 204, 0.2);
  }
  .technologies-used h6 {
    color: #B0C4DE;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  .timeline-container {
    padding: 0.5rem 0.3rem;
  }
  .timeline::before {
    left: 15px;
    width: 2px;
  }
  .timeline-marker {
    left: 15px;
    width: 14px;
    height: 14px;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
  }
  .timeline-content::before {
    left: -15px;
    border-width: 10px;
    border-right-color: #2A4B76;
  }
  .timeline-content {
    padding: 0.8rem;
    max-width: calc(100% - 1.5rem);
    width: 75%;
  }
  .timeline-title {
    font-size: 1rem;
  }
  .timeline-period {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .timeline-company {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  .company-logo {
    height: 20px;
    max-width: 60px;
  }
  .timeline-description {
    font-size: 0.8rem;
  }
  .subtimeline-item {
    padding-left: 2rem;
  }
  .subtimeline::before {
    left: 12px;
  }
  .subtimeline-marker {
    left: 3px;
    width: 12px;
    height: 12px;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  .timeline-item {
    opacity: 0;
    transform: translateY(20px);
    animation: timelineFadeIn 0.6s ease-out forwards;
  }
  .timeline-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  .timeline-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  .timeline-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  .timeline-item:nth-child(4) {
    animation-delay: 0.4s;
  }
  .timeline-item:nth-child(5) {
    animation-delay: 0.5s;
  }
  @keyframes timelineFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .timeline-content,
  .subtimeline-content {
    -webkit-tap-highlight-color: rgba(242, 236, 145, 0.2);
    tap-highlight-color: rgba(242, 236, 145, 0.2);
  }
  .timeline-content:active,
  .subtimeline-content:active {
    transform: scale(0.98);
  }
  .timeline-item,
  .timeline-content,
  .subtimeline-content {
    will-change: transform;
    backface-visibility: hidden;
  }
  .project-toggle {
    background: rgba(67, 132, 204, 0.1);
    border: 1px solid rgba(67, 132, 204, 0.3);
    border-radius: 12px;
    padding: 0.8rem 0.8rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: calc(100% - 1rem);
    margin-left: auto;
    margin-right: auto;
  }
  .project-toggle:hover {
    background: rgba(67, 132, 204, 0.2);
    border-color: rgba(67, 132, 204, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 132, 204, 0.2);
  }
  .project-toggle:active {
    transform: scale(0.98);
  }
  .project-toggle h4 {
    color: #F2EC91;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    line-height: 1.3;
  }
  .project-toggle .toggle-icon {
    color: #F2EC91;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    background: rgba(67, 132, 204, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .project-toggle:hover .toggle-icon {
    background: rgba(67, 132, 204, 0.3);
    transform: scale(1.1);
  }
  .project-toggle.active .toggle-icon {
    transform: rotate(45deg);
  }
  .project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-top: 0.8rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: calc(100% - 1rem);
  }
  .project-toggle.active + .project-details {
    max-height: 2000px;
    transition: max-height 0.4s ease-in;
  }
  .project-details p {
    color: #E0E0E0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    padding: 1rem;
    text-align: justify;
  }
  .project-images {
    display: flex;
    gap: 0.8rem;
    margin: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .project-image {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
  }
  .project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  .project-image:hover img {
    transform: scale(1.1);
  }
  .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
  }
  .project-image:hover .image-overlay {
    opacity: 1;
  }
  .image-overlay span {
    color: #F2EC91;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    padding: 0.3rem;
  }
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  .project-toggle {
    padding: 0.6rem 0.6rem;
    margin-bottom: 0.6rem;
    max-width: calc(100% - 0.5rem);
  }
  .project-toggle h4 {
    font-size: 0.9rem;
  }
  .project-toggle .toggle-icon {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }
  .project-details {
    max-width: calc(100% - 0.5rem);
  }
  .project-details p {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
  .project-images {
    gap: 0.6rem;
    margin: 0.8rem;
  }
  .project-image {
    width: 100px;
    height: 70px;
  }
  .image-overlay span {
    font-size: 0.65rem;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  .project-toggle,
  .project-image {
    -webkit-tap-highlight-color: rgba(242, 236, 145, 0.2);
    tap-highlight-color: rgba(242, 236, 145, 0.2);
  }
  .project-toggle,
  .project-details,
  .project-image {
    will-change: transform;
    backface-visibility: hidden;
  }
  .projects-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1rem;
    align-items: center;
  }
  .project-card {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: fit-content;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    width: 100%;
    max-width: calc(100% - 2rem);
    margin: 0 auto;
  }
  .project-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .project-card:nth-child(1) {
    transition-delay: 0.1s;
  }
  .project-card:nth-child(2) {
    transition-delay: 0.2s;
  }
  .project-card:nth-child(3) {
    transition-delay: 0.3s;
  }
  .project-card:nth-child(4) {
    transition-delay: 0.4s;
  }
  @keyframes projectFadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A, #F2EC91);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  .project-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 236, 145, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .project-card:hover::before {
    transform: scaleX(1);
  }
  .project-card:hover::after {
    opacity: 1;
  }
  .project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  .project-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  .project-title {
    color: #F2EC91;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    flex: 1;
  }
  .project-year {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.2), rgba(212, 192, 90, 0.2));
    color: #F2EC91;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(242, 236, 145, 0.3);
    white-space: nowrap;
    align-self: flex-start;
  }
  .project-role {
    color: #B0C4DE;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(67, 132, 204, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4384CC;
  }
  .project-description {
    color: #E0E0E0;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: justify;
  }
  .project-responsibilities {
    margin-bottom: 1rem;
  }
  .project-responsibilities h4 {
    color: #F2EC91;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .project-responsibilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .project-responsibilities li {
    color: #E0E0E0;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
  }
  .project-responsibilities li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4384CC;
    font-size: 0.6rem;
  }
  .project-technologies {
    margin-bottom: 1rem;
  }
  .project-technologies h4 {
    color: #F2EC91;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .project-tech-item {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  .project-tech-item:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(67, 132, 204, 0.2);
  }
  .project-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
  }
  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: rgba(242, 236, 145, 0.1);
    color: #F2EC91;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(242, 236, 145, 0.3);
    transition: all 0.3s ease;
  }
  .project-link:hover {
    background: rgba(242, 236, 145, 0.2);
    border-color: rgba(242, 236, 145, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 236, 145, 0.2);
  }
  .project-link:active {
    transform: scale(0.98);
  }
  .iframe-preview {
    margin-top: 1.5rem;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.3) 0%, rgba(42, 75, 118, 0.2) 50%, rgba(25, 23, 38, 0.4) 100%);
    border: 1px solid rgba(242, 236, 145, 0.2);
    position: relative;
  }
  .iframe-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(242, 236, 145, 0.4);
  }
  .iframe-placeholder {
    padding: 2rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.4) 0%, rgba(42, 75, 118, 0.3) 50%, rgba(25, 23, 38, 0.5) 100%);
  }
  .iframe-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
  }
  .iframe-preview h4 {
    font-size: 1.2rem;
    color: #F2EC91;
    margin: 0 0 0.8rem 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  .iframe-preview p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
  }
  .view-button {
    background: linear-gradient(135deg, rgba(67, 132, 204, 0.8) 0%, rgba(42, 75, 118, 0.9) 50%, rgba(27, 48, 89, 0.95) 100%);
    color: #F2EC91;
    border: 2px solid rgba(242, 236, 145, 0.3);
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
  }
  .view-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 236, 145, 0.2), transparent);
    transition: left 0.6s ease;
  }
  .view-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(67, 132, 204, 0.9) 0%, rgba(42, 75, 118, 0.95) 50%, rgb(27, 48, 89) 100%);
    border-color: rgba(242, 236, 145, 0.6);
    box-shadow: 0 6px 20px rgba(67, 132, 204, 0.4);
    color: #FFFFFF;
  }
  .view-button:hover::before {
    left: 100%;
  }
  .view-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(67, 132, 204, 0.3);
  }
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  .projects-container {
    padding: 0.5rem 0.5rem;
    gap: 1rem;
  }
  .project-card {
    padding: 0.8rem;
    max-width: calc(100% - 1rem);
  }
  .project-title {
    font-size: 1rem;
  }
  .project-year {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  .project-role {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  .project-description {
    font-size: 0.75rem;
  }
  .project-responsibilities h4,
  .project-technologies h4 {
    font-size: 0.8rem;
  }
  .project-responsibilities li {
    font-size: 0.7rem;
  }
  .project-tech-item {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }
  .project-link {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
  .iframe-preview {
    margin-top: 1.2rem;
  }
  .iframe-placeholder {
    padding: 1.5rem;
  }
  .iframe-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }
  .iframe-preview h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  .iframe-preview p {
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
  }
  .view-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  .project-card,
  .project-link {
    -webkit-tap-highlight-color: rgba(242, 236, 145, 0.2);
    tap-highlight-color: rgba(242, 236, 145, 0.2);
  }
  .project-card:active {
    transform: scale(0.98);
  }
  .project-card {
    will-change: transform;
    backface-visibility: hidden;
  }
  .contact-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0.5rem;
    width: 100%;
    background-image: url("../img/planete-avec-anneau.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contact-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.8) 0%, rgba(42, 75, 118, 0.7) 50%, rgba(25, 23, 38, 0.9) 100%);
    z-index: 1;
  }
  .contact-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: calc(100% - 1rem);
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.15) 0%, rgba(25, 23, 38, 0.2) 100%);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(242, 236, 145, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(242, 236, 145, 0.2);
    transition: all 0.4s ease;
    overflow: hidden;
    box-sizing: border-box;
  }
  .contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(242, 236, 145, 0.5), rgba(67, 132, 204, 0.5), rgba(242, 236, 145, 0.5), transparent);
    animation: shimmer 3s ease-in-out infinite;
  }
  @keyframes shimmer {
    0%, 100% {
      opacity: 0.3;
    }
    50% {
      opacity: 1;
    }
  }
  .contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(242, 236, 145, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  .contact-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
  }
  .contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F2EC91;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    line-height: 1.3;
  }
  .contact-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.4;
  }
  .contact-form {
    position: relative;
  }
  .contact-form .form-group {
    margin-bottom: 1.2rem;
  }
  .contact-form .row {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .contact-form .row:not(:last-child) {
    margin-bottom: 0.8rem;
  }
  .contact-form .row:last-child {
    margin-top: 1.5rem;
  }
  .contact-form .d-flex {
    gap: 2rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    display: flex !important;
  }
  .contact-form .col-12 .d-flex {
    gap: 2rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    display: flex !important;
  }
  .contact-form .row .col-12 .d-flex {
    gap: 2rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
  }
  .contact-form .row .col-12 .d-flex #effacer,
  .contact-form .row .col-12 .d-flex #envoyer {
    width: 140px !important;
    margin: 0 !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    flex: none !important;
  }
  .contact-form .col-md-6 {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: block;
    margin-bottom: 0.8rem;
  }
  .contact-form .col-md-6:last-child {
    margin-bottom: 0;
  }
  .contact-form .col-12 {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .contact-form .form-label {
    display: block;
    color: #F2EC91;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .contact-form .form-control {
    min-width: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(242, 236, 145, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
  }
  .contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
  }
  .contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #F2EC91;
    box-shadow: 0 0 0 2px rgba(242, 236, 145, 0.2), 0 4px 12px rgba(242, 236, 145, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    outline: none;
  }
  .contact-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
  }
  .contact-form .btn {
    width: 140px;
    margin: 0;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(67, 132, 204, 0.2);
    color: #F2EC91;
    border: 1px solid rgba(67, 132, 204, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  #effacer, #envoyer {
    width: 140px !important;
    margin: 0 !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    flex: none !important;
  }
  .contact-form .d-flex #effacer,
  .contact-form .d-flex #envoyer {
    width: 140px !important;
    margin: 0 !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    flex: none !important;
  }
  #effacer {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #F2EC91 !important;
    border: 1px solid rgba(220, 53, 69, 0.4) !important;
  }
  #effacer:hover {
    background: rgba(220, 53, 69, 0.3) !important;
    border-color: rgba(220, 53, 69, 0.6) !important;
    transform: translateY(-1px) !important;
  }
  #envoyer {
    background: rgba(67, 132, 204, 0.2) !important;
    color: #F2EC91 !important;
    border: 1px solid rgba(67, 132, 204, 0.4) !important;
  }
  #envoyer:hover {
    background: rgba(67, 132, 204, 0.3) !important;
    border-color: rgba(67, 132, 204, 0.6) !important;
    transform: translateY(-1px) !important;
  }
  .contact-form .btn:hover {
    background: rgba(67, 132, 204, 0.3);
    border-color: rgba(67, 132, 204, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 132, 204, 0.3);
  }
  .contact-form .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(67, 132, 204, 0.2);
  }
}
@media screen and (max-aspect-ratio: 4/4) and (max-width: 360px) {
  .contact-container {
    padding: 0.5rem 0.3rem;
  }
  .contact-card {
    padding: 1.2rem;
    max-width: calc(100% - 0.5rem);
  }
  .contact-title {
    font-size: 1.3rem;
  }
  .contact-subtitle {
    font-size: 0.8rem;
  }
  .contact-form .form-label {
    font-size: 0.75rem;
  }
  .contact-form .form-control {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
  .contact-form .form-control::placeholder {
    font-size: 0.8rem;
  }
  .contact-form textarea.form-control {
    min-height: 80px;
  }
  .contact-form .row:last-child {
    margin-top: 1.2rem;
  }
  .contact-form .d-flex {
    gap: 1.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    display: flex !important;
  }
  .contact-form .col-12 .d-flex {
    gap: 1.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    display: flex !important;
  }
  .contact-form .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
    width: 120px;
  }
  #effacer, #envoyer {
    width: 120px !important;
    padding: 0.7rem 1.2rem !important;
    font-size: 0.8rem !important;
  }
}
@media screen and (max-aspect-ratio: 4/4) {
  .contact-form .form-control,
  .contact-form .btn {
    -webkit-tap-highlight-color: rgba(242, 236, 145, 0.2);
    tap-highlight-color: rgba(242, 236, 145, 0.2);
  }
  .contact-form .btn:active {
    transform: scale(0.98);
  }
  .contact-card {
    will-change: transform;
    backface-visibility: hidden;
  }
  .contact-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  .contact-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  @keyframes contactFadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media screen and (min-aspect-ratio: 4/4) and (max-aspect-ratio: 16/9) {
  @keyframes zoomFaux {
    0% {
      font-size: 0;
      opacity: 0;
    }
    50% {
      font-size: 7.5vh;
      opacity: 0.5;
    }
    100% {
      font-size: 15vh;
      opacity: 1;
    }
  }
  @keyframes zoomClement {
    0% {
      font-size: 0;
      opacity: 0;
    }
    50% {
      font-size: 10vh;
      opacity: 0.5;
    }
    100% {
      font-size: 20vh;
      opacity: 1;
    }
  }
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  #mainpage {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    color: white;
    padding: 0;
    margin: 0;
    border: 0;
    background-color: #191726;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Scrollbar personnalisée */
    /* Section d'accueil avec image de fond */
    /* Structure de base pour le menu latéral */
    /* Ajustement du contenu principal */
    /* Forcer l'affichage du menu en mode tablette après le premier scroll */
    /* Style du menu */
    /* Loader */
    /* Hériter des styles modernes du desktop */
    /* Ajustements spécifiques pour tablette */
    /* Photo de profil et texte de présentation */
    /* Section des compétences */
    /* Parcours académique - Design mindmap adapté pour tablette */
    /* Expériences professionnelles - Timeline adaptée pour tablette */
    /* Styles pour les boutons tiroir des projets */
    /* Styles pour les détails des projets */
    /* Sous-timeline pour les missions détaillées */
    /* Gestion des images dans la timeline */
    /* Gestion des badges dans la timeline */
    /* Style général des badges (comme en desktop) */
    /* Mini menu flottant en bas à droite */
    /* Animation d'apparition du menu */
    /* Responsive pour le menu flottant */
    /* Section des projets - Design en cartes adapté pour tablette */
    /* Styles pour les titres h2 - Version centrée et animée */
    /* Adaptation du formulaire de contact */
    /* Masquer les éléments non nécessaires en mode tablette */
    /* Hériter des animations et transitions du desktop */
    /* Ajustements responsive supplémentaires */
  }
  #mainpage::-webkit-scrollbar {
    width: 8px;
    background-color: #191726;
  }
  #mainpage::-webkit-scrollbar-track {
    background-color: #191726;
  }
  #mainpage::-webkit-scrollbar-thumb {
    background-color: rgba(27, 48, 89, 0.7);
    border-radius: 4px;
  }
  #mainpage::-webkit-scrollbar-thumb:hover {
    background-color: rgb(27, 48, 89);
  }
  #mainpage #acceuil {
    height: 100vh;
    width: 100%;
    background-image: url("../img/terre_acceuil.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
    margin: 0;
    border: 0;
    color: white;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
  }
  #mainpage #acceuil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(27, 48, 89, 0.1) 0%, rgba(27, 48, 89, 0.3) 30%, rgba(27, 48, 89, 0.5) 60%, rgba(27, 48, 89, 0.7) 80%, rgba(27, 48, 89, 0.9) 100%);
    z-index: 1;
  }
  #mainpage #acceuil > * {
    position: relative;
    z-index: 2;
  }
  #mainpage #acceuil p {
    font-size: 2vh;
    padding: 1.2rem;
    width: 50vw;
    text-align: justify;
    color: #F2EC91;
    background: rgba(4, 4, 14, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(242, 236, 145, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: "Consolas", monospace;
    line-height: 1.6;
    position: absolute;
    top: 10vh;
    left: 2vw;
    min-height: 10vh;
    z-index: 10;
    /* Barre de terminal */
    /* Points de contrôle du terminal */
  }
  #mainpage #acceuil p::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: rgba(74, 144, 226, 0.05);
    border-bottom: 1px solid rgba(242, 236, 145, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  #mainpage #acceuil p::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 10px;
    width: 12px;
    height: 12px;
    background: #FF605C;
    border-radius: 50%;
    box-shadow: 20px 0 0 #FFBD44, 40px 0 0 #00CA4E;
    z-index: 1;
  }
  #mainpage #acceuil h1 {
    margin: 0;
    padding: 0;
    margin-left: 1vw;
    text-shadow: 0 0 30px rgba(242, 236, 145, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    position: absolute;
    left: 0;
  }
  #mainpage #acceuil h1.unselectable.layout {
    display: none;
  }
  #mainpage #acceuil h1.unselectable.pc {
    display: block;
    opacity: 0;
  }
  #mainpage #acceuil h1.unselectable.pc:nth-of-type(3) {
    top: 45vh;
    max-width: 90vw;
    font-size: 20vh;
    animation: simpleFadeIn 1.5s ease-out 0.5s both;
    color: #F2EC91;
  }
  #mainpage #acceuil h1.unselectable.pc:last-of-type {
    top: 70vh;
    font-size: 25vh;
    max-width: 90vw;
    animation: simpleFadeIn 1.5s ease-out 1s both;
    color: #F2EC91;
  }
  @keyframes simpleFadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px) translateZ(0);
    }
    100% {
      opacity: 1;
      transform: translateY(0) translateZ(0);
    }
  }
  #mainpage header {
    display: none !important;
    top: 0;
    transition: 0.3s;
  }
  #mainpage header.scrolled {
    display: inline-block !important;
    position: fixed;
    width: 20vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.95), rgba(25, 23, 38, 0.98));
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(242, 236, 145, 0.2);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }
  #mainpage main {
    display: block;
    position: relative;
    width: 100vw;
    background-color: #191726;
    left: 0;
    top: 0;
    transition: 0.3s;
    min-height: 100vh;
  }
  #mainpage main.scrolled {
    display: block;
    position: relative;
    left: 20vw;
    width: 80vw;
  }
  #mainpage body.scrolled header {
    display: inline-block !important;
    position: fixed;
    width: 20vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.95), rgba(25, 23, 38, 0.98));
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(242, 236, 145, 0.2);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }
  #mainpage body.scrolled main {
    display: block !important;
    position: relative !important;
    left: 20vw !important;
    width: 80vw !important;
  }
  #mainpage #menu {
    padding: 2rem 0;
    list-style: none;
  }
  #mainpage #menu li {
    margin: 0.5rem 0;
    padding: 0 1.5rem;
  }
  #mainpage #menu li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  #mainpage #menu li a:hover {
    color: #F2EC91;
    background: rgba(242, 236, 145, 0.1);
    transform: translateX(5px);
  }
  #mainpage #menu li a img {
    width: 24px;
    height: auto;
    margin-right: 10px;
    transition: transform 0.3s ease;
  }
  #mainpage #menu li a:hover img {
    transform: scale(1.1);
  }
  #mainpage .loader {
    width: 80px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 9999;
  }
  #mainpage .loader .loader-bar {
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #1b3059, #4a90e2);
    border-radius: 3px;
    position: absolute;
    animation: loaderWave 1.2s ease-in-out infinite;
  }
  #mainpage .loader .loader-bar:nth-child(1) {
    left: 0px;
    animation-delay: 0s;
  }
  #mainpage .loader .loader-bar:nth-child(2) {
    left: 12px;
    animation-delay: 0.1s;
  }
  #mainpage .loader .loader-bar:nth-child(3) {
    left: 24px;
    animation-delay: 0.2s;
  }
  #mainpage .loader .loader-bar:nth-child(4) {
    left: 36px;
    animation-delay: 0.3s;
  }
  #mainpage .loader .loader-bar:nth-child(5) {
    left: 48px;
    animation-delay: 0.4s;
  }
  #mainpage .loader .loader-bar:nth-child(6) {
    left: 60px;
    animation-delay: 0.5s;
  }
  #mainpage .loader .loader-bar:nth-child(7) {
    left: 72px;
    animation-delay: 0.6s;
  }
  #mainpage .loader .loader-text {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 25px;
    color: #1b3059;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    animation: loaderFade 2s ease-in-out infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  @keyframes loaderWave {
    0%, 40%, 100% {
      transform: scaleY(0.4);
      opacity: 0.7;
    }
    20% {
      transform: scaleY(1);
      opacity: 1;
    }
  }
  @keyframes loaderFade {
    0%, 100% {
      opacity: 0.6;
    }
    50% {
      opacity: 1;
    }
  }
  #mainpage .section-header,
  #mainpage .futuristic-title,
  #mainpage .skills-grid,
  #mainpage .projects-container,
  #mainpage .timeline-container,
  #mainpage .academic-container,
  #mainpage .footer {
    box-sizing: border-box;
    width: 80vw;
    margin-left: 20vw;
    max-width: none;
    padding-left: 1vw;
    padding-top: 4vh;
    padding-right: 1rem;
  }
  #mainpage .skills-grid,
  #mainpage .projects-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  #mainpage .project-card,
  #mainpage .skill-category {
    padding: 1.5rem;
  }
  #mainpage #photo_profil {
    position: relative;
    float: right;
    margin-right: 4vw;
    z-index: 2;
    width: 18vw;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border: 3px solid #F1F2EE;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(#4384CC, #F1F2EE);
    transition: all 0.5s ease;
    animation: zoom 0.7s ease-in-out;
  }
  #mainpage #photo_profil:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(67, 132, 204, 0.4);
  }
  @keyframes zoom {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
  #mainpage .text {
    text-align: justify;
    font-size: 1.8vh;
    width: 60%;
    margin: 1rem 6vw !important;
    color: #F1F2EE;
    background-color: #1B3059;
    padding: 2vh 4vw;
    border-radius: 40px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
  }
  #mainpage .text:hover {
    background-color: #04040E;
    transform: scale(1.05);
    margin: 2vh 6vw !important;
  }
  #mainpage .skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  #mainpage .skill-category {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 70%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.5);
  }
  #mainpage .category-title {
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(242, 236, 145, 0.3);
  }
  #mainpage .skill-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  #mainpage .skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  #mainpage .skill-item:last-child {
    margin-bottom: 0;
  }
  #mainpage .skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  #mainpage .skill-header:hover {
    background: rgba(67, 132, 204, 0.1);
  }
  #mainpage .skill-name {
    color: #F1F2EE;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
  }
  #mainpage .skill-level {
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.8rem;
  }
  #mainpage .skill-level.advanced {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(242, 236, 145, 0.3);
    border: 1px solid rgba(242, 236, 145, 0.5);
  }
  #mainpage .skill-level.intermediate {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.3), rgba(212, 192, 90, 0.3));
    color: #F2EC91;
    box-shadow: 0 2px 6px rgba(242, 236, 145, 0.2);
    border: 1px solid rgba(242, 236, 145, 0.4);
  }
  #mainpage .skill-level.beginner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  #mainpage .toggle-icon {
    color: #F2EC91;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(242, 236, 145, 0.1);
  }
  #mainpage .skill-item.active .toggle-icon {
    transform: rotate(45deg);
  }
  #mainpage .skill-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.1);
  }
  #mainpage .skill-item.active .skill-details {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
  }
  #mainpage .skill-details p {
    color: #E0E0E0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    padding: 1rem 1.2rem 0.8rem 1.2rem;
  }
  #mainpage .skill-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1.2rem 1rem 1.2rem;
  }
  #mainpage .skill-tech span {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .skill-tech span:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
  }
  #mainpage .academic-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
  }
  #mainpage .academic-mindmap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 3rem 0;
  }
  #mainpage .academic-center {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 30px rgba(242, 236, 145, 0.4);
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 2rem;
  }
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  #mainpage .academic-center::before {
    content: "🎓";
    font-size: 2.5rem;
    animation: bounce 1s ease-in-out infinite;
  }
  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }
  #mainpage .academic-center-text {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #F2EC91;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
  }
  #mainpage .academic-branches {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 450px;
  }
  #mainpage .academic-branch {
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: branchAppear 0.8s ease-out forwards;
  }
  #mainpage .academic-branch:nth-child(1) {
    animation-delay: 0.2s;
  }
  #mainpage .academic-branch:nth-child(2) {
    animation-delay: 0.4s;
  }
  #mainpage .academic-branch:nth-child(3) {
    animation-delay: 0.6s;
  }
  #mainpage .academic-branch:nth-child(4) {
    animation-delay: 0.8s;
  }
  @keyframes branchAppear {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  #mainpage .academic-node {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(242, 236, 145, 0.2);
    overflow: hidden;
    cursor: pointer;
  }
  #mainpage .academic-node::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A, #F2EC91);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  #mainpage .academic-node::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 236, 145, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  #mainpage .academic-node:hover::before {
    transform: scaleX(1);
  }
  #mainpage .academic-node:hover::after {
    opacity: 1;
  }
  #mainpage .academic-node:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  #mainpage .academic-node-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
  }
  #mainpage .academic-node-title {
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
  }
  #mainpage .academic-node-status {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1B3059;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(242, 236, 145, 0.3);
  }
  #mainpage .academic-node-institution {
    color: #B0C4DE;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  #mainpage .academic-node-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
  }
  #mainpage .academic-node-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.1) rotate(5deg);
  }
  #mainpage .academic-node-period {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    display: inline-block;
    margin: 0.4rem 0;
  }
  #mainpage .academic-node-image {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
    margin: 1rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .academic-node-image:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  #mainpage .academic-node-description {
    color: #E0E0E0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    text-align: justify;
  }
  #mainpage .academic-node-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.8rem;
  }
  #mainpage .academic-node-skill {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .academic-node-skill:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(67, 132, 204, 0.2);
  }
  #mainpage .academic-connector {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1.5rem;
    background: linear-gradient(180deg, #F2EC91, #D4C05A);
    z-index: 5;
  }
  #mainpage .academic-connector::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #F2EC91;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(242, 236, 145, 0.5);
  }
  #mainpage .timeline-container {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  #mainpage .timeline {
    position: relative;
    padding: 2rem 0;
  }
  #mainpage .timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #F2EC91, #D4C05A, #F2EC91);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(242, 236, 145, 0.3);
  }
  #mainpage .timeline-item {
    position: relative;
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  #mainpage .timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
  }
  #mainpage .timeline-item:nth-child(odd) .timeline-content,
  #mainpage .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }
  #mainpage .timeline-marker {
    position: absolute;
    left: 30px;
    top: 2rem;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border: 3px solid #1B3059;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 15px rgba(242, 236, 145, 0.5);
    transition: all 0.3s ease;
  }
  #mainpage .timeline-marker:hover {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 25px rgba(242, 236, 145, 0.8);
  }
  #mainpage .timeline-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #1B3059;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  #mainpage .timeline-content {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    max-width: 450px;
  }
  #mainpage .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  #mainpage .timeline-content::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: -30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right-color: #2A4B76;
  }
  #mainpage .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
  }
  #mainpage .timeline-title {
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
  }
  #mainpage .timeline-period {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.2), rgba(212, 192, 90, 0.2));
    color: #F2EC91;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(242, 236, 145, 0.3);
    white-space: nowrap;
    margin-left: 1rem;
  }
  #mainpage .timeline-company {
    color: #B0C4DE;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(67, 132, 204, 0.1);
    border-radius: 10px;
    border-left: 3px solid #4384CC;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }
  #mainpage .company-logo {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
  }
  #mainpage .company-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
  }
  #mainpage .timeline-description {
    color: #E0E0E0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    text-align: justify;
  }
  #mainpage .timeline-projects {
    margin-top: 1.2rem;
  }
  #mainpage .project-toggle {
    background: rgba(67, 132, 204, 0.1);
    border: 1px solid rgba(67, 132, 204, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #mainpage .project-toggle:hover {
    background: rgba(67, 132, 204, 0.2);
    border-color: rgba(67, 132, 204, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 132, 204, 0.2);
  }
  #mainpage .project-toggle h4 {
    color: #F2EC91;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  #mainpage .project-toggle .toggle-icon {
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    background: rgba(67, 132, 204, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #mainpage .project-toggle:hover .toggle-icon {
    background: rgba(67, 132, 204, 0.3);
    transform: scale(1.1);
  }
  #mainpage .project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-top: 0.8rem;
  }
  #mainpage .project-details.expanded {
    max-height: 2000px;
    transition: max-height 0.4s ease-in;
  }
  #mainpage .subtimeline {
    margin-top: 1.2rem;
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }
  #mainpage .subtimeline.expanded {
    max-height: 2000px;
    transition: max-height 0.4s ease-in;
  }
  #mainpage .subtimeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(242, 236, 145, 0.6), rgba(212, 192, 90, 0.6));
    border-radius: 1px;
  }
  #mainpage .subtimeline-item {
    position: relative;
    margin: 1.5rem 0;
    padding-left: 2.5rem;
  }
  #mainpage .subtimeline-marker {
    position: absolute;
    left: 6px;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    border: 3px solid #1B3059;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 12px rgba(242, 236, 145, 0.4);
    transition: all 0.3s ease;
  }
  #mainpage .subtimeline-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(242, 236, 145, 0.6);
  }
  #mainpage .subtimeline-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(67, 132, 204, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  #mainpage .subtimeline-content:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(67, 132, 204, 0.4);
    transform: translateX(5px);
  }
  #mainpage .subtimeline-content.collapsed {
    padding: 0.8rem 1.2rem;
  }
  #mainpage .subtimeline-content.collapsed .mission-details,
  #mainpage .subtimeline-content.collapsed .technologies-used {
    display: none;
  }
  #mainpage .subtimeline-content.collapsed .subtimeline-description {
    margin-bottom: 0;
  }
  #mainpage .subtimeline-toggle {
    color: #F2EC91;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    background: rgba(67, 132, 204, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.8rem;
  }
  #mainpage .subtimeline-content.collapsed .subtimeline-toggle {
    transform: rotate(0deg);
  }
  #mainpage .subtimeline-content:not(.collapsed) .subtimeline-toggle {
    transform: rotate(45deg);
  }
  #mainpage .subtimeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
  }
  #mainpage .subtimeline-title {
    color: #F2EC91;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
  }
  #mainpage .subtimeline-description {
    color: #E0E0E0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }
  #mainpage .mission-details {
    margin-top: 0.8rem;
  }
  #mainpage .mission-details h5 {
    color: #B0C4DE;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mainpage .mission-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #mainpage .mission-details li {
    color: #E0E0E0;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
  }
  #mainpage .mission-details li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4384CC;
    font-size: 0.6rem;
  }
  #mainpage .technologies-used {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(67, 132, 204, 0.2);
  }
  #mainpage .technologies-used h6 {
    color: #B0C4DE;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mainpage .technologies-used .tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  #mainpage .tech-badge {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  #mainpage .tech-badge:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
  }
  #mainpage .project-images {
    display: flex;
    gap: 0.8rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  #mainpage .project-image {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  #mainpage .project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  #mainpage .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  #mainpage .project-image:hover img {
    transform: scale(1.1);
  }
  #mainpage .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  #mainpage .project-image:hover .image-overlay {
    opacity: 1;
  }
  #mainpage .zoom-icon {
    color: #F2EC91;
    font-size: 1.2rem;
  }
  #mainpage .project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
  }
  #mainpage .project-badges .badge {
    display: inline-flex;
    align-items: center;
    margin: 2px;
    padding: 3px 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 12px;
    max-width: 150px;
    white-space: nowrap;
  }
  #mainpage .project-badges .badge img {
    height: 20px;
    margin-right: 8px;
  }
  #mainpage .project-badges .badge span {
    font-size: 14px;
    font-weight: bold;
    color: #F1F2EE;
  }
  #mainpage .badge {
    display: inline-flex;
    align-items: center;
    margin: 5px;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 14px;
    max-width: 200px;
    white-space: nowrap;
  }
  #mainpage .badge img {
    height: 20px;
    margin-right: 8px;
  }
  #mainpage .badge span {
    font-size: 14px;
    font-weight: bold;
    color: #F1F2EE;
  }
  #mainpage #contact {
    display: block;
    position: fixed;
    z-index: 1000;
    width: 60px;
    height: 140px;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.9), rgba(25, 23, 38, 0.95));
    bottom: 20px;
    right: 20px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    transition: all 0.5s ease;
    opacity: 0.7;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 236, 145, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  #mainpage #contact:hover {
    border: 2px solid #F2EC91;
    border-bottom: 0;
    border-right: 0;
    z-index: 1001;
    opacity: 1;
    transform: translateX(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  }
  #mainpage #contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    justify-content: space-around;
  }
  #mainpage #contact a {
    display: block;
    margin: 0.2rem 0;
    transition: all 0.3s ease;
  }
  #mainpage #contact img {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    transition: all 0.3s ease;
    animation: zoom 0.7s ease-in-out;
    filter: brightness(0.9);
  }
  #mainpage #contact img:hover {
    transform: scale(1.2);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(242, 236, 145, 0.3);
  }
  @keyframes contactSlideIn {
    from {
      transform: translateX(100px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 0.7;
    }
  }
  #mainpage #contact {
    animation: contactSlideIn 0.8s ease-out 1s both;
  }
  /* Section Contact - Design moderne adapté pour tablette */
  /* Responsive pour le formulaire de contact */
  /* Footer - Design moderne adapté pour tablette */
  /* Ajustement pour la deuxième grille du footer */
  /* Force la répartition sur 2 colonnes */
}
@media screen and (min-aspect-ratio: 4/4) and (max-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage #contact {
    width: 55px;
    height: 120px;
    bottom: 15px;
    right: 15px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
  }
  #mainpage #contact img {
    width: 22px;
    height: 22px;
  }
}
@media screen and (min-aspect-ratio: 4/4) and (max-aspect-ratio: 16/9) and (max-width: 480px) {
  #mainpage #contact {
    width: 50px;
    height: 110px;
    bottom: 10px;
    right: 10px;
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
  }
  #mainpage #contact img {
    width: 20px;
    height: 20px;
  }
}
@media screen and (min-aspect-ratio: 4/4) and (max-aspect-ratio: 16/9) {
  #mainpage .projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    align-items: start;
  }
  #mainpage .project-card {
    background: linear-gradient(135deg, #1B3059 0%, #2A4B76 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: fit-content;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
  }
  #mainpage .project-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  #mainpage .project-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  #mainpage .project-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  #mainpage .project-card:nth-child(4) {
    animation-delay: 0.4s;
  }
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  #mainpage .project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A, #F2EC91);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  #mainpage .project-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 236, 145, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  #mainpage .project-card:hover::before {
    transform: scaleX(1);
  }
  #mainpage .project-card:hover::after {
    opacity: 1;
  }
  #mainpage .project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 236, 145, 0.6);
  }
  #mainpage .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
  }
  #mainpage .project-title {
    color: #F2EC91;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
    line-height: 1.3;
  }
  #mainpage .project-year {
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.2), rgba(212, 192, 90, 0.2));
    color: #F2EC91;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(242, 236, 145, 0.3);
    white-space: nowrap;
    margin-left: 0.8rem;
  }
  #mainpage .project-role {
    color: #B0C4DE;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(67, 132, 204, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4384CC;
  }
  #mainpage .project-description {
    color: #E0E0E0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    text-align: justify;
  }
  #mainpage .project-responsibilities {
    margin-bottom: 1.2rem;
  }
  #mainpage .project-responsibilities h4 {
    color: #F2EC91;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mainpage .project-responsibilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #mainpage .project-responsibilities li {
    color: #E0E0E0;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
  }
  #mainpage .project-responsibilities li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4384CC;
    font-size: 0.6rem;
  }
  #mainpage .project-technologies {
    margin-top: 1.2rem;
  }
  #mainpage .project-technologies h4 {
    color: #F2EC91;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mainpage .project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
  }
  #mainpage .project-badges .badge {
    display: inline-flex;
    align-items: center;
    margin: 3px;
    padding: 4px 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 12px;
    max-width: 150px;
    white-space: nowrap;
  }
  #mainpage .project-badges .badge img {
    height: 16px;
    margin-right: 6px;
  }
  #mainpage .project-badges .badge span {
    font-size: 12px;
    font-weight: bold;
    color: #F1F2EE;
  }
  #mainpage .project-image-container {
    position: relative;
    display: block;
    margin: 1rem auto;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    text-align: center;
  }
  #mainpage .project-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
  }
  #mainpage .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
  }
  #mainpage .zoom-icon {
    font-size: 1.5rem;
    color: #F2EC91;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  #mainpage .project-image-container:hover .image-overlay {
    opacity: 1;
  }
  #mainpage .project-image-container:hover .project-image {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  #mainpage .iframe-preview {
    margin-top: 1rem;
    cursor: pointer;
  }
  #mainpage .iframe-placeholder {
    background: linear-gradient(135deg, rgba(67, 132, 204, 0.1), rgba(242, 236, 145, 0.1));
    border: 2px dashed rgba(67, 132, 204, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
  }
  #mainpage .iframe-placeholder:hover {
    background: linear-gradient(135deg, rgba(67, 132, 204, 0.2), rgba(242, 236, 145, 0.2));
    border-color: rgba(67, 132, 204, 0.5);
    transform: translateY(-2px);
  }
  #mainpage .iframe-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }
  #mainpage .iframe-placeholder h4 {
    color: #F2EC91;
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  #mainpage .iframe-placeholder p {
    color: #E0E0E0;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
  }
  #mainpage .view-button {
    background: linear-gradient(135deg, #4384CC, #F2EC91);
    color: #1B3059;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(67, 132, 204, 0.3);
  }
  #mainpage .view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 132, 204, 0.4);
  }
  #mainpage .section-header {
    position: relative;
    margin: 6vh 0 4vh 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 3;
  }
  #mainpage .futuristic-title-container {
    position: relative;
    display: inline-block;
    text-align: center;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    z-index: 5;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  #mainpage .futuristic-title-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  #mainpage .futuristic-title {
    position: relative;
    font-size: 2.5em;
    font-weight: 700;
    color: #F2EC91;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
    display: inline-block;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    text-shadow: 0 0 10px rgba(242, 236, 145, 0.8), 0 0 20px rgba(74, 144, 226, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 1px rgba(242, 236, 145, 0.9);
    animation: titleSlideIn 1s ease-out, titleGlow 3s ease-in-out infinite alternate 1s;
  }
  #mainpage .futuristic-title:hover .title-text {
    transform: translateY(-2px);
    text-shadow: 0 0 30px rgba(242, 236, 145, 0.6);
  }
  #mainpage .title-text {
    position: relative;
    z-index: 2;
    display: block;
    transform: translateY(0);
    transition: all 0.3s ease;
  }
  #mainpage .title-line {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #4A90E2;
    border-radius: 2px;
    animation: lineExpand 1.5s ease-out 0.5s forwards, lineFadeOut 0.5s ease-out 3s forwards;
  }
  @keyframes titleSlideIn {
    0% {
      opacity: 0;
      transform: translateY(50px) scale(0.8);
    }
    50% {
      opacity: 0.7;
      transform: translateY(-10px) scale(1.05);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  @keyframes titleGlow {
    0% {
      text-shadow: 0 0 10px rgba(242, 236, 145, 0.8), 0 0 20px rgba(74, 144, 226, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    100% {
      text-shadow: 0 0 15px rgb(242, 236, 145), 0 0 30px rgba(74, 144, 226, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
  }
  @keyframes lineExpand {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }
  @keyframes lineFadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  #mainpage .futuristic-title.animate-in {
    animation: titleSlideIn 1s ease-out, titleGlow 3s ease-in-out infinite alternate 1s;
  }
  #mainpage .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  #mainpage .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  #mainpage .slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
  }
  #mainpage .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
  }
  #mainpage .slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
  }
  #mainpage .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
  }
  #mainpage .scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
  }
  #mainpage .scale-in.visible {
    opacity: 1;
    transform: scale(1);
  }
  #mainpage .delay-1 {
    transition-delay: 0.1s;
  }
  #mainpage .delay-2 {
    transition-delay: 0.2s;
  }
  #mainpage .delay-3 {
    transition-delay: 0.3s;
  }
  #mainpage .delay-4 {
    transition-delay: 0.4s;
  }
  #mainpage .delay-5 {
    transition-delay: 0.5s;
  }
  #mainpage h2 {
    font-size: 2.5em;
    color: #F2EC91;
    text-align: center;
    margin: 6vh 0 4vh 0;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    text-shadow: 0 0 20px rgba(242, 236, 145, 0.8);
  }
  #mainpage .text {
    font-size: 1rem;
    width: 90%;
    margin: 1rem auto;
  }
  #mainpage #photo_profil {
    width: 200px;
    margin: 2rem auto;
    float: none;
    display: block;
  }
  #mainpage .contact-card {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(27, 48, 89, 0.1) 0%, rgba(25, 23, 38, 0.15) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(242, 236, 145, 0.15);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  #mainpage .layout,
  #mainpage #telechargerLayout,
  #mainpage #menu-toggle,
  #mainpage .burger-icon {
    display: none;
  }
  #mainpage .fade-in,
  #mainpage .slide-in-left,
  #mainpage .slide-in-right,
  #mainpage .scale-in {
    animation-duration: 0.8s;
  }
}
@media screen and (min-aspect-ratio: 4/4) and (max-aspect-ratio: 16/9) and (max-width: 768px) {
  #mainpage header.scrolled {
    width: 25vw;
  }
  #mainpage main.scrolled {
    margin-left: 25vw;
    width: 75vw;
  }
  #mainpage .futuristic-title {
    font-size: 2rem;
  }
}
@media screen and (min-aspect-ratio: 4/4) and (max-aspect-ratio: 16/9) {
  .contact-container {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow: hidden;
    transition: 0.3s;
  }
  .contact-container .container {
    max-width: 100% !important;
    width: 100% !important;
  }
  .contact-container .row {
    width: 100% !important;
    margin: 0 !important;
  }
  .contact-container .col-lg-10,
  .contact-container .col-xl-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
  }
  .contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/planete-avec-anneau.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
  }
  .contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(27, 48, 89, 0.4) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(67, 132, 204, 0.3) 0%, transparent 50%), linear-gradient(135deg, rgba(25, 23, 38, 0.8) 0%, rgba(27, 48, 89, 0.6) 50%, rgba(25, 23, 38, 0.8) 100%);
    backdrop-filter: blur(1px);
    z-index: 2;
  }
  .contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
  }
  .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(242, 236, 145, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
  }
  .particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
  }
  .particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
  }
  .particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
  }
  .particle:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
  }
  .particle:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
  }
  .particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
  }
  .particle:nth-child(7) {
    left: 70%;
    animation-delay: 0.5s;
  }
  .particle:nth-child(8) {
    left: 80%;
    animation-delay: 1.5s;
  }
  .particle:nth-child(9) {
    left: 90%;
    animation-delay: 2.5s;
  }
  @keyframes float {
    0%, 100% {
      opacity: 0;
      transform: translateY(0) scale(0);
    }
    50% {
      opacity: 0.8;
      transform: translateY(10vh) scale(1);
    }
  }
  .contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(242, 236, 145, 0.3);
  }
  .contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(242, 236, 145, 0.5), rgba(67, 132, 204, 0.5), rgba(242, 236, 145, 0.5), transparent);
    animation: shimmer 3s ease-in-out infinite;
  }
  @keyframes shimmer {
    0%, 100% {
      opacity: 0.3;
    }
    50% {
      opacity: 1;
    }
  }
  .contact-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
  }
  .contact-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #F2EC91;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
  }
  .contact-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
  }
  .contact-form {
    position: relative;
  }
  .contact-form .form-group {
    margin-bottom: 1.5rem;
  }
  .contact-form .row {
    margin-bottom: 0;
  }
  .contact-form .row:not(:last-child) {
    margin-bottom: 1rem;
  }
  .contact-form .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #F2EC91;
    margin-bottom: 0.5rem;
    display: block;
  }
  .contact-form .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(242, 236, 145, 0.2);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
  }
  .contact-form .form-control:focus {
    outline: none;
    border-color: #F2EC91;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(242, 236, 145, 0.2);
  }
  .contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  .contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
  }
  .contact-form .row:last-child {
    margin-top: 1.2rem;
  }
  .contact-form .col-md-6 {
    padding-left: 0;
    padding-right: 0.5rem;
    box-sizing: border-box;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: inline-block;
    vertical-align: top;
  }
  .contact-form .col-md-6:first-child {
    padding-right: 0.25rem;
  }
  .contact-form .col-md-6:last-child {
    padding-left: 0.25rem;
    padding-right: 0;
  }
  .contact-form .col-12 {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .contact-form .row {
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .contact-form .form-control {
    min-width: 0;
    width: 100%;
  }
  .contact-form .form-label {
    display: block;
    color: #F2EC91;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(242, 236, 145, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }
  .contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #F2EC91;
    box-shadow: 0 0 0 2px rgba(242, 236, 145, 0.2), 0 4px 15px rgba(242, 236, 145, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    outline: none;
  }
  .contact-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
  }
  .contact-form .btn {
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
    border: none;
    flex: 1;
    min-width: 120px;
  }
  .contact-form .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
  }
  .contact-form .btn:hover::before {
    left: 100%;
  }
  .contact-form .btn-primary {
    background: linear-gradient(135deg, #4384CC, #3671BF);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 132, 204, 0.3);
  }
  .contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #3671BF, #2A5A9B);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 132, 204, 0.4);
  }
  .contact-form .btn-outline-primary {
    color: #F2EC91;
    border: 2px solid #F2EC91;
    background: transparent;
    box-shadow: 0 4px 15px rgba(242, 236, 145, 0.2);
  }
  .contact-form .btn-outline-primary:hover {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1B3059;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 236, 145, 0.3);
  }
  .contact-form .btn-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
  }
  .contact-form .btn-group .btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }
  .contact-form .btn-primary {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    color: #1B3059;
  }
  .contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #D4C05A, #F2EC91);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 236, 145, 0.3);
  }
  .contact-form .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #F2EC91;
    border: 1px solid rgba(242, 236, 145, 0.3);
  }
  .contact-form .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(242, 236, 145, 0.5);
    transform: translateY(-2px);
  }
}
@media screen and (min-aspect-ratio: 4/4) and (max-aspect-ratio: 16/9) and (max-width: 768px) {
  .contact-container {
    padding: 1rem;
    min-height: 70vh;
  }
  .contact-card {
    padding: 2rem;
    max-width: 100% !important;
  }
  .contact-title {
    font-size: 1.4rem;
  }
  .contact-form .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin-bottom: 1rem;
  }
  .contact-form .btn-group {
    flex-direction: column;
    gap: 0.8rem;
  }
  .contact-form .btn-group .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }
}
@media screen and (min-aspect-ratio: 4/4) and (max-aspect-ratio: 16/9) {
  .footer {
    position: relative;
    clear: both;
    min-height: 60vh;
    padding: 6rem 8rem 4rem 8rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(25, 23, 38, 0.95) 0%, rgba(27, 48, 89, 0.9) 30%, rgba(67, 132, 204, 0.8) 70%, rgba(25, 23, 38, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-top: 2px solid rgba(242, 236, 145, 0.3);
    z-index: 1;
    transition: 0.3s;
  }
  .footer_video {
    display: none;
  }
  #video,
  #video_cv {
    display: none;
  }
  .footer_inner {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
  }
  .c-footer {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
  }
  .footer-item {
    display: flex;
    flex-direction: column;
  }
  .footer-item.w-33 {
    grid-column: auto;
  }
  .footer-item.w-50 {
    grid-column: 1/-1;
  }
  .footer-item.w-25 {
    grid-column: auto;
  }
  .footer-grid:last-child {
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(242, 236, 145, 0.2);
  }
  .footer-grid:last-child .footer-item.w-25 {
    grid-column: auto;
  }
  .newsletter {
    margin-bottom: 0;
    padding: 0;
  }
  .newsletter_title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F2EC91;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
  }
  .newsletter_subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    max-width: 100%;
  }
  .contact_info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    padding: 0;
  }
  .contact_item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.3rem 0;
  }
  .contact_link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .contact_link:hover {
    color: #F2EC91;
    text-decoration: underline;
  }
  .contact_item svg {
    width: 16px;
    height: 16px;
    fill: #F2EC91;
    flex-shrink: 0;
  }
  .c-nav-tool {
    margin-bottom: 0;
    padding: 0;
  }
  .c-nav-tool_title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2EC91;
    margin: 0 0 1.2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 0.5rem;
  }
  .c-nav-tool_title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    border-radius: 2px;
  }
  .nav-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  .nav-columns-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  .c-nav-tool_list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .c-nav-tool_item {
    margin-bottom: 0.8rem;
  }
  .c-nav-tool_item:nth-child(1),
  .c-nav-tool_item:nth-child(3),
  .c-nav-tool_item:nth-child(5) {
    grid-column: 1;
  }
  .c-nav-tool_item:nth-child(2),
  .c-nav-tool_item:nth-child(4),
  .c-nav-tool_item:nth-child(6) {
    grid-column: 2;
  }
  .c-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0.2rem 0;
  }
  .c-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    transition: width 0.3s ease;
  }
  .c-link:hover {
    color: #F2EC91;
    transform: translateX(6px);
  }
  .c-link:hover::before {
    width: 100%;
  }
  .footer_section {
    margin-bottom: 0;
    padding: 0;
  }
  .footer_section_title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2EC91;
    margin: 0 0 1.2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 0.5rem;
  }
  .footer_section_title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #F2EC91, #D4C05A);
    border-radius: 2px;
  }
  .footer_section_content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .footer_section_content p {
    margin-bottom: 0.8rem;
  }
  .footer_section_content p:last-child {
    margin-bottom: 0;
  }
  .footer_section_content strong {
    color: #F2EC91;
    font-weight: 600;
  }
  .tech_stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
  }
  .tech_badge {
    background: rgba(67, 132, 204, 0.2);
    color: #B0C4DE;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(67, 132, 204, 0.3);
    transition: all 0.3s ease;
  }
  .tech_badge:hover {
    background: rgba(67, 132, 204, 0.3);
    transform: translateY(-1px);
  }
  .c-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(242, 236, 145, 0.2);
    margin-top: 2rem;
    text-align: center;
  }
  .c-2 .layout_item {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .c-2 p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
    font-weight: 400;
  }
  .flex {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
  }
  .flex li {
    list-style: none;
  }
  .flex a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 236, 145, 0.2);
  }
  .flex a:hover {
    background: rgba(242, 236, 145, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(242, 236, 145, 0.4);
  }
  .flex svg {
    width: 20px;
    height: 20px;
    fill: #F2EC91;
    transition: all 0.3s ease;
  }
  .flex a:hover svg {
    fill: #D4C05A;
    transform: rotate(8deg);
  }
  .c-2 .c-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(242, 236, 145, 0.2), rgba(212, 192, 90, 0.2));
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 236, 145, 0.3);
  }
  .c-2 .c-link:hover {
    background: linear-gradient(135deg, #F2EC91, #D4C05A);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(242, 236, 145, 0.5);
  }
  .c-2 .c-link svg {
    width: 22px;
    height: 22px;
    fill: #F2EC91;
    transition: all 0.3s ease;
  }
  .c-2 .c-link:hover svg {
    fill: #1B3059;
    transform: rotate(12deg);
  }
}
