:root {
  /* Colors */
  --primary: #1a365d;       /* Deep French Blue */
  --primary-light: #2c5282;
  --secondary: #d4af37;     /* Elegant Gold */
  --accent: #0d9488;        /* Teal for calls to action */
  --bg-color: #f8fafc;      /* Off-white */
  --surface: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Layout & Shadows */
  --nav-height: 80px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 700;
}

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

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

ul {
  list-style: none;
}

/* =========================================
   HEADER & NAVIGATION
========================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  font-size: 1.5rem;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-nav {
  height: 100%;
}

.nav-list {
  display: flex;
  gap: 2rem;
  height: 100%;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

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

.nav-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border-top: 2px solid var(--secondary);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.mega-menu-column h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-menu-column a {
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.mega-menu-column a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.mega-menu-column a i {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pdf-link {
  color: #e53e3e !important;
  font-weight: 500;
}
.pdf-link:hover {
  color: #c53030 !important;
}

/* =========================================
   HERO SECTION
========================================== */
.hero {
  margin-top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  min-height: 600px;
  background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(26, 54, 93, 0.4)), url('../assets/img/111.jpg') no-repeat center center/cover;
  background-color: var(--primary); /* Fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-content {
  max-width: 900px;
  color: white;
  animation: fadeUp 1s ease-out;
}

.hero-content h1 {
  color: white;
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: #e6c855;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

/* =========================================
   QUICK LINKS SECTION
========================================== */
.quick-links {
  max-width: 1400px;
  margin: -60px auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card-link {
  background-color: var(--surface);
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: var(--secondary);
}

.card-link i {
  font-size: 2.5rem;
  color: var(--accent);
}

.card-link h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0.5rem;
}

.card-link p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================
   NEWS SECTION
========================================== */
.news-section {
  max-width: 1400px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 6px;
  background-color: var(--secondary);
  border-radius: 4px;
}

.view-all {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.view-all:hover {
  column-gap: 0.75rem;
  color: var(--primary);
}

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

.news-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.news-img {
  width: 100%;
  height: 220px;
  background-color: #cbd5e1;
  object-fit: cover;
}

.news-content {
  padding: 2rem;
}

.news-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tag-alert {
  background-color: #fee2e2;
  color: #b91c1c;
}

.news-content h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================
   FOOTER
========================================== */
footer {
  background-color: var(--primary);
  color: white;
  padding: 5rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1.4fr 0.9fr 0.9fr 1.05fr;
  gap: 2.25rem;
  margin-bottom: 4rem;
}

@media (max-width: 1150px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
  }
}

.footer-col h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
  padding-left: 5px;
}

.footer-info p {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-info i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.footer-hours p {
  color: #cbd5e1;
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS
========================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   CONTACT MODAL
========================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: linear-gradient(to right, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.85) 100%), url('../assets/img/6M5A9162.jpg') no-repeat right center/cover;
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.close-modal:hover {
  color: var(--accent);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.modal-info {
  padding: 3rem;
  padding-right: 2rem;
}

.modal-info h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
}
.modal-info h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary);
}

.info-block {
  margin-bottom: 1.5rem;
  color: var(--text-main);
}
.info-block p {
  margin-bottom: 0.25rem;
}
.info-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-family: var(--font-sans);
}

.modal-form-container {
  padding: 3rem;
  background: rgba(26, 54, 93, 0.05); /* very light blue tint to separate form */
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.required-text {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-info, .modal-form-container { padding: 2rem; }
}

/* =========================================
   COMPTES RENDUS (Historique PDFs)
========================================== */
.hero-small {
  height: 30vh;
  min-height: 250px;
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.6)), url('../assets/img/111.jpg') no-repeat center center/cover;
}

.hero-small h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-small p {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.cr-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cr-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.cr-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.cr-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cr-icon {
  font-size: 2.5rem;
  color: #e53e3e;
  background: #fef2f2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-info h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

@media (max-width: 768px) {
  .cr-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* =========================================
   VIDÉOS EN FILIGRANE D'ARRIÈRE-PLAN (60% SOUS LES ÉCRITURES)
========================================== */
.video-watermark-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  background-color: #f8fafc;
}

.video-watermark-bg {
  position: sticky;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  margin-bottom: calc(-100vh + var(--nav-height));
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-watermark-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.60;
  filter: saturate(1.1) contrast(1.04);
}

.video-watermark-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(248, 250, 252, 0.05) 100%
  );
  z-index: 1;
}

.video-watermark-section > .page-content {
  position: relative;
  z-index: 2;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.video-watermark-section .cr-item {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
}

.video-watermark-section .cr-item:hover {
  background: rgba(255, 255, 255, 0.90) !important;
  border-color: var(--secondary) !important;
}

.video-watermark-section .secretariat-glass-card {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.16) !important;
}

/* =========================================
   RESPONSIVE SMARTPHONE & TABLETTE (GLOBAL)
========================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body.mobile-nav-locked {
  overflow: hidden;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary);
  color: #ffffff;
  border: 1.5px solid var(--secondary);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-nav-toggle i {
  font-size: 1.3rem;
  color: var(--secondary);
}

.mobile-nav-toggle.active {
  background: #0f172a;
}

/* Tablette & Mobile Navigation (<= 992px) */
@media (max-width: 992px) {
  :root {
    --nav-height: 70px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .logo-container {
    gap: 0.65rem;
  }

  .logo-container i {
    font-size: 2rem !important;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-text span {
    font-size: 0.72rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--nav-height));
    background: #ffffff;
    border-bottom: 3px solid var(--secondary);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 999;
  }

  .main-nav.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    height: auto;
    padding: 0.5rem 1.25rem 2rem;
  }

  .nav-item {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border-bottom: 1px solid var(--border);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
  }

  .nav-link::after {
    display: none;
  }

  .nav-item:hover .nav-link i {
    transform: none;
  }

  .nav-item.mobile-submenu-open > .nav-link {
    color: var(--accent);
  }

  .nav-item.mobile-submenu-open > .nav-link i {
    transform: rotate(180deg);
  }

  .mega-menu {
    position: static !important;
    width: 100% !important;
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border-top: 2px solid var(--secondary) !important;
    background: #f8fafc !important;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    display: none;
  }

  .nav-item.mobile-submenu-open > .mega-menu {
    display: block;
  }

  .mega-menu-content {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 1.15rem !important;
    gap: 1.25rem !important;
  }

  .mega-menu-column h3 {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
  }

  .mega-menu-column a {
    padding: 0.35rem 0;
    font-size: 0.92rem;
  }
}

/* Smartphone (<= 768px) */
@media (max-width: 768px) {
  .mega-menu-content {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
    gap: 1.15rem !important;
  }

  /* Hero Accueil & Sous-pages */
  .hero {
    height: auto !important;
    min-height: 440px !important;
    padding: 3rem 1.25rem 4.5rem !important;
  }

  .hero-content h1 {
    font-size: clamp(1.85rem, 7vw, 2.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 1.75rem !important;
  }

  .btn-group {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100%;
  }

  .btn-group .btn,
  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.98rem;
    text-align: center;
  }

  .hero-small {
    height: auto !important;
    min-height: 180px !important;
    padding: 2.25rem 1.15rem !important;
  }

  .hero-small h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.15rem) !important;
    line-height: 1.22 !important;
  }

  .hero-small p {
    font-size: 0.95rem !important;
  }

  /* Quick links cards */
  .quick-links {
    margin: -30px auto 2.5rem !important;
    padding: 0 1rem !important;
    gap: 0.9rem !important;
    grid-template-columns: 1fr !important;
  }

  .card-link {
    padding: 1.25rem 1.15rem !important;
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  .card-link i {
    font-size: 2.1rem !important;
    flex-shrink: 0;
  }

  .card-link h3 {
    margin-top: 0 !important;
    font-size: 1.1rem !important;
  }

  /* Sections & Contenus de pages */
  .news-section,
  .page-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-bottom: 3rem !important;
  }

  .video-watermark-section > .page-content {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    margin-bottom: 1.75rem !important;
  }

  .section-header h2 {
    font-size: 1.65rem !important;
    padding-left: 1rem !important;
  }

  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .news-content {
    padding: 1.35rem !important;
  }

  /* Grilles inline multi-colonnes dans les pages (État Civil, Cantine, Garderie, Secrétariat, Salle des Fêtes...) */
  main [style*="grid-template-columns"],
  .modal [style*="grid-template-columns"],
  .admin-modal [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Cartes & blocs avec gros paddings inline */
  .secretariat-glass-card,
  main [style*="padding: 2.5rem"],
  main [style*="padding: 3rem"],
  main [style*="padding: 2rem"] {
    padding: 1.25rem !important;
  }

  /* Comptes rendus / listes PDF */
  .cr-item {
    padding: 1.15rem !important;
    gap: 1rem !important;
  }

  .cr-info {
    gap: 0.9rem !important;
    align-items: flex-start !important;
  }

  .cr-icon {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.75rem !important;
  }

  /* Modales sur smartphone */
  .modal-content {
    width: 95% !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px !important;
  }

  .modal-info,
  .modal-form-container {
    padding: 1.5rem 1.25rem !important;
  }

  .modal-info h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1.25rem !important;
  }

  .close-modal {
    top: 0.85rem !important;
    right: 0.85rem !important;
  }

  /* Tableaux responsives sur smartphone */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Footer sur smartphone */
  footer {
    padding: 3rem 1.25rem 1.75rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2.25rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
  }
}

/* Petits smartphones (<= 420px) */
@media (max-width: 420px) {
  .logo-text {
    font-size: 1rem;
  }
  .mobile-nav-toggle span {
    display: none;
  }
  .mobile-nav-toggle {
    padding: 0.5rem 0.65rem;
  }
}



