/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
}

:root {
  --primary: #4b72c1;
  --primary-light: #b3c3db;
  --dark: #2e4466;
  --bg: #eeeeef;
  --white: #fefefe;
  --border: #d6deea;
}

body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* =========================
   LAYOUT
========================= */

.wrapper {
  width: 100%;
  max-width: 720px;
  padding: 20px;
  margin: auto;
}


.card {
      Margin: 48px 42px;
  background: var(--white);
  border-radius: 18px;
  padding: 48px 42px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: center;
  height: auto;
  display: flex;
  flex-direction: column;
  
}

h1 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
}

/* =========================
   INPUTS
========================= */

.input {
  width: 100%;
  max-width: 520px;
  padding: 16px 18px;
  font-size: 17px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
}

.input::placeholder {
  color: var(--primary-light);
  opacity: 1;
}

.step-address,
.step-coordonnees {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

/* =========================
   BUTTONS (UNIFIÉS)
========================= */

.btn {
  width: 100%;
  height: 64px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #3f63aa;
  transform: translateY(-2px);
}

.btn-small {
  max-width: 300px;
}

.btn-medium {
  max-width: 380px;
}

.btn-large {
  max-width: 420px;
}

/* =========================
   GRID OPTIONS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: 40px;
}




.option:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.option.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================
   FOOTER & PROGRESS
========================= */

.footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  font-size: 15px;
  color: var(--dark);
  margin-top: 20px;
      
}

.progress {
  width: 100%;
  height: 6px;
  background: #e4e9f2;
  border-radius: 6px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: var(--primary);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* =========================
   LANDING
========================= */

.step-landing {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-content {
  max-width: 600px;
}

.landing-img {
  width: 220px;
  margin-bottom: 30px;
}

.landing-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
      font-size: 29px;
}

.landing-sub {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 50px;
}

/* =========================
   RESUME
========================= */

.step-resume {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  align-items: flex-start
}

.resume-summary {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.resume-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  margin-left: 40px;
  
}

.resume-icon {
  font-size: 28px;
}

.resume-buttons {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  width: 100%;
}

/* =========================
   BACK BUTTON
========================= */

.btn-back {
  position: fixed;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  width: 25px;
  height: 16px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.btn-back:hover {
  opacity: 0.6;
}

/* =========================
   GOOGLE AUTOCOMPLETE
========================= */

.pac-container {
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
  font-family: "Segoe UI", system-ui, sans-serif !important;
  margin-top: 8px !important;
}

.pac-item {
  padding: 5px 16px !important;
  font-size: 16px !important;
  color: var(--dark) !important;
  border-top: none !important;
}

.pac-item:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

.pac-item-query {
  font-weight: 600 !important;
}

.pac-container:after {
  display: none !important;
}

/* =========================
   CREDIT BANNER
========================= */

.credit-banner {
  
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-light);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 5px 20px;
  letter-spacing: 0.3px;
  z-index: 999;
}

/* =========================
   ANIMATIONS (UNIFIÉES)
========================= */

.slide-next-enter,
.slide-back-enter {
  opacity: 0;
}

.slide-next-enter {
  transform: translateX(40px);
}

.slide-back-enter {
  transform: translateX(-40px);
}

.slide-next-enter-active,
.slide-back-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.slide-next-exit-active {
  transform: translateX(-40px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.slide-back-exit-active {
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Performance boost */
.slide-next-enter,
.slide-next-enter-active,
.slide-next-exit-active,
.slide-back-enter,
.slide-back-enter-active,
.slide-back-exit-active {
  will-change: transform, opacity;
}

/* =========================
   RESPONSIVE
========================= */


@media (max-width: 540px) {
    .grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 20px;
    }

  .landing-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
        font-size: 15px;
  }
    
  .landing-img {
  width: 160px;
  margin-bottom: 30px;
}


.option span {
  margin-top: auto;
  text-align: center;
  width: 100%;
  padding-bottom: 10%;
  font-size: 3.5vw;
}



.card {
  Margin: 0px 0px;
  background: var(--white);
  border-radius: 18px;
  padding: 24px 21px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: center;
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 50px;
      overflow: hidden;
justify-content: flex-start;


}
.landing-sub {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 50px;
}

.btn-small {
  max-width: 300px;
  margin-bottom: 20px;
}

.wrapper {
  width: 100%;
  max-width: 720px;
  padding: 10px;
  margin: auto;
  
}

h1 {
  font-size: 5vw;
  color: var(--dark);
  margin-bottom: 10px;
  margin-top: 20px;
}

.subtitle {
  font-size: 2.8vw;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
}

.resume-summary {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  margin-left: 0px;
}
.resume-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 3vw;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  margin-left: 0px;
  
}
.input {
  width: 100%;
  max-width: 520px;
  padding: 16px 18px;
  font-size: 4vw;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 15px;
}


.btn {
  width: 100%;
  height: 64px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 4.2vw;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 15vw;
}

}

#question,
#subtext {
  transform: translateX(0);
}
.slide-next-enter,
.slide-next-enter-active,
.slide-next-exit-active,
.slide-back-enter,
.slide-back-enter-active,
.slide-back-exit-active {
  backface-visibility: hidden;
}
#question,
#subtext {
  will-change: transform;
  transform: translateZ(0);
}





.option {
  aspect-ratio: 5 / 4;          /* format automatique */
  width: 100%;

  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;

   padding: 30px 20px 0 20px;  

  border-radius: 18px;
  border: 2px solid var(--border);
  background: var(--white);

  font-size: 18px;
  font-weight: 600;
  color: var(--dark);

  cursor: pointer;
  transition: all 0.25s ease;
}

.option img {
 position: absolute;
   top: 50%;      /* 🔥 manquait */
  left: 50%;     /* 🔥 manquait */
  transform: translate(-50%, -50%); /* centrage parfait */

   
    width: 80%;
    pointer-events: none;
}

.option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #4b72c1;
}
.option span {
  margin-top: auto;
  text-align: center;
  width: 100%;
  padding-bottom: 10%;
  
}

.confirmation-team {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  object-position: center 10%;
}

.team-name {
  margin-top: 10px;
  font-weight: 600;
  color: var(--dark);
}

.confirmation-text {
  font-size: 17px;
  color: var(--dark);
  margin-top: 20px;
  line-height: 1.6;
}

.confirmation-highlight {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 20px;
}

.team-member img {
  transition: transform 0.25s ease;
}

.team-member a:hover img {
  transform: scale(1.08);
}