/* ============================================
   FICHIER CSS COMMUN - GNA-BLE
   Styles partagés pour toutes les pages
   ============================================ */

/* Variables CSS pour la cohérence des couleurs */
:root {
  --color-primary: #1a3a5f;
  --color-primary-dark: #1a2a6c;
  --color-primary-light: #2c5282;
  --color-secondary: #ff8a00;
  --color-secondary-alt: #ff6b35;
  --color-white: #ffffff;
  --color-dark: #2d3748;
  --color-gray: #4a5568;
  --color-gray-light: #718096;
  --color-gray-bg: #f8f9fa;
  --color-chat: #25d366;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ============================================
   HEADER - Navigation principale
   ============================================ */
.header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo img {
  height: 50px;
  margin-right: 10px;
  object-fit: contain;
}

/* Navigation principale */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0;
}

.nav-links a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-links a:hover svg,
.nav-links a.active svg {
  color: var(--color-secondary);
  transform: scale(1.1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
}

/* Bouton CTA dans le header - Amélioré */
.btn-cta-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-alt) 100%);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.25);
}

.btn-cta-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-30deg);
  transition: all 0.5s ease;
}

.btn-cta-header:hover::before {
  left: 100%;
}

.btn-cta-header:hover {
  background: linear-gradient(135deg, var(--color-secondary-alt) 0%, var(--color-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 138, 0, 0.4);
}

.btn-cta-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-cta-header:hover svg {
  transform: scale(1.1) rotate(5deg);
}

/* Menu hamburger pour mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-dark);
  transition: var(--transition);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #000000;
  color: var(--color-white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Logo dans le footer */
.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 90px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  background: transparent;
  margin-bottom: 0.5rem;
  /* Le logo s'affiche en couleurs originales sur fond noir - taille agrandie pour le footer */
}

/* Colonne du footer */
.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-item svg,
.footer-contact-item span {
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Copyright et liens légaux */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--color-secondary);
}

/* ============================================
   BOUTON WHATSAPP FLOTTANT AMÉLIORÉ
   ============================================ */
.whatsapp-button-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Animation de pulsation continue */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5),
                0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5),
                0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5),
                0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-button {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: visible;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  border-radius: 50px;
}

.whatsapp-button:hover {
  animation: none;
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.8),
              0 0 0 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-button:hover::before {
  left: 100%;
}

.whatsapp-button:active {
  transform: translateY(-2px) scale(1.05);
  animation: none;
}

.whatsapp-button svg {
  width: 26px;
  height: 26px;
  fill: var(--color-white);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-text {
  white-space: nowrap;
}

.whatsapp-tooltip {
  background: rgba(0, 0, 0, 0.9);
  color: var(--color-white);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: 200px;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: absolute;
  right: 80px;
  bottom: 0;
  text-align: left;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.9);
}

.whatsapp-button-container:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-tooltip p {
  margin: 0;
  line-height: 1.4;
}

.whatsapp-tooltip p:first-child {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.whatsapp-tooltip p:last-child {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ============================================
   BOUTON FLOTTANT DEVIS (masqué sur desktop)
   ============================================ */
.devis-float-button {
  display: none; /* Caché par défaut sur desktop */
}

/* ============================================
   BOUTON RETOUR EN HAUT
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: var(--color-primary);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(26, 58, 95, 0.3);
  transition: var(--transition);
  z-index: 998;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE - Tablettes et mobiles
   ============================================ */
@media (max-width: 968px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
  }

  .header-container {
    padding: 0 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.5rem;
  }

  .logo img {
    height: 40px;
  }

  .btn-cta-header {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .whatsapp-button-container {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button {
    padding: 12px 18px;
    font-size: 0.9rem;
    animation: whatsapp-pulse 2s ease-in-out infinite;
  }
  
  .whatsapp-button:hover {
    animation: none;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-button svg {
    width: 20px;
    height: 20px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  /* Bouton flottant de devis sur mobile */
  .devis-float-button {
    position: fixed;
    bottom: 90px;
    left: 20px;
    right: 20px;
    z-index: 998;
    display: flex;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-alt) 100%);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(255, 138, 0, 0.4);
    transition: var(--transition);
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .devis-float-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.5);
  }

  .devis-float-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}


