@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* --- GLOBAL --- */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 60% 15%, rgba(120,180,255,0.13) 0, rgba(120,180,255,0) 65%),
    linear-gradient(135deg, #232b3b 0%, #3b4760 80%, #415376 100%);
  color: #f7fbff;
  font-family: 'Inter', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- CONTAINERS --- */
.container, .hero {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 8px 28px 8px;
  box-sizing: border-box;
}

.container {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  animation: slideUp 0.8s cubic-bezier(.68,-0.3,.35,1.4);
  opacity: 1;
  padding: 0 10px;
}

/* --- TITRES & TEXTES --- */
.big-gradient {
  font-size: 2.6em;
  font-weight: 900;
  background: linear-gradient(90deg, #fff 15%, #6ab8ff 90%);
  background-clip: text;
  text-shadow: 0 3px 32px #2b9df488, 0 1px 0 #444b;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-align: center;
}

.title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 40px;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 8px #17243a44;
}

.subtitle {
  font-size: 1.08em;
  font-weight: 600;
  margin-bottom: 28px;
  text-align: center;
  color: #eaf6ff;
  text-shadow: 0 2px 8px #19326660;
}

.desc {
  font-size: 1.08em;
  color: #fff;
  max-width: 430px;
  margin: 0 auto 42px auto;
  text-align: center;
  text-shadow: 0 1px 10px #0005;
}

/* --- BOUTONS DESIGN --- */
.buttons, .btn-group {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.btn {
  display: block;
  width: 100%;
  max-width: 410px;
  margin: 0 auto 22px auto;
  font-size: 1.16em;
  font-weight: 700;
  padding: 18px 0;
  border-radius: 999px;
  border: none;
  color: #fff;
  background: linear-gradient(95deg, #2563eb 0%, #1e40af 90%);
  box-shadow: 0 8px 32px #294fff1c, 0 1.5px 8px #1029b733;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    box-shadow 0.18s cubic-bezier(.4,2,.3,1),
    transform 0.14s cubic-bezier(.4,2,.3,1),
    filter 0.18s cubic-bezier(.4,2,.3,1),
    background 0.2s cubic-bezier(.4,2,.3,1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn.red {
  background: linear-gradient(95deg, #ef233c 0%, #b90f2f 90%);
  box-shadow: 0 8px 36px #e3273917, 0 1.5px 8px #c90f2c28;
}
.btn:not(.red):last-child {
  background: linear-gradient(95deg, #06b6d4 0%, #2d7bff 90%);
}
.btn:hover, .btn:focus {
  filter: brightness(1.12) saturate(1.03);
  transform: translateY(-2px) scale(1.028);
  box-shadow: 0 12px 48px #17285633, 0 2px 12px #1e4fd340;
}
.btn:active {
  filter: brightness(0.95);
  transform: scale(0.98);
}
.btn-sub {
  display: block;
  font-size: 0.80em;
  font-weight: 400;
  opacity: 0.93;
  margin-top: 3px;
}

/* --- BOUTON RETOUR --- */
.btn-retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px auto 0 auto;
  padding: 11px 24px;
  font-size: 1.06em;
  font-weight: 500;
  color: #fff;
  border: none;
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: background 0.13s;
  opacity: 0.74;
}
.btn-retour:hover, .btn-retour:focus {
  background: rgba(255,255,255,0.07);
  opacity: 1;
}

/* --- ANIMATIONS --- */
@keyframes slideUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- RESPONSIVE --- */
@media (max-width: 560px) {
  .container, .hero {padding-top: 18px;}
  .big-gradient {font-size: 1.65em;}
  .title {font-size: 1.07em;}
  .subtitle {font-size: 1em;}
  .desc {font-size: 0.99em;}
  .buttons, .btn-group {max-width: 99vw;}
  .btn {font-size: 1em; padding: 16px 0;}
}

/* --- UTILITAIRES --- */
b, strong {font-weight: 700;}

.form-lead {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 34px 40px 20px 20px;
  max-width: 430px;
  margin: 22px auto 0 auto;
  box-shadow: 0 4px 24px #131e2a11;
  animation: slideUp 0.9s cubic-bezier(.68,-0.3,.35,1.4);
  backdrop-filter: blur(2.5px);
}

.form-group {
  margin-bottom: 19px;
  text-align: left;
}
.form-group label {
  font-weight: 500;
  color: #eaf6ff;
  margin-bottom: 4px;
  display: block;
  letter-spacing: 0.01em;
}
.form-lead input[type="text"],
.form-lead input[type="date"],
.form-lead input[type="tel"],
.form-lead input[type="email"] {
  width: 90%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.2px solid #3b4a65;
  background: rgba(33,44,70,0.12);
  color: #fff;
  font-size: 1em;
  font-family: inherit;
  margin-top: 4px;
  margin-bottom: 2px;
  outline: none;
  box-shadow: 0 1px 8px #232c3b10;
  transition: border 0.19s;
}
.form-lead input:focus {
  border: 1.5px solid #2563eb;
  background: rgba(33,44,70,0.19);
}
.required {
  color: #f25;
  font-size: 1.1em;
  vertical-align: middle;
  margin-left: 2px;
}
.form-lead button.btn {
  margin-top: 18px;
  margin-bottom: 2px;
  width: 100%;
}
@media (max-width: 520px) {
  .form-lead {padding: 22px 4vw;}
}
.prix-affiche {
  margin: 20px 0 20px 0;
  padding: 14px;
  border-radius: 15px;
  background: rgba(60,120,230,0.12);
  color: #fff;
  font-size: 1.12em;
  text-align: center;
  box-shadow: 0 2px 10px #2642ab18;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  font-family: inherit;
}
.form-group input[type="radio"] {
  accent-color: #2196f3;
  margin-right: 5px;
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 20px;
  display: none;
}

.popup-box {
  background: #ffffff;
  color: #1c1c1c;
  border-radius: 14px;
  max-width: 500px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.4s ease-out;
}

.popup-box h2 {
  font-size: 22px;
  margin-top: 0;
  color: #0a3c89;
}

.popup-content {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.accept-close {
  background: linear-gradient(95deg, #007bff 0%, #0047ab 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.accept-close:hover {
  background: linear-gradient(95deg, #0056d2 0%, #002a7d 100%);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 8px;
  border: none;
  resize: vertical;
  font-size: 15px;
  font-family: 'Segoe UI', sans-serif;
  background: rgba(255,255,255,0.05);
  color: white;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  overflow: auto;
}

#conditionsOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


#conditionsModal {
  background: #1d293b;
  color: white;
  padding: 25px 20px;
  text-align: left; 
  border-radius: 12px;
  width: 90vw;           /* Centrage parfait sur mobile */
  max-width: 500px;
  max-height: 90vh;
  margin: 0 auto;         /* Ajoute le centrage horizontal */
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: left;
}

#conditionsModal h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

#conditionsModal p {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

#acceptBtn {
  background: #2f5bea;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 20px;
  width: 100%;
  cursor: pointer;
}
