/* Global Styles */
:root {
  --spacing: 0.25rem;
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --border: rgba(148, 163, 184, 0.1);
  --success: #10b981;
  --white: #ffffff;
  --black: #000000;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(180deg, #0a0e1a 0%, #1e293b 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;

  user-select: none;
  /* Background decoration */
  &::before {
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
}

header {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  z-index: 2;

  h1 {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease;
  }
  
  p {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
  }
}

main {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  gap: 5rem;
  z-index: 1;
}

section h2 {
  font-family: 'Space Mono', monospace;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1.5rem;

  h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    border-radius: 2px;
  }
}

footer {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: 'Space Mono', monospace;
}

/* All CSS classes */

/* Scroll Down Indicator */
.bottom {
  position: fixed;
  bottom: 50px;
  width: 100%;
  right: 50px;
  transform: translateX(+50%);
  text-align: center;
  visibility: hidden;

  &.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.scroll-indicator {
display: inline-block;
  width: 24px;
  height: 24px;
  margin: 16px auto;
  border-right: 2px solid #FFF;
  border-bottom: 2px solid #FFF;
  border-bottom-right-radius: 2px;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
  -webkit-animation-name: fade;
          animation-name: fade;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
          animation-timing-function: linear;
}

.animated.hinge {
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
}

/* Navigation */
.nav_bar {
  position: fixed;
  display: flex;
  justify-content: center;
  width: 100%;
  bottom: 10px;
  z-index: 2;
  height: 39px;

  .nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    border-radius: 38px;
    min-width: 30%;

    ul {
      display: flex;
      justify-content: space-around;
      gap: 1rem;
      height: calc(var(--spacing) * 10);
      align-items: center;
      position: relative;
      padding: 4px;
    }

    li {
      list-style: none;
      position: relative;
      z-index: 1;
    }

    a {
      color: var(--black);
      text-decoration: none;
      transition: color 0.3s ease;
      padding: calc(var(--spacing) * 2) 1.5rem;
      border-radius: 34px;
    }

    a.active {
      background-color: transparent;
    }
  }
}

/* Pilule glissante */
.nav-pill {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  background-color: var(--accent-bright);
  border-radius: 34px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}


/* A propos */
.about, .bts-sio, .intro, .unity, .tech, .compare, .analysis, .sources, .legal {
  & .row{
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: column;
    grid-gap: 10px;
    grid-auto-rows: minmax(100px, auto);
  }

  & h3{
    padding-bottom: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent-bright);
  }

  & ul li{
    list-style-type: none;
    padding-left: 1.5rem;
    font-size: 0.9rem;
  }

  .info-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.8));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    line-height: 1.8;

    strong {
      color: var(--accent);
      font-weight: 600;
    }
  }
}

.about .row .info-card:last-child {
  display: grid;
  grid-column: 1 / -1;
}

.news, .analysis, .legal {
  & .row{
    display: grid;
    grid-template-columns: repeat(1, 1fr);

    & .info-card {
      background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.8));
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
      line-height: 1.8;

      strong {
        color: var(--accent);
        font-weight: 600;
      }

      & ul li{
        list-style-type: none;
        padding-left: 1.5rem;
        font-size: 0.9rem;
      }
    }


    & h4 {
      padding-bottom: 1rem;
      font-family: 'Space Mono', monospace;
      font-size: 1.25rem;
      color: var(--accent-bright);
    }
  }
}

.bts-sio, .intro, .unity, .tech, .compare, .sources{
  & .row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    & .info-card {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
    }

    & :first-child {
      grid-column: 1 / -1;
    }

    & h4 {
      padding-bottom: 1rem;
      font-family: 'Space Mono', monospace;
      font-size: 1.25rem;
      color: var(--accent-bright);
    }
  }
}

/* Skills Grid */
.about .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1rem;

  .skill-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(30, 41, 59, 0.7));
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
    min-height: 150px;
    overflow: hidden;
  

    &:hover {
      border-color: rgba(59, 130, 246, 0.3);
      transform: translateY(-3px);
    }

    & h3 {
      font-family: 'Space Mono', monospace;
      font-size: 1rem;
      color: var(--accent-bright);
      text-align: center;
    }

    & h4 {
      font-family: 'Space Mono', monospace;
      font-size: 1rem;
      color: var(--accent-bright);
      text-align: center;
    }

    & p {
      color: var(--text-secondary);
      font-size: 0.95rem;
    }
  }
}

.card__inner{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; 
  height: 100%;
  transition: transform 1s ease;
  transform-style:preserve-3d;
  cursor:pointer;
  position: relative;
  
  &.is-flipped {
    transform: rotateY(180deg);
  }

  & .img
  {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .card__face{
    display: flex;
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;

    &--front {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    &--front h2{
      font-size: 1.5rem;
      color: var(--accent);
      padding: 0;
      margin: 0;
    }

    &.card__face--back {
      transform: rotateY(180deg);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    & .card__content {
      width: 100%;
      height: 100%;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      box-sizing: border-box;
    }

    & .card__body {
      width: 100%;
      margin: 0;
      padding: 0;
    }

    & .card__body p {
      margin: 0.25rem 0;
      font-size: 0.9rem;
    }
  }
  .card__face--front img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Featured Projects Section */
.featured-projects {
  display: grid;
  gap: 2rem;

  .featured-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.8));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--accent-bright));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    &:hover {
        transform: translateY(-8px);
        box-shadow: 0 24px 48px rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.3);

        &::before {
            transform: scaleX(1);
        }
    }

    .featured-badge {
        display: inline-block;
        background: linear-gradient(135deg, var(--accent), var(--accent-bright));
        color: white;
        font-family: 'Space Mono', monospace;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0.35rem 0.85rem;
        border-radius: 20px;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    & h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .description {
        color: var(--text-secondary);
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .tech-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
        margin-bottom: 1.5rem;

        .tech-tag {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            color: var(--accent-bright);
            padding: 0.4rem 0.85rem;
            border-radius: 8px;
            font-size: 0.85rem;
            font-family: 'Space Mono', monospace;
            transition: all 0.3s ease;

            &:hover{
                background: rgba(59, 130, 246, 0.2);
                border-color: rgba(59, 130, 246, 0.4);
            }
        }
    }

    .key-features {
        background: rgba(59, 130, 246, 0.05);
        border-left: 3px solid var(--accent);
        padding: 1.25rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);

        & .key-features-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            grid-column: 1 / 3;
        }

        & .key-features-image {
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        & img{
            max-width: 350px;
            height: auto;
            border-radius: 8px;
            object-fit: cover;
            align-items: end;
        }

        & h4{
            font-size: 0.9rem;
            font-family: 'Space Mono', monospace;
            color: var(--accent-bright);
            margin-bottom: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        & ul{
            list-style: none;
            display: grid;
            gap: 0.5rem;
        }

        & li{
            color: var(--text-secondary);
            font-size: 0.95rem;
            padding-left: 1.5rem;
            position: relative;
        }

        & li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success);
            font-weight: bold;
        }
    }

  }
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;

    & a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, var(--accent), var(--accent-bright));
        color: white;

        &:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
        }
    }

    .btn-secondary {
        background: transparent;
        border: 2px solid var(--accent);
        color: var(--accent-bright);

        &:hover {
            background: rgba(59, 130, 246, 0.1);
            transform: translateY(-2px);
        }
    }
}

/* Other Projects */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;

  .card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(30, 41, 59, 0.7));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    &:hover{
      transform: translateY(-4px);
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
      border-color: rgba(59, 130, 246, 0.2);
    }

    & h3{
      font-size: 1.25rem;
      margin-bottom: 0.75rem;
      font-weight: 600;
    }
  
    & .tech-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
        margin-bottom: 1.5rem;

        .tech-tag {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            color: var(--accent-bright);
            padding: 0.4rem 0.85rem;
            border-radius: 8px;
            font-size: 0.85rem;
            font-family: 'Space Mono', monospace;
            transition: all 0.3s ease;

            &:hover{
                background: rgba(59, 130, 246, 0.2);
                border-color: rgba(59, 130, 246, 0.4);
            }
        }
    }

    & p {
      color: var(--text-secondary);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    & .project-links {
      margin-top: 1rem;
      position: relative;
      bottom: 1rem;
      padding-top: 1rem;
    
      & a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
      }
    }
  }
}

/* Contact */

.contact-section {
  border-radius: 32px;
  display: flex;
  width: 100%;
  overflow: hidden;

  &:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  }

  .form-side {
    flex: 1;
    padding: 40px;
    min-width: 280px;
    background: white;

    & h2 {
      font-size: 28px;
      margin-bottom: 8px;
    }

    & p {
      color: #666;
      margin-bottom: 30px;
    }
  }
  .info-side {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(30, 41, 59, 0.7));
    padding: 40px;
    flex: 0.8;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    & h3 {
      font-size: 24px;
      margin-bottom: 20px;
    }
    & p {
      margin-bottom: 30px;
      line-height: 1.5;
      opacity: 0.9;
    }
  }
  .input-field {
      margin-bottom: 20px;
    & input,
    & textarea {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        font-size: 15px;
        transition: 0.2s;
        font-family: inherit;
    }
    & input:focus,
    & textarea {
        resize: vertical;
        min-height: 110px;
      &:focus {
          outline: none;
          border-color: #1a2a3a;
      }
    }  
  }

  .submit-btn {
      background: linear-gradient(135deg, var(--accent), var(--accent-bright));
      color: white;
      border: none;
      padding: 14px;
      border-radius: 40px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      width: 100%;
  }

  .social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;

    & a {
      color: white;
      font-size: 24px;
      transition: opacity 0.2s;
      &:hover {
          opacity: 0.7;
      }
    }
    & div {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: var(--text-secondary);
    }
  }
}

/* Button de retour en haut */
#back-to-top {
  display: inline-block;
  position: fixed;
  bottom: 4rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 2;
  border: double 2px transparent;
  cursor: pointer;
  pointer-events: none;

  &:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
  }

  &.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem 0;

  /* Ligne centrale */
  &::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-bright));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
  }
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;

  /* Point sur la ligne */
  &::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--bg-card);
    border: 4px solid var(--accent-bright);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
  }

  &:hover::after {
    background: var(--accent-bright);
    transform: scale(1.2);
  }

  /* Item gauche */
  &.left {
    left: 0;

    & .timeline-content {
      text-align: right;
      padding-right: 30px;
    }

    &::after {
      right: 5px;
    }
  }

  /* Item droite */
  &.right {
    left: 50%;

    & .timeline-content {
      text-align: left;
      padding-left: 30px;
    }

    &::after {
      left: 5px;
    }
  }
}

.timeline-content {
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
  }

  & h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: var(--accent-bright);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  & p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
  }

  & ul {
    margin-top: 1rem;
    padding-left: 1.5rem;

    & li {
      color: var(--text-secondary);
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
      list-style-type: disc;
    }
  }
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline::after {
    display: none;
  }

  .timeline-item {
    width: 100%;
    padding: 0px;
    padding-top: 5px;

    &.left, &.right {
      left: 0;

      & .timeline-content {
        text-align: left;
      }
    }

    &.left::after, &.right::after {
      display: none;
    }
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* For Scroll Down Indicator */
@-webkit-keyframes fade {
  0% {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    opacity: 1;
  }
  75% {
    -webkit-transform: rotate(45deg) translateY(+6px) translateX(+6px);
    transform: rotate(45deg) translateY(+6px) translateX(+6px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade {
  0% {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    opacity: 1;
  }
  75% {
    -webkit-transform: rotate(45deg) translateY(+6px) translateX(+6px);
    transform: rotate(45deg) translateY(+6px) translateX(+6px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* Responsive */
@media (max-width: 1024px) {
  .featured-projects .featured-card .key-features {
    grid-template-columns: repeat(1, 1fr);
    & .key-features-text {
      grid-column: 1 / -1;
    }
    & .key-features-image {
      display: none;
      & img {
        display: none;
      }
    }
  }
}

@media (max-width: 768px) {
  header h1 { 
    font-size: 2.25rem; 
  }

  p {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
  }

  header p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .nav_bar {
    width: 95%; /* Légèrement moins que 100 pour éviter les bugs de bordure */
    left: 2.5%; 
    transform: none;

    & .nav {
      min-width: 95vw;

      & ul{
        gap: 0.5rem;
      }
      
      a {
        padding: calc(var(--spacing)) 0.6rem;
        font-size: 0.7rem;
      }

    }
  }

  .about .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about p{
    font-size: 1rem;
  }

  .featured-card {
    padding: 2rem;
  }

  .featured-card h3 {
    font-size: 1.5rem;
  }

  .contact-section {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    width: 100%;
    overflow-x: hidden; /* Sécurité */
  }

  /* Force tous les éléments à ne jamais dépasser la largeur de l'écran */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }

  main {
    padding: 1rem; /* Donne un peu d'air sur les côtés */
    width: 100%;
  }

  header h1 { 
    font-size: 1.85rem;
  }

  .about p{
    font-size: 0.875rem;
  }

  .about, .bts-sio {
    & .skills-grid {
      grid-template-columns: repeat(1, 1fr);
      gap: 1rem;

      & .skill-card {
        min-height: 180px;

        & h3 {
          font-size: 0.9rem;
        }
      }

      & .card__body p{
        font-size: 0.7rem;
      }
    }

    & p{
      font-size: 1rem;
    }

    & .row {
      grid-template-columns: 1fr;
    }
  }

  .card__inner {
    min-height: 180px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .project-links {
    flex-direction: column;

    & a {
      width: 100%;
      justify-content: center;
    }
  }

  .nav_bar {
    width: 95%; /* Légèrement moins que 100 pour éviter les bugs de bordure */
    left: 2.5%; 
    transform: none;

    & .nav {
      min-width: 95vw;

      ul {
        gap: 0.25rem;
        padding: 4px;
      }

      a {
        padding: calc(var(--spacing)) 0.6rem;
        font-size: 0.7rem;
      }
    }
  }

  .social-icons {
    flex-direction: column;
    gap: 12px;

    & a {
      font-size: 20px;
    }
  }
}
