* {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
}

.header {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.header-slider {
  position: absolute;
  inset: 0;             /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* image & vidéo plein écran */
.slide img,
.header-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay pour le texte */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 20, 50, 0.6), rgba(10, 20, 50, 0.4));
  z-index: 2;
}

/* texte au-dessus */
.header .text-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: #fff;
}

/* nav au-dessus de tout */
.main-nav {
  position: relative;
  z-index: 4;
}


/* NAV GLOBAL (main-nav) */

/* Logo */
.logo {
  width: 150px;
  border-radius: 15%;
  border: 2px solid #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.logos_icedis {
  width: 180px;
  border-radius: 15%;
}

/* Liens principaux */
.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul {
  margin: 0;
  padding: 0;
}

.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}

/* lien niveau 1 */
.nav-links ul li > a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
}

/* soulignement animé niveau 1 */
.nav-links ul li::after {
  content: '';
  width: 0%;
  height: 2px;
  background: #d4af37;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.nav-links ul li:hover::after {
  width: 100%;
}

/* Barre de recherche dans le header */
.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.site-search input[type="search"] {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  background: rgba(15, 23, 42, 0.75);
  color: #f9fafb;
  font-size: 13px;
  min-width: 180px;
}

.site-search input[type="search"]::placeholder {
  color: #9ca3af;
}

.site-search button {
  border: none;
  background: #d4af37;
  color: #111827;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

.site-search button i {
  font-size: 14px;
}

/* Quand le nav est en mode scrolled */
.main-nav.scrolled .site-search input[type="search"] {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
}
.main-nav.scrolled .site-search input[type="search"]::placeholder {
  color: #6b7280;
}


.search-page {
  padding: 60px 0 80px;
  background: #f9fafb;
}

.search-summary {
  margin-bottom: 20px;
  font-size: 14px;
  color: #4b5563;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-result-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.search-result-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #111827;
}

.search-result-item a {
  color: #2563eb;
  text-decoration: none;
}

.search-result-item a:hover {
  text-decoration: underline;
}

.search-result-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.search-result-excerpt {
  font-size: 14px;
  color: #374151;
}

.search-empty,
.search-loading,
.search-error {
  margin-top: 40px;
  font-size: 14px;
  color: #6b7280;
}


.search-empty-inner {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  background: #f8f9ff;
  color: #333;
}

.search-empty-icon {
  font-size: 64px;
  color: #b0b7d6;
  margin-bottom: 16px;
}

.search-empty-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.search-empty-text {
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.search-empty-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: #1d2a7a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.search-empty-link:hover {
  background: #141e5a;
}

.site-search input {
  font-size: 14px;
}

.site-search input::placeholder {
  color: #777;
}

/* Animation placeholder input recherche */
.site-search input.search-placeholder-animated::placeholder {
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-search input.search-placeholder-out::placeholder {
  transform: translateY(-6px);
  opacity: 0;
}

.site-search input.search-placeholder-in::placeholder {
  transform: translateY(6px);
  opacity: 1;
}


/* Responsive : cacher ou élargir sur mobile */
@media (max-width: 700px) {
  .site-search {
    display: none; /* on pourra plus tard la mettre dans un overlay si tu veux */
  }
}




/* --------- DROPDOWN L’INSTITUT --------- */

.has-dropdown {
  position: relative;
}

/* sous-menu */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0b1120;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}

/* items du dropdown */
.has-dropdown .dropdown li {
  display: block;
  padding: 0;
  margin: 0;
}

.has-dropdown .dropdown li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #eaebf5;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.has-dropdown .dropdown li a:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #fbbf24;
}

/* affichage au survol (desktop) */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* on évite la barre de soulignement du li parent d'impacter le dropdown */
.has-dropdown:hover::after {
  width: 100%;
}




/*scrollbar*/
/* nav par défaut (sur le header hero) */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  padding: 12px 6%;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* état quand on a scrollé */
.main-nav.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  padding: 6px 6%;
}

/* liens en état scrolled : texte foncé */
.main-nav.scrolled .nav-links ul li a {
  color: #01020a;
}/* liens en état scrolled : texte foncé */

.main-nav.scrolled .nav-links .has-dropdown .dropdown li a {
  color: #e6e6e9;
}

/* langue en état scrolled si besoin */
.main-nav.scrolled .lang-link {
  color: #111827;
}

/* icône burger/close en état scrolled */
.main-nav.scrolled .nav-icon {
  color: #111827;
  background-color: #e5e7eb;
}

/* header principal doit laisser la place au nav fixed */
.header,.gouver-header,.conseil-header,.search-header,.sub-header,
.about-header,.blog-header,.cont-header,.in-header,.act-header,.presse-header,.collectivites-header,.assistant-header,.carrieres-header,.commerce-header,            .douane-header,.gestion-header,.projet-header,.marketing-header,.prevention-header,   .communication-header{
  position: relative;
  padding-top: 80px; 
}




.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 60px;
    color: #f5f5f5;
    text-shadow: 2px 2px 4px #000;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 18px;
    color: #e0e0e0;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 2px solid #d4af37;
    padding: 13px 34px;
    font-size: 15px;
    background-color: transparent;
    cursor: pointer;
    margin: 10px;
    transition: 0.5s;
}

.hero-btn:hover {
    background: #d4af37;
    color: #0e0c47;
}

.secondary-btn {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* icône menu burger / croix */
nav .feather {
  display: none;
}

.nav-icon {
  color: #fff;
  background-color: #d4af37;
  border-radius: 50%;
  padding: 8px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.ticker-bar {
  background: #0b1120;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.25);
  padding: 4px 0 6px;
}

.ticker-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Ligne du haut : badge aligné à gauche */
.ticker-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 4px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #111827;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Ligne du bas : bandeau qui défile sous le badge */
.ticker-bottom {
  position: relative;
  overflow: hidden;
}

/* fond légèrement contrasté pour le texte */
.ticker-bottom::before,
.ticker-bottom::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ticker-bottom::before {
  left: 0;
  background: linear-gradient(to right, #0b1120, transparent);
}

.ticker-bottom::after {
  right: 0;
  background: linear-gradient(to left, #0b1120, transparent);
}

.ticker-track {
  display: inline-flex;
  animation: ticker-move 40s linear infinite;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-right: 60px; /* espace entre les répétitions */
  font-size: 30px;
  color: #e5e7eb;
}

/* Animation horizontale */
@keyframes ticker-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ticker-inner {
    padding: 0 10px;
  }
  .ticker-label {
    padding: 2px 10px;
    font-size: 10px;
  }
  .ticker-content {
    font-size: 12px;
  }
}

@media(max-width: 700px) {
  .text-box h1 {
    font-size: 30px;
  }
  .nav-links {
    position: fixed;
    background: #0e0c47;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;   /* caché par défaut */
    text-align: left;
    z-index: 2;
    transition: 1s;
  }
  nav .feather {
    display: block;
  }
  .nav-links ul {
    padding: 30px;
  }
  .main-nav.scrolled .nav-links ul li a{
    color: #eaebf5;
  }
}


/* Responsive basique, menu mobile */
@media (max-width: 768px) {
  .nav-links ul li {
    display: block;
    text-align: left;
  }

  /* On ne montre pas le dropdown par défaut sur mobile */
  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  /* Quand on ouvre (classe .open), on affiche la liste */
  .has-dropdown.open .dropdown {
    max-height: 400px; /* assez grand pour contenir les 3 liens */
    opacity: 1;
    visibility: visible;
  }

  .has-dropdown .dropdown li a {
    padding: 4px 0;
    font-size: 14px;
  }

  /* Flèche à droite de "L'INSTITUT" */
  .has-dropdown > a {
    position: relative;
    padding-right: 20px;
  }

  .has-dropdown > a::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
  }

  /* Quand ouvert, flèche vers le haut */
  .has-dropdown.open > a::after {
    content: "▴";
  }
}





/* =================== Sélecteur de langue global =================== */

.lang-switch-global {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 15px;
}

.lang-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #e5e7f5;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.lang-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.lang-link.active {
  background: #c9a227;
  color: #0a165d;
  border-color: #c9a227;
}

.lang-separator {
  font-size: 12px;
  color: rgba(229, 231, 245, 0.6);
}

/* Ajustement sur mobile : placer le switch près du burger si besoin */

@media (max-width: 768px) {
  .lang-switch-global {
    display: none;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}


/*---------------Course---------------*/

.course {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
  font-family: 'Segoe UI', sans-serif;
}

h1 {
  font-size: 36px;
  font-weight: 600;
  color: #1a1a40;
}


p {
  color: #555;
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  padding: 10px;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.course-col {
  flex-basis: 31%;
  background: #f4f6fa;
  border-radius: 15px;
  margin-bottom: 5%;
  padding: 25px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  border-top: 5px solid #0a0589;
}

.course-col:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(10, 5, 137, 0.3);
  background: #e6e9f5;
}

.course-col h3 {
  text-align: center;
  font-weight: 700;
  color: #0a0589;
  margin-bottom: 10px;
}

.course-col ul.details {
  display: none;
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
}

.course-col ul.details li {
  background: #c9a227;
  color: white;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 8px;
  font-size: 14px;
}
.course-col ul.details a{
  text-decoration: none;
  color: #fff;
}

@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }
}

/* =================== Programmes & Admissions =================== */

.programs-admissions {
  padding: 80px 0;
  background: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

.pa-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: flex-start;
}

/* Colonne texte gauche */

.pa-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a40;
  margin-bottom: 10px;
  position: relative;
}

.pa-text h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, #c9a227, #0a0589);
  border-radius: 999px;
}

.pa-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
  margin: 18px 0 24px 0;
}

.pa-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pa-item {
  background: #f8f9ff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.pa-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0a0589;
  margin-bottom: 6px;
}

.pa-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* Boutons actions */

.pa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.pa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pa-btn.primary {
  background: #0a0589;
  color: #ffffff;
  border: 1px solid #0a0589;
}

.pa-btn.primary:hover {
  background: #c9a227;
  border-color: #c9a227;
  color: #0a165d;
}

.pa-btn.outline {
  background: transparent;
  color: #0a0589;
  border: 1px solid rgba(10, 5, 137, 0.4);
}

.pa-btn.outline:hover {
  background: #0a0589;
  color: #ffffff;
}

/* Liens rapides */

.pa-quick-links {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  font-size: 14px;
}

.pa-quick-links li {
  margin-bottom: 4px;
}

.pa-quick-links a {
  color: #0a0589;
  text-decoration: none;
}

.pa-quick-links a:hover {
  text-decoration: underline;
}

/* Colonne carte admissions droite */

.pa-card {
  background: #0a165d;
  border-radius: 18px;
  padding: 22px 20px;
  color: #e5e7f0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
}

.pa-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.pa-session {
  font-size: 14px;
  color: #c9a227;
  margin-bottom: 14px;
}

.pa-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  font-size: 14px;
  line-height: 1.7;
}

.pa-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.pa-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a227;
}

.pa-btn.block {
  width: 100%;
  max-width: 260px;      /* limite la largeur */
  font-size: 13px;       /* texte plus discret */
  padding: 8px 14px;     /* moins haut */
  background: #c9a227;
  color: #0a165d;
  border: 1px solid #c9a227;
  margin: 10px 0 10px 0;
}

.pa-card {
  text-align: center;
}

.pa-card .pa-btn.block {
  margin: 10px auto;
}

.pa-btn.block:hover {
  background: #ffffff;
  color: #0a165d;
}

.pa-note {
  font-size: 13px;
  line-height: 1.6;
  color: #d1d5e6;
  margin: 0;
}

/* Listes dossier pour admissions */
.pa-dossier-list {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.7;
}

.pa-dossier-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #4b5563;
}

.pa-dossier-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: #c9a227;
  font-weight: 600;
  font-size: 14px;
}

/* Amélioration responsive pour les listes */
@media (max-width: 600px) {
  .pa-dossier-list {
    font-size: 13px;
  }
  
  .pa-dossier-list li {
    padding-left: 22px;
    margin-bottom: 6px;
  }
}


/* =================== Responsive =================== */

@media (max-width: 992px) {
  .pa-inner {
    grid-template-columns: 1fr;
  }

  .pa-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .pa-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .programs-admissions {
    padding: 60px 0;
  }

  .pa-text h2 {
    font-size: 24px;
  }

  .pa-intro {
    font-size: 14px;
  }

  .pa-card {
    padding: 18px 16px;
  }
}



/*----------------Campus----------------*/

.campus {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
  font-family: 'Segoe UI', sans-serif;
}

.campus h1 {
  font-size: 36px;
  font-weight: 600;
  color: #1a1a40;
}

.campus h1 span {
  color: #c9a227;
}

.campus p {
  color: #555;
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  padding: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* Empêche le retour à la ligne */
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.campus-col {
  flex: 1 1 30%;
  min-width: 300px;
  border-radius: 15px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.campus-col:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(10, 5, 137, 0.3);
}

.campus-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  transition: transform 0.5s ease;
}

.campus-col:hover img {
  transform: scale(1.05);
}

.layer {
  background: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: background 0.5s ease;
  border-radius: 15px;
}

.layer:hover {
  background: rgba(49, 41, 159, 0.6);
}

.layer h3 {
  width: 100%;
  font-weight: 600;
  color: #fff;
  font-size: 26px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.layer:hover h3 {
  bottom: 45%;
  opacity: 1;
}


/*-----------facilities-----------*/

.facilities {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.facilities h1 {
  font-size: 36px;
  font-weight: 700;
  color: #080824;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.facilities h1 span {
  color: #c9a227;
}

.facilities p {
  color: #555;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  padding: 0 10px;
}

/* Double ligne décorative sous le titre */
.facilities-divider {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 24px auto 40px;
}

.facilities-divider span {
  display: block;
  width: 90px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a227, #f3e3a1);
}

.facilities-divider span:last-child {
  width: 60px;
  margin: 0 auto;
  opacity: 0.8;
}

/* Grille responsive : cartes plus imposantes */
.grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.grid-row-bottom {
  margin-top: 10px;
}

/* Carte globale */
.facilities-col {
  /* placeholder si besoin d'effets par colonne */
}

.facilities-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow:
    0 24px 52px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(201, 162, 39, 0.06);
  text-align: left;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: translateY(26px);
  animation: fadeInUp 0.7s ease forwards;
}

/* Bordure dorée top */
.facilities-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a227, #f6e6b0);
}

/* Hover carte */
.facilities-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 32px 70px rgba(15, 23, 42, 0.24),
    0 0 0 1px rgba(201, 162, 39, 0.18);
  border-color: rgba(201, 162, 39, 0.55);
}

/* Wrapper image + overlay */
.facilities-image-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

/* Image : afficher en entier + zoom léger */
.facilities-card img {
  width: 100%;
  height: 280px;           /* un peu plus haut qu'avant */
  border-radius: 18px;
  object-fit: contain;     /* montre l'image entière */
  background: #0b1220;     /* fond autour si bandes vides */
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* Overlay */
.facilities-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(5, 6, 24, 0.92),
      rgba(5, 6, 24, 0.35)
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 20px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Titre & texte dans overlay */
.facilities-overlay h3 {
  color: #f9f9fb;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 6px;
}

.facilities-overlay p {
  font-size: 14px;
  color: #e2e6ff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Effet hover : zoom doux + overlay qui apparaît */
.facilities-card:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.facilities-card:hover .facilities-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Animation d'apparition */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Délai d'animation séquentielle */
.grid-row .facilities-col:nth-child(1) .facilities-card { animation-delay: 0.1s; }
.grid-row .facilities-col:nth-child(2) .facilities-card { animation-delay: 0.25s; }
.grid-row .facilities-col:nth-child(3) .facilities-card { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .facilities {
    width: 94%;
    padding: 60px 0;
  }

  .facilities h1 {
    font-size: 28px;
  }

  .facilities-card {
    padding: 16px;
  }

  .facilities-card img {
    height: 260px;
  }
}


/* ==================== COMMUNIQUÉ DE PRESSE ==================== */
.mycontain.top {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.headingtitle.align-center.brandmain {
  font-size: 28px;
  font-weight: 700;
  color: #0a0589;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.headingtitle.align-center.brandmain::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #c9a227, #0a0589);
  margin: 15px auto;
  border-radius: 2px;
}

.text-block-18 {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #2c3e50;
  text-align: center;
  padding: 0 20px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.9);
  border-left: 5px solid #c9a227;
  padding-left: 30px;
}

/* ==================== MISSION ACADÉMIQUE ==================== */
.contentsection {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
}

.flexcolwrap.nopad {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 20px;
}

.flex2col-copy.nopad {
  padding: 0;
}

.heading {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a40;
  line-height: 1.2;
  margin-bottom: 25px;
}

.brandmain {
  color: #0a0589;
  background: linear-gradient(90deg, #c9a227, #0a0589);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.paragraphacademy {
  font-size: 18px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 35px;
  font-weight: 400;
  text-align: justify;
}

.image-7 {
  width: 100%;
  height: auto;
  max-width: 550px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(10, 5, 137, 0.15);
  transition: all 0.4s ease;
}

.image-7:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(10, 5, 137, 0.25);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .flexcolwrap.nopad {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .headingtitle.align-center.brandmain {
    font-size: 24px;
  }
  
  .text-block-18 {
    font-size: 16px;
    padding: 20px;
  }
  
  .heading {
    font-size: 28px;
  }
  
  .paragraphacademy {
    font-size: 16px;
  }
  
  .contentsection {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .mycontain.top {
    padding: 50px 0;
  }
  
  .headingtitle.align-center.brandmain {
    font-size: 20px;
  }
  
  .text-block-18 {
    font-size: 15px;
  }
}


/* ================== SÉPARATEUR COURBÉ ENTRE SECTIONS ================== */
/* À placer AVANT la section Mission (juste après .contentsection par ex.) */

.section-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #ffffff;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
}

/* ================== TITRE / INTRO MISSION CIBLE ================== */

.paragraph.align-center.padding {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 40px 20px 0 20px;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  color: #2c3e50;
  font-weight: 500;
}

/* ================== GRID IMAGE + LISTE (MISSION) ================== */

.w-layout-grid.grid-3 {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.image-10 {
  width: 100%;
  height: auto;
  max-width: 550px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 45px rgba(10, 5, 137, 0.25));
  border-radius: 20px;
}

.list-2 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listauditeurs {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: #364152;
}

.listauditeurs::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a227, #0a0589);
}

/* ================== RESPONSIVE ================== */

@media (max-width: 900px) {
  .w-layout-grid.grid-3 {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .image-10 {
    max-width: 420px;
  }

  .paragraph.align-center.padding {
    font-size: 16px;
    padding-top: 30px;
  }
}

@media (max-width: 600px) {
  .section-divider {
    height: 80px;
  }

  .section-divider svg {
    height: 80px;
  }

  .listauditeurs {
    font-size: 15px;
  }
}

/* =================== Message du Directeur =================== */

.director-message {
  padding: 80px 0;
  background: #f8f9ff;
  font-family: 'Segoe UI', sans-serif;
}

.dm-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 40px;
  align-items: center;
}

/* Photo */

.dm-photo {
  display: flex;
  justify-content: center;
}

.dm-photo img {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  border: 4px solid #ffffff;
}

/* Texte */

.dm-text h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a40;
  margin-bottom: 12px;
  position: relative;
}

.dm-text h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, #c9a227, #0a0589);
  border-radius: 999px;
}

.dm-intro {
  font-size: 20px;
  font-weight: 600;
  color: #0a0589;
  margin: 18px 0 8px 0;
}

.dm-body {
  font-size: 20px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 10px;
}

.dm-signature {
  margin-top: 16px;
  font-size: 16px;
  color: #374151;
}

.dm-name {
  font-weight: 700;
  color: #1a1a40;
}

.dm-title {
  font-weight: 500;
  color: #6b7280;
}

/* =================== Responsive =================== */

@media (max-width: 900px) {
  .director-message {
    padding: 60px 0;
  }

  .dm-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dm-text h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .dm-photo img {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .dm-body {
    font-size: 14px;
  }
}



/*------------Testimonials------------*/

.testimonials {
  width: 90%;
  margin: auto;
  text-align: center;
  padding-top: 80px;
  font-family: 'Segoe UI', sans-serif;
}

.testimonials h1 {
  font-size: 36px;
  font-weight: 600;
  color: #1a1a40;
}

.testimonials h1 span {
  color: #c9a227;
}

.testimonials p {
  color: #555;
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  padding: 10px;
}

/* ========== MOBILE FIRST : colonnes verticales ========== */

.testimonials-row {
  display: flex;
  flex-direction: column;   /* empile les cartes */
  gap: 14px;
  overflow-x: hidden;       /* aucun scroll horizontal */
  padding-bottom: 20px;
}

.testimonials-col {
  width: 100%;
  background: #f4f6fa;
  border-radius: 15px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.testimonials-col:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(10, 5, 137, 0.3);
}

.testimonials-col img {
  height: 70px;
  width: 70px;
  margin-bottom: 15px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-content p {
  font-size: 14px;
  color: #333;
  line-height: 22px;
  margin-bottom: 10px;
  max-height: none;   /* pas de coupure sur mobile */
}

.testimonial-content h3 {
  font-weight: 600;
  color: #0a0589;
  margin-bottom: 5px;
}

.stars .fa {
  color: #c9a227;
  margin-right: 2px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.3s; }
.fade-in:nth-child(3) { animation-delay: 0.5s; }

/* ========== TABLETTE : 2 cartes par ligne ========== */

@media (min-width: 600px) {
  .testimonials-row {
    flex-direction: row;
    flex-wrap: wrap;       /* permet le retour à la ligne */
    gap: 16px;
  }

  .testimonials-col {
    flex: 0 0 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }

  .testimonial-content p {
    max-height: 180px;
    overflow-y: auto;
  }
}

/* ========== DESKTOP : 3 cartes par ligne ========== */

@media (min-width: 992px) {
  .testimonials h1 {
    font-size: 36px;
  }

  .testimonials-row {
    flex-wrap: nowrap;      /* reste sur une ligne */
    overflow-x: auto;       /* si tu veux permettre le scroll horizontal si plus de 3 cartes */
  }

  .testimonials-row::-webkit-scrollbar {
    height: 6px;
  }

  .testimonials-row::-webkit-scrollbar-track {
    background: transparent;
  }

  .testimonials-row::-webkit-scrollbar-thumb {
    background: rgba(10, 5, 137, 0.4);
    border-radius: 4px;
  }

  .testimonials-col {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 280px;
  }
}


/* =================== Chiffres clés (Key Metrics) =================== */

.key-metrics {
  background: #0a165d; /* bleu profond institutionnel */
  padding: 60px 0;
}

.key-metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  text-align: center;
  color: #e5e7f0; /* couleur texte par défaut */
}

.metric h3 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff; /* chiffres en blanc pour contraste */
  margin-bottom: 8px;
}

.metric p {
  font-size: 14px;
  line-height: 1.6;
  color: #c5c9d8; /* gris clair lisible sur fond sombre */
  margin: 0;
}

/* Ligne fine en haut pour un effet institutionnel */
.key-metrics-inner::before {
  content: "";
  grid-column: 1 / -1;
  height: 2px;
  width: 80px;
  margin: 0 auto 30px auto;
  background: linear-gradient(90deg, #c9a227, #ffffff);
  border-radius: 999px;
}

/* =================== Responsive =================== */

@media (max-width: 992px) {
  .key-metrics-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric h3 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .key-metrics {
    padding: 40px 0;
  }

  .key-metrics-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metric h3 {
    font-size: 24px;
  }

  .metric p {
    font-size: 13px;
  }
}


/* =================== Actualités & Événements =================== */

.news-events {
  padding: 70px 0;
  background: #f8f9ff;
  font-family: 'Segoe UI', sans-serif;
}

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

.news-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a40;
  position: relative;
}

.news-header h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, #c9a227, #0a0589);
  border-radius: 999px;
}

.news-link {
  font-size: 14px;
  color: #0a0589;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(10, 5, 137, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.news-link:hover {
  background: #0a0589;
  color: #ffffff;
}

/* Grille des cartes */

.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid #c9a227;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

/* Métadonnées */

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.news-date {
  color: #6b7280;
}

.news-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 5, 137, 0.06);
  color: #0a0589;
  font-weight: 500;
}

/* Titre et texte */

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 14px;
}

/* Lien lire plus */

.news-readmore {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #0a0589;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-readmore::after {
  content: "›";
  font-size: 14px;
  transform: translateY(1px);
}

.news-readmore:hover {
  text-decoration: underline;
}

/* =================== Responsive =================== */

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .news-events {
    padding: 50px 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-header {
    align-items: flex-start;
    gap: 10px;
  }

  .news-link {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/*-------------Col Action-------------*/

.cta{
  margin: 100px auto;
  width: 80%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../../assets/images/drapeau.jpeg);
  background-position: center;
  background-size: cover;
  /*background-size: contain;*/
  background-repeat: no-repeat;
  border-radius: 10px;
  text-align: center;
  padding: 100px 0;
}
.cta h1{
  color: #fff;
  margin-bottom: 40px;
  padding: 0;
}

@media(max-width: 700px){
  .cta h1{
    font-size: 24px;
  }
}

/*-----------------footer-----------------*/

.footer {
  background-color: #05023b;
  color: #f4f6fa;
  padding: 50px 5%;
  font-family: 'Segoe UI', sans-serif;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-about,
.footer-links,
.footer-partners {
  flex: 1 1 30%;
  min-width: 250px;
}

.footer-about h4,
.footer-links h4,
.footer-partners h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #c9a227;
}

.footer-about p {
  font-size: 14px;
  line-height: 22px;
}

.social-icons i {
  font-size: 20px;
  margin-right: 10px;
  color: #c9a227;
  transition: color 0.3s ease;
}

.social-icons i:hover {
  color: #ffffff;
}

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

.footer-links ul li {
  font-size: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-links ul li:hover {
  color: #c9a227;
}

.partner-logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.partner-logos img {
  width: 80px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
  background: #fff;
  padding: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  font-size: 13px;
  color: #ddd;
}

/*  Responsive pour petits écrans */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-partners {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }

  .partner-logos {
    justify-content: center;
  }

  .footer-links ul li {
    font-size: 15px;
  }
}


/*---------------------------about us---------------------------*/

.sub-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.3), rgba(20, 9, 30, 0.3)), url(../../assets/images/fr.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.sub-header h1{
  margin-top: 100px;
}

.presse-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/presse.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.presse-header h1{
  margin-top: 100px;
}

.collectivites-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/Initiatives-Territoires.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.collectivites-header h1{
  margin-top: 100px;
}

.assistant-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/a-m.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.assistant-header h1{
  margin-top: 100px;
}
.carrieres-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/carrieres_judiciaires.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.carrieres-header h1{
  margin-top: 100px;
}

.commerce-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/commerce.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.commerce-header h1{
  margin-top: 100px;
}

.douane-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/douane-transit.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.douane-header h1{
  margin-top: 100px;
}

.gestion-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/gestion-fiscale.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.gestion-header h1{
  margin-top: 100px;
}

.projet-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/gestion-projet.jpeg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.projet-header h1{
  margin-top: 100px;
}

.marketing-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/marketing.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.marketing-header h1{
  margin-top: 100px;
}
.securite-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/securite.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.securite-header h1{
  margin-top: 100px;
}

.prevention-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/gestion-de-conflit.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.prevention-header h1{
  margin-top: 100px;
}

.communication-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/comme.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.communication-header h1{
  margin-top: 100px;
}


.in-header {
    min-height: 100vh; 
    width: 100%;
    background-image: linear-gradient(rgba(10, 20, 50, 0.5), rgba(20, 9, 30, 0.3)), url(../../assets/images/drapeau.jpeg);
    background-position: center;
    background-size: cover;
    text-align: center;
    background-repeat: no-repeat;
    color: #fff;
}
.in-header h1{
  margin-top: 100px;
}

.search-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.3), rgba(20, 9, 30, 0.3)), url(../../assets/images/search.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.search-header h1{
  margin-top: 100px;
}

.gouver-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.3), rgba(20, 9, 30, 0.3)), url(../../assets/images/gouver.jpeg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.gouver-header h1{
  margin-top: 100px;
}

.conseil-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.1), rgba(20, 9, 30, 0.1)), url(../../assets/images/conseils.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.conseil-header h1{
  margin-top: 100px;
}

.about-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/about.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.about-header h1{
  margin-top: 100px;
}
.blog-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.5), rgba(20, 9, 30, 0.5)), url(../../assets/images/blog.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.blog-header h1{
  margin-top: 100px;
}


/* -------------------------------------------About Us Moderne------------------------------------------- */
.modern-about {
  width: 100%;
  min-height: 100vh;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

.modern-about .container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.text-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  margin-bottom: 40px;
}

.brandmain {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 20px;
  position: relative;
}

.highlight {
  background: linear-gradient(120deg, #d4af37, #f1c40f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.decor-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f1c40f);
  border-radius: 2px;
  margin-bottom: 30px;
}

.about-lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 24px;
  line-height: 1.6;
}

.text-section p {
  font-size: 1.1rem;
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 24px;
}

.cta-wrapper {
  margin-top: 40px;
}

.inverse-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #d4af37, #f1c40f);
  color: #fff !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.inverse-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.inverse-btn:hover::before {
  left: 100%;
}

.inverse-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.image-section {
  opacity: 0;
  transform: translateX(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-section.animate-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
}

.image-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

.about-image {
  width: 100%;
  height: 500px;
  /*object-fit: cover;*/
  display: block;
  transition: transform 0.6s ease;
}

.image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 30px 30px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.image-wrapper:hover .image-overlay {
  transform: translateY(0);
}

.overlay-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.overlay-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .image-section {
    order: -1;
  }
  
  .brandmain {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .modern-about {
    padding: 80px 0 60px;
  }
  
  .brandmain {
    font-size: 2.2rem;
  }
  
  .about-image {
    height: 400px;
  }
}
.read-btn{
  border: 1px solid #d4af37;
  background: transparent;
  color: black;
}
.read-btn:hover{
  color: #fff;

}

/*---------------------Blog Page content---------------------*/

.blog-content{
  width: 80%;
  margin: auto;
  padding-top: 60px 0;
}
.blog-left{
  flex-basis: 50%;
}
.blog-left img{
  width: 100%;
}
.blog-left{
  color: #222;
  font-weight: 600;
  margin: 30px 0;
}
.blog-left p{
  color: #999;
  padding: 0;
}

.blog-right{
  flex-basis: 32%;
}
.blog-right h3{
  background: #1a1a40;
  color: #fff;
  padding: 7px 0;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.blog-right div{
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #555;
  padding: 8px;
  box-sizing: border-box;
}
.comment-box{
  border: 1px solid #ccc;
  margin: 50px 0;
  padding: 10px 20px;
  position: relative;
}
.comment-box h3{
  text-align: left;
}
.comment-form input, .comment-form textarea{
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: #f0f0f0f0;
}
.comment-form button{
  margin: 10px 0;
}
@media(max-width: 700px){
  .sub-header h1{
    font-size: 24px;
  }
  .about-header h1{
    font-size: 24px;
  }
  .blog-header h1{
    font-size: 24px;
  }
}

/*-------------------Contact Us-------------------*/



.cont-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(20, 9, 30, 0.3), rgba(11, 58, 259, 30%)), url(../../assets/images/contact.png);
  background-position: center;
  /*background-size: cover;*/
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.cont-header h1{
  margin-top: 100px;
}
.location{
  width: 80%;
  margin: auto;
  padding: 80px 0;
}
.location iframe{
  width: 100%;
}

.contact-us{
  width: 80%;
  margin: auto;
}
.contact-col{
  flex-basis: 48%;
  margin-bottom: 30px;
}
.contact-col div{
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.contact-col div .fa{
  font-size: 28px;
  color: #d4af37;
  margin: 10px;
  margin-right: 30px;
}
.contact-col div p{
  padding: 0;
}
.contact-col div h5{
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
  font-weight: 600;
}
.contact-col input, .contact-col textarea{
  width: 90%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/*----------------Activities----------------*/

.act-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(../../assets/images/actif.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}
.act-header h1{
  margin-top: 100px;
}

/* Palette diplomatique */
:root {
  --blue-deep: #0b1e3b;    /* bleu sombre */
  --blue: #123660;
  --gold: #caa552;         /* or élégant */
  --gold-light: #e6c679;
  --white: #ffffff;
  --gray-100: #f5f7fb;
  --gray-300: #d9dee7;
  --shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Section */
.Activity-content {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--gray-100), #fff);
}

.Activity-content .container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header */
.gallery-header h2 {
  color: var(--blue-deep);
  font-size: 2rem;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.gallery-header p {
  color: #5a6272;
  margin-bottom: 24px;
}

/* Grille responsive */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* 4 cartes par ligne sur desktop (12 / 3 = 3, donc span 3) */
.gallery-card {
  grid-column: span 3;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 280ms ease, box-shadow 280ms ease;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.18);
}

/* Media (image/vidéo) */
.gallery-card .media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 500ms ease;
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.06);
}

/* Overlay + bouton Voir */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,30,59,0.0) 40%, rgba(11,30,59,0.55));
  display: grid;
  place-items: end center;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity 250ms ease;
}

.gallery-card:hover .overlay { opacity: 1; }

.view-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--blue-deep);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 18px rgba(202,165,82,0.35);
  cursor: pointer;
  transform: translateY(6px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.view-btn:hover {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(202,165,82,0.45);
}

/* Infos de carte */
.card-info {
  padding: 14px 16px 18px;
}

.card-info h3 {
  font-size: 1.05rem;
  color: var(--blue);
  margin: 0 0 6px;
}

.card-info .meta {
  font-size: 0.9rem;
  color: #6a7182;
}

/* Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.gallery-modal.active { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 26, 0.55);
  backdrop-filter: blur(2px);
  animation: fadeIn 220ms ease;
}

.modal-content {
  position: relative;
  width: min(1100px, 96%);  /* un peu plus large */
  max-height: 90vh;         /* limite à la hauteur viewport */
  margin: 40px auto;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* plus de place pour l’image */
}


.modal-media {
  background: #000;
  /* supprime l'aspect-ratio fixe si tu veux laisser respirer */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media img,
.modal-media video {
  max-width: 100%;
  max-height: 90vh;  /* pour ne pas dépasser l'écran */
  width: auto;
  height: auto;
  object-fit: contain; /* important : ne plus rogner l'image */
}

.modal-details {
  padding: 18px 20px;
  border-left: 1px solid var(--gray-300);
}

.modal-title {
  color: var(--blue-deep);
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.modal-meta {
  color: #6a7182;
  margin: 0 0 12px;
}

.modal-desc {
  color: #2c3444;
  line-height: 1.55;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--blue-deep);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(202,165,82,0.35);
}


/* Bouton fermer */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--blue-deep);
  color: var(--white);
  border: none;
  border-radius: 10px; 
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11,30,59,0.3);
  transition: transform 160ms ease, background 160ms ease;
}

.modal-close:hover { transform: scale(1.05); background: var(--blue); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsivité */
@media (max-width: 1024px) {
  .gallery-card { 
    grid-column: span 12; 
  } /* 1 colonne */
  .modal-content { 
    grid-template-columns: 1fr; 
  }
  .modal-details { 
    border-left: none; 
    border-top: 1px solid var(--gray-300); 
  }
}

@media (max-width: 560px) {
  .gallery-header h2 { font-size: 1.6rem; }
  .card-info h3 { font-size: 1rem; }
}



/* ================= HISTORIQUE ICEDIS ================= */

.history-section {
  width: 100%;
  padding: 70px 0 80px;
  background: linear-gradient(180deg, var(--gray-100), #ffffff);
  font-family: 'Segoe UI', sans-serif;
}

.history-container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

/* Intro */
.history-intro h2 {
  font-size: 32px;
  color: var(--blue-deep);
  margin-bottom: 15px;
  position: relative;
}

.history-intro h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 999px;
}

.history-intro p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Grid Vision / Mission / Valeurs */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.identity-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.identity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.10);
}

.identity-card h3 {
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 10px;
}

.identity-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.identity-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.identity-card ul li {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.identity-card ul li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--gold);
}

/* Timeline */
.history-timeline-block {
  margin-top: 20px;
  margin-bottom: 50px;
}

.history-timeline-block h2 {
  font-size: 28px;
  color: var(--blue-deep);
  margin-bottom: 20px;
}

.history-timeline {
  position: relative;
  padding-left: 25px;
  border-left: 2px solid var(--gold-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
  padding-left: 18px;
}

.timeline-dot {
  position: absolute;
  left: -11px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--blue-deep);
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  box-shadow: 0 0 0 4px rgba(202, 165, 82, 0.2);
}

.timeline-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.timeline-year {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.timeline-content h4 {
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* Bloc campus / environnement */
.history-campus {
  margin-top: 10px;
}

.history-campus h2 {
  font-size: 26px;
  color: var(--blue-deep);
  margin-bottom: 12px;
}

.history-campus p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* Responsif */
@media (max-width: 900px) {
  .identity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .history-intro h2,
  .history-timeline-block h2,
  .history-campus h2 {
    font-size: 22px;
  }

  .history-section {
    padding: 50px 0 60px;
  }

  .history-timeline {
    padding-left: 18px;
  }
}

/* Lien “invisible” pour lecteurs d'écran (timeline description) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Rendre le focus clavier visible (WCAG) */
a:focus,
button:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}



/* Messages */
.alert {
  margin: 15px 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.alert-error {
  background: #ffefef;
  border: 1px solid #e63946;
  color: #7b1118;
}
.alert-success {
  background: #e8f9f0;
  border: 1px solid #2a9d8f;
  color: #15594d;
}

/* Liste de commentaires */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 25px;
  display: block;
}

.comment-item {
  display: block;
  background: #f4f6fa;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.comment-meta {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}
.comment-text {
  font-size: 14px;
  color: #222;
  line-height: 1.5;
}

/* Comment form champs + labels */
.comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 4px;
  color: #1a1a40;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--gold);
  background: #ffffff;
}

/* Dropdown suggestions catégories */
.category-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  position: absolute;
  z-index: 10;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.category-suggestions.visible {
  display: block;
}
.category-suggestions li {
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
}
.category-suggestions li:hover {
  background: #f4f6fa;
}

/* Rendre le focus clavier visible globalement */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.more-comments {
  margin-top: 10px;
  border-top: 1px dashed #ccc;
  padding-top: 8px;
}

.comments-toggle-btn {
  margin-top: 8px;
}

.comment-category-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: #e6c679;
  color: #0b1e3b;
}


/* =================== Header interne (page formation) =================== */

.inner-header {
  min-height: 100vh; 
  width: 100%;
  background-image: linear-gradient(rgba(10, 20, 50, 0.5), rgba(10, 20, 50, 0.5)), url(../../assets/images/droit.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.info-header {
  min-height: 100vh; 
  width: 100%;
  background-image: linear-gradient(rgba(10, 20, 50, 0.5), rgba(10, 20, 50, 0.5)), url(../../assets/images/info.jpeg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.diplomatie-header {
  min-height: 100vh; 
  width: 100%;
  background-image: linear-gradient(rgba(10, 20, 50, 0.5), rgba(10, 20, 50, 0.5)), url(../../assets/images/diplo.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.strategie-header {
  min-height: 100vh; 
  width: 100%;
  background-image: linear-gradient(rgba(10, 20, 50, 0.5), rgba(10, 20, 50, 0.5)), url(../../assets/images/strategie.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.security-header {
  min-height: 100vh; 
  width: 100%;
  background-image: linear-gradient(rgba(10, 20, 50, 0.5), rgba(10, 20, 50, 0.5)), url(../../assets/images/security.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


.course-hero {
  max-width: 800px;
  margin: 80px auto 0 auto;
}

.course-hero h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.course-hero p {
  color: #e5e7f5;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* =================== Bloc Intro / Résumé =================== */

.course-intro {
  background: #f8f9ff;
  padding: 30px 0;
}

.course-intro-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.course-badge {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.course-badge span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 4px;
}

.course-badge strong {
  font-size: 14px;
  color: #0a165d;
}

.sidebar-card .sidebar-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 260px;
  font-size: 13px;
  padding: 8px 14px;
  margin-top: 8px;
}
 
.sidebar-card {
  text-align: left; /* ou center si tu veux centrer */
}

.sidebar-card .sidebar-btn {
  margin-left: 0;   /* ou margin: 8px auto; si text-align:center */
}


/* =================== Layout principal (contenu + sidebar) =================== */

.course-layout {
  max-width: 1100px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: flex-start;
  font-family: 'Segoe UI', sans-serif;
}

/* Colonne principale */

.course-main {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 24px 28px 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  border-top: 3px solid #c9a227;
}

.course-section + .course-section {
  margin-top: 26px;
}

.course-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a40;
  margin-bottom: 10px;
  position: relative;
}

.course-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 6px;
  background: linear-gradient(90deg, #c9a227, #0a0589);
  border-radius: 999px;
}

.course-section p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 10px;
}

.course-section p strong {
  color: #0a165d;
}

/* Listes */

.course-list {
  margin: 8px 0 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}

.course-list li {
  margin-bottom: 4px;
}

/* Modules */

.course-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.module-card {
  background: #f8f9ff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.module-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #0a165d;
  margin-bottom: 6px;
}

.module-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #4b5563;
}

.module-card li {
  margin-bottom: 3px;
}

/* Infos pratiques (2 colonnes) */

.course-practical {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.course-practical h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0a165d;
  margin-bottom: 6px;
}

/* =================== Sidebar =================== */

.course-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: #0a165d;
  color: #e5e7f5;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.8;
}

.sidebar-list li {
  margin-bottom: 4px;
}

.sidebar-list strong {
  color: #c9a227;
  font-weight: 600;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.sidebar-links li {
  margin-bottom: 6px;
}

.sidebar-links a {
  color: #e5e7f5;
  text-decoration: none;
}

.sidebar-links a:hover {
  text-decoration: underline;
}

/* =================== Responsive =================== */

@media (max-width: 992px) {
  .course-layout {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    order: -1; /* sidebar au-dessus du contenu sur tablette si tu veux, sinon retire */
  }

  .course-modules {
    grid-template-columns: 1fr;
  }

  .course-practical {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .inner-header {
    height: auto;
    min-height: 280px;
    padding-bottom: 40px;
  }

  .course-hero {
    margin-top: 60px;
  }

  .course-hero h1 {
    font-size: 26px;
  }

  .course-intro-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .course-intro-inner {
    grid-template-columns: 1fr;
  }

  .course-main {
    padding: 18px 16px 22px 16px;
  }

  .course-section h2 {
    font-size: 18px;
  }

  .course-section p,
  .course-list {
    font-size: 13px;
  }
}
