:root {
    --main-color: #F4EFEA;
    --accent-color: #A8C5DA;
    --text-color: #2E3A59;
    --font: 'Helvetica Neue', sans-serif;
  }

  html {
    scroll-behavior: smooth;
  }
  
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font);
    background-color: var(--main-color);
    color: var(--text-color);
    line-height: 1.6;
  }
  
  header {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
  }
  
  header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }
  
  nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  nav a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.2s;
  }
  
  nav a:hover {
    color: #58b2f5;
  }
  
  section {
    padding: 4rem 1.5rem;
    max-width: 1000px;
    margin: auto;
  }
  
  section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: #333;
  }
  
  #skills {
    padding: 20px 20px;
    background-color: #f9f9f9;
    text-align: center;
    transition: transform 0.3s ease;
  }

  .skill:hover {
    transform: scale(1.1) rotate(-1deg);
  }
  
  #skills h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
  }
  
  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
  
  .skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    transition: transform 0.3s ease;
  }
  
  .skill img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  
  .skill:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
  }
  
  .skill p {
    font-size: 0.9rem;
    color: #333;
    margin-top: 5px;
  }

  .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #4a90e2; 
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }
  
  footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    background-color: #E5E5E5;
  }

  .about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .about-text {
    max-width: 600px;
    text-align: center;
  }

  .about-text p {
    text-align: justify;
  }

  .about-image {
    position: relative;
    display: inline-block; 
  }
  
  .logo-hint {
    position: absolute;
    top: -50px; 
    left: 90%;
    transform: translateX(-50%);
    width: 180px;
    z-index: 10;
  }
  
  .logo-hint img {
    width: 100%;
    height: auto;
  }

  #dynamic-title {
    font-family: var(--font);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    border-right: 2px solid;
    font-weight: bold;
    padding-right: 5px; 

  }

  #dynamic-title {
    line-height: 1.5;
    min-height: 1.5em; 
  }

  @keyframes blinkCursor {
    0%, 100% {
      border-color: transparent;
    }
    50% {
      border-color: #2E3A59;
    }
  }
  
  .blinking-cursor {
    border-right: 2px solid;
    animation: blink 0.8s steps(1) 2;
  }
  
  
  
  
  /* Responsive ajusté */

  @media (max-width: 768px) {
    .logo-hint {
      top: -30px;
      width: 140px;
    }
  }
  
  
  /* Responsive */

  @media (min-width: 768px) {
    .about-section {
      flex-direction: row;
      justify-content: space-between;
      text-align: left;
    }
  
    .about-text {
      flex: 1;
    }
  
    .about-image {
      flex: 1;
      display: flex;
      justify-content: flex-end;
    }
  
    .about-image img {
      max-width: 400px;
    }
  }
  
  
  /* Email */
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form label {
    font-weight: bold;
    color: #444;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    resize: vertical;
  }
  
  .contact-form button {
    padding: 0.9rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #357ac9;
  }
  
  
  #intro {
    position: fixed;
    inset: 0;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
    opacity: 1;
  }
  
  #intro video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff; 
  }
  
  body.loaded #intro {
    opacity: 0;
    pointer-events: none;
  }
  
  body:not(.loaded) {
    overflow: hidden;
  }

  /* Responsive */

  @media (min-width: 600px) {
    .projects {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 900px) {
    nav a {
      font-size: 1.1rem;
    }
  
    .projects {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Nav */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111;
    transition: transform 0.3s ease;
  }
  
  .logo:hover {
    transform: rotate(-2deg) scale(1.05);
  }
  
  
  .nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #111;
    transition: width 0.3s ease;
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  .nav-links a:hover {
    color: #000;
  }

  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      align-items: center; 
      text-align: center;  
    }
  
    .nav-links {
      flex-direction: column;
      align-items: center; 
      gap: 15px;
      margin-top: 15px;
      padding: 0;
    }
  }
  
  .carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 2rem auto;
    padding: 0 40px; 
    box-sizing: border-box;
  }
  
  @media screen and (min-width: 600px) {
    .carousel-container {
      padding: 0 20px;  
    }
  }
  
  @media screen and (min-width: 900px) {
    .carousel-container {
      padding: 0 40px; 
    }
  }
  
  @media screen and (min-width: 1200px) {
    .carousel-container {
      padding: 0 60px; 
    }
  }
  
  .carousel-track {
    display: flex;
    justify-content: flex-start;
    padding-left: 10px; 
    transition: transform 0.3s ease-in-out;
    will-change: transform;
  }
  
  @media screen and (max-width: 768px) {
  .carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-track .project {
    scroll-snap-align: start;
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }
}
  
  .carousel-buttons {
    display: flex;
    justify-content: center;  
    gap: 20px;                
    margin-top: 15px;         
  }
  
  .carousel-btn {
    background: linear-gradient(135deg, #4a90e2, #357ABD); /* joli dégradé bleu */
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* rond parfait */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(53, 122, 189, 0.5); /* ombre douce */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
  }
  
  .carousel-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #6fb1ff, #4a90e2);
    box-shadow: 0 6px 15px rgba(75, 144, 255, 0.7);
    transform: scale(1.1);
  }
  
  .carousel-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(53, 122, 189, 0.3);
  }
  
  
  .project {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 20px;
    background-color: #fafafa; 
    border-radius: 10px; 
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .project:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    background-color: #fff; 
  }
  
  .project h3 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.2rem;
    color: #222;
  }
  
  .project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: 45% 55%;
    border-radius: 8px;
    margin-bottom: 1rem;
    user-select: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  }
  
  .project p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0;
  }
  
  /* Responsive */
  
  .project {
    flex: 0 0 100%; 
    max-width: 100%;
  }
  
  @media screen and (min-width: 768px) {
    .project {
      flex: 0 0 50%;
      max-width: 50%;
    }
  }
  
  @media screen and (min-width: 1024px) {
    .project {
      flex: 0 0 33.3333%;
      max-width: 33.3333%;
    }
  }
  
  @media screen and (max-width: 600px) {
    .carousel-btn {
      display: none;
    }
  }
  
  .photo-container {
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50%;
  }
  
  .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    border-radius: 50%; 
    transition: transform 0.3s ease;
  }
  
  .photo-container:hover img {
    transform: scale(1.1);
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }
  }
  
  @media screen and (max-width: 1024px) {
  .carousel-btn {
    display: none; /* boutons invisibles sur tablette et mobile */
  }

  .carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-track .project {
    flex: 0 0 80%; /* chaque slide prend 80% de la largeur */
    scroll-snap-align: start;
  }

  .carousel-track::-webkit-scrollbar {
    display: none; /* cache la scrollbar */
  }
}

  