/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.main-header {
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: #f8f9fa;
  padding: 5px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 20px;
  overflow: hidden;
}

.search-input {
  padding: 8px 15px;
  border: none;
  outline: none;
  width: 200px;
}

.search-btn {
  background: #4fb693;
  border: none;
  padding: 8px 12px;
  color: white;
  cursor: pointer;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
}

.social-link.facebook {
  background: #3b5998;
}

.social-link.linkedin {
  background: #0077b5;
}

.btn-reclamation {
  background: #4fb693;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}

.header-main {
  padding: 10px 0;
}

.header-main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 60px;
  height: 60px;
}

.logo-text h1 {
  color: #4fb693;
  font-size: 2.5rem;
  font-weight: bold;
}

.logo-text p {
  color: #4fb693;
  font-size: 1.2rem;
}

.main-nav .nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav .nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.main-nav .nav-menu a:hover {
  border-bottom-color: #4fb693;
  color: #4fb693;
}

/* Hero Section */
.hero {
  height: 70vh;
  background: url("https://ext.same-assets.com/1344684890/1930838575.jpeg")
    center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: bold;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Services Icons */
.services-icons {
  padding: 60px 0;
  background: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

.service-item {
  text-align: center;
}

.service-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-icon.orange {
  background: #b79451;
}

.service-icon.teal {
  background: #4fb693;
}

.service-icon.gray {
  background: #97aaaf;
}

.service-icon img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.service-item h3 {
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
}

/* Director Message */
.director-message {
  padding: 80px 0;
  background: white;
}

.director-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: flex-start;
}

.director-image img {
  width: 100%;
  border-radius: 10px;
}

.director-text h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: bold;
}

.director-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.director-text ol {
  margin: 20px 0;
  padding-left: 20px;
}

.director-text ol li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.highlight {
  color: #4fb693;
  font-weight: 600;
}

.policy-link {
  color: #4fb693;
  text-decoration: none;
  font-weight: 600;
}

.policy-link:hover {
  text-decoration: underline;
}

/* Organizational Chart */
.org-chart {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.org-chart h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: bold;
}

.chart-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Key Numbers */
.key-numbers {
  padding: 80px 0;
  background: white;
  text-align: center;
}

.key-numbers h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: bold;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.number-item {
  text-align: center;
}

.number-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.number-icon img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.number-item h3 {
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
}

/* Footer */
.main-footer {
  background: #3f403e;
  color: white;
  padding: 20px 0 10px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.footer-brand {
  text-align: center;
}

.footer-logo img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.footer-brand h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #4fb693;
}

.footer-brand p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-links-legal {
  font-size: 0.9rem;
}

.footer-links-legal a {
  color: #4fb693;
  text-decoration: none;
}

.footer-links-legal a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
}

.footer-nav-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ccc;
  border-bottom: 1px solid #555;
  padding-bottom: 10px;
}

/* Page Header */
.page-header {
  background: #4fb693;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Missions Content */
.missions-content {
  padding: 80px 0;
  background: white;
}

.mission-item {
  margin-bottom: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 5px solid #4fb693;
}

.mission-item h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.mission-item p {
  line-height: 1.8;
  color: #666;
}

/* Contact Content */
.contact-content {
  padding: 80px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2,
.contact-form h2 {
  color: #333;
  margin-bottom: 30px;
  font-size: 2rem;
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h3 {
  color: #4fb693;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-item h3 i {
  margin-right: 10px;
  width: 20px;
}

.contact-item p {
  color: #666;
  line-height: 1.6;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4fb693;
}

.btn-submit {
  background: #4fb693;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background: #3a8a6f;
}
/* Modale qui couvre toute la page avec fond semi-transparent */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); /* semi-transparent */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Toujours au-dessus */
}

/* Contenu centré de la modale */
.modal-content {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Bouton de fermeture */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  background: none;
  border: none;
}

.close-btn:hover {
  color: #000;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* ← occupe tout l'espace entre header et footer */
  padding: 80px 0;
  background-color: #f8f9fa; /* facultatif, pour contraste */
}

.procedure-layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  flex-wrap: wrap; /* s’adapte sur mobile */
}

.procedure-image {
  flex: 1;
  min-width: 500px;
  min-height: 700px; /* Hauteur forcée pour donner plus de verticalité */
}

.procedure-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit la zone sans déformer */
  border-radius: 8px;
}

.procedure-text {
  flex: 2;
  min-width: 300px;
  font-size: 1.2rem; /* plus gros */
  line-height: 2; /* plus espacé */
}

.procedure-text h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #003366;
}

.procedure-text p {
  margin-bottom: 25px;
}

.procedure-text a {
  color: #003366;
  text-decoration: underline;
}

.procedure-text a:hover {
  color: #0055aa;
}

/* Modal content */

/* 1. Forcer l'alignement dans la modale */
.modal-content {
  text-align: left !important;
  padding: 30px;
  max-width: 700px;
  margin: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 2. Listes principales et secondaires */
.modal-content ul,
.modal-content ol {
  padding-left: 25px;
  list-style-position: outside;
  margin-bottom: 15px;
}

/* 3. Eléments de liste */
.modal-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .header-main-content {
    flex-direction: column;
    gap: 20px;
  }

  .procedure-image-text {
    flex-direction: column;
    padding: 40px 0;
  }

  .procedure-content {
    flex-direction: column;
  }

  .procedure-image {
    max-height: none;
    width: 100%;
  }

  .procedure-image img {
    width: 100%;
    height: auto;
  }

  .main-nav .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .about-content,
  .director-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .search-input {
    width: 150px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}
#infoModal .modal-content {
  text-align: center !important;
}

.exigence-section {
  margin: 60px auto;
  padding: 20px;
  max-width: 1000px;
  background: #fff;
  border-left: 5px solid #4fb693;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.exigence-section h2 {
  margin-bottom: 20px;
  color: #003366;
  font-size: 1.8rem;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.styled-table thead {
  background-color: #4fb693;
  color: #fff;
}

.styled-table th,
.styled-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
