  @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 }



/* ====== VARIABLES COULEURS ====== */
:root {
  --violet: #3B254E;
  --blue: #0057FF;
  --red: #CC2E2E;
  --black: #111111;
  --white: #fff;
}

/* ====== TYPOGRAPHIE GÉNÉRALE ====== */
body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* ====== HEADER SECTION ====== */
header {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #2c3e50 60%, #2c3e50 100%);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1003;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #dc3545, #667eea, #764ba2) 1;
}

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

.logo {
    display: flex;
    align-items: center;
    
}

.logo img {
    width: 200px;
    height: 64px;
    
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.menu {
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc3545, #667eea);
    transition: width 0.3s ease;
}

.menu a:hover {
    color: #dc3545;
}

.menu a:hover::after {
    width: 100%;
}

/* Services Dropdown */
.menu li {
    position: relative;
}

.menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    display: none;
    flex-direction: column;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    margin-top: 15px;
    border: 1px solid #f0f0f0;
}

.menu li:hover ul {
    display: flex;
}

.menu li ul::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.menu li ul li {
    margin: 8px 0;
}

.menu li ul li a {
    padding: 8px 24px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
}

.menu li ul li a::after {
    display: none;
}

.menu li ul li a:hover {
    background: #f8f9fa;
    color: #dc3545;
    padding-left: 25px;
}


/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.hamburger:hover {
    background: #e9ecef;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



/* ====== HEADER RESPONSIVE ====== */
@media (max-width: 991px) {
  header {
    background: #ffffff;
    border-image: none;
    --mobile-header-height: 90px;
  }

  .menu {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 8px 16px 16px;
    display: flex !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    box-shadow: 0 16px 40px rgba(44, 62, 80, 0.18);
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: 0 0 18px 18px;
    z-index: 1002;
    gap: 12px;
  }

  .menu.show {
    max-height: 80vh;
    opacity: 1;
    display: flex !important;
  }

  .hamburger {
    background: #2c3e50;
  }

  .hamburger span {
    background: #ffffff;
  }

  .hamburger.active {
    transform: rotate(90deg);
  }

  .menu a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    padding: 10px 12px;
    color: #333;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.04);
    border: 1px solid rgba(44, 62, 80, 0.08);
    letter-spacing: 0.2px;
  }

  .menu a:hover {
    background: rgba(44, 62, 80, 0.1);
    color: #2c3e50;
  }

  .menu li ul {
    position: static;
    display: block !important;
    background: #f8f9fa;
    margin: 8px 0;
    padding: 8px;
    border-radius: 8px;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease;
  }

  .menu li.show ul {
    max-height: 500px;
    opacity: 1;
    transform: translateX(0);
  }

  .menu li ul li a {
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    border-bottom: none;
    background: transparent;
    border: none;
    border-radius: 8px;
  }

  .menu li ul li a:hover {
    background: #ffffff;
    color: #2c3e50;
  }

  .menu-overlay {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--mobile-header-height));
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}





/* ====== HOME SECTION ====== */
.home {
  background-image: url('../images/bg1.jpg');
  background-position: center;
  background-size: cover;
}

.title-details {
  z-index: 1001;
  position: relative;
}

.hero-title {
  font-family: 'Laviossa', serif;
  font-weight: 700;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
  letter-spacing: 3px;
  font-size: 8rem;
}

.hero-subtitle {
  font-family: 'Laviossa', serif;
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

/* ====== HOME RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.gradien {
  background: linear-gradient(to right, rgba(189, 5, 8, 0.8), rgba(147, 121, 184, 0.4));
  height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* ====== BOUTONS ====== */
.btn-red {
  background-color: var(--red);
  color: #fff;
  border-radius: 30px;
  padding: 12px 32px;
  transition: .3s;
}

.btn-red:hover {
  background-color: #a82525;
  color: #fff;
}

.btn-outline-violet {
  border: 2px solid var(--violet);
  color: var(--violet);
  background: transparent;
  border-radius: 30px;
  padding: 8px 20px;
  transition: .3s;
}

.btn-outline-violet:hover {
  background-color: var(--violet);
  color: #fff;
}

/* ====== CLASSES UTILITAIRES ====== */
.text-blue {
  color: var(--blue) !important;
}

.text-violet {
  color: var(--violet) !important;
}

.text-red {
  color: var(--red) !important;
}

.border-blue {
  border: 4px solid var(--blue) !important;
}

/* ====== HISTOIRE SECTION ====== */
.histoire-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.histoire-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--blue) 100%);
  border-radius: 2px;
}

.histoire-image-wrapper {
  position: relative;
}

.founder-image {
  width: 500px;
  height: 450px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--violet), var(--blue));
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.histoire-quote {
  border-left: 4px solid var(--violet);
  padding-left: 20px;
  background: rgba(59, 37, 78, 0.05);
  padding: 15px 20px;
  border-radius: 8px;
}

.histoire-stats .badge {
  padding: 8px 16px;
}

.story-text {
  font-family: 'Times New Roman', serif;
  text-align: justify;
  margin-bottom: 1.5rem;
  font-size: 17px;
  color: #576c96;
}

.story-text p ul {
  font-size: 17px;
  text-align: justify;
  margin-bottom: 1.5rem;
}

/* ====== VALUES SECTION ====== */
.value-card {
  border: none;
  border-radius: 12px;
  transition: transform .3s, box-shadow .3s;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(59, 37, 78, 0.2) !important;
}

/* ====== COUNTER SECTION ====== */
.counter-section {
  background: var(--black);
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
}

.counter-icon {
  font-size: 2.5rem;
  color: var(--blue);
  display: inline-block;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.counter-icon:hover {
  transform: rotate(10deg) scale(1.1);
}

.counter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== GALLERY/TESTIMONIALS SECTION ====== */
.testimonials-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/office.jpeg') center/cover;
  position: relative;
}

.testimonials-section h2 {
  color: #fff !important;
  font-size: 60px;
}

.testi-card {
  border-left: 6px solid var(--red);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  transform: translateY(100%);
  transition: transform .3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.rounded-circle {
  height: 100px;
  width: auto;
}

/* ====== CAROUSEL TRANSITIONS ====== */
.carousel-item {
  transition: opacity 0.5s ease-in-out;
}

.carousel-item img {
  transition: none;
}

/* ====== TEAM SECTION ====== */
.team-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/bg1.jpg') center/cover;
  position: relative;
}

.team-section h2 {
  color: #fff !important;
  font-size: 90px;
 font-family: 'Laviossa', serif;
}

.team-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.team-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--violet);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.team-social:hover {
  background-color: var(--blue);
  color: #fff;
  transform: scale(1.1);
}

.team-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 50VH;
}

.team-box .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: end;
  justify-content: center;
  opacity: 0;
  transition: .4s;
}

.team-box:hover .overlay {
  opacity: 1;
}

/* ====== CTA FINAL SECTION ====== */
.cta-final {
  background: linear-gradient(135deg, var(--violet) 0%, var(--black) 100%);
}

/* ====== FOOTER SECTION ====== */
.footer {
  background: #1a1a2e !important;
  padding: 4rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand img {
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 6px 10px;
  display: block;
}

.footer-description {
  color: #adb5bd;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #dc3545;
}

.social-links {
  display: flex;
}

.social-link {
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #dc3545;
  color: #fff;
  transform: translateY(-2px);
}

.contact-info {
  color: #adb5bd;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
}



.contact-item a{
    text-decoration: none;
  color: #adb5bd;
}


.contact-item a:hover{
    color: #dc3545;
}

.contact-item:last-child span {
  white-space: nowrap;
}

.contact-item i {
  margin-top: 2px;
}

.newsletter-text {
  color: #adb5bd;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control::placeholder {
  color: #adb5bd;
}

.newsletter-form .btn {
  border-radius: 0 25px 25px 0;
  border: none;
}

.copyright {
  color: #6c757d;
  font-size: 0.85rem;
}

.footer-legal a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #dc3545;
}

/* ====== BOUTON RETOUR EN HAUT ====== */
.btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
  box-shadow: 0 4px 15px rgba(204, 46, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 37, 78, 0.4);
}

@media (max-width: 768px) {
  .btn-back-to-top {
    display: none;
  }
}
