* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body, html {
  scroll-behavior: smooth;
}

/* --- DÉGRADÉ SUR TOUS LES TITRES --- */
h1, h2, h3, h4, h5, h6 {
  background: -webkit-linear-gradient(white, #38495a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Optionnel : ajoute un léger effet lumineux */
h1, h2, h3 {
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}



/* Chaque section prend toute la hauteur de l’écran */
section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  
}


main {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto; /* avant : 100vh */
  min-height: 100vh;
  transform: none; /* supprime le décalage vertical */
}

main a {
    color: #3a3a3a;
}

main h2 {
    font-weight: 800;
    font-size: 2.5rem; /* 48px */
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 700px;
    color: aliceblue;
    margin-left: auto;
    margin-right: auto;
}

main p {
    font-weight: 400;
    font-size: 1.5rem;
    color: #d1d5db;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    line-height: 1.5;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    background: transparent; /* ou un fond si nécessaire */
}

.navbar a {
    color: white;
}

.navbar .logo {
    font-size: 2em;
    font-weight: bold;
    padding-left: 2rem;
}

.navbar .nav-links ul {
    display: flex;
}

.navbar .nav-links ul li {
    display: flex;
    margin: 0 20px;
}

.navbar .nav-links ul li a {
    --bg: ;
    cursor: pointer;
    border: 1px solid var(--bg);
    border-radius: 4px;
    padding: 0.8em 2em;
    background: var(--bg);
    transition: 0.2s;
}

.navbar .nav-links ul li a:hover {
    color: var(--hover-text);
    transform: translate(-0.25rem, -0.25rem);
    background: var(--hover-bg);
    box-shadow: 0.25rem 0.25rem var(--bg);
    color: #fff;
}

.navbar .nav-links ul li a:active {
    transform: translate(0);
    box-shadow: none;
}

.navbar .menu  {
    font-size: 2.5rem;
    display: none;
    padding: 2rem;
}

section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px; /* plus d’espace pour respirer */
  color: #d1d5db;
  min-height: 100vh; /* occupe au moins une hauteur d’écran */
  height: auto; /* s’agrandit selon le contenu */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section h3 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 24px;
    border-bottom: 2px solid #4b5563;
    padding-bottom: 8px;
    color: white;
    }

section p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

section a,
section h2 {
    color: #fff;
}

/* From Uiverse.io by andrew-demchenk0 */ 
.button {
  --bg-color-sub: #dedede;
  --bg-color: #fff;
  --main-color: #323232;
  position: relative;
  width: 200px; /* Augmenté */
  height: 60px;  /* Augmenté */
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 15px rgba(255, 255, 255, 0.427);
  font-size: 1.25rem; /* Légèrement augmenté */
}

.button, .button__icon, .button__text {
  transition: all 0.3s;
}

.button .button__text {
  transform: translateX(30px); /* Ajusté pour la nouvelle largeur */
  color: var(--font-color);
  font-weight: 600;
}

.button .button__icon {
  position: absolute;
  transform: translateX(145px); /* Ajusté */
  height: 100%;
  width: 50px; /* Augmenté */
  background-color: var(--bg-color-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.button .svg {
  width: 24px; /* Légèrement plus grand */
  fill: var(--main-color);
}

.button:hover {
  background: var(--bg-color);
}

.button:hover .button__text {
  color: transparent;
}

.button:hover .button__icon {
  width: 198px; /* Ajusté pour couvrir presque tout le bouton */
  transform: translateX(0);
}

.button:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px var(--main-color);
}

#projects {
    max-width: 1200px;
    padding-top: 80px;
    padding-bottom: 80px;
    color: white;
}

#projects h3 {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.project-card {
    background-color: rgba(31, 41, 55, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.03);
}

.project-card img {
    width: 100%;
    height: 192px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 24px;
}

.project-content h4 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: white;
}

.project-content p {
    font-size: 1rem;
    color: #d1d5db;
    margin: 0;
    line-height: 1.4;
}

.skills {
    display: flex;
    gap: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    align-content: start;
}

#skills p {
    color: #fff;
}

.skills img{
    max-width: 10rem;
    height: auto;
    filter: drop-shadow(0px 0px 2px grey);
}

.skills .skills-items p {
    display: grid;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* --- SECTION EXPÉRIENCES --- */
#experiences {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

#experiences h3 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 60px;
  position: relative;
}

#experiences h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #06b6d4);
  margin: 16px auto 0 auto;
  border-radius: 2px;
}

#experiences h2 {
  margin: 2rem auto 1rem auto;
  text-align: center;
  font-size: 2rem;
  color: #93c5fd;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Disposition des expériences --- */
.experience-layout {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  margin: 0 auto 2.5rem auto;
  max-width: 1000px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-layout:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* --- Boîtes internes --- */
.box {
  background-color: rgba(17, 24, 39, 0.9);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-size: 1.1rem;
  color: #e5e7eb;
  text-align: center;
}

/* Image (à gauche) */
.image {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image img:hover {
  transform: scale(1.05);
}

/* Poste et date */
.poste,
.date {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
  color: #f9fafb;
}

/* Description */
.description {
  grid-column: 2 / 4;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d1d5db;
  background: rgba(31, 41, 55, 0.7);
  border-radius: 10px;
  padding: 20px;
  text-align: justify;
}

/* --- Responsive --- */
@media screen and (max-width: 900px) {
  .experience-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .image {
    grid-row: auto;
  }

  .poste,
  .date,
  .description {
    grid-column: auto;
  }

  .description {
    text-align: center;
  }
}


.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(25rem, 1fr));
    gap: 1.5rem;
}
.footer .box-container .box2 h3{
    padding: .5rem 0;
    font-size: 2.5rem;
    color: white;
    text-align: center;
}

.footer .box-container .box2 a,
.footer .box-container .box2 p {
    display: block;
    padding: .5rem 0;
    font-size: 2rem;
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: #3a3a3a;
    color: white;
    
}

.footer .box-container .box2 a:hover,
.footer .box-container .box2 p:hover { 
    -webkit-text-stroke-color: #ffffff;
    color: #3a3a3a;
}

.footer .credit{
    text-align: center;
    border-top: .1rem solid rgba(0,0,0,.1);
    font-size: 2rem;
    color: #fff;
    padding: .5rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.social-links .flex-center img {
  width: 40px;
  height: 40px;
}

.social-links,.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-btn {
  cursor: pointer;
  height: 50px;
  width: 50px;
  font-family: 'Titillium Web', sans-serif;
  color: #333;
  border-radius: 10px;
  box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
  background: white;
  margin: 5px;
  transition: 0.3s;
  justify-content: center;
}

.social-btn svg {
  height: 24px;
  width: 24px;
}

.social-btn span {
  width: 0px;
  overflow: hidden;
  transition: 0.3s;
  text-align: center;
  margin-left: 5px;
}

.social-btn:hover {
  width: 150px;
  border-radius: 5px;
}

.social-btn:hover span {
  padding: 2px;
  width: 80px;
}

#twitter svg {
  fill: #1da1f2;
}

#linkedin svg {
  fill: #0e76a8;
}

#github {
  fill: #333;
}

/* --- Section Contact & Téléchargement --- */
.contact-section,
.download-section {
    background-color: rgba(31, 41, 55, 0.7);
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.contact-section h2,
.download-section h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2.5rem;
    color: white;
    border-bottom: 2px solid #4b5563;
    padding-bottom: 8px;
}

.contact-section p,
.download-section p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-form,
.download-form {
    display: grid;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #d1d5db;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: white;
    font-family: 'Sora', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}


.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #6b7280;
}

.download-form .form-field div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.1rem;
}

.contact-form button,
.download-form button {
    justify-self: center;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    background-color: teal;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-form button:hover,
.download-form button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

@media screen and (max-width: 1500px) {
  main {
    max-width: 430px;
  }

  main h2 {
    font-size: 1.5rem;
  }

  main p {
    font-size: 1.2rem;
  }

}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  body {
    background-position: center;
  }

  main {
    max-width: 430px;
  }

  main h2 {
    font-size: 1rem;
  }

  main p {
    font-size: 1rem;
  }

   .experience-layout {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }

  .image {
    grid-row: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
  }

  .image img {
    width: 80%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
  }

  .poste,
  .date,
  .description {
    grid-column: auto;
  }

  .description {
    text-align: center;
  }

    
    
  .navbar .menu  {
    display: block;
    z-index: 2;
  }

  .navbar {
    padding: 0;
  }

  .nav-links {
    top: 0;
    left: 0;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.319);
    backdrop-filter: blur(7px);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -100%;
    transition: 0.4s;   
    }

  .box {
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 20px;
  }

  .experience-layout {
    display: block;
  }

  .experience-layout img {
    width: 50%;
    margin-left: 25%;
  }

  .nav-links.mobile-menu {
    margin-left: 0;
    transition: 0.4s;
  }

  .nav-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar .nav-links ul li a {
    font-size: 2rem;
    margin: 2rem;
    border: 2px solid var(--bg);
  }

  .experience-layout {
    grid-template-columns: 200px 165px 165px;
  }

  .footer .box-container .box2 a{
    font-size: 1.5rem;
    max-width: 330px;
    margin: auto;
    text-align: center;
  }
}

@media (min-width: 640px) {
  .projects-grid {
  grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 400px) {
  main h2 {
    font-size: 1rem;
  }

  main p {
    font-size: 1rem;
  }

  }