/* =============================================
   ONAT - Custom Stylesheet
   Institution: Observatoire National d'Amenagement du Territoire
   Colors: Primary #008DC7 | Secondary #F5B800 | Accent #C41E3A | Dark #1a365d
   ============================================= */

/* =============================================
   1. CSS VARIABLES & RESET
   ============================================= */
:root {
  --color-primary: #008DC7;
  --color-primary-rgb: 0, 141, 199;
  --color-primary-light: #E6F4FA;
  --color-secondary: #F5B800;
  --color-secondary-rgb: 245, 184, 0;
  --color-accent: #C41E3A;
  --color-accent-rgb: 196, 30, 58;
  --color-dark: #1a365d;
  --color-dark-rgb: 26, 54, 93;
  --color-body: #FFFFFF;
  --color-header: #FFFFFF;
  --color-topbar: #1a365d;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Design sobre : pas d'ombres portees, des filets fins */
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-lg: none;
  --border-soft: #E5E7EB;
  --radius: 4px;
  --text-muted: #5B6472;
}

/* Effets desactivables depuis le doctype ONAT Settings */
body.no-animations .reveal,
body.no-animations .reveal-left,
body.no-animations .reveal-right,
body.no-animations .reveal-scale {
  opacity: 1;
  transform: none;
  transition: none;
}
body.no-animations *,
body.no-animations *::before,
body.no-animations *::after {
  scroll-behavior: auto !important;
}
body.no-animations .animate-fadeIn,
body.no-animations .animate-fadeInUp,
body.no-animations .animate-fadeInDown,
body.no-animations .animate-slideUp,
body.no-animations .animate-slideInLeft,
body.no-animations .animate-slideInRight,
body.no-animations .animate-slideInScale,
body.no-animations .animate-float,
body.no-animations .animate-spin-slow,
body.no-animations .animate-bounce,
body.no-animations .animate-pulse {
  animation: none !important;
}
body.no-hover-effects .card-onat:hover,
body.no-hover-effects .stat-card:hover,
body.no-hover-effects .mission-card:hover,
body.no-hover-effects .welcome-card:hover,
body.no-hover-effects .news-card:hover,
body.no-hover-effects .partner-logo:hover {
  transform: none;
}
body.no-hover-effects .card-image-wrapper img,
body.no-hover-effects .news-card .news-image img,
body.no-hover-effects .gallery-item img,
body.no-hover-effects .group-hover\:scale-105 {
  transition: none;
  transform: none;
}
body.no-hover-effects [class*="hover:"] {
  transition: none !important;
}
body.no-hover-effects .card-onat:hover .card-image-wrapper img,
body.no-hover-effects .news-card:hover .news-image img,
body.no-hover-effects .gallery-item:hover img,
body.no-hover-effects .partner-logo:hover {
  transform: none;
}
body.no-hover-effects .partner-logo:hover .partner-logo-img {
  transform: none;
}
body.no-hover-effects .partner-logo:hover .partner-logo-name {
  color: inherit;
}

/* =============================================
   2. PRELOADER
   ============================================= */
#preloader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loading {
  0% { width: 0%; margin-left: 0; }
  50% { width: 100%; margin-left: 0; }
  100% { width: 0%; margin-left: 100%; }
}

/* =============================================
   3. KEYFRAME ANIMATIONS
   ============================================= */

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slide animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero slider specific */
@keyframes heroZoom {
  from { transform: scale(1.15); }
  to   { transform: scale(1); }
}
@keyframes heroOverlayFade {
  from { opacity: 0.85; }
  to   { opacity: 0.65; }
}

/* Counter pulse */
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Float / Bobbing */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Spin slow */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Shimmer for loading */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Gradient shift */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulse ring */
@keyframes pulseRing {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Reveal underline */
@keyframes revealLine {
  from { width: 0; }
  to   { width: 60px; }
}

/* =============================================
   4. ANIMATION UTILITY CLASSES
   ============================================= */
.animate-fadeIn      { animation: fadeIn 0.8s ease-out forwards; }
.animate-fadeInUp    { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fadeInDown  { animation: fadeInDown 0.8s ease-out forwards; }
.animate-slideUp     { animation: slideUp 0.8s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease-out forwards; }
.animate-slideInRight{ animation: slideInRight 0.8s ease-out forwards; }
.animate-slideInScale{ animation: slideInScale 0.6s ease-out forwards; }
.animate-float       { animation: float 3s ease-in-out infinite; }
.animate-spin-slow   { animation: spinSlow 8s linear infinite; }

/* Scroll reveal - initial state */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* =============================================
   5. HERO SLIDER STYLES
   Hauteur plafonnee : le bandeau reste compact
   quel que soit le reglage "hauteur_hero".
   ============================================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: min(var(--hero-height, 60vh), 540px);
  min-height: 380px;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
  z-index: 1;
}

.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}

.hero-slider .slide.active .slide-bg {
  transform: scale(1);
}

/* Degrade lateral : la photo reste visible a droite */
.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--color-dark-rgb), 0.88) 0%,
    rgba(var(--color-dark-rgb), 0.70) 45%,
    rgba(var(--color-dark-rgb), 0.25) 100%
  );
}

.hero-slider .slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  padding-left: 0.75rem;
  margin-bottom: 0.9rem;
  border-left: 3px solid var(--color-secondary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-heading {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-slider .hero-desc {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
  line-height: 1.65;
}

.hero-btn {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero text animations (discretes) */
.hero-slider .slide.active .hero-title {
  animation: fadeInUp 0.7s ease-out 0.2s both;
}
.hero-slider .slide.active .hero-desc {
  animation: fadeInUp 0.7s ease-out 0.35s both;
}
.hero-slider .slide.active .hero-btn {
  animation: fadeInUp 0.7s ease-out 0.5s both;
}

/* Hero navigation arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

/* Hero dots : tirets fins */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.2s ease, width 0.2s ease;
  border: 0;
  padding: 0;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-dot.active {
  width: 36px;
  background: var(--color-secondary);
}

/* Hero progress bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--color-secondary);
  z-index: 10;
  width: 0%;
  transition: width 0.1s linear;
}

/* =============================================
   6. CARD STYLES & HOVER EFFECTS
   ============================================= */
.card-onat {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.card-onat:hover {
  border-color: rgba(var(--color-primary-rgb), 0.45);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
}
.card-image-wrapper img {
  transition: transform 0.6s ease-out;
}
.card-onat:hover .card-image-wrapper img {
  transform: scale(1.03);
}

.card-image-wrapper .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 141, 199, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-onat:hover .card-image-wrapper .card-overlay {
  opacity: 1;
}

/* Category badge */
.card-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 10px;
  border-radius: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.card-badge.evenement { background: var(--color-primary); color: white; }
.card-badge.atelier   { background: var(--color-secondary); color: var(--color-dark); }
.card-badge.reforme   { background: var(--color-accent); color: white; }
.card-badge.communique{ background: var(--color-dark); color: white; }

/* =============================================
   7. TIMELINE STYLES (Missions)
   ============================================= */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--color-primary);
  transition: background-color 0.2s ease;
}
.timeline-item:hover .timeline-dot {
  background: var(--color-primary);
}

.timeline-content {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.timeline-item:hover .timeline-content {
  border-color: rgba(var(--color-primary-rgb), 0.45);
}

/* =============================================
   8. GALLERY MASONRY
   ============================================= */
.gallery-masonry {
  column-count: 3;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease-out;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-item .gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* =============================================
   9. CHIFFRES CLES (bandeau sobre, sans icones)
   ============================================= */
.stats-band {
  background: var(--color-dark);
  color: #fff;
  padding: 3rem 0;
  border-top: 3px solid var(--color-secondary);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.stat-item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-item:nth-child(2n + 1) {
  border-left: 0;
}
.stat-number {
  margin: 0;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(var(--stat-cols, 4), minmax(0, 1fr));
  }
  .stat-item:nth-child(2n + 1) {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
  .stat-item:first-child {
    border-left: 0;
  }
}

/* =============================================
   10. SECTION TITLE STYLES
   ============================================= */
.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-secondary);
  margin-top: 0.75rem;
}
.section-title.center::after {
  margin-left: auto;
  margin-right: auto;
}
.section-subtitle {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}
.section-block {
  padding: 4rem 0;
}
@media (min-width: 1024px) {
  .section-block { padding: 5rem 0; }
}
.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}
.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
/* Lien texte avec fleche typographique (remplace les icones) */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s ease, gap 0.2s ease;
}
.text-link::after {
  content: '\2192';
  font-weight: 400;
}
.text-link:hover {
  color: var(--color-dark);
  gap: 0.6rem;
}

/* =============================================
   11. BUTTON STYLES
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-primary);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  background: transparent;
  color: var(--color-primary);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--color-secondary);
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-secondary);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-secondary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-dark);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-outline-light:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-primary);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: white;
}

/* =============================================
   12. MISSIONS (tuiles numerotees de l'accueil)
   ============================================= */
.mission-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 2rem 1.75rem;
  transition: background-color 0.2s ease;
}
.mission-tile:hover {
  background: var(--color-primary-light);
}
.mission-tile .mission-index {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-secondary);
  align-self: flex-start;
}
.mission-tile .mission-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.mission-tile .mission-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
/* Page /missions : accordeon */
.mission-card {
  border-radius: var(--radius) !important;
}

/* =============================================
   13. PARTENAIRES (logos)
   ============================================= */
.partner-groups {
  display: grid;
  gap: 2.5rem;
}
.partner-group-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-dark);
}
.partner-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
/* Grille a colonnes egales : les logos s'alignent sur toute la largeur */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.partner-logo {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.partner-logo:hover {
  border-color: rgba(var(--color-primary-rgb), 0.5);
}
.partner-logo-media {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
}
.partner-logo-img {
  max-height: 96px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.partner-logo:hover .partner-logo-img {
  transform: scale(1.04);
}
.partner-logo-fallback {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
}
.partner-logo-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-soft);
}
.partner-logo-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
  min-width: 0;
}
@media (max-width: 639px) {
  .partner-logo-media { height: 110px; padding: 1rem; }
  .partner-logo-img { max-height: 76px; }
  .partner-logo-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
.partner-logo-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.partner-logo-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}
.partner-logo-link:hover {
  color: var(--color-dark);
  text-decoration: underline;
}

/* =============================================
   14. CTA SECTION
   ============================================= */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.cta-section .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--color-dark-rgb), 0.92) 0%,
    rgba(var(--color-dark-rgb), 0.78) 55%,
    rgba(var(--color-dark-rgb), 0.45) 100%
  );
}

/* =============================================
   15. NAVIGATION STYKY EFFECT
   ============================================= */
#main-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom-color: var(--border-soft);
}
#main-header.is-sticky + #main-content {
  padding-top: var(--header-offset, 4.5rem);
}

/* Dropdown arrow rotation */
.group:hover .fa-chevron-down,
.dropdown-open .fa-chevron-down {
  transform: rotate(180deg);
}

/* =============================================
   16. CUSTOM SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-primary), var(--color-dark));
  border-radius: 5px;
  border: 2px solid #F1F5F9;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary));
}
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #F1F5F9;
}

/* =============================================
   17. LAZY LOADING PLACEHOLDER
   ============================================= */
.img-lazy {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  transition: opacity 0.4s ease;
}
.img-lazy.loaded {
  animation: none;
  background: none;
}

/* =============================================
   18. PARALLAX EFFECTS
   ============================================= */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}

/* =============================================
   19. NEWS / ARTICLE CARD
   ============================================= */
.news-card {
  background: white;
  border-radius: var(--radius) !important;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.45);
}
.news-card .news-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}
.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.news-card:hover .news-image img {
  transform: scale(1.03);
}
.news-card .news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.news-card .news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #6B7280;
}
.news-card .news-meta span + span::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.7rem;
  margin-right: 0.75rem;
  background: #D1D5DB;
  vertical-align: -1px;
}
.news-card .news-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-excerpt {
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.news-card .news-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.3s ease;
}
.news-card .news-link:hover {
  color: var(--color-dark);
}
.news-card .news-link::after {
  content: '\2192';
  margin-left: 0.4rem;
  transition: transform 0.2s ease;
}
.news-card .news-link:hover::after {
  transform: translateX(3px);
}
.news-card .news-title a:hover {
  color: var(--color-primary);
}

/* =============================================
   20. WELCOME / INFO CARDS (illustrees)
   ============================================= */
.welcome-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.welcome-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.45);
}
.welcome-card .welcome-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-primary-light);
}
.welcome-card .welcome-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.welcome-card:hover .welcome-media img {
  transform: scale(1.03);
}
.welcome-card .welcome-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  border-top: 3px solid var(--color-secondary);
}
.welcome-card .welcome-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: 0.6rem;
}
.welcome-card .welcome-title a:hover {
  color: var(--color-primary);
}
.welcome-card .welcome-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* =============================================
   21. BREADCRUMB
   ============================================= */
.breadcrumb {
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
  padding: 2rem 0;
}
.breadcrumb-title {
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.breadcrumb-nav a:hover {
  color: var(--color-secondary);
}
.breadcrumb-nav .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   22. SEARCH OVERLAY
   ============================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(var(--color-dark-rgb), 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay .search-box {
  width: 90%;
  max-width: 600px;
  position: relative;
}
.search-overlay .search-box input {
  width: 100%;
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  background: white;
  border: none;
  border-radius: 12px;
  outline: none;
}
.search-overlay .search-close {
  position: absolute;
  top: -60px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.search-overlay .search-close:hover {
  color: var(--color-secondary);
}

/* =============================================
   23. TOAST / NOTIFICATION
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  margin-top: 0.5rem;
  border-left: 4px solid var(--color-primary);
  animation: slideInRight 0.4s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.toast-hide {
  opacity: 0;
  transform: translateX(100%);
}

/* =============================================
   24. LOADING SPINNER
   ============================================= */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-primary-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spinSlow 0.8s linear infinite;
}
.spinner-sm {
  width: 24px;
  height: 24px;
  border-width: 2px;
}

/* =============================================
   25. DIVIDER / SEPARATOR
   ============================================= */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #E2E8F0, transparent);
}
.divider-text {
  color: #9CA3AF;
  font-size: 0.85rem;
}

/* =============================================
   26. RESPONSIVE BREAKPOINTS
   ============================================= */
@media (max-width: 1280px) {
}

@media (max-width: 1024px) {
  .gallery-masonry {
    column-count: 2;
  }
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .gallery-masonry {
    column-count: 1;
  }
  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }

  #main-content .section-title {
    font-size: 1.5rem;
  }
  #main-content .stat-number {
    font-size: 1.75rem;
  }

  /* Timeline on mobile */
  .timeline {
    padding-left: 30px;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline-dot {
    left: -27px;
    width: 16px;
    height: 16px;
  }

  /* CTA section mobile */
  .cta-section .cta-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .hero-dots {
    bottom: 15px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .btn-primary,
  .btn-secondary,
  .btn-outline-light,
  .btn-outline-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* =============================================
   27. REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .parallax {
    background-attachment: scroll;
  }
  .hero-slider .slide-bg {
    transition: none;
  }
}

/* =============================================
   28. PRINT STYLES
   ============================================= */
@media print {
  #main-header,
  #back-to-top,
  #preloader,
  .hero-arrow,
  .hero-dots,
  .search-overlay {
    display: none !important;
  }
  .hero-slider {
    height: auto !important;
    min-height: auto !important;
  }
  .card-onat,
  .news-card,
  .mission-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #E2E8F0;
  }
}

/* =============================================
   29. ACCESSIBILITY FOCUS STYLES
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}

/* =============================================
   30. SMOOTH SCROLL BEHAVIOR
   ============================================= */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(var(--color-primary-rgb), 0.25);
  color: var(--color-dark);
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

/* =============================================
   31. EXTENDED RESPONSIVE - MOBILE / TABLET / DESKTOP / TV
   ============================================= */

/* Anti-zoom automatique (iOS Safari) */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Safe areas (encoches & barre d'accueil iPhone) */
#back-to-top {
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
}
.toast-container {
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
}
.search-overlay {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Barres de filtres collantes : ne pas passer sous le header fixe */
body.has-sticky-header .sticky-filters {
  top: 5rem;
}

/* Navigation desktop un peu etroite entre 1024 et 1279px : resserrer */
@media (min-width: 1024px) and (max-width: 1279px) {
  #main-header .nav-link {
    padding: 0.5rem;
    font-size: 0.8125rem;
  }
}

/* Contenus HTML rich-text : images, tableaux et blocs ne débordent pas */
#main-content .prose img,
#main-content .prose figure,
#main-content .prose video,
#main-content .prose iframe {
  max-width: 100%;
  height: auto;
}
#main-content .prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#main-content .prose pre {
  max-width: 100%;
  overflow-x: auto;
}
#main-content .prose blockquote {
  overflow-wrap: break-word;
}
#main-content a,
#main-content p,
#main-content h1,
#main-content h2,
#main-content h3,
#main-content h4 {
  overflow-wrap: break-word;
}

/* ---- Very small phones (< 360px) ---- */
@media (max-width: 360px) {
  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  .btn-primary,
  .btn-secondary,
  .btn-outline-light,
  .btn-outline-primary {
    padding: 0.7rem 1.1rem;
    font-size: 0.75rem;
  }
  .breadcrumb-title {
    font-size: 1.35rem;
  }
}

/* ---- Landscape phones / short screens ---- */
@media (orientation: landscape) and (max-height: 520px) {
  .hero-slider {
    height: 100vh;
    min-height: 300px;
    max-height: none;
  }
  .hero-slider .hero-desc {
    display: none;
  }
  .hero-dots {
    bottom: 10px;
  }
  .hero-arrow {
    width: 36px;
    height: 36px;
  }
}

/* ---- Touch targets on small screens ---- */
@media (max-width: 768px) {
  #mobile-menu-toggle,
  #mobile-search-toggle {
    padding: 0.65rem;
  }
  .gallery-filter-btn,
  .filter-btn {
    min-height: 42px;
  }
}

/* ---- Large desktops (>= 1440px) ---- */
@media (min-width: 1440px) {
  #main-content .section-title {
    font-size: 2.5rem;
  }
  #main-content .stat-number {
    font-size: 3rem;
  }
}

/* ---- TV / 2K (>= 1600px) ---- */
@media (min-width: 1600px) {
  .breadcrumb-title {
    font-size: 2.5rem;
  }
}

/* ---- Full HD / TV (>= 1920px) : mise a l'echelle globale ---- */
@media (min-width: 1920px) {
  :root {
    font-size: 17px;
  }
  .breadcrumb-title {
    font-size: 3rem;
  }
  #main-content .section-title {
    font-size: 3rem;
  }
  #main-content .stat-number {
    font-size: 3.75rem;
  }
  #main-content .stat-label {
    font-size: 1.15rem;
  }
}

/* ---- 4K / Smart TV (>= 2560px) ---- */
@media (min-width: 2560px) {
  :root {
    font-size: 18.5px;
  }
  #main-content .section-title {
    font-size: 3.5rem;
  }
}

/* =============================================
   32. EN-TETE & NAVIGATION (responsive)
   - < 1280px : bouton menu + panneau deroulant
   - >= 1280px : menu horizontal compact
   ============================================= */
.topbar {
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  min-width: 0;
}
.topbar-info span + span {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.site-header {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.header-bar {
  height: 64px;
}
.site-logo {
  height: 40px;
}
@media (min-width: 768px) {
  .header-bar { height: 72px; }
  .site-logo { height: 46px; }
}
.header-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 1.05rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.header-icon-btn:hover {
  color: var(--color-primary);
  background: #F3F4F6;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.7rem;
  height: 72px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #374151;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0;
  height: 3px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}
.nav-caret {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}
.dropdown-menu {
  border-top: 3px solid var(--color-primary);
  padding: 0.35rem 0;
}
@media (min-width: 1536px) {
  .nav-link { padding: 0 0.95rem; font-size: 0.8125rem; }
  .nav-link::after { left: 0.95rem; right: 0.95rem; }
}
/* Menu mobile / tablette */
.mobile-menu {
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
}
.mobile-link {
  padding: 0.9rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1F2937;
  letter-spacing: 0.02em;
}
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--color-primary);
}
.mobile-dropdown .mobile-link {
  text-align: left;
}
@media (min-width: 768px) and (max-width: 1279px) {
  /* Tablette : deux colonnes pour eviter un panneau trop long */
  .mobile-menu > .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .mobile-menu > .container > :last-child {
    grid-column: 1 / -1;
  }
}

/* Pied de page */
.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Banniere des pages internes : plus compacte */
.internal-hero h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem) !important;
  line-height: 1.2;
  font-weight: 700;
}

/* Slider : fleches reservees aux grands ecrans (swipe + tirets ailleurs),
   hauteur reduite sur telephone */
@media (max-width: 1023px) {
  .hero-arrow { display: none; }
}
@media (max-width: 767px) {
  .hero-slider {
    height: 440px;
    min-height: 0;
  }
  .hero-btn .btn-secondary,
  .hero-btn .btn-outline-light {
    padding: 0.65rem 1.1rem;
  }
}

/* =============================================
   33. PETIT HERO SLIDE DE PAGE
   Meme habillage que le hero de l'accueil, en plus compact,
   avec fil d'ariane. Utilise par templates/includes/page_hero.html
   ============================================= */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(
    120deg,
    var(--color-dark) 0%,
    var(--color-primary) 60%,
    var(--color-primary) 100%
  );
}
/* Trame de fond dessinee en CSS (aucune image en dur) */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.7) 1px, transparent 0);
  background-size: 22px 22px;
}
.page-hero .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out both;
}
.page-hero .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--color-dark-rgb), 0.92) 0%,
    rgba(var(--color-dark-rgb), 0.78) 48%,
    rgba(var(--color-dark-rgb), 0.42) 100%
  );
}
.page-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 3.25rem 0 1.75rem;
}
.page-hero-content {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.25rem;
}
.page-hero .hero-heading {
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.75rem);
  text-transform: none;
}
.page-hero .hero-desc {
  margin: 0.85rem auto 0;
  max-width: 40rem;
}
.page-hero-extra {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
}
.page-hero-extra .hero-kicker {
  margin-bottom: 0;
}
/* Variante "align=left" : contenu ancre a gauche au lieu du centrage */
.page-hero.is-left .page-hero-content {
  text-align: left;
  margin: 0;
  padding: 0 1.25rem;
}
.page-hero.is-left .page-hero-crumbs {
  text-align: left;
  margin-left: 1.25rem;
  margin-right: 0;
}
.page-hero.is-left .page-hero-crumbs ol {
  justify-content: flex-start;
}
.page-hero.is-left .hero-btn {
  justify-content: flex-start;
}
.page-hero.is-left .slide-overlay {
  background: linear-gradient(
    90deg,
    rgba(var(--color-dark-rgb), 0.94) 0%,
    rgba(var(--color-dark-rgb), 0.8) 52%,
    rgba(var(--color-dark-rgb), 0.45) 100%
  );
}
/* Ligne de metadonnees (auteur / date / duree de lecture) */
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
}
.page-hero.is-left .page-hero-meta {
  justify-content: flex-start;
}
.page-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.page-hero-meta i {
  color: var(--color-secondary);
}
.page-hero .hero-btn {
  justify-content: center;
  margin-top: 1.5rem;
}
/* Fil d'ariane */
.page-hero-crumbs {
  margin: 2rem auto 0;
  max-width: 46rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}
.page-hero-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}
.page-hero-crumbs a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.page-hero-crumbs a:hover {
  color: var(--color-secondary);
}
.page-hero-crumbs .is-current {
  color: #fff;
  font-weight: 600;
}
.page-hero-crumbs-sep {
  color: rgba(255, 255, 255, 0.35);
}
@media (max-width: 767px) {
  .page-hero { min-height: 260px; }
  .page-hero-inner { padding: 2.5rem 0 1.25rem; }
  .page-hero .hero-desc { font-size: 0.9rem; }
}

/* =============================================
   34. BLOCS DE PAGE (texte long + image)
   Utilises par templates/includes/page_sections.html
   ============================================= */
.page-section .section-head {
  max-width: 46rem;
}
.page-section-text {
  max-width: 52rem;
  margin: 0 auto;
}
.page-block {
  padding: 3.5rem 0;
}
.page-block-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}
.page-block-aside .page-block-grid {
  grid-template-columns: 1fr;
}
.page-block-body {
  min-width: 0;
}
.page-block-title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
.page-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 1.15rem;
}
.page-block-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #fff;
}
.page-block-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.page-block-media figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 900px) {
  .page-block-aside .page-block-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Alterne la position de l'image d'un bloc a l'autre */
  .page-block:nth-of-type(even) .page-block-media {
    order: 2;
  }
}

/* =============================================
   35. TEXTE RICHE (.onat-prose)
   Style des contenus saisis dans l'editeur du site
   ============================================= */
.onat-prose {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.onat-prose > * + * {
  margin-top: 1.15rem;
}
.onat-prose p {
  margin: 0;
}
.onat-prose h1,
.onat-prose h2,
.onat-prose h3,
.onat-prose h4 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 0;
}
.onat-prose h1 { font-size: 1.6rem; }
.onat-prose h2 { font-size: 1.35rem; }
.onat-prose h3 { font-size: 1.15rem; }
.onat-prose h4 { font-size: 1rem; }
.onat-prose h2::after,
.onat-prose h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--color-secondary);
}
.onat-prose strong,
.onat-prose b {
  color: var(--color-dark);
  font-weight: 600;
}
.onat-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.onat-prose a:hover {
  color: var(--color-dark);
}
.onat-prose ul,
.onat-prose ol {
  padding-left: 1.35rem;
  margin: 0;
}
.onat-prose ul { list-style: disc; }
.onat-prose ol { list-style: decimal; }
.onat-prose li + li {
  margin-top: 0.5rem;
}
.onat-prose li::marker {
  color: var(--color-primary);
}
.onat-prose blockquote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-secondary);
  background: var(--color-primary-light);
  color: var(--color-dark);
  font-style: italic;
}
.onat-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.onat-prose figure {
  margin: 0;
}
.onat-prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.onat-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.onat-prose th,
.onat-prose td {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}
.onat-prose th {
  background: var(--color-primary-light);
  color: var(--color-dark);
  font-weight: 600;
}
.onat-prose hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 2rem 0;
}
.onat-prose code {
  background: #F3F4F6;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.85em;
}
.onat-prose pre {
  background: #111827;
  color: #E5E7EB;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
}
.onat-prose ul,
.onat-prose ol {
  display: block;
  list-style-position: outside;
}
.onat-prose-lead {
  font-size: 1rem;
  color: var(--text-muted);
}
.onat-prose-lead p {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* =============================================
   36. STATISTIQUES (accueil) — nouveau design
   Cartes claires avec icone, compteur anime, couleur propre a chaque
   statistique (champ "couleur" du doctype Statistique).
   ============================================= */
.stats-section {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--color-primary-light);
  opacity: 0.6;
}
.stats-section .container {
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.25rem;
  margin: 0;
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.9rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
/* Liseré de couleur en haut de la carte */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-color, var(--color-primary));
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.stat-card:hover {
  border-color: var(--stat-color, var(--color-primary));
  transform: translateY(-3px);
}
.stat-card:hover::before {
  transform: scaleX(1);
}
.stat-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--stat-tint, var(--color-primary-light));
  color: var(--stat-color, var(--color-primary));
  font-size: 1.35rem;
}
.stat-number {
  margin: 0;
  font-size: clamp(2.35rem, 1.9rem + 1.9vw, 3.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--stat-color, var(--color-dark));
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  line-height: 1.4;
}
.stat-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.stat-source {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
}
@media (max-width: 640px) {
  .stat-card { padding: 1.5rem 1.35rem; }
}
body.no-hover-effects .stat-card:hover {
  transform: none;
}

/* =============================================
   37. FICHE PARTENAIRE (page de detail)
   ============================================= */
.detail-hero-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.detail-fact {
  background: #fff;
  padding: 1.1rem 1.35rem;
}
.detail-fact dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}
.detail-fact dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  word-break: break-word;
}
.detail-columns {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .detail-columns {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }
}
.detail-aside {
    position: sticky;
    top: 6rem;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.detail-aside-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-dark);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-secondary);
}
.detail-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
}
.detail-aside-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
}
.detail-aside-list i {
  color: var(--color-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.detail-aside-list a {
  color: var(--color-primary);
  word-break: break-word;
}
.detail-aside-list a:hover {
  text-decoration: underline;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.detail-gallery figure {
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.detail-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease-out;
}
.detail-gallery figure:hover img {
  transform: scale(1.04);
}
.detail-gallery figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.detail-partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.detail-partner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.detail-partner:hover {
  border-color: rgba(var(--color-primary-rgb), 0.5);
}
.detail-partner img {
  height: 40px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
}
.detail-partner-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.35;
}

/* Accroche + corps de texte des pages de detail */
.detail-intro {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.6rem 1.85rem;
}
.detail-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-dark);
}
.detail-body {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .detail-body { padding: 2.5rem 2.5rem; }
}
.detail-intro + .detail-body {
  margin-top: 1.25rem;
}

/* ==========================================================================
   Accordeon des missions + tuiles mission / realisation / domaine
   ========================================================================== */
.mission-accordion {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.mission-item {
  background: #fff;
  transition: background-color .25s ease;
}
.mission-item:hover {
  background: var(--mission-tint, rgba(0, 141, 199, .06));
}
.mission-item-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 1.35rem 1.75rem;
  text-align: left;
  background: transparent;
}
.mission-item-num {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--mission-color, var(--color-secondary));
  min-width: 2.1rem;
}
.mission-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--mission-tint, rgba(0, 141, 199, .12));
  color: var(--mission-color, var(--color-secondary));
  font-size: .95rem;
  transition: background-color .25s ease, color .25s ease;
}
.mission-item:hover .mission-item-icon,
.mission-item.is-open .mission-item-icon {
  background: var(--mission-color, var(--color-secondary));
  color: #fff;
}
.mission-item-title {
  flex: 1;
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.02rem;
  line-height: 1.4;
}
.mission-item-caret {
  color: var(--color-secondary);
  font-size: .8rem;
  transition: transform .25s ease;
}
.mission-item.is-open .mission-item-caret {
  transform: rotate(180deg);
}
.mission-item-body {
  display: none;
  padding: 0 1.75rem 1.75rem 6.2rem;
}
.mission-item.is-open .mission-item-body {
  display: block;
  animation: fadeInUp .35s ease both;
}
.mission-item-body .text-link {
  margin-top: .75rem;
}
@media (max-width: 640px) {
  .mission-item-head { padding: 1.1rem 1.15rem; gap: .75rem; }
  .mission-item-body { padding: 0 1.15rem 1.35rem 1.15rem; }
  .mission-item-icon { display: none; }
}

.mission-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-secondary) 12%, #fff);
  color: var(--color-secondary);
  font-size: 1.15rem;
  margin-bottom: .35rem;
  transition: background-color .25s ease, color .25s ease;
}
.mission-tile:hover .mission-icon-lg {
  background: var(--color-secondary);
  color: #fff;
}
.mission-meta {
  display: block;
  font-size: .78rem;
  color: var(--color-body, #64748b);
  margin-top: .5rem;
}

/* ==========================================================================
   Pagination (actualites, recherche)
   ========================================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 3rem;
}
.pagination-num,
.pagination-step {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .85rem;
  justify-content: center;
  font-size: .86rem;
  font-weight: 600;
  color: var(--color-dark);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pagination-num:hover,
.pagination-step:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.pagination-num.is-active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.pagination-step.is-disabled {
  opacity: .4;
  pointer-events: none;
}

/* ==========================================================================
   Etat vide
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #fff;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius);
  color: #94a3b8;
}
.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: .5;
}
.empty-state p {
  font-size: .95rem;
  max-width: 34rem;
  margin: 0 auto;
}

/* ==========================================================================
   Article : galerie, chapeau, partage, tags
   ========================================================================== */
.article-gallery {
  margin-bottom: 2.5rem;
}
.article-gallery-main {
  display: block;
  width: 100%;
  background: #f1f5f9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.article-gallery-main img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}
@media (min-width: 768px) {
  .article-gallery-main img { height: 27rem; }
}
.article-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-top: .5rem;
}
.article-gallery-thumbs button {
  border-radius: .5rem;
  overflow: hidden;
  background: #f1f5f9;
  cursor: zoom-in;
}
.article-gallery-thumbs img {
  width: 100%;
  height: 5rem;
  object-fit: cover;
  transition: transform .3s ease;
}
.article-gallery-thumbs button:hover img { transform: scale(1.06); }
.article-gallery-caption {
  font-size: .82rem;
  color: #94a3b8;
  margin-top: .6rem;
  font-style: italic;
}

.article-resume {
  margin-bottom: 1.75rem;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.share-bar-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: .02em;
}
.share-bar-links {
  display: flex;
  gap: .5rem;
}
.share-bar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--color-dark);
  font-size: .8rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.share-bar-links a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}
.article-tags span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-secondary);
  background: color-mix(in srgb, var(--color-secondary) 10%, #fff);
  padding: .3rem .8rem;
  border-radius: 999px;
}

/* ==========================================================================
   Partenaires (cartes) + publications (cartes) + actions de detail
   ========================================================================== */
.partner-card {
  position: relative;
  background: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background-color .25s ease;
}
.partner-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.partner-card:hover::after {
  transform: scaleX(1);
}
.partner-card:hover {
  background: var(--partner-tint, rgba(0, 141, 199, .04));
}
.partner-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
}
.partner-card-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #f8fafc;
  color: var(--color-secondary);
  font-size: 1.1rem;
  overflow: hidden;
}
.partner-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .4rem;
}
.partner-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}
.partner-card-title a {
  transition: color .2s ease;
}
.partner-card-title a:hover {
  color: var(--color-secondary);
}
.partner-card-text {
  font-size: .88rem;
  line-height: 1.7;
  color: #64748b;
  flex: 1;
}
.partner-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: .5rem;
}

.publication-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.publication-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -22px rgba(15, 23, 42, .35);
}
.publication-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  border-radius: .65rem;
  background: rgba(220, 38, 38, .08);
  color: #dc2626;
  font-size: 1.05rem;
}
.publication-card-body {
  flex: 1;
  min-width: 0;
}
.publication-card-meta {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: .35rem;
}
.publication-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}
.publication-card-text {
  font-size: .86rem;
  line-height: 1.65;
  color: #64748b;
  margin: .4rem 0 .6rem;
}
.publication-card-cover {
  display: none;
  width: 4.5rem;
  flex: none;
  border-radius: .4rem;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.publication-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 640px) {
  .publication-card-cover { display: block; height: 5.5rem; }
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}

/* ==========================================================================
   Formulaires (contact, demande d'acces aux donnees)
   ========================================================================== */
.onat-form {
  display: grid;
  gap: 1.15rem;
}
.form-row {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-field > label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #475569;
}
.form-field > label .req {
  color: #dc2626;
  margin-left: .15rem;
}
.form-input {
  width: 100%;
  padding: .8rem 1rem;
  font-size: .92rem;
  color: var(--color-dark);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: .5rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input::placeholder {
  color: #a3b0c2;
}
.form-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary) 18%, transparent);
}
textarea.form-input {
  resize: vertical;
  min-height: 7rem;
}
.form-error {
  display: none;
  font-size: .78rem;
  color: #dc2626;
}
.form-field.is-invalid .form-input {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.form-field.is-invalid .form-error {
  display: block;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .84rem;
  color: #64748b;
  line-height: 1.6;
}
.form-check input {
  margin-top: .25rem;
  width: 1rem;
  height: 1rem;
  flex: none;
  accent-color: var(--color-secondary);
}
.form-alert {
  display: none;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1.1rem;
  border-radius: .6rem;
  font-size: .88rem;
  line-height: 1.6;
}
.form-alert.is-visible {
  display: flex;
  animation: fadeInUp .3s ease both;
}
.form-alert-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.form-alert-ko {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.form-status {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .88rem;
  color: #64748b;
}
.form-status.is-visible {
  display: flex;
}
.form-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
@media (min-width: 768px) {
  .form-card { padding: 2.5rem 2.25rem; }
}

/* ==========================================================================
   Cartes de contact + bloc geoportail
   ========================================================================== */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: .75rem;
  padding: 1.15rem 1.35rem;
}
.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-secondary) 12%, #fff);
  color: var(--color-secondary);
  font-size: .95rem;
}
.info-card-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: .2rem;
}
.info-card-value {
  font-size: .95rem;
  color: var(--color-dark);
  line-height: 1.6;
}
.info-card-value a:hover {
  color: var(--color-secondary);
}
.map-frame {
  width: 100%;
  height: 24rem;
  border: 0;
  filter: grayscale(35%);
  transition: filter .4s ease;
}
@media (min-width: 768px) {
  .map-frame { height: 30rem; }
}
.map-frame:hover {
  filter: grayscale(0);
}
.data-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.9rem 1.65rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.data-card:hover {
  transform: translateY(-3px);
  border-color: var(--data-color, var(--color-secondary));
  box-shadow: 0 18px 38px -26px rgba(15, 23, 42, .45);
}
.data-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: .8rem;
  margin-bottom: .35rem;
  background: var(--data-tint, rgba(0, 141, 199, .12));
  color: var(--data-color, var(--color-secondary));
  font-size: 1.15rem;
  transition: background-color .25s ease, color .25s ease;
}
.data-card:hover .data-card-icon {
  background: var(--data-color, var(--color-secondary));
  color: #fff;
}
.data-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}
.data-card-text {
  font-size: .87rem;
  line-height: 1.7;
  color: #64748b;
  flex: 1;
}
.feature-list {
  display: grid;
  gap: .8rem;
  margin: 1.5rem 0 2rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: rgba(255, 255, 255, .9);
  font-size: .92rem;
  line-height: 1.6;
}
.feature-list i {
  margin-top: .3rem;
  color: var(--color-secondary);
}

/* ==========================================================================
   Variante "inversee" (fondee) pour les sections de rupture
   ========================================================================== */
.section-block.is-inverted {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--color-secondary) 22%, transparent) 0%, transparent 60%),
    linear-gradient(140deg, var(--color-dark) 0%, var(--color-primary) 100%);
}
.section-block.is-inverted::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .8) 1px, transparent 0);
  background-size: 24px 24px;
}
.section-block.is-inverted > .container {
  position: relative;
  z-index: 2;
}
.section-title.is-light,
.section-subtitle.is-light {
  color: #fff;
}
.section-subtitle.is-light::before {
  background: var(--color-secondary);
}
.onat-prose-invert,
.onat-prose-invert a,
.onat-prose-invert strong {
  color: rgba(255, 255, 255, .9);
}
.onat-prose-invert a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Boutons compacts */
.btn-sm {
  padding: .5rem .95rem !important;
  font-size: .78rem !important;
  letter-spacing: .02em;
}

/* ==========================================================================
   A propos : blocs "piliers", cartes d'equipe, devise
   ========================================================================== */
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: #fff;
  border-top: 3px solid var(--pillar-color, var(--color-primary));
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 2.25rem 1.75rem 2rem;
  box-shadow: 0 18px 40px -34px rgba(15, 23, 42, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -32px rgba(15, 23, 42, .5);
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--pillar-tint, rgba(0, 141, 199, .12));
  color: var(--pillar-color, var(--color-primary));
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.35;
}
.pillar-text {
  color: #64748b;
  font-size: .92rem;
}
.pillar-text p {
  color: #64748b;
}

.team-group-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border-soft);
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--team-color, var(--color-secondary));
  box-shadow: 0 18px 38px -28px rgba(15, 23, 42, .45);
}
.team-card-featured {
  align-items: center;
  text-align: center;
  border-color: transparent;
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: #fff;
}
.team-card-featured:hover {
  border-color: transparent;
}
.team-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .3);
  font-size: 1.6rem;
  font-weight: 800;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .7rem;
  background: var(--team-tint, rgba(0, 141, 199, .12));
  color: var(--team-color, var(--color-primary));
  font-size: 1rem;
  margin-bottom: .5rem;
}
.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.35;
}
.team-card-featured .team-name { color: #fff; }
.team-sigle {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.team-role {
  font-size: .84rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.team-card-featured .team-role { color: rgba(255, 255, 255, .85); }
.team-direction {
  font-size: .78rem;
  color: #94a3b8;
}
.team-card-featured .team-direction { color: rgba(255, 255, 255, .7); }
.team-desc {
  font-size: .84rem;
  color: #64748b;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border-soft);
}
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: .8rem;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 11rem;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.team-card-photo:hover .team-photo img { transform: scale(1.05); }
.team-photo-fallback {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
}
.team-card-photo .team-name { font-size: .92rem; }

.motto {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}
.motto-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--color-secondary);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.motto-titre {
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .06em;
  line-height: 1.25;
}
.motto-sous-titre {
  margin-top: .85rem;
  font-size: clamp(1rem, .9rem + .5vw, 1.35rem);
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}
.motto-section { padding-top: 5rem; padding-bottom: 5rem; }

/* ==========================================================================
   Galerie : filtres, grille, visionneuse
   ========================================================================== */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.1rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.filter-chip.is-active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.gallery-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery-card[hidden] { display: none; }
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1.1rem 1rem .9rem;
  background: linear-gradient(to top, rgba(2, 44, 58, .88) 0%, rgba(2, 44, 58, .35) 60%, transparent 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}
.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-within .gallery-card-overlay {
  opacity: 1;
  transform: translateY(0);
}
.gallery-card-category {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.gallery-card-title {
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.5rem 1.25rem;
  background: rgba(2, 12, 20, .95);
  backdrop-filter: blur(4px);
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox-figure {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}
.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.gallery-lightbox-caption {
  margin-top: .85rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
}
.gallery-lightbox-caption[hidden] { display: none; }
.gallery-lightbox-counter {
  position: absolute;
  top: .85rem;
  right: .85rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.gallery-lightbox-nav,
.gallery-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  flex: 0 0 auto;
}
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.gallery-lightbox-nav[hidden] { display: none; }
.gallery-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

/* ==========================================================================
   Recherche : champ, groupes, resultats
   ========================================================================== */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: .4rem .45rem .4rem 1.25rem;
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, .6);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-form:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 22px 44px -30px rgba(2, 132, 199, .5);
}
.search-form-icon {
  color: var(--color-secondary);
  font-size: .9rem;
  flex: 0 0 auto;
}
.search-form-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: .95rem;
  color: var(--color-dark);
  padding: .55rem 0;
}
.search-form-input::-webkit-search-cancel-button { display: none; }
.search-form-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  color: #94a3b8;
  flex: 0 0 auto;
}
.search-form-clear:hover { background: #f1f5f9; color: #475569; }
.search-form-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.search-form-submit:hover { background: var(--color-primary); }
.search-form-submit:active { transform: translateY(1px); }

.search-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.search-summary-query {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: #475569;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: .3rem .9rem;
}
.search-groups { display: grid; gap: 2.5rem; }
.search-group-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 1rem;
}
.search-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: .55rem;
  background: var(--color-primary-soft, rgba(0, 141, 199, .1));
  color: var(--color-primary);
  font-size: .8rem;
}
.search-group-count {
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-secondary);
  border-radius: 999px;
  padding: .1rem .5rem;
  letter-spacing: 0;
}
.search-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: .85rem;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.search-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, .5);
}
.search-item-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border-radius: .6rem;
  overflow: hidden;
  background: #f1f5f9;
  color: var(--color-secondary);
}
.search-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-item-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  flex: 1 1 auto;
}
.search-item-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}
.search-item-meta {
  font-size: .74rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.search-item-desc {
  font-size: .8rem;
  color: #64748b;
  line-height: 1.45;
}
.search-item-arrow {
  color: #cbd5e1;
  font-size: .8rem;
  flex: 0 0 auto;
  transition: transform .2s ease, color .2s ease;
}
.search-item:hover .search-item-arrow { color: var(--color-secondary); transform: translateX(3px); }

/* ==========================================================================
   Connexion : carte, onglets, champs avec icone
   ========================================================================== */
.auth-card {
  max-width: 30rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .55);
}
.auth-head {
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: #fff;
}
.auth-logo {
  max-height: 3.5rem;
  width: auto;
  margin: 0 auto 1rem;
  background: #fff;
  border-radius: .6rem;
  padding: .4rem .75rem;
  object-fit: contain;
}
.auth-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
.auth-subtitle { margin-top: .35rem; font-size: .82rem; color: rgba(255, 255, 255, .78); }
.auth-body { padding: 1.75rem 2rem 1.5rem; }
.auth-tabs {
  display: flex;
  gap: .25rem;
  padding: .25rem;
  margin-bottom: 1.5rem;
  background: #f1f5f9;
  border-radius: .7rem;
}
.login-tab {
  flex: 1 1 0;
  padding: .6rem .5rem;
  border-radius: .55rem;
  font-size: .82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.login-tab.is-active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 6px 16px -10px rgba(15, 23, 42, .4);
}
.auth-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.auth-note { font-size: .82rem; color: #64748b; }
.auth-secure {
  padding: .9rem 1rem;
  text-align: center;
  font-size: .74rem;
  color: #94a3b8;
  background: #f8fafc;
  border-top: 1px solid var(--border-soft);
}
.auth-secure i { margin-right: .3rem; }

.input-icon { position: relative; }
.input-icon > i {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .82rem;
  pointer-events: none;
}
.input-icon .form-input { padding-left: 2.6rem; }
.input-icon .form-input.has-action { padding-right: 2.75rem; }
.input-action {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  color: #94a3b8;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.input-action:hover { color: var(--color-primary); background: #f1f5f9; }

.login-error,
.login-success {
  margin-bottom: 1.25rem;
  padding: .8rem 1rem;
  border-radius: .6rem;
  font-size: .84rem;
}
.login-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.login-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
