/* ========================================
   PRÉSENTATION - BASE STYLES
   ======================================== */

.presentation {
  height: 500px;
  width: 1200px;
  max-width: 100%;
  background-color: lightgrey;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.cercle-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  margin-left: 50px;
  margin-top: 50px;
  background-color: darkgrey;
}

/* Place le texte "Salut, je suis Mattéo" à droite du cercle */
.presentation > p {
  position: absolute;
  left: calc(50px + 250px + 100px);
  top: 50px;
  margin: 0;
  line-height: 1.1;
  color: #202a37;
}

/* Logo en bas à droite du cercle */
.cercle-logo {
  width: 40px;
  height: 40px;
  background-color: #202a37;
  border-radius: 50%;
  position: absolute;
  left: calc(10px + 250px + 12px);
  top: calc(60px + 250px - 50px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.cercle-logo-icon {
  color: white;
}

/* Espacement des paragraphes */
.presentation > p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: #202a37;
}

/* Paragraphes normaux après le cercle */
.presentation > p.montserrat-normal {
  margin-top: calc(10px + 90px + 10px);
}

.text-presentation {
  width: 700px;
  max-width: 100%;
  line-height: 1.6;
  padding: 0 20px;
}

.title-skills {
  margin-top: 50px;
}

/* ========================================
   CARDS COMPÉTENCES
   ======================================== */

.card-competences {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 20px;
  min-width: 240px;
  max-width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-competences:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #202a37;
}

.card-competences-icon {
  width: 48px;
  height: 48px;
  background: #202a37;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background 0.3s ease;
  
}

.card-competences:hover .card-competences-icon {
  background: #2c3948;
}

.card-competences-icon i {
  font-size: 1.3rem;
  color: #ffffff;
}

.card-competences-content p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #202a37;
  margin-bottom: 16px;
  text-align: center;
  margin-left: 20px;
  margin-top: 20px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.skills-list .badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 10px;
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb !important;
  transition: all 0.2s ease;
}

.skills-list .badge:hover {
  background: #202a37 !important;
  color: #ffffff !important;
  border-color: #202a37 !important;
}

/* Container de la section compétences */
section.py-5 > .d-flex.gap-5 {
  padding: 0 40px;
  max-width: 1000px;
  margin: 0 auto;
}


/* ========================================
   TIMELINE (Section Parcours)
   ======================================== */

.parcours-section .presentation-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.timeline {
  position: relative;
  padding-left: 96px;
  margin-top: 24px;
}

/* Ligne verticale */
.timeline::before {
  content: "";
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e6e6e6;
}

/* Chaque élément */
.timeline-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  align-items: flex-start;
}

/* Point sur la ligne */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e9ecef;
  border: 4px solid #202a37;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateX(-50%);
}

/* Contenu principal */
.timeline-content {
  max-width: calc(100% - 160px);
  flex: 1;
}

/* Titres et sous-titre */
.timeline-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.timeline-content .muted {
  margin: 0 0 8px 0;
  color: #6c757d;
  font-size: 0.95rem;
}

/* Badge de date */
.date-badge {
  background: #bfbfbf;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
  flex-shrink: 0;
}

/* Descriptions */
.timeline-content p {
  margin: 0 0 8px 0;
  line-height: 1.6;
  color: #222;
}

.timeline-item + .timeline-item {
  border-top: 0;
}

/* ========================================
   SECTION VOIR PROJETS
   ======================================== */

.see-projet {
  background-color: #626d86;
  width: 100%;
  min-height: 300px;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.see-projet .poppins-bold {
  margin: 0 0 20px 0;
  color: #ffffff;
  text-align: center;
}

.see-projet .text-header-1 {
  color: #e5e5e5;
  margin: 0 0 30px 0;
  text-align: center;
  max-width: 700px;
}

/* Wrapper pour centrage */
.contact-btn-wrapper2 {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
}

/* Bouton */
.contact-btn1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  color: #202a37;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Icône */
.contact-icon {
  font-size: 16px;
}

/* Hover élégant */
.contact-btn1:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

/* Active (clic / mobile) */
.contact-btn1:active {
  transform: scale(0.97);
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE
   ======================================== */

/* Tablettes (max 992px) */
@media screen and (max-width: 992px) {
  .presentation {
    width: 100%;
    height: auto;
    min-height: 450px;
    padding: 40px 30px;
    
  }

  .cercle-img {
    width: 220px;
    height: 220px;
    margin-left: 40px;
    margin-top: 40px;
  }

  .cercle-logo {
    width: 38px;
    height: 38px;
    left: calc(40px + 220px + 10px);
    top: calc(40px + 220px - 45px);
  }

  .presentation > p.poppins-bold {
    left: calc(40px + 220px + 60px);
    top: 40px;
    font-size: 1.3rem;
  }

  .text-presentation {
    width: 100%;
    padding: 0 30px;
  }

  .card-competences {
    min-width: 220px;
    max-width: 260px;
    padding: 20px 18px;
  }

  .card-competences-icon {
    width: 44px;
    height: 44px;
  }

  .card-competences-icon i {
    font-size: 1.2rem;
  }

  .card-competences-content p {
    font-size: 1.05rem;
    margin-bottom: 14px;
  }

  .skills-list .badge {
    font-size: 0.75rem;
    padding: 4px 9px;
  }

  section.py-5 > .d-flex.gap-5 {
    padding: 0 30px;
  }

  .timeline {
    padding-left: 80px;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline-item::before {
    left: -39px;
  }

  .contact-btn-wrapper2 {
    margin: 50px 0;
  }

  .see-projet {
    min-height: 250px;
    padding: 40px 20px 30px;
  }

  .see-projet .poppins-bold {
    font-size: 1.5rem;
  }

  .see-projet .text-header-1 {
    font-size: 0.95rem;
  }
}

/* Tablettes moyennes (max 768px) */
@media screen and (max-width: 768px) {
  .presentation {
    height: auto;
    min-height: 400px;
    padding: 30px 20px;
    border-radius: 16px;
  }

  .cercle-img {
    width: 200px;
    height: 200px;
    margin-left: 30px;
    margin-top: 30px;
  }

  .cercle-logo {
    width: 36px;
    height: 36px;
    left: calc(30px + 200px + 8px);
    top: calc(30px + 200px - 40px);
  }

  .presentation > p.poppins-bold {
    left: calc(30px + 200px + 40px);
    top: 30px;
    font-size: 1.2rem;
    max-width: calc(100% - 30px - 200px - 60px);
  }

  .presentation > p.montserrat-normal {
    position: static;
    margin-top: calc(30px + 200px + 20px);
    padding: 0 20px;
  }

  .text-presentation {
    width: 100%;
    padding: 0 20px;
  }

  .title-skills {
    margin-top: 40px;
  }

  /* Cards compétences en colonne sur tablette */
  section.py-5 > .d-flex.gap-5 {
    flex-direction: column;
    align-items: center;
    gap: 20px !important;
    padding: 0 20px;
  }

  .card-competences {
    min-width: 100%;
    max-width: 450px;
    padding: 22px 20px;
  }

  .card-competences-icon {
    width: 46px;
    height: 46px;
  }

  .card-competences-icon i {
    font-size: 1.25rem;
  }

  .card-competences-content p {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  .skills-list .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  /* Timeline responsive */
  .timeline {
    padding-left: 64px;
  }

  .timeline::before {
    left: 32px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }

  .timeline-item::before {
    left: -31px;
    top: 20px;
    width: 10px;
    height: 10px;
  }

  .timeline-content {
    max-width: 100%;
  }

  .timeline-content h3 {
    font-size: 1.05rem;
  }

  .date-badge {
    margin-top: 12px;
    align-self: flex-start;
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .contact-btn-wrapper2 {
    margin: 40px 0;
  }

  .contact-btn1 {
    padding: 14px 30px;
    font-size: 15px;
  }

  .see-projet {
    min-height: 220px;
    padding: 35px 20px 25px;
  }

  .see-projet .poppins-bold {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .see-projet .text-header-1 {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }
}

/* Smartphones (max 576px) */
@media screen and (max-width: 576px) {
  .presentation {
    height: auto;
    min-height: 550px;
    padding: 20px 15px;
    border-radius: 14px;
  }

  .cercle-img {
    width: 180px;
    height: 180px;
    margin-left: 16px;
    margin-top: 16px;
  }

  .cercle-logo {
    width: 72px;
    height: 72px;
    left: calc(16px + 180px + 8px);
    top: calc(16px + 180px - 36px);
  }

  /* Repositionner le texte sous l'image sur mobile */
  .presentation > p.poppins-bold {
    position: static;
    left: auto;
    top: auto;
    margin-top: 20px;
    padding: 0 15px;
    font-size: 1.5rem;
    max-width: 100%;
  }

  .presentation > p.montserrat-normal,
  .presentation > p:not(.poppins-bold) {
    position: static;
    margin-top: 15px;
    padding: 0 15px;
    font-size: 0.95rem;
  }

  .text-presentation {
    width: 100%;
    padding: 0 15px;
    font-size: 0.95rem;
  }

  .title-skills {
    margin-top: 35px;
    font-size: 1.3rem;
  }

  .card-competences {
    padding: 20px 18px;
    border-radius: 10px;
    max-width: 100%;
  }

  .card-competences-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .card-competences-icon i {
    font-size: 1.15rem;
  }

  .card-competences-content p {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .skills-list {
    gap: 5px;
  }

  .skills-list .badge {
    font-size: 0.75rem;
    padding: 4px 9px;
  }

  section.py-5 > .d-flex.gap-5 {
    padding: 0 15px;
    gap: 18px !important;
  }

  /* Timeline mobile */
  .timeline {
    padding-left: 48px;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-item {
    padding: 16px 0;
    gap: 16px;
  }

  .timeline-item::before {
    left: -23px;
    top: 16px;
    width: 8px;
    height: 8px;
    border: 3px solid #202a37;
  }

  .timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .timeline-content .muted {
    font-size: 0.9rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .date-badge {
    padding: 5px 10px;
    font-size: 0.85rem;
    margin-top: 10px;
  }

  /* Bouton contact */
  .contact-btn-wrapper2 {
    margin: 35px 0;
  }

  .contact-btn1 {
    padding: 12px 24px;
    font-size: 14px;
    gap: 10px;
  }

  .contact-icon {
    font-size: 14px;
  }

  .see-projet {
    min-height: 280px;
    padding: 30px 15px 25px;
  }

  .see-projet .poppins-bold {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .see-projet .text-header-1 {
    font-size: 0.85rem;
    margin-bottom: 25px;
    padding: 0 10px;
  }
}

/* Petits smartphones (max 400px) */
@media screen and (max-width: 400px) {
  .presentation {
    padding: 16px 12px;
    min-height: 500px;
  }

  .cercle-img {
    width: 160px;
    height: 160px;
    margin-left: 12px;
    margin-top: 12px;
  }

  .cercle-logo {
    width: 60px;
    height: 60px;
    left: calc(12px + 160px + 6px);
    top: calc(12px + 160px - 30px);
  }

  .presentation > p.poppins-bold {
    font-size: 1.3rem;
    margin-top: 15px;
    padding: 0 12px;
  }

  .presentation > p.montserrat-normal,
  .presentation > p:not(.poppins-bold) {
    margin-top: 12px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .text-presentation {
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .card-competences {
    padding: 18px 16px;
  }

  .card-competences-icon {
    width: 40px;
    height: 40px;
  }

  .card-competences-icon i {
    font-size: 1.1rem;
  }

  .card-competences-content p {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .skills-list .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  section.py-5 > .d-flex.gap-5 {
    padding: 0 12px;
    gap: 16px !important;
  }

  .timeline {
    padding-left: 40px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item::before {
    left: -19px;
  }

  .timeline-content h3 {
    font-size: 0.95rem;
  }

  .timeline-content .muted,
  .timeline-content p {
    font-size: 0.85rem;
  }

  .date-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .contact-btn1 {
    padding: 10px 20px;
    font-size: 13px;
    gap: 8px;
  }

  .see-projet {
    min-height: 260px;
    padding: 25px 12px 20px;
  }

  .see-projet .poppins-bold {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .see-projet .text-header-1 {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }
}

/* Très petits écrans (max 360px) */
@media screen and (max-width: 360px) {
  .presentation {
    padding: 12px 10px;
    min-height: 480px;
    border-radius: 12px;
  }

  .cercle-img {
    width: 140px;
    height: 140px;
    margin-left: 10px;
    margin-top: 10px;
  }

  .cercle-logo {
    width: 50px;
    height: 50px;
    left: calc(10px + 140px + 5px);
    top: calc(10px + 140px - 25px);
  }

  .cercle-logo-icon {
    font-size: 14px;
  }

  .presentation > p.poppins-bold {
    font-size: 1.2rem;
    margin-top: 12px;
    padding: 0 10px;
  }

  .presentation > p.montserrat-normal,
  .presentation > p:not(.poppins-bold) {
    margin-top: 10px;
    padding: 0 10px;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .text-presentation {
    padding: 0 10px;
    font-size: 0.85rem;
  }

  .title-skills {
    margin-top: 30px;
    font-size: 1.2rem;
  }

  .card-competences {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .card-competences-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .card-competences-icon i {
    font-size: 1rem;
  }

  .card-competences-content p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .skills-list {
    gap: 5px;
  }

  .skills-list .badge {
    font-size: 0.7rem;
    padding: 3px 7px;
  }

  section.py-5 > .d-flex.gap-5 {
    padding: 0 10px;
    gap: 14px !important;
  }

  .timeline {
    padding-left: 35px;
  }

  .timeline::before {
    left: 18px;
    width: 1.5px;
  }

  .timeline-item {
    padding: 14px 0;
  }

  .timeline-item::before {
    left: -16.5px;
    top: 14px;
    width: 7px;
    height: 7px;
    border: 2px solid #202a37;
  }

  .timeline-content h3 {
    font-size: 0.9rem;
  }

  .timeline-content .muted,
  .timeline-content p {
    font-size: 0.8rem;
  }

  .contact-btn-wrapper2 {
    margin: 30px 0;
  }

  .contact-btn1 {
    padding: 10px 18px;
    font-size: 12px;
  }

  .contact-icon {
    font-size: 12px;
  }

  .see-projet {
    min-height: 250px;
    padding: 25px 10px 20px;
  }

  .see-projet .poppins-bold {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .see-projet .text-header-1 {
    font-size: 0.75rem;
    margin-bottom: 20px;
    line-height: 1.4;
  }
}

/* Optimisation pour écrans ultra-larges */
@media screen and (min-width: 1400px) {
  .presentation {
    width: 1300px;
    height: 550px;
    padding: 60px;
  }

  .cercle-img {
    width: 280px;
    height: 280px;
    margin-left: 60px;
    margin-top: 60px;
  }

  .cercle-logo {
    width: 45px;
    height: 45px;
    left: calc(60px + 280px + 15px);
    top: calc(60px + 280px - 55px);
  }

  .presentation > p.poppins-bold {
    left: calc(60px + 280px + 120px);
    top: 60px;
    font-size: 2rem;
  }

  .text-presentation {
    width: 800px;
    font-size: 1.05rem;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .contact-btn1 {
    padding: 18px 40px;
    font-size: 17px;
  }

  .see-projet {
    min-height: 350px;
    padding: 70px 40px 50px;
  }

  .see-projet .poppins-bold {
    font-size: 2.2rem;
    margin-bottom: 25px;
  }

  .see-projet .text-header-1 {
    font-size: 1.05rem;
    margin-bottom: 35px;
  }
}

/* Ajustement pour orientation paysage sur petits écrans */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .presentation {
    min-height: 350px;
    padding: 20px;
  }

  .cercle-img {
    width: 140px;
    height: 140px;
    margin: 15px;
  }

  .cercle-logo {
    width: 40px;
    height: 40px;
    left: calc(15px + 140px + 5px);
    top: calc(15px + 140px - 20px);
  }

  .presentation > p.poppins-bold {
    font-size: 1.1rem;
    margin-top: 10px;
  }

  .timeline-item {
    padding: 12px 0;
  }

  .see-projet {
    min-height: 200px;
    padding: 25px 20px;
  }

  .see-projet .poppins-bold {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .see-projet .text-header-1 {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .contact-btn1 {
    padding: 10px 20px;
    font-size: 13px;
  }
}