/* Accueil — harmonisation premium V3
 * Couche strictement limitée à la home : les composants et données restent inchangés.
 */
body.home {
  --agd-home-ink: #061d3a;
  --agd-home-teal: #0d6172;
  --agd-home-sand: #f4d28c;
  --agd-home-cream: #f4f1eb;
  background: #f7f5f1;
}

body.home .agd-featured-notice {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin-inline: auto;
  border: 1px solid rgba(180, 133, 77, .26);
  border-radius: 0 0 16px 16px;
  background: linear-gradient(100deg, #f2eadc 0%, #fbf8f1 56%, #eaf3f4 100%);
  box-shadow: 0 10px 26px rgba(6, 29, 58, .08);
  overflow: hidden;
}

body.home .agd-featured-notice::after,
body.home #publics::after,
body.home #en-un-clin-doeil::after,
body.home #actualites-recentes::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(118deg, transparent 0 42px, rgba(255,255,255,.12) 43px 44px, transparent 45px 90px);
  background-position: 0 0;
  animation: agd-home-lines-drift 18s linear infinite;
}

body.home .hero {
  isolation: isolate;
  background-image: linear-gradient(150deg, #061d3a 0 48%, #0d3b5d 48% 67%, #1d7480 67% 100%);
  background-size: 150% 115%;
  box-shadow: inset 0 -1px rgba(244, 210, 140, .55), 0 22px 48px rgba(6, 29, 58, .14);
}

body.home .hero::after {
  opacity: .24;
  background: linear-gradient(116deg, transparent 0 48%, rgba(244,210,140,.42) 48.4% 48.9%, transparent 49.3% 100%);
  animation: agd-home-hero-sheen 12s ease-in-out infinite alternate;
}

body.home #infos {
  position: relative;
  background: linear-gradient(180deg, #f7f5f1 0%, #e9f1f2 100%);
}

body.home #infos .info-strip {
  border-color: rgba(54, 126, 140, .32);
  background: linear-gradient(105deg, #f8f5ee, #edf5f5 58%, #dbecee);
  box-shadow: 0 18px 38px rgba(6, 29, 58, .13);
}

body.home #publics,
body.home #en-un-clin-doeil,
body.home #actualites-recentes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.home #publics {
  background: linear-gradient(135deg, #e8f1f2 0%, #d1e5e7 42%, #f0e7d8 100%);
}

body.home #publics .container,
body.home #en-un-clin-doeil .container,
body.home #actualites-recentes .container {
  position: relative;
  z-index: 1;
}

body.home #publics .cards {
  gap: 24px;
}

body.home #publics .card {
  border: 1px solid rgba(6, 29, 58, .18);
  background: linear-gradient(160deg, #fffdf8 0%, #edf5f5 100%);
  box-shadow: 0 20px 42px rgba(6, 29, 58, .14);
}

body.home #publics .card:nth-child(2) {
  background: linear-gradient(160deg, #f8f4ea 0%, #d9ecee 100%);
}

body.home #publics .card:nth-child(3) {
  color: #fff;
  background: linear-gradient(145deg, #08294a 0%, #0d6172 100%);
  border-color: rgba(244, 210, 140, .44);
}

body.home #publics .card:nth-child(3) .muted,
body.home #publics .card:nth-child(3) h3 { color: #fff; }

body.home #publics .card:nth-child(3) .card-accent { background: #e4574d; }

body.home #en-un-clin-doeil {
  background: linear-gradient(135deg, #061d3a 0%, #0d3b5d 46%, #126a77 100%);
}

body.home #en-un-clin-doeil .section-title,
body.home #en-un-clin-doeil .section-intro,
body.home #en-un-clin-doeil .agd-snapshot-heading,
body.home #en-un-clin-doeil .agd-snapshot-note--global { color: #fff; }

body.home #en-un-clin-doeil .agd-snapshot-fact {
  border-color: rgba(255,255,255,.2);
  background: linear-gradient(160deg, #f4f7f6 0%, #dcebed 100%);
  box-shadow: 0 18px 42px rgba(0,0,0,.14);
}

body.home #en-un-clin-doeil .agd-snapshot-fact h3,
body.home #en-un-clin-doeil .agd-snapshot-fact dd,
body.home #en-un-clin-doeil .agd-snapshot-schedule span,
body.home #en-un-clin-doeil .agd-snapshot-price { color: #52657b; }

body.home #en-un-clin-doeil .agd-snapshot-fact h3 { color: #061d3a; }

body.home #en-un-clin-doeil .agd-snapshot-schedule strong,
body.home #en-un-clin-doeil .agd-snapshot-price strong,
body.home #en-un-clin-doeil .agd-snapshot-fact__label { color: #f4d28c; }

body.home #actualites-recentes {
  background: linear-gradient(135deg, #f1e8d9 0%, #e7f2f3 52%, #d8e8eb 100%);
}

body.home #actualites-recentes .agd-news-carousel__viewport {
  border-color: rgba(6,29,58,.18);
  box-shadow: 0 20px 42px rgba(6,29,58,.13);
}

body.home .site-footer {
  position: relative;
  box-shadow: 0 -18px 38px rgba(6,29,58,.16);
}

@keyframes agd-home-lines-drift {
  from { background-position: 0 0; }
  to { background-position: 90px 0; }
}

@keyframes agd-home-hero-sheen {
  from { transform: translateX(-2%); opacity: .12; }
  to { transform: translateX(4%); opacity: .3; }
}

@media (max-width: 800px) {
  body.home .agd-featured-notice {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.home .hero {
    background-size: auto 112%;
  }

  body.home #publics .cards {
    gap: 18px;
  }

  body.home #publics .card,
  body.home #en-un-clin-doeil .agd-snapshot-facts,
  body.home #actualites-recentes .agd-news-carousel__viewport {
    box-shadow: 0 14px 30px rgba(6,29,58,.12);
  }

  body.home #en-un-clin-doeil,
  body.home #actualites-recentes,
  body.home #publics {
    padding-block: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .agd-featured-notice::after,
  body.home #publics::after,
  body.home #en-un-clin-doeil::after,
  body.home #actualites-recentes::after,
  body.home .hero::after { animation: none; }
}

/* Accès rapides de la home — animation d’arrière-plan discrète par carte. */
body.home .agd-mobile-home-nav-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(244,210,140,.28) !important;
  background: linear-gradient(135deg,#061f42 0%,#0b3458 54%,#126878 100%) !important;
  box-shadow: 0 10px 24px rgba(6,29,58,.18), inset 0 1px 0 rgba(255,255,255,.1);
}
body.home .agd-mobile-home-nav-card::before {
  content: '';
  position: absolute;
  inset: -70%;
  z-index: -2;
  background: repeating-linear-gradient(126deg,transparent 0 38px,rgba(255,255,255,.1) 39px 41px,transparent 42px 82px);
  animation: agd-home-quick-lines 22s linear infinite;
  pointer-events: none;
}
body.home .agd-mobile-home-nav-card::after {
  content: '';
  position: absolute;
  inset: -90% -42%;
  z-index: -1;
  width: 184%;
  height: 280%;
  border-radius: 0;
  background: linear-gradient(112deg,transparent 43%,rgba(244,210,140,.05) 47%,rgba(255,255,255,.42) 49.5%,rgba(244,210,140,.08) 52%,transparent 57%);
  filter: blur(1px);
  animation: agd-home-quick-glow 18s ease-in-out infinite;
  pointer-events: none;
}
body.home .agd-mobile-home-nav-card:nth-child(2)::after,
body.home .agd-mobile-home-nav-card:nth-child(4)::after { animation-delay: -3s; background: linear-gradient(112deg,transparent 43%,rgba(119,199,208,.05) 47%,rgba(255,255,255,.35) 49.5%,rgba(119,199,208,.08) 52%,transparent 57%); }
body.home .agd-mobile-home-nav-card:nth-child(3)::after { animation-delay: -6s; background: linear-gradient(112deg,transparent 43%,rgba(229,87,77,.04) 47%,rgba(255,255,255,.32) 49.5%,rgba(229,87,77,.07) 52%,transparent 57%); }
body.home .agd-mobile-home-nav-card > * { position: relative; z-index: 1; }
@keyframes agd-home-quick-lines { from { background-position: 0 0; } to { background-position: 82px 0; } }
@keyframes agd-home-quick-glow {
  0%,100% { transform: translate3d(-34%,28%,0) rotate(-8deg); opacity:.25; }
  50% { transform: translate3d(34%,-28%,0) rotate(-8deg); opacity:.86; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .agd-mobile-home-nav-card::before,
  body.home .agd-mobile-home-nav-card::after { animation: none; }
}
