/* ============================================================
   home.css — Page d'accueil
   Palette : couleurs gouvernement français (Marianne)
   ============================================================ */

/* ---- Tokens gouvernement français ---- */
:root {
  --gov-blue:       #003189;   /* Bleu Marianne */
  --gov-blue-light: #1563B5;   /* Bleu clair */
  --gov-blue-mid:   #0069C0;
  --gov-red:        #E1000F;   /* Rouge Marianne */
  --gov-white:      #FFFFFF;
  --gov-gray-light: #F0F5FA;
  --gov-gray:       #DDE3ED;
  --gov-dark:       #161C2D;
  --gov-text:       #1E1E1E;
  --gov-text-muted: #4B5568;
  --gov-surface:    #0C1A40;   /* Dark surface version foncée */

  /* Override tokens globaux pour ce fichier */
  --accent:         #1563B5;
  --accent-2:       #E1000F;
  --gradient-gov:   linear-gradient(135deg, #003189 0%, #1563B5 50%, #0069C0 100%);
  --gradient-hero:  linear-gradient(160deg, #0C1A40 0%, #003189 60%, #0D4E99 100%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(0, 49, 137, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 22, 70, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 1rem;
}

/* Logo prend l'espace disponible à gauche */
.header-logo { flex: 0 0 auto; }

/* Nav se centre, actions à droite */
.header-actions { margin-left: auto; }

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.header-logo__text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.header-logo__text em {
  font-style: normal;
  color: #93C5FD;
}

/* Nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.header-nav__link {
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.header-nav__link:hover,
.header-nav__link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Btn gradient gouvernement */
.btn--gradient {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.25rem;
  background: var(--gov-red);
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn--gradient:hover {
  background: #c0000d;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(225,0,15,0.4);
}

.btn--gradient.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn--ghost.btn--lg { padding: 0.875rem 1.75rem; }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--gov-blue);
  padding: 1.5rem;
  border-bottom: 2px solid var(--gov-red);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-menu a:hover { background: rgba(255,255,255,0.1); color: #fff; }


/* ============================================================
   HERO
   ============================================================ */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-home__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.hero-home__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.hero-home__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1563B5, transparent);
  top: -100px; left: -100px;
}

.hero-home__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #E1000F, transparent);
  bottom: -100px; right: 10%;
  opacity: 0.15;
}

.hero-home__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* French flag stripe accent */
.hero-home::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #003189 33%, #fff 33% 66%, #E1000F 66%);
}

.hero-home .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-home__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-home__title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-home__title-gradient {
  background: linear-gradient(135deg, #93C5FD, #BAE6FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-home__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

/* Trust badges */
.hero-home__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.trust-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.trust-badge {
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.trust-badge:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Invoice preview card */
.hero-home__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.invoice-preview {
  background: #0C1929;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
}

.invoice-preview__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: #1a2435;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.invoice-preview__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.invoice-preview__dot--red    { background: #FF5F57; }
.invoice-preview__dot--yellow { background: #FFBD2E; }
.invoice-preview__dot--green  { background: #28CA41; }

.invoice-preview__title {
  margin-left: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.invoice-preview__body {
  padding: 1rem;
  line-height: 1.8;
}

.invoice-preview__line { color: rgba(255,255,255,0.4); }
.invoice-preview__line--tag     { color: #93C5FD; padding-left: 0; }
.invoice-preview__line--indent  { padding-left: 1.25rem; }
.invoice-preview__line--indent2 { padding-left: 2.5rem; }
.invoice-preview__line--indent3 { padding-left: 3.75rem; }

.tag-name  { color: #86EFAC; }
.tag-value { color: #FDE68A; }

.invoice-preview__line--cursor {
  padding-left: 0;
  color: #60A5FA;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.invoice-preview__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #1a2435;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.status-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.status-badge--valid  { background: rgba(74,222,128,0.15); color: #4ADE80; border: 1px solid rgba(74,222,128,0.3); }
.status-badge--format { background: rgba(147,197,253,0.15); color: #93C5FD; border: 1px solid rgba(147,197,253,0.3); }

/* Hero image */
.hero-home__img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  display: block;
}

/* Hero scroll hint */
.hero-home__scroll {
  display: none;
}


/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--gov-blue);
  border-bottom: 3px solid var(--gov-red);
  padding: 2.5rem 0;
}

.stats-bar__grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.stats-bar__item {
  text-align: center;
}

.stats-bar__number {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stats-bar__suffix {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.stats-bar__item p {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.stats-bar__sep {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.15);
}


/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--gov-text);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--gov-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 1rem;
  background: rgba(0,49,137,0.08);
  color: var(--gov-blue);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow--light {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}


/* ============================================================
   OFFICIAL RESOURCES
   ============================================================ */
.official-resources {
  background: var(--gov-gray-light);
}

.official-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.official-card {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--gov-gray);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
  color: inherit;
}

.official-card:hover {
  border-color: var(--gov-blue);
  box-shadow: 0 4px 20px rgba(0,49,137,0.12);
  transform: translateY(-2px);
}

.official-card__logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.official-card__logo-icon--blue   { background: var(--gov-blue); }
.official-card__logo-icon--green  { background: #15803D; }
.official-card__logo-icon--red    { background: var(--gov-red); }
.official-card__logo-icon--purple { background: #7C3AED; }
.official-card__logo-icon--cyan   { background: #0369A1; }
.official-card__logo-icon--orange { background: #EA580C; }

.official-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gov-text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.official-card__body p {
  font-size: 0.875rem;
  color: var(--gov-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.official-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gov-blue);
}


/* ============================================================
   BENTO GRID
   ============================================================ */
.bento-section {
  background: #fff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento-card {
  background: var(--gov-gray-light);
  border: 1px solid var(--gov-gray);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.2s;
}

.bento-card:hover {
  border-color: var(--gov-blue);
  box-shadow: 0 4px 20px rgba(0,49,137,0.08);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--dark {
  background: var(--gov-blue);
  border-color: var(--gov-blue);
  color: #fff;
}

.bento-card--dark h3,
.bento-card--dark p { color: rgba(255,255,255,0.9); }

.bento-card--accent {
  background: linear-gradient(135deg, #003189, #1563B5);
  color: #fff;
  border: none;
}

.bento-card--accent h3,
.bento-card--accent p { color: rgba(255,255,255,0.9); }

.bento-card__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gov-blue);
  margin-bottom: 0.75rem;
}

.bento-card__eyebrow--light { color: rgba(255,255,255,0.7); }
.bento-card__eyebrow--warn  { color: var(--gov-red); }

.bento-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gov-text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--gov-text-muted);
  line-height: 1.65;
}

.bento-card__big-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bento-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gov-blue);
  text-decoration: none;
  transition: gap 0.2s;
}

.bento-card__link--external { color: rgba(255,255,255,0.9); }

.bento-card__formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.format-chip {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 1rem;
  background: #fff;
  border: 1px solid var(--gov-gray);
  border-radius: 8px;
  min-width: 120px;
}

.format-chip--primary {
  border-color: var(--gov-blue);
  background: rgba(0,49,137,0.04);
}

.format-chip strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gov-text);
  margin-bottom: 2px;
}

.format-chip span {
  font-size: 0.72rem;
  color: var(--gov-text-muted);
}


/* ============================================================
   CALENDRIER
   ============================================================ */
.calendar-section {
  background: var(--gov-gray-light);
}

.calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.calendar-timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gov-blue), var(--gov-red));
}

.cal-item {
  display: grid;
  grid-template-columns: 120px 20px 1fr;
  gap: 0 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
}

.cal-item__date {
  text-align: right;
  padding-top: 4px;
}

.cal-item__year {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gov-blue);
  line-height: 1;
}

.cal-item__month {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gov-text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-item__dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gov-blue);
  border: 3px solid var(--gov-gray-light);
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
}

.cal-item__dot--active {
  background: var(--gov-red);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(225,0,15,0.2);
}

.cal-item__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gov-red);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.cal-item__content {
  padding-bottom: 1rem;
}

.cal-item__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gov-text);
  margin-bottom: 0.5rem;
}

.cal-item__content p {
  font-size: 0.9rem;
  color: var(--gov-text-muted);
  line-height: 1.7;
}

.cal-item__content--highlight {
  background: #fff;
  border: 1px solid var(--gov-gray);
  border-left: 3px solid var(--gov-red);
  border-radius: 8px;
  padding: 1.25rem;
}

.cal-item__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gov-red);
  color: #fff;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cal-item__badge--outline {
  background: transparent;
  border: 1px solid var(--gov-blue);
  color: var(--gov-blue);
}

.cal-item__ref {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gov-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.cal-item__ref:hover { color: var(--gov-red); }

.cal-item--past .cal-item__year { color: var(--gov-text-muted); }
.cal-item--past .cal-item__dot  { background: var(--gov-text-muted); }


/* ============================================================
   CAROUSEL D'ARTICLES
   ============================================================ */
.carousel-section {
  background: #fff;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
}

.carousel-track-outer {
  overflow: hidden;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
}

.article-card {
  background: var(--gov-gray-light);
  border: 1px solid var(--gov-gray);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  border-color: var(--gov-blue);
  box-shadow: 0 6px 24px rgba(0,49,137,0.12);
  transform: translateY(-3px);
}

.article-card__thumb {
  height: 180px;
  background: var(--gradient-gov);
  position: relative;
  overflow: hidden;
}

.article-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.04);
}

/* Overlay sombre en bas pour lisibilité du badge */
.article-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.article-card__cat {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0,49,137,0.85);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.article-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gov-text);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.article-card__body p {
  font-size: 0.875rem;
  color: var(--gov-text-muted);
  line-height: 1.6;
  flex: 1;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gov-gray);
}

.article-card__meta {
  font-size: 0.75rem;
  color: var(--gov-text-muted);
}

.article-card__read {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gov-blue);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gov-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-btn:hover { background: #002270; transform: scale(1.05); }
.carousel-btn:disabled { background: var(--gov-gray); color: var(--gov-text-muted); cursor: default; transform: none; }

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gov-gray);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--gov-blue);
  width: 24px;
  border-radius: 4px;
}


/* ============================================================
   GUIDES SECTION
   ============================================================ */
.guides-section {
  background: var(--gov-gray-light);
}

.guides-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.guide-card {
  background: #fff;
  border: 1px solid var(--gov-gray);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s;
}

.guide-card:hover {
  border-color: var(--gov-blue);
  box-shadow: 0 6px 24px rgba(0,49,137,0.1);
}

.guide-card--featured {
  border-color: var(--gov-blue);
  border-left: 4px solid var(--gov-blue);
  background: linear-gradient(135deg, rgba(0,49,137,0.02), #fff);
}

.guide-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0,49,137,0.08);
  color: var(--gov-blue);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.guide-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gov-text);
  line-height: 1.35;
}

.guide-card p {
  font-size: 0.875rem;
  color: var(--gov-text-muted);
  line-height: 1.65;
  flex: 1;
}

.guide-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--gov-text-muted);
}

.guide-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gov-blue);
  text-decoration: none;
}

.btn--white {
  background: #fff;
  color: var(--gov-blue);
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn--white:hover {
  background: #F0F5FA;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn--ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn--ghost-light:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}


/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  position: relative;
  background: var(--gradient-gov);
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
}

/* French flag thin line at top */
.cta-final::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gov-blue) 33%, #fff 33% 66%, var(--gov-red) 66%);
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-final__glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(21,99,181,0.4), transparent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cta-final__inner {
  position: relative;
  z-index: 1;
}

.cta-final__inner h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.25rem;
}

.cta-final__inner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-final__disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.cta-final__disclaimer a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gov-dark);
  padding: 4rem 0 0;
  border-top: 3px solid var(--gov-blue);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__brand .header-logo__text { color: #fff; }
.site-footer__brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.site-footer__socials {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}

.social-icon:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.site-footer__col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__col ul li a:hover { color: rgba(255,255,255,0.9); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.site-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }


/* ============================================================
   FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay-1 { transition-delay: 0.1s; }
.fade-in--delay-2 { transition-delay: 0.2s; }
.fade-in--delay-3 { transition-delay: 0.3s; }


/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
  .guides-grid { grid-template-columns: 1fr 1fr; }
  .guide-card--featured { grid-column: span 2; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .carousel-slide { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero-home .container {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    text-align: center;
  }

  .hero-home__visual { display: none; }

  .hero-home__actions { justify-content: center; }
  .hero-home__trust   { justify-content: center; }

  .hero-home::after { display: none; }

  .stats-bar__sep { display: none; }
  .stats-bar__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }

  .calendar-timeline::before { left: 80px; }
  .cal-item { grid-template-columns: 80px 16px 1fr; gap: 0 1rem; }
  .cal-item__year { font-size: 1rem; }

  .guides-grid { grid-template-columns: 1fr; }
  .guide-card--featured { grid-column: span 1; }

  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer__brand { grid-column: span 2; }

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

  .carousel-slide { flex: 0 0 calc(100% - 0); }

  .cta-final__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-home__title { font-size: 2rem; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: span 1; }
}
