/* --- BASE --- */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 20px 60px 20px;
  box-sizing: border-box;
}

/* --- TITRES --- */
h1 {
  font-size: 3rem;
  position: relative;
  color: #fff;
  display: inline-block;
  margin-top: 40px;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.2em;
  background: linear-gradient(120deg, #2234dd 20%, transparent 30%, #1523a8 50%, transparent 70%, #1b2bbb 80%);
  transform: rotate(-2deg);
  z-index: -1;
}

/* --- SECTION CONTACT --- */
.contact-section {
  margin-top: 10%;
  background-color: #161b22;
  padding : 0px 40px 40px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* --- CONTENU CONTACT --- */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

/* --- FORMULAIRE --- */
.contact-form {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  color: #58a6ff;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  background-color: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 10px;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #58a6ff;
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  margin-top: 10px;
  background-color: #58a6ff;
  color: #0d1117;
  font-weight: 700;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #1f6feb;
}

/* --- PDF --- */
.pdf-viewer {
  flex: 1 1 45%;
}

iframe {
  border: 2px solid #30363d;
  border-radius: 8px;
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #58a6ff;
  color: #0d1117;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.download-btn:hover {
  background-color: #1f6feb;
}

/* --- PHOTO CONTAINER RESPONSIVE --- */
.photo-container {
  position: absolute;
  top: 35%;
  right: 8%;
  width: 170px;
  text-align: center;
  z-index: 1000;
  transition: all 0.3s ease;
}



.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid #828385;
  box-shadow: 0 0 15px rgba(221, 224, 228, 0.5);
  background-color: #161b22;
}

/* --- BOUTONS AUTOUR DE LA PHOTO --- */
.orbit {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 15px;
}

.orbit-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #161b22;
  border: 2px solid #58a6ff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  cursor: pointer;
}

.orbit-btn:hover {
  background-color: #363a41;
}

/* Icônes en ligne (CDN) */
.orbit-btn.linkedin {
  background-image: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/linkedin.svg");
  filter: invert(0%) sepia(70%) saturate(300%) hue-rotate(180deg) brightness(80%) contrast(90%);
}

.orbit-btn.github {
  background-image: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/github.svg");
  filter: invert(0%) sepia(70%) saturate(300%) hue-rotate(180deg) brightness(80%) contrast(90%);
}

.orbit-btn.mail {
  background-image: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/gmail.svg");
  filter: invert(0%) sepia(70%) saturate(300%) hue-rotate(180deg) brightness(80%) contrast(90%);
}

@media(max-width: 1580px) {
  .photo-container {
    position: relative;
    top: 5%;
    right: auto;
    width: 100%;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
  }
}

/* --- DISPONIBILITÉ --- */
.availability-section {
  margin-top: 60px;
  background-color: #161b22;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  text-align: justify;
}

.availability-section p {
  line-height: 1.6;
  margin-bottom: 1em;
  color: #c9d1d9;
}

/* --- MAP SECTION --- */
.map-section {
  margin-top: 60px;
  background-color: #161b22;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  text-align: center;
}

.map-section iframe {
  margin-top: 20px;
  border-radius: 8px;
  border: 2px solid #30363d;
  width: 100%;
}

/* --- FAQ --- */
.faq-section {
  margin-top: 60px;
  background-color: #161b22;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  text-align: justify;
}

.faq-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.faq-section li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #c9d1d9;
  font-size: 1rem;
}

/* --- TITRES COHÉRENTS --- */
.availability-section h1,
.map-section h1,
.faq-section h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.availability-section h1::after,
.map-section h1::after,
.faq-section h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.2em;
  background: linear-gradient(120deg, #2234dd 20%, transparent 30%, #1523a8 50%, transparent 70%, #1b2bbb 80%);
  transform: rotate(-2deg);
  z-index: -1;
}


/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
  .photo-container {
    position: relative;
    top: 5%;
    right: auto;
    width: 100%;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .orbit {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 15px;
  }

  .contact-section {
    text-align: center;
    padding: 30px 20px;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .pdf-viewer {
    order: 2;
    width: 100%;
  }

  .contact-form {
    order: 3;
    width: 100%;
    text-align: left;
  }

  .availability-section,
  .map-section,
  .faq-section {
    padding: 20px;
  }

  .availability-section h1,
  .map-section h1,
  .faq-section h1 {
    font-size: 2rem;
  }

  .map-section iframe {
    height: 250px;
  }
}
