/* ----------- BASE ----------- */
:root {
  --bg-gradient: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  --primary: #3b82f6;
  --secondary: #0ea5e9;
  --text-color: #f8fafc;
  --radius: 12px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ----------- TITRES ----------- */
h1, h2, h3, h4 {
  text-align: center;
  font-weight: 600;
}

/* ----------- SECTION ----------- */
.section-container {
  padding: 60px 10%;
  text-align: center;
}

/* ----------- HERO ----------- */
.main-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  animation: fadeInDown 1.2s ease;
  text-align: center; /* centre le texte */
  display: flex;
  justify-content: center;
  align-items: center;
}


.portfolio-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1.5s ease 0.3s forwards;
}

.portfolio-sub .line {
  flex: 1;
  height: 2px;
  background: var(--primary);
}

/* ----------- BOUTONS ----------- */
.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  padding: 12px 28px;
  font-size: 1rem;
  color: var(--text-color);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover {
  color: #fff;
}

.btn:hover::after {
  transform: scaleX(1);
}

/* ----------- PRÉSENTATION ----------- */
.presentation-box {
  display: flex;
  flex-wrap: wrap;
  background-color: #234a8a;
  border-radius: 20px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  gap: 30px;
  max-width: 1000px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.presentation-text {
  max-width: 600px;
  text-align: left;
}

/* --- Maps avec caractéristiques --- */
.map-box, .map-boxRight {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 15px;
  flex-wrap: wrap;
    transform: translateY(-8px);
  max-width: 900px; /* réduit la largeur totale */
  margin: auto; /* centre la box */
}

.map-image, .map-image2 {
  width: 600px; /* avant 250px → environ 2,4× plus grand */
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  cursor: pointer;
}

.map-image:hover, .map-image2:hover {
  transform: scale(1.05) rotate(-1deg); /* zoom + petit angle */
  box-shadow: 0 10px 30px rgba(0, 180, 255, 0.4); /* lueur colorée */
}

.map-details, .map-detailsRight {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px;
  flex: 1;
  min-width: 200px;
  max-width: 350px; /* limite la largeur des caractéristiques */
}

.map-details h1, .map-detailsRight h1 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.map-details ul, .map-detailsRight ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.map-details ul li, .map-detailsRight ul li {
  font-size: 0.95rem;
  margin-bottom: 5px;
  border-left: 3px solid var(--primary);
  padding-left: 8px;
}

.map-link,
.map-link * {
  color: #fff;
  text-decoration: none;
}

.map-link {
  display: block;
}

.map-item {
  cursor: pointer;
}


/* --- Voir plus --- */

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.map-item {
  background: rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.map-thumb {
  width: 100%;
  border-radius: var(--radius);
}

/* ------ Prise en charge ------*/
.schema-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent; /* on enlève le fond général */
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.schema-step {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 18px 25px 18px 60px;
  padding-left: 65px; /* + place pour le cercle */
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schema-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 180, 255, 0.4);
}

/* Animation de surbrillance comme les boutons */
.schema-step::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
  transition: left 0.4s ease;
}
.schema-step:hover::after {
  left: 0;
}

/* Numéro de l'étape - corrigé */
.step-number {
  position: absolute;
  left: 15px; /* au lieu de -20px */
  top: 50%;
  transform: translateY(-50%);
  background: white; /* fond clair pour contraste */
  color: var(--primary);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center; 
  justify-content: center;
  font-weight: bold;
  border: 2px solid var(--primary);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.contact-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-icons-vertical {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}
.contact-icons-vertical .icon img {
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  padding: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.contact-icons-vertical .icon:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px var(--primary));
}
.contact-separator {
  width: 5px;
  background: red;
  border-radius: 5px;
  height: 100%;
}
.custom-contact-form {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  flex: 1;
}
.custom-contact-form input,
.custom-contact-form textarea {
  padding: 12px;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  background: rgba(255,255,255,0.05);
  color: var(--text-color);
  font-size: 1rem;
}
.form-row {
  display: flex;
  gap: 15px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.photo-upload { display: flex; flex-direction: column; align-items: flex-start; }
.photo-upload label {
  background: var(--primary);
  color: white;
  padding: 8px 15px;
  border-radius: var(--radius);
  cursor: pointer;
}
.photo-upload input { display: none; }
.notif-container {
  position: fixed;
  top: 20px; left: 20px;
  background: var(--primary);
  color: #fff;
  padding: 15px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.notif-bar {
  height: 5px;
  background: var(--secondary);
  width: 100%;
}


/* ----------- ANIMATIONS ----------- */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------- RESPONSIVE ----------- */

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
  .section-container {
    padding: 40px 5%;
  }

  .map-image, .map-image2 {
    width: 100%;
    max-width: 500px;
  }

  .map-box, .map-boxRight {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .map-details, .map-detailsRight {
    max-width: 100%;
  }

  .presentation-text {
    max-width: 100%;
    text-align: center;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  .main-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    text-align: center;
  }

  .portfolio-sub {
    flex-direction: column;
    gap: 6px;
  }

  .button-group {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    flex: none; /* évite de prendre toute la largeur */
  }

  .presentation-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .map-image, .map-image2 {
    width: 100%;
    max-width: 100%;
  }

  .map-box, .map-boxRight {
    flex-direction: column;
    padding: 10px;
    text-align: center;
  }

  .map-details, .map-detailsRight {
    max-width: 100%;
    min-width: unset;
  }

  .schema-box {
    padding: 0 10px;
  }

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* 3 cercles horizontaux */
  .contact-icons-vertical {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }

  .contact-separator {
    display: none;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .custom-contact-form {
    width: 100%;
    max-width: 100%;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .schema-step {
    padding: 15px 20px 15px 50px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
}

