/* Variables globales */
:root {
  --primary: #c8102e;
  --primary-dark: #a00d25;
  --secondary: #4a5568;
  --secondary-dark: #2d3748;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --shadow: rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Container spécifique pour le header - sans padding gauche */
.header-main .container {
  padding-left: 0 !important;
  padding-right: 20px;
}

/* Header - SUPPRESSION DE LA BARRE GRISE */
.header {
  background: var(--bg);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Suppression complète du header-top */
.header-top {
  display: none;
}

.header-main {
  padding: 15px 0;
  padding-left: 0 !important;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0 !important;
  margin-left: 0 !important;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s;
  margin-left: 20px !important;
  padding-left: 0 !important;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 90px;
  width: auto;
  margin-left: 0 !important;
  display: block;
}

.nav {
  display: flex;
  gap: 5px;
  list-style: none;
  align-items: center;
}

.nav li {
  position: relative;
}

.nav a, .nav button {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.nav a:hover, .nav button:hover {
  color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: '\f078';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 8px;
  font-size: 11px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 20px var(--shadow);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu a {
  padding: 12px 20px;
  display: block;
  border-bottom: 1px solid var(--border);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Réseaux sociaux à côté du bouton Contact - VERSION FONT AWESOME */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 15px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 50%;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #2d3748;
  font-size: 18px;
}

.social-link:hover {
  background: #ffffff;
  color: #c8102e;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(200, 16, 46, 0.6), 0 0 40px rgba(200, 16, 46, 0.3);
}

/* Correction du bouton Contact - toujours cliquable */
.btn-primary {
  background: var(--primary) !important;
  color: white !important;
  padding: 12px 30px !important;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.btn-primary:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Boutons génériques */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

/* Footer Moderne & Professionnel */
.footer {
  background: linear-gradient(135deg, #1a252f 0%, #2d3748 100%);
  color: white;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 700;
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 15px;
}

.footer-slogan {
  color: white !important;
  font-weight: 600;
  font-size: 16px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-slogan i {
  color: var(--primary);
  font-size: 18px;
}

/* Footer social links */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 18px;
}

.footer-social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
}

/* Footer links with chevrons */
.footer-section a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  line-height: 2.2;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 15px;
  padding: 5px 0;
}

.footer-section a i.fa-chevron-right {
  font-size: 12px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.footer-section a:hover {
  color: white;
  padding-left: 8px;
}

.footer-section a:hover i.fa-chevron-right {
  transform: translateX(5px);
}

/* Footer contact items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item span {
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  font-size: 15px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline;
  padding: 0;
}

.footer-contact-item a:hover {
  color: var(--primary);
  padding-left: 0;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding: 25px 0;
  background: rgba(0,0,0,0.2);
  margin: 0 -20px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0;
}

/* Responsive footer */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  /* Masquer Prestations et Liens Rapides sur tablette */
  .footer-content .footer-section:nth-child(2),
  .footer-content .footer-section:nth-child(3) {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 40px 0 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }
  
  /* Masquer Prestations et Liens Rapides sur mobile */
  .footer-content .footer-section:nth-child(2),
  .footer-content .footer-section:nth-child(3) {
    display: none;
  }
  
  /* Centrer le contenu du footer sur mobile */
  .footer-about {
    text-align: center;
  }
  
  .footer-about h3 {
    font-size: 24px;
  }
  
  .footer-about p {
    font-size: 14px;
  }
  
  .footer-slogan {
    justify-content: center;
    font-size: 15px;
  }
  
  .footer-social {
    justify-content: center;
    margin-top: 20px;
  }
  
  /* Contact section sur mobile */
  .footer-contact {
    text-align: center;
  }
  
  .footer-contact-item {
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .footer-contact-item span {
    font-size: 14px;
  }
  
  .footer-bottom {
    padding: 20px 0;
  }
  
  .footer-bottom p {
    font-size: 13px;
  }
}


/* Page header moderne et professionnel */
.page-header {
  background: linear-gradient(135deg, #1a252f 0%, #2d3748 50%, #1a252f 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Barre décorative rouge en haut */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  box-shadow: 0 3px 15px rgba(200, 16, 46, 0.5);
}

/* Formes géométriques décoratives en arrière-plan */
.page-header::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 52px;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

/* Soulignement décoratif sous le titre */
.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(200, 16, 46, 0.5);
}

.page-header p {
  font-size: 19px;
  opacity: 0.9;
  margin-top: 30px;
  font-weight: 400;
  letter-spacing: 0.3px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Section title */
.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--secondary);
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--secondary-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-wrapper.active {
    right: 0;
  }

  .nav {
    display: flex;
    flex-direction: column;
    padding: 80px 0 30px;
    width: 100%;
  }

  .nav li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav li a,
  .nav li .dropdown-toggle {
    display: block;
    padding: 18px 30px;
    color: var(--secondary-dark);
    font-weight: 500;
    font-size: 16px;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
  }

  .nav li a:hover,
  .nav li .dropdown-toggle:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 40px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-menu a {
    padding: 12px 30px 12px 50px;
    font-size: 15px;
    border-bottom: 1px solid #e0e0e0;
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 30px;
    gap: 15px;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .social-links {
    display: flex;
    justify-content: center;
    margin: 0;
    gap: 15px;
  }

  /* Icônes réseaux sociaux dans le menu mobile - Rouge A&D & Fils */
  .nav-wrapper .social-link {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

  .nav-wrapper .social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .nav-wrapper .social-link i {
    color: white;
    display: block;
  }

  /* Overlay sombre quand le menu est ouvert */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .page-header {
    padding: 60px 0;
  }

  .page-header h1 {
    font-size: 40px;
  }

  .page-header p {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .page-header {
    padding: 50px 0;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 16px;
    padding: 0 20px;
  }

  .page-header::after {
    width: 250px;
    height: 250px;
  }
}