@font-face {
  font-family: "Anton";
  src: url("fonts/anton-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --encre: #1a1a1a;
  --papier: #f5f5f5;
  --accent: #4c4ce0;
  --marine: #232387;
  --lavande: #ddddf2;
  --blanc: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.passer {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.passer:focus { transform: none; }

.cadre { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.barre {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  border-bottom: 4px solid var(--encre);
  background: var(--papier);
}
.marque {
  margin-right: auto;
  text-decoration: none;
  color: var(--encre);
  font-family: "Anton", sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}
.nav a[aria-current="page"] { color: var(--accent); }
.menu {
  display: none;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--encre);
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--encre);
}
.bouton {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.premier {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 560px;
  background: var(--marine);
  color: var(--papier);
}
.premier .texte { padding: 72px 48px 64px; }
h1 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.chapo { max-width: 36ch; margin: 0 0 28px; color: var(--lavande); }
.premier figure { margin: 0; position: relative; }
.premier img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  aspect-ratio: 3/2;
}
.premier figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--papier);
  color: var(--encre);
  font-size: 14px;
  padding: 8px 12px;
  max-width: 32ch;
}

.bande {
  background: var(--accent);
  color: #fff;
  text-align: left;
}
.bande .cadre {
  min-height: 56px;
  display: flex;
  align-items: center;
  font-family: "Anton", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 26px);
}

.rubrique { padding: 80px 0; }
.rubrique h2, .page h1 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
  margin: 0 0 28px;
  max-width: 16ch;
}
.ligne {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  text-decoration: none;
  color: var(--encre);
  padding: 18px 0;
  border-top: 1px solid rgba(26, 26, 26, 0.18);
  min-height: 72px;
  align-items: baseline;
}
.ligne:last-child { border-bottom: 1px solid rgba(26, 26, 26, 0.18); }
.ligne b {
  display: block;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ligne span { display: block; max-width: 68ch; }
.num { font-family: "Anton", sans-serif; color: var(--accent); font-size: 20px; }

.decale {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: end;
  padding-bottom: 100px;
}
.decale img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.note { max-width: 62ch; }
.note p { margin: 0 0 14px; }
.legende { font-size: 14px; margin: 8px 0 0; }

.page { padding: 64px 0 100px; }
.page p { max-width: 68ch; }
.page h2 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.03em;
  margin: 40px 0 10px;
}

form.ecrire { max-width: 520px; margin-top: 12px; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input, textarea {
  width: 100%;
  border: 2px solid var(--encre);
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }

footer {
  border-top: 4px solid var(--encre);
  padding: 28px 0 40px;
  font-size: 15px;
}
.pied { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pied a { color: var(--encre); display: inline-block; min-height: 44px; line-height: 44px; margin-right: 14px; }

.cookies {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  padding: 14px;
  border: 2px solid var(--encre);
  display: none;
  z-index: 50;
}
.cookies.ouvert { display: block; }
.cookies p { margin: 0 0 10px; font-size: 14px; }
.cookies button {
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--encre);
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  margin-right: 8px;
  color: var(--encre);
}
.cookies button[data-choix="oui"] { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 860px) {
  .menu { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--papier);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 4px solid var(--encre);
    z-index: 40;
  }
  .nav.ouvert { display: flex; }
  .barre { position: relative; }
  .barre .bouton { display: none; }
  .premier, .decale { grid-template-columns: 1fr; }
  .premier .texte { padding: 40px 24px; }
  .rubrique, .page { padding: 48px 0; }
  .decale { padding-bottom: 48px; }
}
