/* =========================
   CONSULAT - CORPORATE UI (Revamp)
   Primary: #379337
   Style: minimal, corporate, responsive fixed
   ========================= */

/* ---------- Variables ---------- */
:root {
  --primary: #379337;
  --primary-dark: #2f6f27;
  --primary-soft: rgba(55, 147, 55, 0.12);
  --accent: #c9a227;
  --accent-dark: #b08a1e;

  --text: #0b1220;
  --muted: #5f6c80;
  --muted-2: #8a97ab;

  --bg: #f6f8fb;
  --bg-soft: #f1f4f9;
  --bg-soft-2: #ecf3ef;
  --surface: #ffffff;
  --surface-soft: #f9fbfd;
  --glass: rgba(255, 255, 255, 0.82);

  --rdv-primary: #379337;
  --rdv-secondary: #f4f7fb;
  --rdv-border: #dbe4f0;
  --rdv-text: #1f2a37;
  --rdv-muted: #6b7280;

  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.18);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 22px 50px rgba(15, 23, 42, 0.12);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  --container: 1200px;

  --section-y: 80px;
  --section-y-sm: 58px;
  --section-y-xs: 44px;

  --nav-h: 72px;

  --c-navy: #0b1f3b;
  --c-navy2: #0f2a52;
  --c-gold: #c9a227;
  --c-gold2: #b08a1e;
  --c-ink: #0f172a;
  --c-paper: #f7f6f1;
  --c-surface: #ffffff;

  --c-border: rgba(15, 23, 42, .14);
  --c-border2: rgba(15, 23, 42, .08);

  --c-shadow: 0 18px 46px rgba(11, 31, 59, .12);
  --c-shadow-soft: 0 10px 24px rgba(11, 31, 59, .10);

  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;

  --serif: ui-serif, "Georgia", "Times New Roman", serif;
  --sans: "Cabin", "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 55%, #eef2f7 100%);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../images/logo/emblem.svg') center/60% no-repeat;
  opacity: 0.025;
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
.section-head h2 {
  font-family: var(--sans);
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ---------- Utilities ---------- */
.section {
  padding: var(--section-y, clamp(60px, 8vw, 120px)) 0;
  position: relative;
}

.section::before,
.page-hero::before,
.rdv-hero::before,
.news-detail__hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 117, 46, 0.2), transparent);
  pointer-events: none;
}

.section-muted {
  background: var(--bg-soft, #fcfbf7);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-head p {
  color: var(--muted, rgba(15, 23, 42, 0.6));
  font-size: 15px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 65ch;
  margin-inline: auto;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  text-align: left;
  margin-bottom: 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 117, 46, 0.06);
  border: 1px solid rgba(46, 117, 46, 0.15);
  color: #2e752e;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.required-asterisk {
  color: #ef4444;
  font-weight: 500;
  margin-left: 4px;
}

/* ---------- Topbar ---------- */
.topbar {
  font-family: var(--sans, 'Poppins', sans-serif);
  background: #2e752e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.topbar__left,
.topbar__right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar a,
.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.topbar a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.topbar a:hover {
  color: #ffffff;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  background: rgba(255, 255, 255, 0.95);
}

.navbar__inner {
  min-height: var(--nav-h, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 180px;
  display: block;
}

.brand__text strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--c-navy, #0f172a);
}

.brand__text span {
  display: block;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.5);
}

/* Nav links */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  font-family: var(--sans, 'Poppins', sans-serif);
  font-weight: 500;
  font-size: 15px;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 999px;
  position: relative;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link::after {
  display: none; 
}

.nav__link:hover {
  background: rgba(46, 117, 46, 0.05);
  color: #2e752e;
}

.nav__link.active {
  color: #2e752e;
  background: rgba(46, 117, 46, 0.08);
  font-weight: 600;
}

.nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav__caret {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav__dropdown:hover .nav__caret {
  transform: rotate(180deg);
}

.nav__submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.nav__submenu .nav__link {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav__dropdown:hover .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Buttons ---------- */
.btn, .btn-rdv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover, .btn-rdv:hover,
.btn:focus-visible, .btn-rdv:focus-visible {
  transform: translateY(-1px);
}

.btn:active, .btn-rdv:active {
  transform: translateY(0);
}

.btn-primary {
  background: #2e752e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(46, 117, 46, 0.15);
}

.btn-primary:hover {
  background: #225722;
  box-shadow: 0 6px 20px rgba(46, 117, 46, 0.25);
}

.btn-rdv {
  color: #2e752e;
  background: transparent;
  border: 1px solid rgba(46, 117, 46, 0.3);
}

.btn-rdv:hover {
  background: #2e752e;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(46, 117, 46, 0.15);
}

.btn-outline {
  background: transparent;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.02);
  border-color: #0f172a;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

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

.btn--small {
  padding: 8px 16px;
  font-size: 12px;
}

/* ---------- Hero Slider (Accueil) ---------- */
.hero__slider {
  position: relative;
  min-height: clamp(520px, 78vh, 680px);
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1), transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgb(15 42 27 / 85%) 0%, rgb(15 42 25 / 60%) 100%);
}

.hero__content {
  position: relative;
  padding: clamp(100px, 15vh, 160px) 0;
  color: #ffffff;
  max-width: 780px;
}

.hero__kicker {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__content h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.hero__content p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 62ch;
  margin-bottom: 36px;
}

/* CORRECTIF DES BOUTONS DE L'ACTION HERO */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Bouton Principal Vert */
.hero__actions .btn--primary,
.hero__actions a:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #2e752e;
  color: #ffffff;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #2e752e;
}

.hero__actions .btn--primary:hover,
.hero__actions a:first-child:hover {
  background: #235923;
  border-color: #235923;
  transform: translateY(-2px);
}

/* REPRISE COMPLÈTE DU BOUTON SECONDAIRE INDÉCELABLE */
.hero__actions .btn--secondary,
.hero__actions a:nth-child(2) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.hero__actions .btn--secondary:hover,
.hero__actions a:nth-child(2):hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f172a !important;
  transform: translateY(-2px);
}

/* Flèches de navigation */
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  color: #ffffff;
  cursor: pointer;
  z-index: 4;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.hero__nav:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.hero__nav--prev { left: 24px; }
.hero__nav--next { right: 24px; }

/* Indicateurs (Dots) */
.hero__dots {
  position: absolute;
  left: 0; right: 0; bottom: 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.hero__dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__dot.active {
  background: #ffffff;
  width: 40px;
}

/* ---------- Welcome (Section de bienvenue) ---------- */
.welcome__image img {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome__image:hover img {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(46, 117, 46, 0.06);
}

/* ---------- Page Hero (Pages intérieures) ---------- */
.page-hero {
  background: linear-gradient(180deg, rgba(46, 117, 46, 0.03) 0%, transparent 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 56px 0;
}

.page-hero__inner h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 42px);
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.015em;
}

/* ---------- Feature cards ---------- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.nav__mobile-head, .nav-toggle, .nav .nav__cta {
  display: none;
}

/* ---------- Comores ---------- */
.comores__grid {
  margin-top: 32px;
}

.comores-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.comores-intro__content h3 {
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.comores-intro__content p {
  color: var(--muted, rgba(15, 23, 42, 0.65));
  font-size: 15.5px;
  line-height: 1.7;
}

.comores-intro__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.comores-intro__chips span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 117, 46, 0.05);
  border: 1px solid rgba(46, 117, 46, 0.12);
  color: #2e752e;
  font-size: 12.5px;
  font-weight: 500;
}

.comores-intro__cards {
  display: grid;
  gap: 16px;
}

.identity-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.06));
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  align-items: center;
}

.identity-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #2e752e;
  background: rgba(46, 117, 46, 0.06);
  border: none;
}

.identity-card h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--c-navy, #0f172a);
  margin: 0 0 4px;
}

.identity-card p {
  color: var(--muted, rgba(15, 23, 42, 0.6));
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.comores__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.comores__stats {
  display: grid;
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.06));
  border-radius: var(--radius-lg, 14px);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.stat-card h4 {
  font-family: var(--sans);
  color: #2e752e;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
}

.stat-card p {
  color: var(--muted, rgba(15, 23, 42, 0.6));
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.relations-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.relations-overview h3 {
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.relations-overview p {
  color: var(--muted, rgba(15, 23, 42, 0.65));
  font-size: 15.5px;
  line-height: 1.7;
}

.relations-timeline {
  display: grid;
  gap: 16px;
  border-left: 1px solid rgba(46, 117, 46, 0.15);
  padding-left: 24px;
}

.timeline-item {
  background: #ffffff;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.06));
  border-radius: var(--radius-lg, 12px);
  padding: 20px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.timeline-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2e752e;
  position: absolute;
  left: -29px;
  top: 26px;
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px rgba(46, 117, 46, 0.15);
}

.timeline-item h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--c-navy, #0f172a);
  margin: 0 0 6px;
}

.timeline-item p {
  color: var(--muted, rgba(15, 23, 42, 0.6));
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- President ---------- */
.president {
  align-items: center;
}

.president__content h2 {
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.president__content p {
  color: rgba(15, 23, 42, 0.7);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.president__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.president__image img {
  border-radius: var(--radius-xl, 16px);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.president__image:hover img {
  transform: scale(1.01);
}

.president__caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted, rgba(15, 23, 42, 0.5));
  text-align: center;
  font-style: italic;
}

/* ---------- Tourism ---------- */
.tourism-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tourism-card {
  background: #ffffff;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.06));
  border-radius: var(--radius-lg, 12px);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.tourism-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(46, 117, 46, 0.04);
  border-color: rgba(46, 117, 46, 0.15);
}

.tourism-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 117, 46, 0.06);
  border: none;
  margin-bottom: 20px;
  font-size: 18px;
  color: #2e752e;
}

.tourism-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--c-navy, #0f172a);
  font-size: 17px;
  margin: 0 0 10px;
}

.tourism-card p {
  color: var(--muted, rgba(15, 23, 42, 0.6));
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.tourism-highlight {
  margin-top: 40px;
  padding: 32px;
  border-radius: var(--radius-xl, 16px);
  background: #ffffff;
  border: 1px solid rgba(46, 117, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(46, 117, 46, 0.02);
}

.tourism-highlight h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--c-navy, #0f172a);
  font-size: 18px;
  margin: 0 0 4px;
}

.tourism-highlight p {
  color: var(--muted, rgba(15, 23, 42, 0.6));
  font-size: 14.5px;
  margin: 0;
}

/* Adaptabilité Mobile & Tablette */
@media (max-width: 992px) {
  .comores-intro,
  .relations-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tourism-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .tourism-grid {
    grid-template-columns: 1fr;
  }
  .tourism-highlight {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Consulat ---------- */
/* Sections */
.consulat-section {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--c-paper, #fcfbf7);
  position: relative;
}

.consulat-section--muted {
  background: var(--bg-soft, #f4f3ee);
}

.consulat-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 117, 46, 0.15), transparent);
}

/* Head */
.consulat-head {
  margin-bottom: 40px;
  max-width: 75ch;
}
.consulat-head h2 {
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.consulat-head p {
  margin: 0;
  color: rgba(15, 23, 42, 0.65);
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.7;
  font-family: var(--sans);
}

/* Buttons */
.consulat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.consulat-btn--primary {
  background: #2e752e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(46, 117, 46, 0.15);
}
.consulat-btn--primary:hover {
  background: #225722;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46, 117, 46, 0.25);
}
.consulat-btn--ghost {
  background: transparent;
  color: var(--c-navy, #0f172a);
  border-color: rgba(46, 117, 46, 0.25);
}
.consulat-btn--ghost:hover {
  background: rgba(46, 117, 46, 0.04);
  border-color: #2e752e;
}

/* ================================
   HERO – Mot du Consul
================================== */
.consulat-hero {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--c-paper, #fcfbf7);
  position: relative;
}

.consulat-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 117, 46, 0.15), transparent);
}

.consulat-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.consulat-hero__media {
  position: relative;
  border-radius: var(--r-xl, 16px);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  background: #f1f5f9;
  min-height: 440px;
}

.consulat-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.consulat-hero__media:hover img {
  transform: scale(1.02);
}

.consulat-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.2));
  pointer-events: none;
}

.consulat-hero__ribbon {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #2e752e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consulat-hero__stamp {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.consulat-hero__panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.consulat-hero__panel::before {
  display: none;
}

.consulat-hero__kicker {
  margin: 0 0 12px;
  color: #2e752e;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-family: var(--sans);
}

.consulat-hero__panel h2 {
  margin: 0 0 20px;
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.consulat-hero__note {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.consulat-hero__note p {
  margin: 0 0 16px;
  color: rgba(15, 23, 42, 0.7);
  font-size: 15.5px;
  line-height: 1.75;
  font-family: var(--sans);
}

.consulat-hero__note .text-right {
  margin-top: 24px;
  text-align: right;
  color: var(--c-navy, #0f172a);
  font-weight: 500;
}

.consulat-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ================================
   Mission – Services
================================== */
.consulat-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.consulat-service {
  background: #ffffff;
  border: 1px solid rgba(46, 117, 46, 0.08);
  border-radius: var(--r-lg, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.consulat-service::before,
.consulat-service::after {
  display: none;
}

.consulat-service:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 117, 46, 0.2);
  box-shadow: 0 20px 32px rgba(46, 117, 46, 0.04);
}

.consulat-service__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.consulat-service__num {
  font-weight: 300;
  font-size: 32px;
  color: rgba(46, 117, 46, 0.12);
  font-family: var(--sans);
}

.consulat-service__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2e752e;
  background: rgba(46, 117, 46, 0.06);
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
}

.consulat-service h3 {
  margin: 0 0 12px;
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-size: 18px;
  font-weight: 600;
}

.consulat-service p {
  margin: 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 14px;
  line-height: 1.6;
  font-family: var(--sans);
}

/* ================================
   Valeurs – Insignes (badges)
================================== */
.consulat-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.consulat-badge {
  background: #ffffff;
  border: 1px solid rgba(46, 117, 46, 0.08);
  border-radius: var(--r-lg, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  padding: 28px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.consulat-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 117, 46, 0.2);
  box-shadow: 0 20px 32px rgba(46, 117, 46, 0.04);
}

.consulat-badge__seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(46, 117, 46, 0.06);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consulat-badge h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-size: 16px;
  font-weight: 600;
}

.consulat-badge p {
  margin: 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 14px;
  line-height: 1.6;
  font-family: var(--sans);
}

/* Reponsive */
@media (max-width: 992px) {
  .consulat-hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .consulat-services {
    grid-template-columns: repeat(2, 1fr);
  }
  .consulat-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .consulat-services,
  .consulat-badges {
    grid-template-columns: 1fr;
  }
}

/* ================================
   Présentation – Profil + grille
================================== */
.consulat-profile{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: start;
}

.consulat-profile__card{
  background: linear-gradient(180deg, rgba(11,31,59,.96), rgba(11,31,59,.86));
  color: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--c-shadow);
  border: 1px solid rgba(201,162,39,.22);
  padding: 18px;
  position: relative;
  overflow:hidden;
}

.consulat-profile__card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 380px at 10% 0%, rgba(201,162,39,.18), transparent 60%),
    radial-gradient(700px 360px at 90% 20%, rgba(255,255,255,.10), transparent 55%);
  pointer-events:none;
}

.consulat-profile__card h3{
  margin: 0 0 12px;
  font-family: var(--sans);
  letter-spacing: .02em;
}

.consulat-profile__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}

.consulat-profile__list li{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.consulat-profile__list span{
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: .9;
}

.consulat-profile__list strong{
  font-weight: 900;
  text-align: right;
}

.consulat-profile__footer{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.consulat-chip{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,39,.35);
  background: rgba(201,162,39,.10);
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 10px;
}

.consulat-profile__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.consulat-fact{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--c-shadow-soft);
  padding: 16px;
  position: relative;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.consulat-fact:hover{
  transform: translateY(-2px);
  box-shadow: var(--c-shadow);
  border-color: rgba(201,162,39,.28);
}

.consulat-fact h3{
  margin: 0 0 8px;
  font-family: var(--sans);
  color: var(--c-navy);
}

.consulat-fact p{
  margin: 0;
  color: rgba(15,23,42,.78);
  line-height: 1.6;
  font-family: var(--sans);
}

/* ================================
   Relations – Roadmap verticale
================================== */
.consulat-roadmap{
  position: relative;
  display:grid;
  gap: 14px;
  padding-left: 26px;
}

.consulat-roadmap__line{
  position:absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(201,162,39,.65), rgba(11,31,59,.35));
  border-radius: 99px;
  opacity:.95;
}

.consulat-step{
  display:grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  position: relative;
}

.consulat-step__dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 10px;
  background: var(--c-gold);
  box-shadow: 0 0 0 6px rgba(201,162,39,.16);
  border: 1px solid rgba(11,31,59,.28);
}

.consulat-step__box{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--c-shadow-soft);
  padding: 16px;
}

.consulat-step__date{
  display:inline-block;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(11,31,59,.86);
  background: rgba(201,162,39,.14);
  border: 1px solid rgba(201,162,39,.25);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.consulat-step__box p{
  margin: 0;
  color: rgba(15,23,42,.78);
  line-height: 1.6;
  font-family: var(--sans);
}

/* ================================
   Responsive
================================== */
@media (max-width: 1024px){
  .consulat-hero__grid{ grid-template-columns: 1fr; }
  .consulat-hero__media{ min-height: 300px; }
  .consulat-services{ grid-template-columns: 1fr; }
  .consulat-badges{ grid-template-columns: repeat(2, 1fr); }
  .consulat-profile{ grid-template-columns: 1fr; }
  .consulat-profile__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .consulat-badges{ grid-template-columns: 1fr; }
  .consulat-roadmap{ padding-left: 22px; }
}

/* ---------- Enregistrement ---------- */
.register-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.register-form {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-xl, 16px);
  padding: 40px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.02);
  display: grid;
  gap: 20px;
}

.register-form--steps {
  gap: 24px;
}

.register-form__row {
  display: grid;
  gap: 8px;
}

.register-form__row--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.register-form__row--checkbox input {
  margin-top: 4px;
  accent-color: #2e752e;
}

.register-form label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--c-navy, #0f172a);
  letter-spacing: -0.01em;
}

.register-form input,
.register-form select,
.register-form textarea {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 12px 16px;
  font-size: 14.5px;
  font-family: inherit;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  background: #ffffff;
  border-color: #2e752e;
  box-shadow: 0 0 0 4px rgba(46, 117, 46, 0.08);
}

.register-form textarea {
  resize: vertical;
  min-height: 100px;
}

.register-form__note {
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.5);
  line-height: 1.5;
}

.register-form__helper {
  font-size: 12.5px;
  color: #ef4444;
  font-weight: 500;
}

.contact-captcha {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}

/* Étapes du formulaire (Steps) */
.register-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.register-step {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.register-step:hover {
  border-color: rgba(46, 117, 46, 0.3);
  color: #2e752e;
}

.register-step.is-active {
  background: rgba(46, 117, 46, 0.08);
  border-color: transparent;
  color: #2e752e;
  font-weight: 600;
}

/* Barre de progression raffinée */
.register-progress {
  height: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.register-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: #2e752e;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.register-panel {
  display: none;
  gap: 20px;
}

.register-panel.is-active {
  display: grid;
}

.register-panel__intro {
  margin: 0;
  color: rgba(15, 23, 42, 0.5);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Section d'urgence */
.register-emergency {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.02);
}

.register-emergency__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.register-emergency__hint {
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.5);
}

.register-emergency__list {
  display: grid;
  gap: 12px;
}

.register-emergency__card {
  display: grid;
  gap: 12px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.register-emergency__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.register-emergency__card-header h4 {
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* Récapitulatif de fin (Summary) */
.register-summary {
  display: grid;
  gap: 20px;
}

.register-summary__section {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
}

.register-summary__section h4 {
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-weight: 600;
  margin: 0 0 14px;
  font-size: 15px;
}

.register-summary__section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: rgba(15, 23, 42, 0.75);
  font-size: 14px;
}

.register-summary__sublist {
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.5);
  font-size: 13px;
}

/* Colonne d'informations latérale (Register Info) */
.register-info {
  background: #ffffff;
  border-radius: var(--radius-xl, 16px);
  padding: 32px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.01);
}

.register-info h3 {
  font-family: var(--sans);
  color: var(--c-navy, #0f172a);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 12px;
}

.register-info p {
  color: rgba(15, 23, 42, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

.register-info ul {
  margin: 24px 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.register-info ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(15, 23, 42, 0.75);
  font-size: 14px;
}

.register-info ul li::before {
  content: "•";
  color: #2e752e;
  font-weight: bold;
  font-size: 16px;
}

.register-info ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2e752e;
  text-decoration: none;
  font-weight: 500;
}

.register-info ul li a:hover {
  text-decoration: underline;
}

.register-info__contact {
  background: #f8fafc;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  margin-top: 24px;
}

/* Responsiveness globale du module d'inscription */
@media (max-width: 992px) {
  .register-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .register-form {
    padding: 24px;
  }
}

/* ---------- Cards (Services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg, 14px);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(46, 117, 46, 0.04);
  border-color: rgba(46, 117, 46, 0.15);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 117, 46, 0.06);
  border: none;
  margin-bottom: 20px;
  font-size: 18px;
  color: #2e752e;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__icon {
  background: #2e752e;
  color: #ffffff;
}

.card h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--c-navy, #0f172a);
  font-size: 18px;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted, rgba(15, 23, 42, 0.6));
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.card__link {
  display: inline-flex;
  margin-top: 18px;
  color: #2e752e;
  font-weight: 600;
  font-size: 14px;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
}

.card--highlight {
  border-color: rgba(201, 162, 39, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
}

.card--highlight .card__icon {
  background: rgba(201, 162, 39, 0.12);
  color: #8a6a14;
}

.card--highlight:hover {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 20px 34px rgba(138, 106, 20, 0.08);
}

/* ---------- News (Actualités) ---------- */
.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-grid--four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- Suivi de demande ---------- */
.tracking-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 248, 251, 0.96)),
    radial-gradient(circle at 10% 0%, rgba(55, 147, 55, 0.12), transparent 36%);
}

.tracking-hero {
  position: relative;
  padding: 84px 0 42px;
  overflow: hidden;
}

.tracking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 31, 59, 0.06), rgba(201, 162, 39, 0.08));
  pointer-events: none;
}

.tracking-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.tracking-hero__content h1 {
  max-width: 760px;
  margin: 16px 0 14px;
  color: var(--c-navy);
  font-family: var(--sans);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.08;
}

.tracking-hero__content p {
  max-width: 620px;
  color: rgba(15, 23, 42, 0.68);
  font-size: 16px;
  line-height: 1.75;
}

.tracking-search {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(11, 31, 59, 0.09);
  padding: 24px;
}

.tracking-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--c-navy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracking-search__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.tracking-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #ffffff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tracking-search input:focus {
  border-color: rgba(55, 147, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(55, 147, 55, 0.12);
}

.tracking-search .btn {
  min-height: 48px;
  gap: 8px;
  white-space: nowrap;
}

.tracking-results {
  padding-top: 32px;
}

.tracking-card {
  width: min(100%, 820px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(11, 31, 59, 0.08);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.tracking-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(55, 147, 55, 0.1);
  color: #2e752e;
  font-size: 22px;
}

.tracking-card h2 {
  margin: 0;
  color: var(--c-navy);
  font-family: var(--sans);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
}

.tracking-card p {
  margin: 8px 0 0;
  color: rgba(15, 23, 42, 0.66);
}

.tracking-card--status {
  display: block;
  overflow: hidden;
}

.tracking-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tracking-card__header p {
  margin: 0 0 4px;
  color: rgba(15, 23, 42, 0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.tracking-details div {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
}

.tracking-details dt {
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tracking-details dd {
  margin: 0;
  color: var(--c-navy);
  font-weight: 700;
  word-break: break-word;
}

.tracking-card--valid .tracking-card__icon,
.tracking-card--done .tracking-card__icon {
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
}

.tracking-card--reject .tracking-card__icon,
.tracking-card--error .tracking-card__icon {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.tracking-card--wait .tracking-card__icon,
.tracking-card--progress .tracking-card__icon {
  background: rgba(201, 162, 39, 0.13);
  color: #8a6a14;
}

@media (max-width: 900px) {
  .tracking-hero {
    padding-top: 62px;
  }
  .tracking-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .tracking-search__row,
  .tracking-details {
    grid-template-columns: 1fr;
  }
  .tracking-card {
    padding: 22px;
  }
  .tracking-card__header {
    align-items: flex-start;
  }
}

.news-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.04);
  border-color: rgba(46, 117, 46, 0.15);
}

.news-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover img {
  transform: scale(1.02);
}

.news-card__content {
  padding: 24px;
}

.news-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.45);
  margin-bottom: 10px;
}

.news-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--c-navy, #0f172a);
  font-size: 16.5px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.news-card p {
  color: var(--muted, rgba(15, 23, 42, 0.6));
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.news-card a {
  display: inline-flex;
  margin-top: 16px;
  color: #2e752e;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.news-card a:hover {
  text-decoration: underline;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.news-pagination a {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-pagination a:hover {
  border-color: #2e752e;
  color: #2e752e;
}

.news-pagination a.is-active {
  background: #2e752e;
  color: #ffffff;
  border-color: #2e752e;
}

/* Vue Détail de l'Actualité */
.news-detail__hero {
  background: linear-gradient(180deg, rgba(46, 117, 46, 0.04), transparent);
  padding: 60px 0 40px;
}

.news-detail__hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 42px);
  color: #0f172a;
  line-height: 1.2;
  margin-top: 12px;
  letter-spacing: -0.02em;
}

.news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(15, 23, 42, 0.5);
  font-size: 13.5px;
  margin-top: 16px;
}

.news-detail__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-detail__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.news-detail__content {
  display: grid;
  gap: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(15, 23, 42, 0.8);
}

.news-detail__content ul {
  padding-left: 20px;
  color: rgba(15, 23, 42, 0.7);
  display: grid;
  gap: 10px;
}

.news-detail__sidebar {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  display: grid;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  position: sticky;
  top: calc(var(--nav-h, 70px) + 24px);
}

.news-detail__sidebar h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  color: #0f172a;
  margin: 0;
}

.news-detail__sidebar p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.news-detail__tag {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 117, 46, 0.06);
  color: #2e752e;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-detail__share {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-detail__share a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
}

.news-detail__share a:hover {
  background: rgba(15, 23, 42, 0.02);
  border-color: #0f172a;
}

/* ---------- CTA (Appel à l'action) ---------- */
.cta {
  background: #2e752e;
  color: #ffffff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: var(--sans);
  font-weight: 600;
  margin: 0;
}

.cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: #1b4d1b;
  color: rgba(255, 255, 255, 0.75);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.3fr;
  gap: 32px;
  padding: 64px 0;
}

.footer__logo {
  width: 220px;
  margin-bottom: 16px;
  display: block;
}

.footer h3,
.footer h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.footer ul li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__social {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__social li {
  display: flex;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: background 0.2s ease;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer .iconify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Newsletter */
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.newsletter input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Bas de page */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__bottom-links a:hover {
  color: #ffffff;
}

/* Responsive global des grilles */
@media (max-width: 992px) {
  .cards, .news, .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .news-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-detail__grid {
    grid-template-columns: 1fr;
  }
  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .cards, .news, .news-grid--four, .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

@keyframes ctaGlow {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(3%, -2%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   RESPONSIVE (Rebuilt)
   Breakpoints: 1200 / 1024 / 860 / 640 / 420
   ========================= */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  :root {
    --section-y: var(--section-y-sm);
  }

  .brand {
    min-width: unset
  }

  .brand__logo {
    width: 170px
  }

  .cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .news {
    grid-template-columns: repeat(2, 1fr)
  }

  .news-grid--four {
    grid-template-columns: repeat(2, 1fr)
  }

  .tourism-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .consulat-mission {
    grid-template-columns: repeat(2, 1fr)
  }

  .consulat-values {
    grid-template-columns: repeat(2, 1fr)
  }

  .register-grid {
    grid-template-columns: 1fr
  }

  .feature-cards {
    grid-template-columns: 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .comores-intro,
  .relations-wrap {
    grid-template-columns: 1fr
  }

  .section-head-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .section-head-row a {
    align-self: center;
  }

  .hero__actions,
  .welcome__actions,
  .comores__cta {
    justify-content: center;
  }

  .btn-rdv {
    display: none
  }

  /* News detail: sidebar under content earlier for tablets */
  .news-detail__grid {
    grid-template-columns: 1fr
  }

  .news-detail__sidebar {
    position: static;
    top: auto;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block
  }

  .nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    background: linear-gradient(160deg, rgba(255, 255, 255, .98) 0%, rgba(233, 246, 237, .98) 45%, rgba(255, 255, 255, .98) 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 32px;
    gap: 10px;
    box-shadow: 0 24px 40px rgba(15, 23, 42, .18);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.28s var(--ease-smooth), transform 0.28s var(--ease-smooth), visibility 0.28s var(--ease-smooth);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__mobile-head {
    display: flex;
  }

  .nav__link {
    width: min(100%, 320px);
    margin: 0 auto;
    text-align: center;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.active {
    background: rgba(55, 147, 55, 0.14);
    box-shadow: none;
  }

  .nav .nav__cta {
    display: inline-flex;
    align-self: center;
  }

  .nav__dropdown {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .nav__link--dropdown {
    width: min(100%, 320px);
    justify-content: center;
    text-align: center;
  }

  .nav__submenu {
    position: static;
    min-width: min(100%, 300px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    padding: 10px 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    align-items: center;
    gap: 6px;
  }

  .nav__submenu .nav__link {
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
  }

  .nav__dropdown.is-open .nav__submenu,
  .nav__dropdown:focus-within .nav__submenu {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Mid devices */
@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr
  }
}

/* Phones */
@media (max-width: 640px) {
  :root {
    --section-y: var(--section-y-xs);
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .cards {
    grid-template-columns: 1fr
  }

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

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

  .tourism-grid {
    grid-template-columns: 1fr
  }

  .consulat-mission,
  .consulat-values,
  .consulat-overview {
    grid-template-columns: 1fr
  }

  .hero__slide {
    display: flex;
    align-items: center;
  }

  .hero__content {
    padding: 0;
    text-align: center;
    margin: 0 auto;
  }

  .hero__content p {
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .btn {
    padding: 11px 14px
  }

  .footer__grid {
    grid-template-columns: 1fr
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .brand__logo {
    width: 150px
  }
}

/* =========================================================
   RDV PAGE (Premium, Corporate & Responsive)
   ========================================================= */

/* Configuration des variables locales pour la cohérence de la page */
:root {
  --rdv-c-primary: #2e752e; /* Votre vert institutionnel */
  --rdv-c-navy: #0f172a;    /* Texte fort */
  --rdv-c-muted: rgba(15, 23, 42, 0.6);
  --rdv-c-border: rgba(15, 23, 42, 0.06);
  --rdv-c-bg-soft: #f8fafc;
}

/* HERO: Épuré, sobre et institutionnel */
.rdv-hero {
  background: linear-gradient(180deg, rgba(46, 117, 46, 0.04) 0%, transparent 100%);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--rdv-c-border);
  position: relative;
  overflow: hidden;
}

.rdv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/logo/emblem.svg') center/40% no-repeat;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

.rdv-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(46, 117, 46, 0.2), transparent);
  pointer-events: none;
  z-index: 1;
}

.rdv-hero__inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr; /* Structure asymétrique propre */
  align-items: center;
  position: relative;
  z-index: 1;
}

.rdv-hero__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rdv-hero__inner h1 {
  font-family: var(--sans);
  color: var(--rdv-c-navy);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.rdv-hero__inner p {
  color: var(--rdv-c-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 65ch;
}

.rdv-hero__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rdv-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--rdv-c-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--rdv-c-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.rdv-step .iconify {
  font-size: 15px;
  color: var(--rdv-c-primary);
}

.rdv-hero__helpLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(46, 117, 46, 0.15);
  color: var(--rdv-c-primary);
  font-size: 13px;
  font-weight: 500;
  background: rgba(46, 117, 46, 0.03);
  width: fit-content;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rdv-hero__helpLink:hover {
  background: rgba(46, 117, 46, 0.08);
}

.rdv-hero__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rdv-hero__info div {
  background: #ffffff;
  border: 1px solid var(--rdv-c-border);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rdv-c-navy);
}

.rdv-hero__info div strong {
  font-weight: 500;
}

.rdv-hero__info div p {
  display: none;
}

.rdv-hero__info span.iconify {
  font-size: 16px;
  color: var(--rdv-c-primary);
}

/* CARTE AIDE SIDEBAR */
.rdv-hero__card {
  background: #ffffff;
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  border: 1px solid var(--rdv-c-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.01);
}

.rdv-hero__card h2 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--rdv-c-navy);
  margin: 0 0 6px;
  font-size: 16px;
}

.rdv-hero__card p {
  margin: 0 0 16px;
  color: var(--rdv-c-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* SECTIONS & GRILLES PRINCIPALES */
.rdv-section {
  padding: 48px 0 80px;
}

.rdv-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.rdv-steps {
  background: #ffffff;
  border-radius: var(--radius-lg, 14px);
  padding: 32px;
  border: 1px solid var(--rdv-c-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  display: grid;
  gap: 16px;
  width: 100%;
}

.rdv-grid:has(> .is-hidden), 
.rdv-grid:has(> :nth-child(2).is-hidden) {
  grid-template-columns: 1fr;
}

.rdv-grid:has(> .is-hidden) .rdv-steps,
.rdv-grid:has(> :nth-child(2).is-hidden) .rdv-steps {
  max-width: 580px; 
  margin: 0 auto; 
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(46, 117, 46, 0.06);
  color: var(--rdv-c-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
}

.rdv-steps .btn {
  justify-self: flex-start;
}

/* LE CALENDRIER INSTITUTIONNEL */
.rdv-calendar {
  background: #ffffff;
  border-radius: var(--radius-lg, 14px);
  padding: 28px;
  border: 1px solid var(--rdv-c-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.calendar-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--rdv-c-navy);
  margin: 0;
}

.calendar-subtitle {
  font-size: 13px;
  color: var(--rdv-c-muted);
  margin-top: 2px;
}

.calendar-nav {
  border: 1px solid var(--rdv-c-border);
  background: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--rdv-c-navy);
  transition: all 0.2s ease;
}

.calendar-nav:hover {
  border-color: var(--rdv-c-primary);
  color: var(--rdv-c-primary);
  background: var(--rdv-c-bg-soft);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--rdv-c-navy);
  padding-bottom: 8px;
}

.calendar-grid {
  margin-top: 8px;
}

.calendar-day {
  border: none;
  background: var(--rdv-c-bg-soft);
  border-radius: 8px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--rdv-c-navy);
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}

.calendar-day.is-available {
  background: rgba(46, 117, 46, 0.04);
  color: var(--rdv-c-primary);
  font-weight: 600;
}

.calendar-day.is-available:hover {
  background: var(--rdv-c-primary);
  color: #ffffff;
  transform: scale(1.02);
}

.calendar-day.is-unavailable {
  background: transparent;
  color: rgba(15, 23, 42, 0.25);
  cursor: not-allowed;
}

.calendar-day.is-selected {
  background: var(--rdv-c-primary) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 117, 46, 0.2);
}

.calendar-day.is-outside {
  background: transparent;
  color: rgba(15, 23, 42, 0.1);
  cursor: default;
}

/* Légende du calendrier */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: var(--rdv-c-muted);
  font-size: 12.5px;
  border-top: 1px solid var(--rdv-c-border);
  padding-top: 16px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.legend-dot.available {
  background: rgba(46, 117, 46, 0.4);
}

.legend-dot.unavailable {
  background: rgba(15, 23, 42, 0.15);
}

.legend-dot.selected {
  background: var(--rdv-c-primary);
}

/* FORMULAIRE & APERÇU */
.rdv-form,
.rdv-preview {
  background: #ffffff;
  border-radius: var(--radius-lg, 14px);
  padding: 32px;
  border: 1px solid var(--rdv-c-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.rdv-preview {
  display: grid;
  gap: 20px;
}

.rdv-preview__content {
  background: var(--rdv-c-bg-soft);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.02);
}

.rdv-preview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rdv-preview__list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--rdv-c-border);
  color: var(--rdv-c-navy);
  font-size: 14px;
}

.rdv-preview__list strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rdv-c-primary);
  font-weight: 600;
}

/* STRUCTURE DES CHAMPS DU FORMULAIRE */
.form-header {
  margin-bottom: 20px;
  display: grid;
  gap: 6px;
}

.form-header h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--rdv-c-navy);
  margin: 0;
  font-size: 18px;
}

.form-header p {
  color: var(--rdv-c-muted);
  font-size: 14px;
  margin: 0;
}

.form-header .btn {
  justify-self: flex-start;
}

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

.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--rdv-c-navy);
  font-size: 13.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--rdv-c-bg-soft);
  color: var(--rdv-c-navy);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: #ffffff;
  border-color: var(--rdv-c-primary);
  box-shadow: 0 0 0 4px rgba(46, 117, 46, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input:disabled,
.form-group select:disabled {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.4);
  cursor: not-allowed;
  border-color: transparent;
}

.form-note {
  margin-top: 8px;
  color: var(--rdv-c-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.form-success {
  margin-top: 12px;
  color: #10b981; /* Vert de confirmation épuré */
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.is-hidden {
  display: none !important;
}

/* MEDIA QUERIES (Adaptabilité Écrans) */
@media (max-width: 992px) {
  .rdv-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rdv-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .rdv-section {
    padding: 32px 0 60px;
  }
  .rdv-steps, .rdv-calendar, .rdv-form, .rdv-preview {
    padding: 20px;
  }
  .rdv-preview__list li {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }
}

/* ---------- Galerie (Media & Albums) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.04);
  border-color: rgba(46, 117, 46, 0.15);
}

.gallery-card__media {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.gallery-card__media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card__media img {
  transform: scale(1.02);
}

.gallery-card__title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.gallery-card__body {
  padding: 24px;
  display: grid;
  gap: 8px;
}

.gallery-card__body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  color: #0f172a;
  margin: 0;
}

.gallery-card__body p {
  color: rgba(15, 23, 42, 0.6);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.gallery-card__cta {
  color: #2e752e;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-hero .page-hero__inner {
  max-width: 680px;
}

/* Vue d'un Album Unique (Cover & Thumbs) */
.gallery-cover {
  position: relative;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 32px;
}

.gallery-cover img {
  width: 100%;
  height: clamp(260px, 45vh, 440px);
  object-fit: cover;
  display: block;
}

.gallery-cover__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.gallery-cover__title h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 34px);
  margin: 0;
  letter-spacing: -0.015em;
}

/* Grille de miniatures */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-thumb {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-thumb__overlay {
  display: none;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: #2e752e;
  box-shadow: 0 12px 20px rgba(46, 117, 46, 0.06);
}

.gallery-thumb:hover img {
  transform: scale(1.03);
}

.gallery-thumb:hover::after {
  opacity: 1;
}

/* LIGHTBOX (Visionneuse plein écran) */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox__inner {
  max-width: min(1000px, 85vw);
  text-align: center;
  color: #ffffff;
  display: grid;
  gap: 20px;
}

.gallery-lightbox__inner img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__caption {
  font-family: var(--sans);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Boutons de Navigation épurés */
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.gallery-lightbox__nav:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.gallery-lightbox__nav--prev { left: 40px; }
.gallery-lightbox__nav--next { right: 40px; }

.gallery-lightbox__close {
  position: absolute;
  top: 32px;
  right: 40px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.gallery-lightbox__close:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.is-lightbox-open {
  overflow: hidden;
}

/* RESPONSIVE & BREAKPOINTS */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card__media img {
    height: 220px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gallery-lightbox__nav {
    display: none; 
  }
  .gallery-lightbox__close {
    top: 16px;
    right: 16px;
  }
}


.is-error { border: 1px solid #e11d48 !important; }
