/* ================================================
   TABLE DES MATIÈRES
   1) Variables & Reset
   2) Navigation
   3) Accueil (hero, sections)
   4) Actualités
   5) Emplois
   6) Footer
   7) Responsive
   8) Pages internes (layout standard)
   ================================================ */

/* ================================================
   CESDD - STYLESHEET PRINCIPALE
   Design fluide, moderne et responsive
   ================================================ */

/* === VARIABLES CSS === */
:root {
  --primary: #009CFF;
  --secondary: #00AA55;
  --white: #FFFFFF;
  --black: #000000;
  --gray-light: #F5F5F5;
  --gray-medium: #D9D9D9;
  --text: #333333;
  --font: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --shadow-blue: 5px 5px 50px rgba(0,156,255,0.25);
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--black); }

/* === NAVIGATION === */
.navbar-gradient {
  background: linear-gradient(90deg, #FFF 23.74%, #009CFF 37.98%);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img { transition: transform var(--transition); }
.navbar-brand img:hover { transform: scale(1.05); }

.navbar-link {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 40px;
  transition: all var(--transition);
}

.navbar-link:hover {
  background: var(--primary);
  box-shadow: -6px -6px 20px rgba(255,255,255,0.7) inset, 6px 6px 20px rgba(240,240,240,0.25);
  border: 1px solid var(--white);
  transform: translateY(-2px);
}

.nav-contact {
  background: var(--primary);
  border: 2px solid var(--white);
  font-weight: 600;
}

.nav-contact:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  width: 100%;
  height: 648px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-image: url('assets/img/welcome.jpg');
  background-size: cover;
  background-position: center;
  clip-path: path("M0 0H1440V647.5C1440 647.5 1007.03 547.279 722 547C435.438 546.72 0 647.5 0 647.5V0Z");
}

/* === SECTION CESDD === */
.section-cesdd { padding: 60px 5%; }

.cesdd-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.cesdd-image { flex: 1 1 350px; display: flex; justify-content: center; }

.cesdd-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

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

.cesdd-texte { flex: 1 1 450px; max-width: 650px; }
.cesdd-texte h2 { font-size: 28px; margin-bottom: 20px; }
.cesdd-texte p { font-size: 18px; text-align: justify; line-height: 1.55; margin-bottom: 25px; }

.btn-cta {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  border: 3px solid var(--primary);
  border-radius: 20px;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(0,156,255,0.25);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,156,255,0.4);
}

/* === SECTION MISSION === */
.section-mission {
  width: 100%;
  min-height: 307px;
  background: rgba(0,170,85,0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 24px;
  text-align: center;
}

.section-mission h2 { color: var(--white); font-size: 32px; font-weight: 700; margin-bottom: 24px; }
.section-mission p { max-width: 800px; color: var(--white); font-size: 22px; line-height: 1.4; }

/* === DOMAINES D'EXPERTISE === */
.section-expertise {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 60px 24px;
}

.titre-expertise {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.cartes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 35px 25px;
  max-width: 900px;
  width: 100%;
}

.carte-figma {
  width: 100%;
  max-width: 160px;
  height: 210px;
  padding: 20px 18px;
  background: rgba(0,156,255,0.25);
  border-radius: 55px 55px 0 0;
  border: 2px solid var(--white);
  box-shadow: 0 4px 4px 4px rgba(255,245,245,0.8);
  display: flex;
  align-items: center;
  text-align: center;
  transition: transform var(--transition);
  margin: 0 auto;
}

.carte-figma:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0,156,255,0.4);
}

.carte-contenu { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.icone { width: 48px; height: 48px; object-fit: contain; }
.texte { text-align: center; font-size: 15px; }

/* === CAROUSEL === */
.carousel-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px 0;
  overflow: hidden;
}

.carousel-wrapper {
  width: 100%;
  max-width: 1280px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-btn {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  border: none;
  background: var(--black);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nav-btn:hover { opacity: 1; transform: scale(1.1); }
.nav-btn.left { margin-right: 10px; }
.nav-btn.right { margin-left: 10px; }

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  gap: 20px;
}

.carousel::-webkit-scrollbar { display: none; }

.card {
  min-width: 384px;
  max-width: 384px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--secondary);
  overflow: hidden;
  transition: transform var(--transition);
}

.card:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 338px; object-fit: cover; }

.card-text {
  height: 170px;
  padding: 20px;
  color: var(--white);
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === ÉVÉNEMENTS === */
.evenements {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.titre-principal { font-size: 32px; font-weight: 500; text-align: center; }
.titre-section { font-size: 28px; font-weight: 500; margin-bottom: 24px; }

.evenements-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.col-gauche { flex: 0 0 40%; min-width: 300px; display: flex; justify-content: center; }
.col-droite { flex: 0 0 50%; min-width: 300px; display: flex; flex-direction: column; gap: 24px; }

.carte-gauche img.image-principale {
  width: 90%;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.carte-gauche:hover img.image-principale { transform: scale(1.05); }

.carte-container {
  background: rgba(0,156,255,0.15);
  border-radius: 12px;
  padding: 20px;
  transition: transform var(--transition);
}

.carte-container:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-md); }
.carte-image { width: 100%; max-width: 200px; border-radius: 12px; margin-bottom: 15px; }
.carte-texte { font-size: 18px; font-weight: 500; }

.evenements-row-avenir { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }

.carte-avenir {
  position: relative;
  width: 350px;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.carte-avenir:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }

.carte-rectangle {
  width: 100%;
  height: 60%;
  position: absolute;
  top: 0;
  border-radius: 20px;
}

.carte-image-avenir {
  width: 60%;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.carte-texte-avenir {
  position: absolute;
  bottom: 0;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 20px;
  padding: 24px;
}

.bold { font-weight: 600; }

/* === PARTENAIRES === */
.partenaires {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
}

.titre-partenaires h2 { font-size: 36px; font-weight: 600; margin-bottom: 10px; }
.titre-partenaires h3 { font-size: 28px; font-weight: 500; color: #333; }
.titre-partenaires h3 span { font-weight: 600; color: var(--black); }

.carousel-partenaires {
  margin-top: 40px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 32px;
  animation: slide 30s linear infinite;
}

.carousel-track img {
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform var(--transition);
  filter: grayscale(50%);
}

.carousel-track img:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  filter: grayscale(0%);
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === FOOTER === */
.footer {
  background: var(--white);
  box-shadow: 0 -7px 10px rgba(0,0,0,0.25);
  padding: 40px 24px;
}

.footer-container { max-width: 1440px; margin: 0 auto; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo { width: 214px; height: auto; flex-shrink: 0; }

.footer-nav { display: flex; gap: 60px; }
.nav-col { display: flex; flex-direction: column; gap: 15px; }

.nav-col a {
  color: var(--primary);
  font-size: 20px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-col a:hover { text-decoration: underline; color: var(--secondary); }

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 533px;
  width: 100%;
}

.newsletter input {
  height: 43px;
  padding: 0 15px;
  font-size: 18px;
  border-radius: 20px;
  border: 2px rgba(0,156,255,0.25) solid;
  outline: none;
  transition: var(--transition);
}

.newsletter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,156,255,0.1);
}

.newsletter button {
  height: 43px;
  width: 162px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 20px;
  font-size: 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  box-shadow: inset 7px 7px 4px rgba(255,255,255,0.5);
  transition: var(--transition);
}

.newsletter button:hover {
  background: #009244;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,170,85,0.3);
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-contact { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon { width: 30px; height: 30px; background: var(--secondary); border-radius: 50%; flex-shrink: 0; }
.contact-info { font-size: 18px; font-weight: 500; line-height: 1.5; }

.footer-social { display: flex; gap: 15px; }

.social-icon {
  width: 32px;
  height: 32px;
  transition: transform var(--transition);
  filter: grayscale(30%);
}

.social-icon:hover { transform: scale(1.2); filter: grayscale(0%); }

.footer-separator {
  border: none;
  height: 1px;
  background: #ccc;
  margin: 40px 0 20px 0;
}

.footer-bottom {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

/* === PAGE ACTUALITÉS === */
.hero-actualites {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 8%;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content { max-width: 600px; flex: 1 1 400px; }
.hero-content h1 { font-size: 40px; font-weight: 700; margin-bottom: 24px; }
.hero-content p { font-size: 18px; line-height: 1.7; }

.hero-images { display: flex; gap: 24px; flex: 1 1 400px; justify-content: center; }

.hero-img {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.hero-img:hover { transform: scale(1.05); }
.hero-img-1 { background: #591112; padding: 40px; }
.hero-img img { width: 100%; display: block; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 40px 8%;
}

.stat-card {
  background: var(--white);
  box-shadow: var(--shadow-blue);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.stat-card h2 { font-size: 36px; color: var(--primary); }
.stat-card p { font-size: 20px; font-weight: 600; }

.featured { padding: 60px 8%; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.featured-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-blue);
  overflow: hidden;
  transition: transform var(--transition);
}

.featured-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.featured-card img { width: 100%; height: 250px; object-fit: cover; }
.featured-content { padding: 24px; font-size: 24px; }

.more { color: var(--primary); font-weight: 600; }
.more a { color: var(--primary); text-decoration: underline; }
.more a:hover { color: var(--secondary); }

.news { padding: 60px 8%; background: var(--gray-light); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: inset 5px -5px 4px rgba(0,156,255,0.25);
  overflow: hidden;
  transition: transform var(--transition);
}

.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card p { padding: 24px; font-size: 20px; }

.events {
  padding: 60px 8%;
  background: var(--primary);
  color: var(--white);
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--white);
}

.section-title.secondary { color: var(--secondary); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.event-card { transition: transform var(--transition); }
.event-card:hover { transform: scale(1.05); }
.event-card img { width: 100%; border-radius: 7px; box-shadow: var(--shadow-md); }
.event-card p { margin-top: 15px; font-size: 24px; color: var(--white); }

.btn-primary {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 30px;
  background: var(--primary);
  color: var(--white);
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* === PAGE EMPLOIS === */
.banner-emplois {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 60px 8%;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  z-index: 0;
}

.banner-bg img { width: 100%; height: 100%; object-fit: cover; }

.banner-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #fff 36%, rgba(255,245,245,0.25) 90%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.banner-content h1 { font-size: 36px; font-weight: 500; margin-bottom: 24px; }
.banner-content p { font-size: 18px; font-weight: 500; margin-bottom: 24px; }

.primary-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary);
  color: var(--white);
  font-size: 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.primary-btn:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 60px 8%;
}

.info-card {
  background: var(--white);
  box-shadow: var(--shadow-blue);
  border-radius: 20px;
  padding: 24px;
  min-height: 400px;
  transition: transform var(--transition);
}

.info-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.form-section {
  max-width: 947px;
  margin: 60px auto;
  padding: 40px 24px;
}

.form-section h2 {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.form-section p {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
}

.form-container { display: flex; flex-direction: column; gap: 24px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.input-field,
.textarea-field {
  width: 100%;
  background: var(--gray-medium);
  border-radius: 10px;
  border: none;
  padding: 15px;
  font-size: 16px;
  font-family: var(--font);
  transition: var(--transition);
}

.input-field { height: 50px; }
.textarea-field { min-height: 150px; resize: vertical; }

.input-field:focus,
.textarea-field:focus {
  outline: none;
  background: #e5e5e5;
  box-shadow: 0 0 0 3px rgba(0,156,255,0.2);
}

.form-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.required { color: #e74c3c; }

.submit-wrapper { text-align: center; margin-top: 24px; }

.submit-btn {
  padding: 12px 40px;
  background: var(--white);
  color: var(--secondary);
  border-radius: 20px;
  border: 2px solid var(--secondary);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
}

.submit-btn:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.jobs-section {
  padding: 60px 8%;
  text-align: center;
}

.jobs-section h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.jobs-section > p {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 40px;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.job-card {
  background: var(--white);
  box-shadow: var(--shadow-blue);
  border-radius: 10px;
  padding: 40px 24px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.job-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.job-card .icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  margin-bottom: 40px;
  border-radius: 8px;
}

.job-card .title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .navbar-nav { flex-direction: column; gap: 16px; padding: 24px 0; }
  .navbar-link { width: 100%; text-align: center; }
  .hero-section { height: 500px; }
  .cesdd-texte h2 { font-size: 24px; }
  .cesdd-texte p { font-size: 17px; }
  .cartes-container { grid-template-columns: repeat(2, 1fr); }
  .col-gauche, .col-droite { flex: 0 0 90%; }
  .carousel-track { gap: 20px; }
  .carousel-track img { height: 80px; }
  .titre-partenaires h2 { font-size: 28px; }
  .titre-partenaires h3 { font-size: 22px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .newsletter { max-width: 100%; }
  .footer-middle { flex-direction: column; align-items: flex-start; }
  .hero-actualites { flex-direction: column; text-align: center; }
  .hero-images { justify-content: center; }
  .stats, .featured-grid, .news-grid, .events-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* h1 sizing géré via clamp() */
  /* h2 sizing géré via clamp() */
  /* h3 sizing géré via clamp() */
  /* p sizing géré via clamp() */
  .section-cesdd { padding: 40px 24px; }
  .cesdd-container { flex-direction: column; text-align: center; }
  .cesdd-texte { max-width: 100%; }
  .cesdd-texte h2 { text-align: center; }
  .hero-section { height: 400px; }
  .cartes-container { grid-template-columns: 1fr; max-width: 300px; }
  .titre-expertise { font-size: 22px; }
  .card { min-width: 280px; max-width: 280px; }
  .card-img { height: 220px; }
  .card-text { height: auto; padding: 15px; font-size: 15px; }
  .titre-principal, .titre-section { font-size: 24px; }
  .carte-texte, .carte-texte-avenir { font-size: 16px; }
  .evenements-row { flex-direction: column; align-items: center; }
  .col-gauche, .col-droite { flex: 0 0 100%; }
  .evenements-row-avenir { flex-direction: column; align-items: center; }
  .carousel-track { gap: 15px; }
  .carousel-track img { height: 60px; }
  .titre-partenaires h2 { font-size: 24px; }
  .titre-partenaires h3 { font-size: 18px; }
  .nav-col a, .newsletter input, .newsletter button, .footer-bottom { font-size: 16px; }
  .hero-content h1 { font-size: 30px; }
  .section-title { font-size: 28px; }
  .featured-content, .news-card p, .event-card p { font-size: 18px; }
  .banner-content h1 { font-size: 28px; }
  .banner-content p { font-size: 16px; }
  .primary-btn { font-size: 18px; padding: 10px 25px; }
  .form-section h2 { font-size: 26px; }
  .form-section p { font-size: 18px; }
  .job-card .title { font-size: 20px; }
}

@media (max-width: 480px) {
  .section-cesdd p { font-size: 16px; line-height: 1.5; }
  .section-cesdd h2 { font-size: 22px; }
  .btn-cta { font-size: 16px; padding: 8px 20px; }
  .navbar-link { font-size: 16px; padding: 8px 15px; }
  .nav-btn { width: 35px; height: 35px; font-size: 18px; }
  .carte-avenir { width: 300px; height: 400px; }
  .footer-logo { width: 150px; }
  .contact-info { font-size: 14px; }
  .form-row { grid-template-columns: 1fr; }
}

/* === ACCESSIBILITY === */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==================================================
   AJOUTS - UX / NAVIGATION / QUALITÉ
   Corrections design + responsive (sans casser la charte)
   ================================================== */

/* --- Lien actif dans la navbar (page courante) --- */
.navbar-link.is-active {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: -6px -6px 20px rgba(255,255,255,0.25) inset;
}

/* --- Amélioration accessibilité : zones cliquables --- */
.navbar-link, .footer a, .btn-cta, .primary-btn, .submit-btn, .btn-primary {
  outline: none;
}

/* --- Scroll fluide (fallback CSS) --- */
html { scroll-behavior: smooth; }

/* --- Conteneur global : évite les pages trop "collées" --- */
main { display:block; }

/* --- Typo responsive moderne (évite les !important agressifs) --- */
:root {
  --fs-h1: clamp(28px, 2.3vw, 48px);
  --fs-h2: clamp(22px, 1.8vw, 36px);
  --fs-h3: clamp(18px, 1.4vw, 28px);
  --fs-p:  clamp(16px, 1.1vw, 18px);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { font-size: var(--fs-p); }

/* --- Images hero : évite les débordements --- */
.hero-image { background-attachment: scroll; }

/* Clip-path: fallback simple pour navigateurs non compatibles */
@supports not (clip-path: path("M0 0H10V10H0Z")) {
  .hero-image { clip-path: ellipse(120% 100% at 50% 0%); }
}

/* --- Performance : transitions plus cohérentes --- */
* { scroll-margin-top: 110px; }

/* --- Boutons : cohérence hover/active --- */
.btn-cta:active, .primary-btn:active, .submit-btn:active, .btn-primary:active {
  transform: translateY(0);
}


/* ==================================================
   PAGES INTERNES - LAYOUT STANDARD
   (about, contact, services, formations, équipe, etc.)
   ================================================== */

.page-hero {
  padding: 64px 0 36px;
  background: linear-gradient(180deg, rgba(0,156,255,0.12), rgba(0,156,255,0));
}

.page-hero h1 {
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.page-hero p {
  max-width: 820px;
  color: var(--text);
}

.page-content {
  padding: 24px 0 70px;
}

/* Carte de contenu : rend les pages propres et lisibles */
.content-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.content-card.inner {
  margin-bottom: 0;
}

.small-note {
  font-size: 14px;
  color: rgba(0,0,0,0.65);
}

.muted { color: rgba(0,0,0,0.65); }

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
}

.checklist li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--secondary);
  position: absolute;
  left: 0;
  top: 4px;
}

.bullet { padding-left: 18px; }
.bullet li { margin: 8px 0; }

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

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

/* Équipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.team-card {
  background: rgba(0,156,255,0.06);
  border: 1px solid rgba(0,156,255,0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.team-card h3 {
  padding: 14px 14px 0;
}

.team-card p {
  padding: 0 14px 16px;
}

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

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.service-card {
  background: rgba(0,170,85,0.08);
  border: 1px solid rgba(0,170,85,0.22);
  border-radius: 14px;
  padding: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

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

.cta-row { margin-top: 18px; }

/* Publications */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.pub-card {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 18px;
  background: var(--white);
}

.pub-action {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
}

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

/* Médiathèque */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.media-item {
  background: rgba(0,156,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,156,255,0.18);
}

.media-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.media-item figcaption {
  padding: 12px 14px;
}

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