/* layout.css : colonne centrée, bandes de section, en-tête, pied de page. */

.site { min-height: 100vh; }
.col {
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}
main { flex: 1; }

/* Bandes de section */
.band { padding: clamp(40px, 6vw, 64px) var(--pad); }
.band--tight { padding-block: clamp(28px, 4vw, 40px); }
.band--white { background: var(--white); border-bottom: var(--bw) solid var(--ink); }
.band--sky { background: var(--sky); border-block: var(--bw) solid var(--ink); }
.band--yellow { background: var(--yellow); border-block: var(--bw) solid var(--ink); }
.band--dark { background: var(--ink); color: var(--cream); padding-block: 28px; }
.band--dark h2, .band--dark h3 { color: var(--yellow); }

/* Grilles : le nombre de colonnes s'adapte à la largeur */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px 28px; }

/* En-tête et menu */
.hdr { background: var(--cream); }
.hdr__bar {
  padding: 10px var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  font-family: var(--font-head); font-weight: 700; font-size: 25px; text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-weight: 800; font-size: 17px; }
.nav > a { text-decoration: none; padding: 10px 4px; }
.nav > a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav__tools { display: flex; align-items: center; gap: 12px; }
.nav .nav__cta { display: none; }

.burger {
  display: none; width: 48px; height: 48px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 50%;
}
.burger .i-close { display: none; }
.hdr.is-open .burger .i-open { display: none; }
.hdr.is-open .burger .i-close { display: block; }

@media (max-width: 860px) {
  .js .burger { display: flex; }
  .js .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding-bottom: 12px; }
  .js .hdr.is-open .nav { display: flex; }
  .js .nav > a {
    display: flex; align-items: center; min-height: 48px; padding: 12px 18px;
    font-family: var(--font-head); font-weight: 600; font-size: 22px;
    background: var(--white); border: var(--bw) solid var(--ink); border-radius: 18px;
  }
  .js .nav__tools { justify-content: space-between; padding-top: 8px; }
  .js .nav .nav__cta { display: inline-flex; }
}

/* Fil d'Ariane */
.crumbs { padding: 12px var(--pad) 0; font-size: 15px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }

/* Héros de l'accueil */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.hero__text { flex: 1 1 380px; min-width: 0; }
.hero__lead { font-size: 20px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero__art { flex: 0 1 320px; min-width: 0; width: 100%; margin: 0 auto; }
.disc {
  max-width: 320px; margin: 0 auto; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint); border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: 0 6px 0 var(--ink);
}

/* Pied de page */
.ftr { margin-top: 40px; }
.ftr__cat { display: block; width: clamp(96px, 16vw, 130px); height: auto; margin: 0 0 -10px clamp(20px, 6%, 70px); position: relative; z-index: 1; }
.ftr__body { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding: clamp(28px, 5vw, 52px) var(--pad) 28px; }
.ftr__cta {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 28px; margin-bottom: 28px; border-bottom: 3px dotted var(--line);
}
.ftr__big { margin: 0; max-width: 15em; font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; color: var(--yellow); }
.ftr__cols { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px 32px; margin-bottom: 30px; }
.ftr__brand { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--yellow); }
.ftr__h { margin: 0 0 4px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--yellow); }
.ftr__cols nav a { display: block; padding: 8px 0; font-size: 16px; color: var(--cream); }
.ftr__cols nav a:hover { color: var(--yellow); }
.ftr__note { position: relative; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.deco { position: absolute; opacity: .85; pointer-events: none; }
.deco--1 { top: 22px; right: 8%; transform: rotate(14deg); }
.deco--2 { top: 74px; right: 20%; transform: rotate(-10deg); opacity: .7; }
.deco--3 { bottom: 64px; right: 5%; transform: rotate(-18deg); }
.deco--4 { bottom: 30px; left: 44%; transform: rotate(8deg); opacity: .6; }
