:root {
  --primary-blue: #32378d;
  --primary-green:#74b728;
  --primary-orange: #ff6b35;
  --dark: #32378d;
  --gray: #777;
  --light: #f8f9fa;
  --white: #ffffff;
  --light-blue: #e6f2ff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.589);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  transition: var(--transition);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-blue);
  transition: var(--transition);
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-outline, .btn-outline-white {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(145, 30, 30, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-primary:hover {
  background: #74b728;
  transform: translateY(-2px);
}

.btn-secondary:hover {
  background: #74b728;
  transform: translateY(-2px);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(0, 85, 170, 0.08)), url('../image/ChatGPT\ Image\ 9\ juil.\ 2025\,\ 12_13_15.png') center/cover no-repeat;
  color: var(--white);
  padding: 8rem 1rem;
  text-align: center;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
#ref{
  background: linear-gradient(135deg, rgba(0, 85, 170, 0.172), rgba(74, 113, 142, 0.8)), url('../image/erfre.png') center/cover no-repeat;
}
#met{
  background: linear-gradient(135deg, rgba(0, 85, 170, 0.172), rgba(74, 113, 142, 0.8)), url('../image/mettt.jpg') center/cover no-repeat;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: auto;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero-scroll a {
  color: var(--white);
  font-size: 1.5rem;
  display: block;
  width: 50px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-scroll a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Services */
.services {
  padding: 6rem 1rem;
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--primary-blue);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--primary-blue);
  margin: 0 auto 1.5rem;
  border-radius: 3px;
}

.section-description {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-blue);
  transition: var(--transition);
  z-index: -1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card:hover:before {
  height: 100%;
}

.card:hover .card-icon-container {
  background: var(--white);
  color: var(--primary-blue);
  transform: rotate(360deg);
}

.card:hover h3, .card:hover p, .card:hover .card-link {
  color: var(--white);
}

.card-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}

.blue {
  background: var(--primary-blue);
  color: var(--white);
}

.green {
  background: var(--primary-green);
  color: var(--white);
}

.orange {
  background: var(--primary-orange);
  color: var(--white);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  transition: var(--transition);
}

.card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary-blue), #74b728);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  opacity: 0.9;
}
/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4:after, .footer-contact h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-blue);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a, .footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact i {
  width: 20px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .navbar {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .navbar.active {
    max-height: 500px;
    padding: 1rem 0;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-btns {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
  }
  
  .hero {
    padding: 6rem 1rem;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-primary, .btn-secondary, .btn-outline, .btn-outline-white {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
}
/* Styles pour la section Services */
.services-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: #32378d;
  margin-bottom: 1rem;
  font-weight: 700;
}

.divider {
  width: 80px;
  height: 4px;
  background: var(--primary-blue);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  color: #7f8c8d;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: white;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.service-card:hover .card-icon {
  transform: rotate(360deg);
}

.service-card.legal .card-icon {
  background: #8e44ad;
}

.service-card.claims .card-icon {
  background: #3498db;
}

.service-card.tech .card-icon {
  background: #e67e22;
}

.service-card.medical .card-icon {
  background: #e74c3c;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.service-card p {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-overlay ul {
  list-style: none;
  text-align: left;
  padding: 0;
}

.service-overlay li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.service-overlay i {
  color: var(--primary-blue);
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
.zz{
  padding: 10px;
  margin: 100px;
  font-size: 30px;
  width: 80%;
  position: relative;
  top: 50%;
  left: 50% ;
  transform: translate(-50%,-50%);
}
.ll:hover{
  color: red;
  font-size: 35px;
}
/*      Conteneur principal */
.metier-item {
  position: relative;
}

/* Conteneur des sous-pages */
.sous-pages-container {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.metier-item:hover .sous-pages-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Liens des sous-pages */
.sous-page-link {
  padding: 8px 12px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sous-page-link:hover {
  color: #74b728;
  border-left: 3px solid #74b728;
  padding-left: 15px;
  background: #f9f9f9;
}

/* Version mobile */
@media (max-width: 992px) {
  .metier-item {
    position: static;
  }
  
  .sous-pages-container {
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 5px 0 5px 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  
  .metier-item:hover .sous-pages-container,
  .navbar.active .sous-pages-container {
    display: flex;
  }
  
  .sous-page-link {
    padding: 10px 15px;
  }
}

/* Style simple pour le bouton de langue */
.lang-switcher-btn {
    background: transparent;
    border: 2px solid #32378d;
    color: #32378d;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 50px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.lang-switcher-btn:hover {
    background: #32378d;
    color: white;
}

/* Pour mobile */
@media (max-width: 768px) {
    .lang-switcher-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
/* Bouton de langue à droite */
.lang-switcher-btn {
    background: transparent;
    border: 2px solid #32378d;
    color: #32378d;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 50px;
    transition: all 0.3s ease;
}

.lang-switcher-btn:hover {
    background: #32378d;
    color: white;
}

/* Pour mobile */
@media (max-width: 768px) {
    .lang-switcher-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
/* CORRECTION POUR LE LOGO - À AJOUTER À LA FIN DU FICHIER */

/* Forcer la position du logo */
.logo {
    margin-right: auto !important;
}

/* Structure du header */
.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
}

/* Forcer l'alignement des boutons à droite */
.nav-btns {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

/* Style du bouton de langue */
.lang-switcher-btn {
    background: transparent;
    border: 2px solid #32378d;
    color: #32378d;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 50px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    order: 3;
    flex-shrink: 0;
}

.lang-switcher-btn:hover {
    background: #32378d;
    color: white;
}

/* Pour mobile */
@media (max-width: 992px) {
    .logo {
        margin-right: 0 !important;
    }
    
    .nav-btns {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .lang-switcher-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
/* Ajustement des boutons - RAPPROCHER les boutons */
.nav-btns {
  gap: 8px !important; /* Réduit l'espace entre les boutons */
}

.nav-btns .btn-outline,
.nav-btns .btn-primary {
  margin: 0 2px; /* Réduit les marges latérales */
  padding: 0.75rem 1.2rem; /* Taille normale des boutons */
}

/* Le bouton de langue garde un peu d'espace */
.nav-btns .lang-switch-modern {
  margin-left: 8px;
}

@media (max-width: 992px) {
  .nav-btns {
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-btns .btn-outline,
  .nav-btns .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin: 2px;
  }
  
  .lang-switch-modern {
    margin: 5px auto 0;
  }
}