/* Base Styles */
:root {
  --primary-color: #790ad4;
  --primary-light: #FFE436;
  --primary-dark: #ffc107;
  --secondary-color: #0808ad;
  --text-color: #0a0909;
  --text-light: #0a0606;
  --background-color: #fff;
  --background-alt: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

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

section {
  padding: 5rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary-color);
}

.underline {
  height: 4px;
  width: 70px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress-bar {
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  width: 0%;
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--shadow-color);
}

#backToTop:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Buttons */
.primary-button, .cta-button, .submit-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-button:hover, .cta-button:hover, .submit-button:hover {
  box-shadow: 0 6px 16px rgba(15, 157, 88, 0.3);
  transform: translateY(-3px);
  color: white;
}

.secondary-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.secondary-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 0.7rem 0;
}

.navbar-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo a {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.navbar.scrolled .navbar-logo a {
  color: var(--text-color);
}

.logo-text {
  font-weight: 700;
}

.navbar-links {
  display: flex;
  background-color:#fff;
}

.nav-menu {
  display: flex;
  align-items: center;
  
}

.nav-item {
  margin: 0 1rem;
}

.nav-link {
  color: #000;
  font-weight: 300;
  position: relative;
  padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
  color: var(--primary-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  font-size: 10px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  background-color: var(--text-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  background: url(images/acceuil.jpg) no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: ;
  z-index: 0.1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* About Section */
.about-section {
  background-color: var(--background-alt);
  overflow: hidden;
}

.about-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
}

.about-sticky-container {
  flex: 1;
  height: 100%;
}

.about-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.about-scrollable {
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 1rem;
}

.about-item {
  margin-bottom: 2rem;
}

.about-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 100vh;
}

.about-image {
  width: 80%;
  max-width: 400px;
  filter: drop-shadow(0 10px 20px var(--shadow-color));
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background-color: white;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color:var(--primary-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: var(--transition);
  color: var(--background-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align:center;
}

.service-card h3 {
  margin-bottom: 1rem;
  text-align:center;
}
.service-card p {
  text-align: justify;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 5rem 0;
}

.cta-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-container .cta-button {
  
  color: var(--primary-color);
  border: 2px solid white;
}

.cta-container .cta-button:hover {
  background: transparent;
  color: white;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--background-alt);
  padding: 5rem 0;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.testimonial-content {
  padding: 2rem;
  position: relative;
}

.testimonial-content i {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.testimonial-content p {
  font-style: italic;
  margin: 1.5rem 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.testimonial-author h4 {
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.testimonial-author p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-light);
}

/* Partners Section */
.partners-section {
  padding: 5rem 0;
  background-color: white;
}

.partners-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.partner {
  padding: 1.5rem;
  transition: var(--transition);
}

.partner-logo {
  height: 100px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner h4 {
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.partner p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Newsletter Section */
.newsletter-section {
  background: url(images/essaie.jpg) no-repeat center center/cover;
  padding: 10rem 0;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  margin-bottom: 1.5rem;
}

.newsletter-content p {
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  margin: 1px solid #000;
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  background: white;
  color: var(--primary-color);
  border: none;
  border-radius: 0 30px 30px 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
  color: white;
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  padding-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.footer-logo a {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-logo p {
  margin: 1.5rem 0;
  color: #ddd;
}

.social-media {
  display: flex;
  gap: 1rem;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-media a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-link-group h4 {
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  display: inline-block;
}

.footer-link-group h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-link-group ul li {
  margin-bottom: 0.8rem;
}

.footer-link-group ul li a {
  color: #ddd;
  transition: var(--transition);
}

.footer-link-group ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #ddd;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  background-color: #222;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #ddd;
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}



/* ===== CONTACT PAGE STYLES ===== */
.contact-header {
    background: linear-gradient(135deg, rgba(14, 173, 105, 0.9), rgba(21, 97, 109, 0.9));
    color: var(--light-color);
    padding: 8rem 0 4rem;
    text-align: center;
}

.contact-header h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info-section {
    padding: 4rem 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

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

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(14, 173, 105, 0.1), rgba(21, 97, 109, 0.1));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-info-card h3 {
    margin-bottom: 1rem;
}

.contact-info-card p {
    margin-bottom: 0;
    line-height: 1.8;
}

.contact-form-section {
    background: var(--gray-color);
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.contact-form-container {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
    margin-bottom: 1rem;
}

.contact-form-container p {
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--body-font);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 173, 105, 0.1);
}

.contact-map {
    display: flex;
    flex-direction: column;
}

.contact-map h2 {
    margin-bottom: 1.5rem;
}

.map-container {
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.map-svg {
    width: 100%;
    height: 100%;
}

.faq-section {
    padding: 4rem 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: linear-gradient(to right, rgba(14, 173, 105, 0.05), rgba(21, 97, 109, 0.05));
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(14, 173, 105, 0.1), rgba(21, 97, 109, 0.1));
    border-radius: 50%;
    transition: var(--transition);
}

.accordion-icon i {
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.accordion-item.active .accordion-icon i {
    color: var(--light-color);
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active .accordion-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    
}


/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background-color: white;
}
  
  .navbar-links {
    position: fixed;
    left: -100%;
    top: 4.5rem;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 27px var(--shadow-color);
    z-index: 999;
  }

  .navbar-links.active {
    left: 0;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    
  }

  .nav-item {
    margin: 1rem 0;
  }

  .hamburger {
    display: block;
  }

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

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .about-container {
    flex-direction: column;
    height: auto;
  }
  
  .about-sticky-container, .about-image-container {
    flex: none;
    height: auto;
    position: relative;
  }
  
  .about-image-container {
    margin-top: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background-color: white;
}
   .navbar-links {
    position: fixed;
    left: -100%;
    top: 2rem 0 0.8rem;
    margin-top: 10px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 27px var(--shadow-color);
    z-index: 999;
  }

  .navbar-links.active {
    left: 0;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    background-color: #fff;
    
  }

  .nav-item {
    margin: 1rem 0;
  }

  .hamburger {
    display: block;
  }
  section {
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-menu {
    background-color: #fff;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 30px;
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: 30px;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
    navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background-color: white;
}
    
    .navbar-links {
    position: fixed;
    left: -100%;
    top: 2rem 0 0.8rem;
    margin-top: 10px;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 27px var(--shadow-color);
    z-index: 999;
  }

  .navbar-links.active {
    left: 0;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    background-color: #fff;
    
  }

  .nav-item {
    margin: 1rem 0;
    font-size: 20px;
  }

  .hamburger {
    display: block;
  }
  .hero-content h1 {
    font-size: 2rem;
  }

  .nav-menu {
    background-color: #fff;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .testimonial-content {
    padding: 1.5rem;
  }
}

.context-header {
    background: url(images/page3ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 15rem 1rem 3rem 9rem;
    text-align: center;
    
}

.context-header h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.context-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}
.context-filter {
    background: var(--light-color);
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.qp-header {
    background: url(images/page6ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 15rem 1rem 2rem 15rem;
    height: 500px;
    text-align: center;
}

.qp-header h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.qp-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}


.fonction-header {
    background: url(images/redimension1.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 15rem 1rem 3rem 11rem;
    height: 500px;
    text-align: center;
}

.fonction-header h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fonction-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.activ-header {
    background: url(images/redimension1.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 15rem 1rem 2rem 15rem;
    text-align: center;
}

.activ-header h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.activ-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.etat-header {
    background: url(images/page5ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 15rem 1rem 3rem 11rem;
    text-align: center;
    
}

.etat-header h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.etat-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}



.activ-filter {
    background: var(--light-color);
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.activ-filter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (max-width: 798px) {
  .context-header {

    background: url(images/page3ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 0  4rem;
    height: 280px;
    text-align: center;
    
  }
  
   .fonction-header {

    background: url(images/redimension1.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 1rem 1rem 4rem;
    text-align: center;
    
  }
  
  .qp-header {
     background: url(images/page6ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 1rem 1rem 4rem;
    text-align: center;
    
  }
  .etat-header {
    background: url(images/page5ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 0 4rem;
    text-align: center;
    
  }
  .head-section {
    background: url(images/page.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 11rem 1rem 2rem 8rem;
    height: 400px;
    padding-top: 4px;
    
  }
  .partener-section {
    background: url(images/PARTENAIRE2.png) no-repeat center center/cover;
    color: var(--light-color);
    margin: 150px;
    text-align: center;
    
  }
  .serviice-card {
        text-align: center;
    }
    .serviice-icon {
        margin: 0 auto 1.5rem;
    }
}
@media (max-width: 648px) {
  .context-header {

    background: url(images/page3ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 0 4rem;
    height: 280px;
    text-align: center;
    
  }
  .newsletter-section {
  background: url(images/essaie.jpg) no-repeat center center/cover;
  padding: 1rem 0;
  color: black;
}

   .newsletter-form {
    flex-direction: column;

  }
  
  .newsletter-form input {
    border-radius: 30px;
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: 30px;
  }
  
   .fonction-header {

    background: url(images/redimension1.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 1rem 1rem 4rem;
    text-align: center;
    
  }
  
  .qp-header {
     background: url(images/page6ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 1rem 1rem 4rem;
    text-align: center;
    
  }
  .etat-header {
    background: url(images/page5ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 1rem 0 4rem;
    text-align: center;
    
  }
  .head-section {
    background: url(images/page.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 11rem 1rem 2rem 8rem;
    height: 300px;
    padding-top: 4px;
    
  }
  .partener-section {
    background: url(images/PARTENAIRE2.png) no-repeat center center/cover;
    color: var(--light-color);
    margin: 150px;
    text-align: center;
    
  }
}

@media (max-width: 498px) {
  .context-header {

    background: url(images/page3ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 0 4rem;
    text-align: center;
    
  }
  
   .fonction-header {

    background: url(images/redimension1.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 0 4rem;
    text-align: center;
    
  }
  
  .qp-header {
     background: url(images/page6ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 0 4rem;
    text-align: center;
    
  }
  .etat-header {
    background: url(images/page5ok.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 0 4rem;
    text-align: center;
    
  }
  .head-section {
    background: url(images/page.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 8rem 1rem 1rem 4rem;
    height: 300px;
    padding-top: 4px;
    
  }
  .partener-section {
    background: url(images/PARTENAIRE2.png) no-repeat center center/cover;
    color: var(--light-color);
    margin: 150px;
    text-align: center;
    
  }
}

.partener-section {
    background: url(images/PARTENAIRE2.png) no-repeat center center/cover;
    color: var(--light-color);
    margin: 200px;
    text-align: center;
    
  }

  .head-section {
    background: url(images/page.jpg) no-repeat center center/cover;
    color: var(--light-color);
    padding: 15rem 1rem 3rem 11rem;
    height: 600px;
    padding-top: 4px;
    
  }

  .card-blue {
    background-color: var(--secondary-color);
    color: #e0e0e0;
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  .card-warning {
    background-color: var(--primary-dark);

  }
  .card-red {
    background-color: red;
   
  }

  .card-green {
    background-color: green;
  }

  .marg-section {
    margin: 2px solid black;
  }
  .card-orange {
    background-color: orange;
    color: #e0e0e0;
    background: orange;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden; 
  }

  .serviices {
    background-color: var(--gray-color);
}

.serviices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.serviice-card {
    background: var(--light-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align : justify;
}

.serviice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.serviice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(14, 173, 105, 0.1), rgba(21, 97, 109, 0.1));
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.serviice-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.serviice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.serviice-card p {
    margin-bottom: 1.5rem;
}

.serviice-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.serviice-link i {
    transition: var(--transition);
}

.serviice-link:hover i {
    transform: translateX(5px);
}

.bar-content {
    border: 1px solid black;
    padding:10px;
    margin-bottom:20px;
}
