:root {
    --primary-color: #740D04;
    --primary-light: rgba(116, 13, 4, 0.8);
    --secondary-color: #d99a06;
  
    --light-color: #F8F5F2;
    --text-color: #333333;
    --text-light: #777777;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --glass-effect: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  /* Typographie moderne */
  body {
    font-family: 'Raleway', sans-serif;
    scroll-behavior: smooth;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  /* Effet glassmorphism */
  .glass-card {
    background: var(--glass-effect);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
  }
  
  /* Header moderne avec effet parallaxe */
  header {
    background: url('assets/sidebar2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  
  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, transparent 0%, var(--dark-color) 150%);
    z-index: 0;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 120px 0;
  }
  
  .hero-content h1 {
    font-family: "Arial", sans-serif !important ;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #f9f9f9, var(--light-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -1.5px;
  }
  
  .hero-content .lead {
    font-size: 1.8rem;
    font-weight: 300;
    max-width: 700px;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.006);
    opacity: 0.9;
  }
  
  /* Navigation ultra-moderne */
  nav {
    background-color: transparent;
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  nav.scrolled {
    background-color: rgba(247, 244, 244, 0.95);
    padding: 15px 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: white !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
  }
  
  .nav-link {
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    color: #710c04 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 0 !important;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  /* Boutons modernes avec effet 3D */
  .btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(116, 13, 4, 0.3);
  }
  
  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .btn-primary:hover::before {
    opacity: 1;
  }
  
  .btn-outline-light {
    border: 2px solid white;
    color: white;
    background-color: transparent;
  }
  
  .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
  }
  
  /* Sections modernes */
  section {
    padding: 140px 0;
    position: relative;
  }
  
  .section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    color: var(--dark-color);
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -15px;
    left: 20%;
    transform-origin: left;
    animation: scaleIn 1s ease-out forwards;
  }
  
  .section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* About Section moderne */
  .about {
    background-color: white;
    position: relative;
    overflow: hidden;
  }
  
  .about-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 25px 25px 0px var(--primary-color);
    transform: rotate(-2deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
  }
  
  .about-img:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 30px 30px 0px var(--primary-color);
  }
  
  .about-img img {
    width: 100%;
    height: auto;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .about-img:hover img {
    transform: scale(1.08);
  }
  
  .about-feature {
    display: flex;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    padding: 20px;
    border-radius: 12px;
    background: rgba(116, 13, 4, 0.03);
  }
  
  .about-feature:hover {
    transform: translateX(10px);
    background: rgba(116, 13, 4, 0.1);
  }
  
  .about-feature-icon {
    flex: 0 0 70px;
    height: 70px;
    background-color: rgba(116, 13, 4, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.4s ease;
  }
  
  .about-feature:hover .about-feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotate(15deg) scale(1.1);
  }
  
  /* Services Section moderne */
  .service-icon img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
  }
  
  .service-card {
    overflow: visible; /* ou supprime overflow: hidden si inutile */
  }
    
  .service-card {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: visible;
    border-top: 4px solid var(--primary-color);
  }
  
  .service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  }
  
  .service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    transition: all 0.6s ease;
  }
  
  .service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.2);
    color: var(--secondary-color);
  }
  
  /* Achievements Section moderne */
  .achievements {
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 0, 0, 0.9)), 
                url('https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .counter {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(45deg, var(--secondary-color), #f8f6f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  /* Domaines Section moderne */
  .domain-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
  }
  
  .domain-card:hover {
    transform: translateY(-15px) scale(1.02);
  }
  
  .domain-img {
    height: 250px;
    overflow: hidden;
    position: relative;
  }
  
  .domain-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
  }
  
  .domain-overlay h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  }
  
  /* Contact Section moderne */
  .contact-form {
    background: white;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  .contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  }
  
  .form-control {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 25px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    transition: all 0.4s ease;
    font-size: 1rem;
  }
  
  .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(116, 13, 4, 0.15);
    background-color: white;
  }
  
  /* Footer moderne */
  footer {
    background-color: var(--dark-color);
    color: rgb(6, 5, 5);
    padding: 120px 0 40px;
    position: relative;
  }
  
  footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  }
  
  .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
  }
  
  .footer-links a {
    color: #0d0c0c;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
  }
  
  .footer-links a:hover {
    color: var(--dark-color);
    transform: translateX(8px);
  }
  
  .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.4s ease;
    font-size: 1.2rem;
  }
  
  .social-icons a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-8px) scale(1.1);
  }
  
  /* Animations modernes */
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
  }
  
  @keyframes scaleIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .animated {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .fade-up {
    transform: translateY(40px);
  }
  
  .fade-down {
    transform: translateY(-40px);
  }
  
  .fade-left {
    transform: translateX(-40px);
  }
  
  .fade-right {
    transform: translateX(40px);
  }
  
  .animated.visible {
    opacity: 1;
    transform: translate(0, 0);
  }
  
  .hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 5s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
  }
  
  .slide.active {
    opacity: 1;
  }
  
  .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.022));
    z-index: 1;
  }
  
  .slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
  }
  
  .hero-content {
    max-width: 800px;
    color: white;
    padding: 0 20px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    margin-top: 2rem;
  }
  
  /* Responsive */
  @media (max-width: 992px) {
    .hero-content h1 {
      font-size: 3rem;
    }
  }
  
  @media (max-width: 768px) {
    .hero-slider {
      height: auto;
      min-height: 500px;
    }
    
    .hero-content h1 {
      font-size: 2.5rem;
    }
    
    .hero-buttons {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .hero-buttons .btn {
      width: 100%;
      margin-right: 0 !important;
    }
  }
  
  /* Effet de texture moderne */
  .texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAyKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
    opacity: 0.3;
    pointer-events: none;
  }
  
  /* Responsive Design */
  @media (max-width: 1199.98px) {
    .hero-content h1 {
      font-size: 4.5rem;
    }
    
    .section-title {
      font-size: 3rem;
    }
  }
  
  @media (max-width: 991.98px) {
    section {
      padding: 100px 0;
    }
    
    .hero-content h1 {
      font-size: 3.8rem;
    }
    
    .about-img {
      box-shadow: 20px 20px 0px var(--primary-color);
    }
  }
  
  @media (max-width: 767.98px) {
    header {
      min-height: auto;
      padding: 120px 0 80px;
    }
    
    .hero-content h1 {
      font-size: 3.2rem;
    }
    
    .hero-content .lead {
      font-size: 1.4rem;
    }
    
    section {
      padding: 80px 0;
    }
    
    .section-title {
      font-size: 2.5rem;
    }
    
    .contact-form {
      padding: 40px;
    }
  }
  
  @media (max-width: 575.98px) {
    .hero-content h1 {
      font-size: 2.8rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .counter {
      font-size: 3rem;
    }
    
    .btn {
      padding: 12px 24px;
      font-size: 0.9rem;
    }
  }
  /* Ajoutez dans votre CSS */
.hover-3d {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s;
  transform-style: preserve-3d;
}

.hover-3d:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 30px 50px rgba(0,0,0,0.2);
}

/* Effet de lumière dynamique */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
  transition: all 0.7s;
}

.glow-effect:hover::before {
  animation: glowAnim 2s infinite;
}

@keyframes glowAnim {
  0% { left: -50%; top: -50%; }
  50% { left: 50%; top: 50%; }
  100% { left: -50%; top: -50%; }
}
/* Ajoutez dans votre CSS */
section {
  transition: all 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.section-transition {
  opacity: 0;
  transform: translateY(50px);
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}


