/* ==========================================================================
   RESPONSIVE – STRUCTURE DES BREAKPOINTS
   - ≤ 991.98px : Navbar en mode "collapsed" (mobile + tablette)
   - ≤ 768px    : Ajustements mobiles globaux (hero, VR, footer, etc.)
   - 768–1199px : Tablette / petit desktop
   - ≥ 1200px   : Laptop & desktop standard
   - ≥ 1800px   : Très grands écrans
   ========================================================================== */

/* ========================================================================== 
   ≤ 991.98px — NAVBAR (collapsed)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Menu déroulé clair */
  .navbar-collapse {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  /* Liste + liens en bloc */
  .navbar-nav {
    text-align: left;
    padding: 0;
  }
  .navbar .nav-item {
    margin: 0.2rem 0;
  }
  .navbar .nav-link {
    display: block;
    margin: 0;
    padding: 0.85rem 1rem !important;
  }
  /* Retire le soulignement animé sur mobile/tablette */
  .navbar .nav-link::before {
    display: none;
  }

  /* Logo légèrement réduit */
  .navbar-logo {
    max-height: 52px;
  }
}

/* ========================================================================== 
     ≤ 768px — MOBILE GLOBAL
     ========================================================================== */
@media (max-width: 768px) {
  /* ---- Typo / éléments généraux ---- */
  .section-title {
    font-size: 2rem;
  }
  .benefit-text {
    font-size: 1rem;
    max-width: 70%;
    margin: 24px auto;
  }
  .feature-badge {
    min-width: 0;
    font-size: 0.97rem;
  }

  /* ---- HERO ---- */
  .hero-section {
    background: linear-gradient(
        to right,
        #090b14 0%,
        #091524 30%,
        rgba(10, 23, 37, 0.6) 50%,
        rgba(10, 23, 37, 0.3) 70%,
        transparent 90%
      ),
      url("../images/accueil-3.png");
    background-size: cover;
    background-position: center center;
    padding-left: 3%;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    margin-top: 70px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 0; /* Mobile */
  }

  .hero-title,
  .formations-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.8rem;
    width: 100%;
    text-transform: uppercase;
  }

  .hero-subtitle,
  .hero-subtitle-animated {
    font-size: 1.2rem !important;
    text-align: center;
    margin-bottom: 1.2rem;
    width: 100%;
  }

  .hero-description {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 90%;
  }

  .hero-cta,
  .hero-cta-animated {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .hero-cta .btn-vr,
  .hero-cta-animated .btn-vr {
    width: auto !important;
    max-width: 280px !important;
    margin: 0.5rem auto !important;
    text-align: center !important;
    display: block !important;
  }

  /* Boutons primaires / secondaires */
  .btn-primary-glow,
  .btn-secondary-outline {
    width: 100%;
    max-width: 300px;
    font-size: 0.75rem;
  }
  .cta-title {
    font-size: 1.8rem;
  }

  /* Correction des CTA en wrap */
  .hero-cta a.btn,
  .hero-cta-animated a.btn {
    white-space: normal !important;
    word-wrap: break-word;
    overflow: visible;
    display: block !important;
    width: 90% !important;
    max-width: 90% !important;
    margin: 0.5rem auto !important;
    text-align: center !important;
  }

  /* Bouton VR générique */
  .btn-vr {
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 32px;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
    margin-top: 40px;
  }

  /* ---- VR MODE BUTTON (flottant) ---- */
  .vr-mode-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
      45deg,
      var(--primary-color),
      var(--secondary-color)
    );
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    max-width: 90%;
    width: auto;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
  .vr-mode-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
  }

  /* ---- DEMO VR SECTION ---- */
  .vr-demo-section {
    padding-top: 80px;
    padding-bottom: 50px;
  }

  .vr-demo-title {
    font-size: 1.5rem;
    text-align: center;
  }
  .vr-demo-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .vr-instructions {
    width: 95%;
    margin: 0 auto 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    text-align: center;
  }
  .vr-instructions .instruction-item {
    margin-bottom: 10px;
  }
  .vr-instructions i {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
  .vr-instructions h5 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  .vr-instructions p {
    color: #fff;
    font-size: 0.9rem;
  }
  .instruction-item {
    margin-bottom: 15px;
  }

  /* Carte techno dans la section VR (garde l’intention d’origine 70%) */
  .vr-demo-section .technology-preview-card {
    max-width: 70%;
    margin: 20px auto;
  }

  /* ---- Boutons / utilitaires ---- */
  .btn-primary-glow {
    padding: 12px 25px;
    font-size: 0.85rem;
  }
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  /* ---- Section Header / lead ---- */
  .section-header h2 {
    font-size: 2rem;
  }
  .lead,
  p.lead,
  .text.lead,
  .section-header .lead,
  .hero-content .lead {
    font-size: 1.2rem !important;
  }

  /* ---- Formulaire Contact ---- */
  #contact {
    margin-top: 50px !important;
  }
  .contact-form-card {
    padding: 20px;
    margin: 10px;
    margin-bottom: 20px;
  }

  /* ---- Technologies : grille & cartes ---- */
  .technologies-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .technology-preview-card {
    max-width: 100%;
    height: auto;
    min-height: 200px;
  }

  /* ---- Page Technologies – header ---- */
  .tech-section-title {
    font-size: 2rem !important;
  }

  .header-technologies {
    max-width: 95% !important;
    margin-top: 20px !important;
    padding: 0 15px;
  }

  .header-technologies .formations-title {
    font-size: 2rem !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .header-technologies .lead {
    font-size: 1rem !important;
    max-width: 100% !important;
    margin: 0 auto 2rem !important;
    padding: 0 10px;
    line-height: 1.5;
  }

  .tech-divider-small {
    width: 60px;
    height: 2px;
    margin: 0 auto 2rem;
  }

  .hero-cta {
    margin-top: 2rem !important;
  }

  .btn-vr-secondary {
    padding: 12px 24px;
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
  }

  /* ---- Tech – stats ---- */
  .tech-stats {
    margin-top: 2rem !important;
  }
  .tech-stat {
    margin-bottom: 1.5rem;
    padding: 20px 15px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }

  /* ---- Tech – hero / effets ---- */
  .tech-hero {
    padding: 120px 0 80px;
  }
  .tech-title {
    font-size: 1.5rem;
  }
  .tech-subtitle {
    font-size: 0.85rem;
  }
  .tech-content {
    padding-left: 0;
    margin-top: 2rem;
  }
  .tech-card {
    margin-bottom: 2rem;
  }
  .advantage-card {
    margin-bottom: 1.5rem;
  }
  .tech-cta-title {
    font-size: 1.5rem;
  }
  .hex-grid,
  .pulse-lines {
    opacity: 0.3;
  }
  .radar-effect {
    width: 400px;
    height: 400px;
  }

  /* ---- Footer mobile ---- */
  .footer-main {
    padding: 40px 0 20px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-logo {
    font-size: 1.8em;
    text-align: center;
  }

  .footer-tagline,
  .footer-slogan {
    text-align: center;
  }

  .footer-section {
    margin-bottom: 25px;
  }

  .footer-section-title {
    text-align: center;
    font-size: 1.6em;
  }
  .footer-section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-services-list li {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .footer-links {
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-contact-item {
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-contact-item i {
    font-size: 1.2rem;
    margin-right: 8px;
  }

  .footer-links a {
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
  }

  .footer-separator {
    border-top: 2px solid #00f0ff;
    margin: 20px 0;
  }
}

/* ========================================================================== 
     768px – 1199px — TABLETTE / PETIT DESKTOP
     ========================================================================== */
@media (min-width: 768px) and (max-width: 1199px) {
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
  }
}

/* ========================================================================== 
     ≥ 1200px — LAPTOP & DESKTOP STANDARD
     ========================================================================== */
@media (min-width: 1200px) {
  .hero-content {
    margin-left: 20px;
  }
  .hero-title,
  .formations-title {
    font-size: 2.5rem !important;
    line-height: 76px !important;
    text-transform: uppercase;
  }

  .footer-brand-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-content {
    gap: 57px;
  }
}

/* ========================================================================== 
     ≥ 1800px — TRÈS GRANDS ÉCRANS
     ========================================================================== */
@media (min-width: 1800px) {
  .hero-title,
  .formations-title {
    font-size: 3rem !important;
    line-height: 76px !important;
  }
  .footer-content {
    gap: 40px;
  }
}

/* ==========================================================================
   PAGE DRONE - ADAPTATIONS MOBILES SIMPLES
   ========================================================================== */

@media (max-width: 768px) {
  /* Hero */
  .hero-drone-modern {
    padding: 120px 0 40px;
  }

  .hero-drone-modern .row {
    flex-direction: column;
    text-align: center;
  }

  .hero-content-text {
    text-align: center;
    margin-bottom: 2rem;
  }

  .hero-content-text .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-content-text .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .drone-hero-image {
    max-width: 90%;
  }

  /* Galerie */
  .drone-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-main {
    height: 250px;
  }

  .gallery-secondary {
    height: 200px;
  }

  /* Statistiques */
  .stat-card {
    text-align: center;
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  #economic-benefits .economic-stats {
    padding: 26px 17px;
  }
}
