@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary-blue: #1A5F7A;      /* Calm, medical blue */
  --primary-hover: #134B62;
  --secondary-blue: #0D2E3E;    /* Deep, trustworthy blue */
  --accent-cyan: #22B2C6;       /* Bright accent */
  --light-bg: #F4F8FA;        /* Very light blue-grey for background */
  --light-blue-bg: #E8F1F5;
  --white: #ffffff;
  --text-dark: #27343A;       /* Almost black but softer */
  --text-muted: #5C6E76;
  --radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(26, 95, 122, 0.05), 0 2px 4px -1px rgba(26, 95, 122, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(26, 95, 122, 0.1), 0 8px 10px -6px rgba(26, 95, 122, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(26, 95, 122, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition);
}
a:hover {
  color: var(--accent-cyan);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary-blue);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================================
   1. MOBILE-FIRST BASE STYLES
   ======================================================== */

/* Header & Menu (Mobile Default) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.header.scrolled {
  padding: 5px 0;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px; /* Mobile height */
  transition: var(--transition);
  width: 100%;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1001; /* Keep above mobile menu */
}

.logo-icon {
  color: var(--accent-cyan);
  font-size: 24px;
}

.menu-toggle {
  display: block; /* Shown by default purely on mobile */
  background: none;
  border: none;
  font-size: 26px;
  color: var(--secondary-blue);
  cursor: pointer;
  position: relative;
  z-index: 1001; /* Keep above mobile menu */
}

.nav-menu {
  position: fixed;
  top: 0;
  left: -100%; /* Hidden on mobile */
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 999;
}

.nav-menu.active {
  left: 0;
}

.nav-menu .nav-link {
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 15px 0;
  position: relative;
}

/* Dropdown (Mobile) */
.nav-item.dropdown {
  position: relative;
  text-align: center;
  width: 100%;
}
.nav-item.dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dropdown-menu {
  display: none;
  background: rgba(34, 178, 198, 0.05);
  width: 100%;
  padding: 10px 0;
  border-radius: 8px;
  margin-top: 5px;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}
.dropdown-link {
  color: var(--text-dark);
  padding: 10px 0;
  font-size: 18px;
  font-weight: 500;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dropdown-link:hover {
  color: var(--accent-cyan);
}
.dropdown-icon {
  font-size: 16px;
  transition: var(--transition);
}
.nav-item.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Buttons (Mobile Default) */
.btn {
  display: block; /* Full width on mobile */
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  margin-bottom: 15px; /* Spacing between stacked buttons */
}
.btn-primary { background-color: var(--primary-blue); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background-color: var(--secondary-blue); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background-color: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); }
.btn-outline:hover { background-color: var(--primary-blue); color: var(--white); }

/* Sections (Mobile Default) */
.section { padding: 60px 0; }
.section-bg { background-color: var(--light-blue-bg); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag { display: inline-block; padding: 6px 16px; background: rgba(34, 178, 198, 0.1); color: var(--primary-blue); border-radius: 50px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--text-muted); }

/* Hero Section (Mobile Default) */
.hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--light-blue-bg) 0%, var(--white) 100%);
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-image {
  order: -1; /* Image above text on mobile depending on logic, let's keep it above */
  position: relative;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  border: 5px solid var(--white);
  height: 400px;
  width: 100%;
}

.hero-badge {
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  margin: 0 20px;
  background: var(--white);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge-icon { width: 40px; height: 40px; background: var(--light-blue-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 20px; }
.hero-badge-text h4 { font-size: 16px; margin-bottom: 2px; }
.hero-badge-text p { font-size: 12px; color: var(--text-muted); }

.hero-content h1 { font-size: 38px; font-weight: 700; margin-bottom: 16px; color: var(--secondary-blue); }
.hero-content h1 span { color: var(--primary-blue); }
.hero-subtitle { font-size: 16px; color: var(--text-muted); font-weight: 400; margin-bottom: 20px; }
.hero-expertise { margin-bottom: 30px; }
.hero-expertise li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.hero-expertise i { color: var(--accent-cyan); font-size: 16px; margin-top: 3px; }
.hero-actions { display: flex; flex-direction: column; gap: 0; }

/* Grid components (Mobile Default) */
.pillars-grid, .pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.pillar-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); transition: var(--transition); border-top: 4px solid transparent; }
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-top-color: var(--primary-blue); }
.pillar-icon { width: 60px; height: 60px; background: var(--light-blue-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary-blue); margin-bottom: 20px; }
.pillar-card:hover .pillar-icon { background: var(--primary-blue); color: var(--white); }
.pillar-title { font-size: 22px; margin-bottom: 10px; }
.pillar-desc { color: var(--text-muted); margin-bottom: 20px; }
.pillar-link { font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* Info Section */
.info-section { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.info-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.info-content .section-title { text-align: left; }
.info-box { background: var(--white); padding: 25px; border-left: 4px solid var(--accent-cyan); border-radius: 0 var(--radius) var(--radius) 0; margin: 25px 0; box-shadow: var(--shadow-sm); font-style: italic; font-size: 16px; color: var(--secondary-blue); }

/* Pricing */
.price-card { background: var(--white); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.price-card.featured { border: 2px solid var(--accent-cyan); margin-bottom: 20px; }
.price-card.featured::before { content: 'Populaire'; position: absolute; top: 15px; right: -35px; background: var(--accent-cyan); color: var(--white); padding: 5px 40px; transform: rotate(45deg); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.price-title { font-size: 20px; margin-bottom: 10px; color: var(--secondary-blue); }
.price-amount { font-size: 32px; font-weight: 700; color: var(--primary-blue); margin-bottom: 15px; }
.price-amount span { font-size: 16px; color: var(--text-muted); }
.price-divider { height: 1px; background: #E8F1F5; margin: 20px 0; }

/* Testimonials */
.testimonial { background: var(--primary-blue); color: var(--white); border-radius: var(--radius); padding: 40px 20px; text-align: center; background-image: radial-gradient(circle at 100% 100%, var(--secondary-blue) 0%, transparent 50%); }
.testi-icon { font-size: 36px; color: var(--accent-cyan); margin-bottom: 20px; opacity: 0.8; }
.testi-text { font-size: 18px; font-style: italic; font-weight: 300; line-height: 1.6; margin-bottom: 20px; }
.testi-author h4 { font-size: 18px; }

/* Contact Container */
.contact-wrapper { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info { background: var(--secondary-blue); color: var(--white); padding: 40px 20px; }
.contact-info h3 { color: var(--white); font-size: 26px; margin-bottom: 15px; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.info-item-icon { background: rgba(255, 255, 255, 0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--accent-cyan); }
.info-item-text h4 { font-size: 16px; }
.contact-form { padding: 40px 20px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-dark); }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #E2E8F0; border-radius: 8px; background: #F8FAFC; font-family: inherit; font-size: 16px; }

/* Footer Wrapper */
.footer { background: var(--secondary-blue); color: var(--white); padding: 60px 0 30px; border-top: 4px solid var(--accent-cyan); }
.footer-top { display: flex; flex-direction: column; gap: 40px; margin-bottom: 40px; }
.footer-about h3 { color: var(--white); font-family: 'Outfit'; font-size: 24px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link { width: 35px; height: 35px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); }
.footer-title { color: var(--white); font-size: 18px; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 13px; }

/* ========================================================
   2. TABLET UPWARDS (>= 768px)
   ======================================================== */
@media (min-width: 768px) {
  /* Navigation */
  .menu-toggle { display: none; }
  .logo { font-size: 24px; }
  .logo-icon { font-size: 28px; }
  
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    height: auto;
    width: auto;
    background: transparent;
    padding: 0;
    gap: 20px;
    backdrop-filter: none;
    z-index: auto;
  }
  
  .nav-menu .nav-link {
    font-size: 15px;
    margin: 0;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: var(--transition);
  }
  .nav-link:hover::after, .nav-link.active::after { width: 100%; }

  /* Dropdown Desktop */
  .nav-item.dropdown {
    width: auto;
  }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: block;
    border: 1px solid rgba(0,0,0,0.05);
  }
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .dropdown-link {
    font-size: 14px;
    padding: 12px 20px;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
  }
  .dropdown-link:hover {
    background: rgba(34, 178, 198, 0.05);
    color: var(--accent-cyan);
  }
  .dropdown-icon {
    font-size: 12px;
  }
  
  /* Buttons */
  .btn { display: inline-block; width: auto; margin-bottom: 0; }
  .hero-actions { flex-direction: row; gap: 16px; }

  /* Sections & Type */
  .section { padding: 80px 0; }
  .section-title { font-size: 34px; }
  
  /* Grids */
  .pillars-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
  .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
  
  .hero-image img { height: 500px; }
}

/* ========================================================
   3. DESKTOP UPWARDS (>= 992px)
   ======================================================== */
@media (min-width: 992px) {
  .nav-wrap { height: 80px; }
  .header.scrolled .nav-wrap { height: 65px; }

  /* Hero */
  .hero { padding: 180px 0 100px; }
  .hero .container { grid-template-columns: 1.2fr 0.8fr; gap: 60px; }
  .hero-image { order: 0; }
  .hero-image img { height: 600px; }
  .hero-content h1 { font-size: 54px; margin-bottom: 24px; }
  .hero-subtitle { font-size: 20px; margin-bottom: 32px; max-width: 600px; }
  
  .hero-badge { bottom: -20px; left: -20px; margin: 0; padding: 24px; }
  .hero-badge-icon { width: 50px; height: 50px; font-size: 24px; }
  
  /* Info Sections */
  .section-title { font-size: 40px; }
  .info-section { grid-template-columns: 1fr 1fr; gap: 60px; }
  .info-box { padding: 30px; font-size: 18px; margin: 30px 0; }
  
  /* Pricing */
  .price-card { padding: 40px 30px; }
  .price-amount { font-size: 40px; }
  
  /* Testimonial */
  .testimonial { padding: 60px; }
  .testi-icon { font-size: 48px; }
  .testi-text { font-size: 22px; margin-bottom: 30px; }
  
  /* Contact Layout */
  .contact-wrapper { flex-direction: row; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
  .contact-info, .contact-form { padding: 50px; }
  
  /* Footer */
  .footer { padding: 80px 0 30px; }
  .footer-top { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
  .social-links { gap: 15px; }
  .social-link { width: 40px; height: 40px; }
  
  .nav-menu { gap: 32px; }
}
