/* --- Variables & Reset --- */
:root {
  --primary-color: #00d4ff; /* Le Bleu Nexo */
  --secondary-color: #0056b3;
  --bg-dark: #0f172a;
  --bg-light: #1e293b;
  --text-light: #f1f5f9;
  --text-gray: #94a3b8;
  --font-main: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1,
h2,
h3 {
  color: #fff;
  margin-bottom: 1rem;
}
h1 {
  font-size: 3rem;
  line-height: 1.2;
}
.highlight {
  color: var(--primary-color);
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}
.subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-top: -2.5rem;
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--primary-color);
  color: var(--bg-dark);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
  color: var(--bg-dark) !important;
}

.btn-secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 10px;
}
.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

/* --- Navbar --- */
.navbar {
  background: rgba(15, 23, 42, 0.95);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary-color);
}

/* --- HERO SECTION REVAMPED --- */
.hero {
  min-height: 100vh; /* Prend toute la hauteur */
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, #1e293b, var(--bg-dark));
  padding-top: 80px; /* Pour compenser la barre de menu */
  overflow: hidden; /* Pour ne pas que l'image dépasse */
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% Texte - 50% Image */
  align-items: center;
  gap: 50px;
}

/* 1. LE BADGE (CLARTÉ) */
.hero-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 3.5rem; /* Un peu plus gros */
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

/* 2. LE VISUEL (DROITE) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.floating-img {
  width: 100%;
  max-width: 600px;
  animation: float 6s ease-in-out infinite;
  /* Petit effet d'ombre portée sous l'image */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Animation de flottement pour l'image */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.mobile-text {
  display: none;
}

/* Sur Mobile (écrans de moins de 968px), on inverse */
@media screen and (max-width: 968px) {
  .desktop-text {
    display: none; /* On cache le texte "souris" */
  }
  .mobile-text {
    display: inline; /* On affiche le texte "appuyez" */
  }
}

/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr; /* On empile tout sur mobile */
    text-align: center;
    padding-bottom: 50px;
  }

  .hero {
    height: auto;
    padding-top: 120px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    margin: 0 auto 2rem auto;
  }

  .hero-visual {
    margin-top: 30px;
    order: -1; /* Optionnel : mettre l'image AU DESSUS du texte sur mobile ? Supprime cette ligne si tu préfères l'image en dessous */
  }

  .floating-img {
    max-width: 80%;
  }

  .hero-btns {
    display: flex;
    flex-direction: column; /* On les empile verticalement */
    gap: 15px; /* Espace entre les deux boutons */
    width: 100%;
    margin-top: 30px;
  }

  .hero-btns a {
    width: 100%; /* Les boutons prennent toute la largeur */
    text-align: center; /* Texte bien centré */
    display: block; /* Important pour que la largeur fonctionne */
    margin-left: 0 !important; /* On annule la marge gauche du bouton secondaire */
  }

  /* Optionnel : Si tu veux que le bouton secondaire (contour) ait un fond sombre pour être plus lisible sur l'image */
  .btn-secondary {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* --- Services --- */
.section {
  padding: 80px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 15px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}
.card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* --- Portfolio --- */
.bg-dark {
  background-color: #0b1120;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.portfolio-item {
  background: var(--bg-light);
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
}
.portfolio-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: 0.5s;
}
.portfolio-item:hover .portfolio-img img {
  transform: scale(1.05);
}
.portfolio-info {
  padding: 20px;
}

/* --- Pricing --- */
.pricing-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}
.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 0;
}
.pricing-card ul {
  text-align: left;
  margin-bottom: 30px;
}
.pricing-card li {
  margin-bottom: 10px;
  color: var(--text-gray);
}
.pricing-card li i {
  color: var(--primary-color);
  margin-right: 10px;
}
.small-text {
  font-size: 0.8rem;
  margin-top: 15px;
  color: var(--text-gray);
}

/* --- Contact & Form --- */

.bg-gradient {
  background: linear-gradient(135deg, var(--bg-dark), #162032);
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.btn-submit {
  width: 100%;
  background: var(--primary-color);
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}
.btn-submit:hover {
  opacity: 0.9;
}

/* --- AJOUTS FORMULAIRE PRO --- */

/* La petite étoile rouge */
.required {
  color: #ff4757; /* Rouge vif */
  margin-left: 3px;
  font-weight: bold;
}

/* Le petit texte "Tous champs obligatoires" */
.form-notice {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  text-align: right; /* On le met à droite pour faire discret mais pro */
  font-style: italic;
}

/* VALIDATION VISUELLE */
/* Si le champ est valide (rempli correctement) */
.input-group input:valid,
.input-group textarea:valid {
  border-bottom-color: var(--primary-color); /* Ligne devient Cyan */
}

/* Si on essaie d'envoyer et que c'est invalide (géré par le navigateur) */
.input-group input:invalid:not(:placeholder-shown),
.input-group textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #ff4757; /* Ligne devient Rouge */
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */
.burger {
  display: none;
  cursor: pointer;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px;
  transition: 0.3s;
}

footer {
  text-align: center;
  padding: 40px 0; /* Un peu plus d'espace */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: var(--bg-dark); /* On s'assure que le fond est sombre */
}

.social-links {
  margin-bottom: 20px; /* Espace entre les icônes et le texte copyright */
  display: flex;
  justify-content: center;
  gap: 25px; /* Espace entre les icônes */
}

.social-links a {
  color: var(--text-gray); /* Couleur grise par défaut (discret) */
  font-size: 1.5rem; /* Taille des icônes */
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); /* Petit fond rond subtil */
}

/* Effet au survol (Hover) */
.social-links a:hover {
  color: var(--bg-dark); /* L'icône devient sombre */
  background: var(--primary-color); /* Le fond devient Cyan électrique */
  transform: translateY(-3px); /* Petite lévitation */
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3); /* Lueur néon */
}

footer p {
  color: var(--text-gray);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =========================================
   MEDIA QUERY MASTER (MOBILE & TABLETTE)
   Version Finale - Navigation & Contact Corrigés
   ========================================= */

@media screen and (max-width: 968px) {
  /* --- 1. HEADER & NAVIGATION (Mode App) --- */
  .burger {
    display: none !important;
  }

  .navbar .container {
    padding: 0 15px;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.1rem;
    z-index: 100;
    white-space: nowrap;
  }

  .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    display: flex;
    transform: none;
    padding: 0;
  }

  .nav-links li {
    display: none;
  } /* Cache les liens textes */

  /* Affiche UNIQUEMENT le bouton Devis */
  .nav-links li:has(.btn-primary),
  .nav-links li:last-child {
    display: block !important;
  }

  /* Le Bouton Devis "Pilule" */
  .btn-primary {
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary-color), #00a8cc);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
  }

  /* --- 2. HERO SECTION --- */
  .hero {
    padding-top: 100px;
    text-align: center;
    height: auto;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 10px;
  }
  .floating-img {
    max-width: 70%;
    margin: 0 auto;
  }
  .hero-text h1 {
    font-size: 2rem;
    padding: 0 10px;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
  }
  .hero-btns a {
    width: 100%;
    margin: 0 !important;
  }

  /* --- 3. CORRECTION CONTACT (Le point critique) --- */

  /* On cible bien .contact-wrapper pour passer en une seule colonne */
  .contact-wrapper {
    grid-template-columns: 1fr !important; /* Force l'empilement */
    display: grid;
  }

  .contact-info-box {
    padding: 30px 20px; /* Moins de padding sur mobile */
    order: 1; /* Infos en haut */
  }

  .contact-form-box {
    padding: 30px 20px; /* Moins de padding */
    order: 2; /* Formulaire en bas */
  }

  /* --- 4. AUTRES GRILLES --- */
  .compare-grid,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* --- 5. MODAL & SCROLL --- */
  .modal-content {
    padding: 20px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    display: block;
  }
  .close-modal {
    position: sticky;
    top: 0;
    float: right;
    background: var(--bg-light);
    z-index: 100;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
  }

  @keyframes autoScroll {
    0%,
    15% {
      transform: translateY(0);
    }
    50%,
    65% {
      transform: translateY(calc(-100% + 250px));
    }
    100% {
      transform: translateY(0);
    }
  }
  .scroll-img {
    animation: autoScroll 12s ease-in-out infinite;
  }
  .portfolio-item:hover .scroll-img {
    transform: none;
  }

  .desktop-text {
    display: none;
  }
  .mobile-text {
    display: inline;
  }
}

.nav-active {
  transform: translateX(0%);
}

/* --- GARDER LE CSS PRECEDENT POUR LE RESTE (Variables, Reset, etc.) --- */
/* Je te mets ici les NOUVEAUTÉS uniquement pour ne pas surcharger, 
   ajoute ça dans ton fichier style.css */

/* ... (Ton CSS de base ici) ... */

:root {
  /* Rappel des variables */
  --primary-color: #00d4ff;
  --bg-dark: #0f172a;
  --bg-light: #1e293b;
  --text-light: #f1f5f9;
}

/* === LANGUAGE SWITCHER STYLES === */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch-container {
  margin-left: 20px;
}

.lang-checkbox {
  opacity: 0;
  position: absolute;
}

/* 1. On élargit un tout petit peu le conteneur global */
.lang-label {
  background-color: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 80px; /* AVANT: 70px -> On passe à 80px pour avoir de la place */
  height: 32px; /* Un tout petit peu plus haut */
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

/* 2. On transforme la boule en "Pilule" (Ovale) */
.ball {
  background-color: var(--primary-color);
  width: 36px; /* AVANT: 24px -> On l'élargit */
  height: 26px; /* AVANT: 24px -> On l'agrandit légèrement */
  border-radius: 20px; /* Ce n'est plus 50%, pour garder la forme ovale */
  position: absolute;
  top: 2px; /* Ajustement pour centrer verticalement */
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

/* 3. On ajuste la distance de glisse */
/* Comme le conteneur fait 80px et la boule 36px, il faut ajuster le calcul */
.lang-checkbox:checked + .lang-label .ball {
  transform: translateX(
    38px
  ); /* La distance parfaite pour aller de l'autre côté */
}

.lang-text {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-light);
  z-index: 1;
  width: 50%;
  text-align: center;
}

/* Animation du switch */
.lang-checkbox:checked + .lang-label .ball {
  transform: translateX(40px);
}

.lang-fr {
  margin-left: 5px;
}
.lang-nl {
  margin-right: 5px;
}

/* === PORTFOLIO "BROWSER" EFFECT === */
.browser-frame {
  background: #2d3748;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-header {
  background: #1a202c;
  padding: 10px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.red {
  background: #fc5c5c;
}
.yellow {
  background: #fdbb2d;
}
.green {
  background: #27c93f;
}

.browser-content {
  height: 250px; /* Hauteur fixe de la fenêtre */
  width: 100%;
  overflow: hidden; /* Cache ce qui dépasse */
  position: relative;
}

.scroll-img {
  width: 100%;
  display: block;
  /* La transition magique */
  transition: transform 4s ease-in-out;
}

/* L'effet au survol : on fait défiler l'image vers le haut */
.portfolio-item:hover .scroll-img {
  transform: translateY(calc(-100% + 250px)); /* Monte l'image jusqu'en bas */
}

/* --- CALCULATOR STYLES --- */
.calculator-box {
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.calc-group {
  margin-bottom: 25px;
}
.calc-group h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

select {
  width: 100%;
  padding: 15px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

/* Checkboxes personnalisées */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.95rem;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--bg-dark);
  border: 1px solid var(--text-gray);
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #334155;
}
.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Indicateur "V" dans la checkbox */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}
.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-dark);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Affichage du prix */
.total-display {
  background: rgba(0, 212, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-top: 30px;
  border: 1px solid var(--primary-color);
}

#total-price {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* --- PREMIUM CONTACT SECTION --- */

/* Le Wrapper principal (La boîte) */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Gauche un peu plus petit que Droite */
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden; /* Pour que le background ne dépasse pas */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- COLONNE GAUCHE (INFO) --- */
.contact-info-box {
  background: linear-gradient(135deg, var(--bg-dark), #0f2444);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Petit détail visuel déco */
.contact-info-box::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  filter: blur(80px);
  opacity: 0.15;
  border-radius: 50%;
}

.contact-info-box h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.contact-intro {
  color: var(--text-gray);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* La Timeline des étapes */
.process-timeline {
  margin-bottom: 40px;
}
.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.step-icon {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.1rem;
  flex-shrink: 0; /* Empêche l'icône de s'écraser */
}
.step-content h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 2px;
}
.step-content p {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin: 0;
}

/* Infos directes en bas */
.direct-info .info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.direct-info i {
  color: var(--primary-color);
}

/* --- COLONNE DROITE (FORMULAIRE) --- */
.contact-form-box {
  padding: 50px;
  background: #1e293b; /* Couleur un peu plus claire que le fond */
}

/* Inputs Modernes (Floating Label) */
.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: 0.3s;
  outline: none;
}

/* Le Label qui flotte */
.input-group label {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--text-gray);
  pointer-events: none; /* Permet de cliquer à travers */
  transition: 0.3s ease all;
}

/* L'animation magique quand on clique ou qu'il y a du texte */
.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
  border-bottom-color: var(--primary-color);
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

/* Bouton Spécial avec effet "Glow" */
.btn-submit-glow {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-submit-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* --- MODAL STYLES --- */

/* Le petit bouton info */
.label-with-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.info-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  transition: 0.3s;
  cursor: pointer; /* Indique à iOS que c'est cliquable */
  -webkit-tap-highlight-color: transparent; /* Enlève le flash gris moche au clic */
  z-index: 10; /* S'assure que rien ne passe devant */
  position: relative; /* Nécessaire pour le z-index */
}
.info-btn:hover {
  color: #fff;
}

/* L'arrière-plan sombre du modal */
.modal-overlay {
  display: none; /* Caché par défaut */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}
/* La boîte blanche du modal */
.modal-content {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: modalPop 0.3s ease-out;

  /* Paramètres de scroll pour mobile */
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-gray);
}
.close-modal:hover {
  color: var(--primary-color);
}

/* La grille de comparaison */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
  text-align: left;
}

.compare-col {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

/* Mise en avant de l'offre Vitrine */
.featured-col {
  border-color: var(--primary-color);
  background: rgba(0, 212, 255, 0.05);
  transform: scale(1.05);
  z-index: 2;
}

.tag-best {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--bg-dark);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.col-header {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.col-header h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.col-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.col-features li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-gray);
  list-style: none;
}
.col-features li::before {
  content: "✔";
  color: var(--primary-color);
  margin-right: 8px;
}

.close-modal-btn {
  margin-top: 10px;
  cursor: pointer;
  border: none;
}
