/* BASE */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  color: #e6f2e8;

  background: linear-gradient(
    180deg,
    #2f5d34 0%,
    #3f7a44 40%,
    #2f5d34 100%
  );
}

html {
  scroll-behavior: smooth;
}

/* NAVBAR */
nav {
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
}

nav a {
  color: #e6f2e8;
  margin: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

nav a:hover {
  text-decoration: underline;
}

/* SECTION PRESENTATION */
.presentation {
  padding: 120px 40px;
  background: linear-gradient(90deg, #2f5d34, #3f7a44);
  color: #e6f2e8;
}

.presentation-contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  gap: 60px;
}

/* TEXTE */
.presentation-texte {
  text-align: left;
  flex: 1;
}

.presentation-texte h1 {
  .prenom {
  font-size: 50px;
  font-weight: 300;
}

.nom {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 2px;
}
}


.titre {
  font-size: 22px;
  font-weight: bold;
  margin-top: 5px;
}

.presentation-texte p {
  font-size: 18px;
}

.objectif {
  font-size: 18px;
  opacity: 0.9;
}

/* PHOTO */
.presentation-photo {
  flex: 1;
  text-align: center;
}

.photo-pro {
  width: 260px;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 50% / 60%;
  margin: 20px 0;
  border: 4px solid #e6f2e8;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* BOUTON */
.bouton {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 30px;
  background: #e6f2e8;
  color: #2f5d34;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: 0.2s;
}

.bouton:hover {
  background: white;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .presentation-contenu {
    flex-direction: column;
    text-align: center;
  }

  .presentation-texte {
    text-align: center;
  }

  .presentation-texte h1 {
    font-size: 38px;
  }

  .photo-pro {
    width: 200px;
    height: 240px;
  }
}

/* SECTION QUI SUIS-JE */
.qui-suis-je {
  background: #f4f7f4;
  color: #2f5d34;
  padding: 120px 40px;
}

.qui-suis-je h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
}

.qui-textes {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  max-width: 1100px;
  margin: auto;
}

.qui-textes p {
  margin-bottom: 25px;
}

.qui-photo {
  text-align: center;
  margin-top: 60px;
}

.photo-hand {
  width: 420px;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}
.legende {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .qui-textes {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .qui-textes p {
    text-align: center;
  }

  .photo-hand {
    width: 280px;
  }
}

.competences {
  background: #f4f7f4;
  color: #2f5d34;
  padding: 120px 40px;
}

.competences h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
}

.grille-competences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.carte {
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: left;
  transition: 0.3s;
}

.carte:hover {
  transform: translateY(-5px);
}

.carte h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.carte ul {
  list-style: none;
  padding: 0;
}

.carte li {
  margin-bottom: 8px;
  font-size: 16px;
}

@media (max-width: 900px) {
  .grille-competences {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grille-competences {
    grid-template-columns: 1fr;
  }
}

.parcours {
  background: #f4f7f4;
  color: #2f5d34;
  padding: 120px 40px;
}

.parcours h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
}

/* Timeline verticale */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background: #2f5d34;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: -80px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 25px;
  width: 18px;
  height: 18px;
  background: #2f5d34;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -9px;
}

.timeline-item:nth-child(even)::before {
  left: -9px;
}

@media (max-width: 768px) {

  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-item::before {
    left: 11px !important; /* 20px - 9px (la moitié de 18px) */
    right: auto !important;
    transform: none;
  }

  /* Réinitialiser les styles spécifiques odd/even */
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 11px !important;
    right: auto !important;
  }
}

.projets {
  background: #ffffff;
  color: #2f5d34;
  padding: 120px 40px;
}

.projets h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
}

.grille-projets {
  display: grid;
  grid-template-columns: 1fr;   /* UNE seule colonne */
  gap: 40px;
  max-width: 900px;
  margin: auto;
}

.carte-projet {
  background: #f4f7f4;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.carte-projet:hover {
  transform: translateY(-6px);
}

.carte-projet h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.technos {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 20px;
}

.bouton-projet {
  display: inline-block;
  padding: 10px 18px;
  background: #2f5d34;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.bouton-projet:hover {
  background: #3f7a44;
}

.projet-detail {
  padding: 100px 40px;
  max-width: 1000px;
  margin: auto;
  color: #2f5d34;
  background: #ffffff;
}

.projet-detail h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.sous-titre {
  opacity: 0.7;
  margin-bottom: 40px;
}

.technos {
  font-weight: bold;
}

.images-projet {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.images-projet img {
  width: 30%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.liens-projet {
  margin-top: 40px;
}

.liens-projet a {
  display: inline-block;
  margin-right: 20px;
  padding: 10px 18px;
  background: #2f5d34;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}
.demarche {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.etape {
  background: #f4f7f4;
  color: #2f5d34;
  padding: 18px 22px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.etape span {
  display: block;
  font-weight: normal;
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

.badges-competences {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.badges-competences span {
  background: #e6f2e8;
  color: #2f5d34;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.contact {
  padding: 80px 20px;
  text-align: center;
  background: #f5f7f6; /* gris très clair */
  color: #2f5d34;
}

.contact h2 {
  font-size: 42px;
  margin-bottom: 40px;
}

.contact-bloc {
  margin-bottom: 25px;
}

.contact-bloc span {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6a8f73;
}

.contact-bloc p {
  font-size: 20px;
  margin-top: 5px;
  font-weight: 500;
}

.contact a {
  color: #2f5d34;
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover {
  text-decoration: underline;
}

.dispo {
  margin-top: 35px;
  font-weight: bold;
  font-size: 18px;
}

