:root {
  --bleu: #1a3a5c;
  --bleu-clair: #2d5a87;
  --bleu-pale: #e8f1f8;
  --jaune: #e8b923;
  --jaune-clair: #fff3c4;
  --vert: #2a7d5e;
  --vert-clair: #d4f0e4;
  --texte: #1c2430;
  --ombre: rgba(26, 58, 92, 0.12);
  --radius: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--texte);
  background: linear-gradient(165deg, var(--bleu-pale) 0%, var(--vert-clair) 45%, var(--jaune-clair) 100%);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

body.page-infos::before,
body.page-infos::after {
  display: none;
  content: none;
}

a {
  color: var(--bleu-clair);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-entete {
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 4px 20px var(--ombre);
}

.bandeau-promo {
  background: linear-gradient(90deg, #f5c429 0%, var(--jaune) 35%, #ffd85c 70%, var(--jaune) 100%);
  color: var(--bleu);
  overflow: hidden;
  border-bottom: 2px solid rgba(26, 58, 92, 0.12);
}

.bandeau-promo .marquee-piste {
  overflow: hidden;
  width: 100%;
}

.bandeau-promo .marquee-ligne {
  display: flex;
  width: max-content;
  animation: defile-marquee 32s linear infinite;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  padding: 0.45rem 0;
}

.bandeau-promo .marquee-morceau {
  flex: 0 0 auto;
  padding-right: 3.5rem;
  white-space: nowrap;
}

@keyframes defile-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bandeau-promo .marquee-ligne {
    animation: none;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 0.45rem 0.75rem;
  }

  .bandeau-promo .marquee-morceau[aria-hidden="true"] {
    display: none;
  }
}

.site-entete header {
  background: linear-gradient(90deg, var(--bleu) 0%, var(--bleu-clair) 55%, var(--vert) 100%);
  color: #fff;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

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

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  position: relative;
  z-index: 1;
}

.page-main {
  padding: 2.5rem 0 3rem;
}

.page-carte {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 12px 40px var(--ombre);
  border: 1px solid rgba(26, 58, 92, 0.08);
}

.page-carte h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--bleu);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.fil-ariane {
  font-size: 0.88rem;
  color: #5a6570;
  margin-bottom: 1.5rem;
}

.fil-ariane a {
  color: var(--bleu-clair);
}

.bloc-legal {
  font-size: 0.95rem;
  line-height: 1.65;
}

.bloc-legal h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--bleu);
  margin: 1.75rem 0 0.75rem;
  text-align: left;
}

.bloc-legal h2:first-of-type {
  margin-top: 0;
}

.bloc-legal h3 {
  color: var(--bleu);
  font-size: 1.05rem;
  margin: 1.35rem 0 0.5rem;
}

.bloc-legal ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.bloc-legal p {
  margin: 0.65rem 0 0;
}

.bloc-legal p:first-child {
  margin-top: 0;
}

.article-meta {
  font-size: 0.88rem;
  color: #5a6570;
  margin: -0.25rem 0 1.25rem;
}

.article-lead {
  font-size: 1.05rem;
  color: #3d4f63;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.article-corps p {
  margin: 0 0 1rem;
  line-height: 1.65;
  font-size: 0.98rem;
}

.article-corps h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  text-align: left;
  margin: 1.75rem 0 0.65rem;
  font-size: 1.3rem;
  color: var(--bleu);
}

.article-corps ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

footer {
  position: relative;
  z-index: 1;
  background: var(--bleu);
  color: #e8eef5;
  padding: 2.5rem 0 6rem;
  margin-top: 2rem;
}

footer h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--jaune-clair);
}

footer a {
  color: #b8d4f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
}

footer p,
footer li {
  font-size: 0.9rem;
  line-height: 1.55;
}

footer ul {
  padding-left: 1.1rem;
  margin: 0;
}

.legal {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bleu);
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-bar.visible {
  display: flex;
}

.cookie-bar p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  max-width: 560px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-bar a {
  color: #fff;
  text-decoration: underline;
}

.cookie-bar button {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.cookie-bar .accepter {
  background: var(--jaune);
  color: var(--bleu);
}

.cookie-bar .refuser {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
