@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');


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


html {
  scroll-behavior: smooth;
}

:root {
  --color-primary: #4E4E4E;
  --color-secondary: white;
  --font-family:  
}



body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;        /* preserve aspect ratio */
  display: block;
  object-fit: contain; /* avoid stretching when using explicit width/height */
}


/* ----------------- Utilities ----------------- */

.container {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.section {
  padding: 90px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
}

/* ----------------- About ----------------- */

.container-about {
  width:70%;
}

.about-grid{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.enssat {
  width: 8em;
}

.orange{
  width: 6em;
}

.computer_coding{
  width: 7em;
}

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

.about-card {
  width: 80%;
  /* s */
  border-radius: 8px;

  display: flex;
  justify-content: space-between;
  gap: 4em;
  align-items: center;

  min-height: 120px;
}

.about-text .btn {
  margin-top: 8px;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px;
}

.info-list li span {
  font-weight: 600;
  margin-right: 8px;
}


/* Button downlaod CV */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary); /* ← ajoute ça */
  border: 1px solid var(--color-primary);
}




/* ----------------- Menu ----------------- */
nav {
    background: #ececec;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 60px;
    font-family: sans-serif;
    width: 100%;
  }

  .logo { font-weight: 700; }

  nav ul { list-style: none; display: flex; gap: 2rem; }

  ul a {
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
  }

  ul a:hover { color: #000; }

  .burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .burger span { 
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
  }

  @media (max-width: 600px) {
    .burger { display: flex; }

    nav{
      justify-content: space-between;
    }

    nav ul {
      display: none;
      flex-direction: column;
      gap: 0;
      position: absolute;
      top: 60px; left: 0; right: 0;
      background: #fff;
      border-bottom: 1px solid #e5e5e5;
    }

    nav ul.open { display: flex; }

    ul a { display: block; padding: 1rem 1.5rem; border-top: 1px solid #f0f0f0; }
  }



/* ----------------- Card for experience and education -----------------*/

.card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.card {
  background-color: rgba(249, 249, 249, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 20px 24px;
  width: 65%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: rgba(249, 249, 249, 0.95);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-date {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  opacity: 0.95;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--color-primary);
  opacity: 0.65;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-primary);
  opacity: 0.75;
  margin-top: 6px;
  text-align: justify;
  width: 90%;
}

.card-logo {
  width: 120px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}



/* ----------------- Projects ----------------- */

.projects-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.project-card {
  display: flex;
  width: 70%;
}

.project-img{
  width: 300px;
  height: 300px;
  position: relative;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px;
  margin-left: 10px;
}

.project-desc{
  width: 100%;
  text-align: justify;
}

.project-tech{
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;

}

.project-tech-icon{
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-right: 8px;
}

/* ----------------- Contact ----------------- */

.contact{
  padding: 0;
  margin-bottom: 0;
}
.contact-container{
  background-color: rgba(235, 233, 233, 0.7);
  max-width: none;
  width: 100%;
  
}


.contact-card {
  
  width: 65%;
  display: flex;
  flex-direction:  row;
  justify-content: space-around;
  align-items: center;
  max-width: 1100px;
}

.contact-social-media {
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.contact-logos {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.contact-logo{
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0.85;
}

.form-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: 'Advent Pro', sans-serif;
  margin-bottom: 10px;
}

.contact-form {
  
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 400px;
}

.input-field {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.field-message{
  height: 150px;
}

/* ----------------- Responsive Desktop ----------------- */
@media (max-width: 1280px) {
  .container {
    width: 90%;
  }

  .project-card {
    width: 95%;
  }

  .contact-container {
    width: 100%;
  }

  .contact-card {
    width: 100%;
  }




}


/* ----------------- Responsive Tablet ----------------- */
@media (max-width: 900px) {
  body {
    line-height: 1.3;
  }

  .container {
    width: 95%;
  }

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

  .about-card {
    width: 90%;
  }

  .about-info {
    margin-top: 30px;
  }

  .card {
    width: 65%;
  }

  .card-info {
    margin-right: 30px;
  }

  .experience-orange{
    width: 80px;
    height: 80px;
  }

  .project-card {
    width: 100%;
  }

  .contact-container {
    width: 100%;
  }
}
/* Responsive Tablet Small */
@media (max-width: 768px) {
  .card {
    width: 95%;
  }

  .about-card {
    width: 100%;
  }

  .card-desc {
    width: 100%;
  }

  .project-card {
    /* flex-direction: column;
    align-items: center; */
    background-color: rgba(249, 249, 249, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 5px;
    gap: 20px;
  }

  .project-img {
    width: 200px;
    height: 200px;
    object-fit: fill;
    margin-top: 50px;
  }

   .project-tech-icon{
    width: 50px;
    height: 50px;
  }


  .contact-container {
    width: 100%;
  }

  .contact-card{
    display: flex;
    flex-direction: column;
    width: 80%;
  }

  .contact-form{
    width: 100%;
  }

  .contact-logos{
    margin-top: 50px;
  }
  

}

/* Responsive Mobile */
@media (max-width: 480px) {
  body {
    line-height: 1.25;
  }

  .container {
    width: 95%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
  }

  #enssat-card {
    display: flex;
    flex-direction: column-reverse;
  }

  .card-logo {
    width: 100px;
    height: 100px;
    
  }

  .card-desc {
    width: 100%;
  }

  .orange{
    width: 80px;
    height: 80px;
  }

  .card {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .project-card {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .project-tech-icon{
    width: 50px;
    height: 50px;
  }

  .contact-container {
    width: 100%;
  }

  .contact-card{
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 90%;
  }

  .contact-form{
    width: 100%;
  }

  .contact-logos{
    margin-top: 50px;
  }

  .contact-logo{
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.85;
  }

}
