 @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');






/* ====== 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);
  padding-top: 90px;
}

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

/* ====== HEADER SECTION (Aligned with home) ====== */

   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;
  }
}

/* ====== HERO SECTION ====== */
.hero-section {
  background: linear-gradient(to right, rgba(203, 5, 8, 0.8), rgba(114, 87, 154, 0.4)), center/cover no-repeat;
  z-index: 1;
}

/* ====== CONTACT PAGE DESIGN ====== */
.contact-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: #fff;
  overflow: hidden;
}

.contact-hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/question.jpeg') center/cover no-repeat;
  transform: scale(1.05);
}

.contact-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 19, 43, 0.55), rgba(114, 87, 154, 0.35));
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7), 0 15px 40px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  max-width: 640px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.contact-main {
  background: #f8f9fc;
}

.contact-form-card,
.contact-info-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
  height: 100%;
}

.form-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #6c757d;
  margin-bottom: 1.8rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  padding: 12px 14px;
  box-shadow: none;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: #cc2e2e;
  box-shadow: 0 0 0 0.2rem rgba(204, 46, 46, 0.15);
}

.form-footer {
  margin-top: 1.8rem;
  text-align: center;
}

.form-note {
  display: block;
  margin-top: 0.75rem;
  color: #6c757d;
}

.btn-accent {
  background: linear-gradient(135deg, #cc2e2e, #8c1d1d);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(204, 46, 46, 0.25);
}

.btn-accent:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(204, 46, 46, 0.35);
}

.contact-info-card h4 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 1.4rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(204, 46, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cc2e2e;
  font-size: 1.1rem;
}

.contact-details h6 {
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.contact-details p {
  margin-bottom: 0.2rem;
  color: #333;
}

.contact-details small {
  color: #6c757d;
}

.social-contact h6 {
  margin: 1.5rem 0 0.75rem;
}

.contact-info-card .social-links {
  display: flex;
  gap: 12px;
}

.contact-info-card .social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f3f8;
  color: #3b254e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-info-card .social-links a:hover {
  background: #cc2e2e;
  color: #fff;
}

.map-section {
  background: #fff;
}

.map-container {
  min-height: 320px;
}

.map-embed {
  width: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, #e7ebf2 0%, #e7ebf2 4%, #263445 45%, #182330 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}

.why-contact {
  background: #f8f9fc;
}

.help-item {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.help-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(59, 37, 78, 0.08);
  color: #3b254e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.contact-cta {
  background: linear-gradient(130deg, #e7ebf2 0%, #e7ebf2 4%, #263445 45%, #182330 100%);
}

.cta-title {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}

.cta-buttons .btn {
  margin-bottom: 12px;
}

.success-icon i {
  font-size: 2.8rem;
  color: #28a745;
}

@media (max-width: 991px) {
  .contact-hero {
    min-height: 50vh;
    padding: 110px 0 60px;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 24px;
  }
}

@media (max-width: 575px) {
  .cta-buttons .btn {
    width: 100%;
  }

  .map-embed {
    padding: 16px;
  }

  .map-embed iframe {
    height: 300px;
  }
}

/* ====== MAIN CONTENT ====== */
main {
  position: relative;
  z-index: 2;
  border-bottom: 3px solid var(--violet);
  padding-bottom: 60px;
}

/* ====== IMAGE CONTACT ====== */
.contact-image-wrapper {
  position: relative;
}

.contact-image-wrapper img {
  width: 400px;
  height: 450px;
  object-fit: cover;
  border: 4px solid var(--blue);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.contact-image-wrapper img:hover {
  transform: scale(1.02);
}

/* ====== FOOTER SECTION (Aligned with home) ====== */
.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: #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;
  }
}
