/* ============================================
   CORRECTIONS RESPONSIVE LAAFIBOOK
   Fichier de corrections pour améliorer le responsive
   ============================================ */

/* ----- HEADER RESPONSIVE ----- */

/* Tablette et mobile - Ajuster le bouton Connexion */
@media (max-width: 991px) {
  /* Sur mobile, le bouton reste visible mais avec icône seulement */
  .navbar-connexion-btn {
    padding: 10px 18px !important;
    font-size: 14px;
    border-radius: 50px;
    min-width: auto;
  }
  
  .navbar-connexion-btn i {
    font-size: 18px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  /* Bouton compact sur mobile */
  .navbar-connexion-btn {
    padding: 10px 16px !important;
    border-radius: 50px;
    min-width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
  }
  
  .navbar-connexion-btn i {
    font-size: 16px;
  }
  
  .navbar-connexion-btn span {
    display: inline !important;
  }
}

@media (max-width: 576px) {
  /* Bouton encore plus compact sur petit mobile */
  .navbar-connexion-btn {
    padding: 8px 14px !important;
    min-width: 90px;
    font-size: 13px;
  }
  
  .navbar-connexion-btn i {
    font-size: 15px;
  }
}

/* Tablette */
@media (max-width: 768px) {
  /* Topbar responsive */
  .header .topbar {
    height: auto !important;
    padding: 8px 0 !important;
  }

  .header .topbar .container {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 4px 12px;
    padding: 0 10px;
  }

  .header .topbar .contact-info {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px 10px !important;
    font-size: 11px !important;
    width: 100%;
  }

  .header .topbar .contact-info i {
    margin: 0 !important;
    font-size: 11px !important;
  }

  .header .topbar .contact-info .ms-4 {
    margin-left: 8px !important;
  }

  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 11px !important;
    white-space: nowrap;
  }

  /* Logo et branding responsive */
  .header .branding {
    padding: 12px 0 !important;
  }

  .header .branding .container {
    padding: 0 15px;
    gap: 10px;
  }

  .header .logo {
    gap: 8px;
    flex: 1;
  }

  .header .logo img {
    max-height: 32px !important;
  }

  .header .logo h1,
  .header .logo .sitename {
    font-size: 22px !important;
  }

  /* Menu et bouton connexion côte à côte */
  .header .navmenu {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Ajuster le menu toggle */
  .mobile-nav-toggle {
    font-size: 28px !important;
  }

  /* Fix du main content sur mobile */
  .contact section,
  #contact {
    margin-top: 80px !important;
    padding-top: 20px !important;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .header .topbar {
    padding: 6px 0 !important;
  }

  .header .topbar .container {
    gap: 3px 8px;
    padding: 0 8px;
  }

  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 10px !important;
  }

  .header .topbar .contact-info {
    gap: 3px 8px !important;
    font-size: 10px !important;
  }

  .header .topbar .contact-info i {
    font-size: 10px !important;
  }

  .header .topbar .contact-info .ms-4 {
    margin-left: 6px !important;
  }

  .header .logo img {
    max-height: 28px !important;
  }

  .header .logo h1,
  .header .logo .sitename {
    font-size: 18px !important;
  }

  .header .branding {
    padding: 10px 0 !important;
  }
}

/* Très petit mobile */
@media (max-width: 400px) {
  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 9px !important;
  }

  .header .topbar .contact-info {
    gap: 2px 6px !important;
    font-size: 9px !important;
  }

  .header .topbar .contact-info i {
    font-size: 9px !important;
  }

  .header .topbar .contact-info .ms-4 {
    margin-left: 4px !important;
  }

  .header .topbar .container {
    padding: 0 5px;
  }

  .header .logo img {
    max-height: 24px !important;
  }

  .header .logo h1,
  .header .logo .sitename {
    font-size: 16px !important;
  }
}

/* ----- BOUTON CONNEXION ----- */
.navbar-connexion-btn {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.navbar-connexion-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 64, 175, 0.5);
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.navbar-connexion-btn:active {
  transform: translateY(0);
}

.navbar-connexion-btn i {
  font-size: 18px;
}

.navbar-connexion-btn .btn-text {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ----- FORMULAIRES RESPONSIVE ----- */
@media (max-width: 768px) {
  .contact-form-card,
  .contact-info-card {
    padding: 20px !important;
  }

  .contact-form-card h2,
  .contact-info-card h2 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .contact-form-card,
  .contact-info-card {
    padding: 15px !important;
  }

  .contact-form-card h2,
  .contact-info-card h2 {
    font-size: 1.3rem !important;
  }

  .form-label {
    font-size: 14px !important;
  }

  .form-control,
  .form-select {
    font-size: 14px !important;
  }
}

/* ----- ALIGNEMENT TEXTE ----- */
/* Aligner les titres et paragraphes à gauche */
.section-heading {
  text-align: left !important;
}

.hero-description,
.about-content p {
  text-align: left !important;
}

#laafibook-choix .container {
  text-align: left !important;
}

/* ----- BOUTONS ----- */
/* Réduire la taille du texte des gros boutons */
.btn-lg.rounded-pill {
  font-size: 0.95rem !important;
}

@media (max-width: 768px) {
  .btn-lg.rounded-pill {
    font-size: 0.85rem !important;
    padding: 12px 30px !important;
  }
}

@media (max-width: 576px) {
  .btn-lg.rounded-pill {
    font-size: 0.8rem !important;
    padding: 10px 25px !important;
  }
}

/* ----- FOOTER RESPONSIVE ----- */
@media (max-width: 768px) {
  .footer .brand-section .contact-info .contact-item {
    font-size: 14px;
  }

  .footer .brand-section .contact-info .contact-item i {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .footer .brand-section .contact-info .contact-item {
    font-size: 13px;
  }
}

/* ----- MODAL RESPONSIVE ----- */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 10px;
  }

  .modal-content {
    border-radius: 15px !important;
  }

  .modal-body {
    padding: 30px 20px !important;
  }

  .modal-body h3 {
    font-size: 1.5rem !important;
  }

  .modal-body p {
    font-size: 1rem !important;
  }

  .success-icon,
  .error-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .success-icon i,
  .error-icon i {
    font-size: 2rem !important;
  }
}

/* ----- ANIMATIONS ----- */
@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ----- UTILITAIRES ----- */
@media (max-width: 768px) {
  .section {
    padding: 40px 0 !important;
  }

  h2.display-5 {
    font-size: 1.8rem !important;
  }
}
