/* Polices hébergées sur le site (aucun appel à un service tiers) */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("../fonts/instrument.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --encre: #15123f;
  --cobalt: #2d3be6;
  --soleil: #ffc53d;
  --rose: #ffa3cb;
  --menthe: #86e3c4;
  --brume: #eef0ff;
  --blanc: #ffffff;

  --display: "Bricolage", "Trebuchet MS", sans-serif;
  --texte: "Instrument", "Segoe UI", sans-serif;

  --marge: clamp(1.25rem, 5vw, 4rem);
  --largeur: 76rem;
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

main { display: block; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6rem); font-weight: 800; line-height: .98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 750; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 700; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-underline-offset: .2em; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.hero :focus-visible,
.tete :focus-visible,
.pied :focus-visible { outline-color: var(--soleil); }

.cadre {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin-inline: auto;
  padding-inline: var(--marge);
}

.evitement {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--soleil);
  color: var(--encre);
  padding: .6rem 1rem;
  border-radius: .5rem;
}
.evitement:focus { top: 1rem; }

/* En-tête */
.tete { background: var(--cobalt); color: var(--blanc); position: relative; z-index: 10; }
.tete .cadre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo img { width: 2.5rem; height: 2.5rem; }

.nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:not(.bouton):hover { text-decoration: underline; text-decoration-thickness: 2px; }

.menu-bouton { display: none; }

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .7rem 1.5rem;
  border: 2.5px solid var(--encre);
  border-radius: 999px;
  background: var(--soleil);
  color: var(--encre);
  font: 700 1rem/1.2 var(--texte);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--encre);
  transition: transform .12s ease, box-shadow .12s ease;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--encre); }
.bouton:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--encre); }
.bouton.clair { background: var(--blanc); }
.nav .bouton { min-height: 2.6rem; padding: .45rem 1.15rem; }

/* Héros */
.hero { background: var(--cobalt); color: var(--blanc); }
.hero .cadre {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(5rem, 9vw, 7.5rem);
}
.hero p { margin-top: 1.6rem; max-width: 32rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #e4e6ff; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero-visuel img { width: 100%; max-width: 40rem; margin-inline: auto; }

/* Ruban d'emballage */
.ruban {
  position: relative;
  z-index: 2;
  margin: -2.1rem -2rem 0;
  transform: rotate(-1.6deg);
  background: var(--soleil);
  border-block: 3px solid var(--encre);
  overflow: hidden;
}
.ruban ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: .85rem 0;
  list-style: none;
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  white-space: nowrap;
}
.ruban li { display: flex; align-items: center; gap: 2.5rem; }
.ruban li:not(:last-child)::after {
  content: "";
  width: .7rem;
  height: .7rem;
  background: var(--encre);
  transform: rotate(45deg);
}

section { scroll-margin-top: 1rem; }

/* Présentation */
.presentation { padding-block: var(--section); }
.presentation .cadre { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.presentation p { margin-top: 1.5rem; max-width: 40rem; font-size: 1.2rem; }
.formats { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--encre); }
.formats li { padding: 1.1rem 0; border-bottom: 3px solid var(--encre); }
.formats strong { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.formats span { color: #4b4876; }

/* Univers */
.univers { padding-bottom: var(--section); }
.titre-section { margin-bottom: clamp(2rem, 4vw, 3rem); }
.titre-section p { margin-top: 1rem; max-width: 38rem; font-size: 1.15rem; }

.rayon {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 3px solid var(--encre);
  border-radius: 2rem;
}
.rayon + .rayon { margin-top: 2rem; }
.rayon-merch { background: var(--soleil); }
.rayon-beaute { background: var(--rose); }
.rayon-general { background: var(--menthe); }
.rayon.inverse { grid-template-columns: 1fr 1.1fr; }
.rayon.inverse .rayon-visuel { order: 2; }
.rayon-visuel img { width: 100%; }
.rayon p { margin-top: 1rem; max-width: 32rem; }
.rayon ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; padding: 0; }
.rayon li {
  background: var(--blanc);
  border: 2px solid var(--encre);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-weight: 600;
  font-size: .95rem;
}

/* Méthode */
.methode { background: var(--brume); padding-block: var(--section); }
.etapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: etape;
}
.etapes li { position: relative; counter-increment: etape; }
.etapes li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3.5rem;
  left: 8rem;
  right: -1.25rem;
  border-top: 4px dashed var(--cobalt);
}
.etapes img { width: 7rem; height: 7rem; margin-bottom: 1.5rem; }
.etapes h3 { font-size: 1.4rem; }
.etapes h3::before { content: counter(etape) ". "; }
.etapes p { margin-top: .6rem; max-width: 22rem; }

/* Partenaires */
.partenaires { padding-block: var(--section); }
.profils { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.profil { display: flex; flex-direction: column; align-items: flex-start; border-top: 6px solid var(--cobalt); padding-top: 1.5rem; }
.profil:nth-child(2) { border-color: var(--rose); }
.profil:nth-child(3) { border-color: var(--menthe); }
.profil p { margin: .8rem 0 1.25rem; }
.profil a { margin-top: auto; font-weight: 700; color: var(--cobalt); text-decoration-thickness: 2px; }

/* Contact */
.contact { background: var(--cobalt); color: var(--blanc); padding-block: var(--section); }
.contact .cadre { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact p { margin-top: 1.25rem; max-width: 30rem; font-size: 1.15rem; color: #e4e6ff; }
.contact img { width: min(100%, 28rem); margin-top: 2.5rem; }
.contact :focus-visible { outline-color: var(--soleil); }

.etiquette {
  background: var(--blanc);
  color: var(--encre);
  border: 3px solid var(--encre);
  border-radius: 1.25rem;
  box-shadow: 12px 12px 0 var(--encre);
  transform: rotate(1.5deg);
}
.etiquette > div { padding: clamp(1.25rem, 3vw, 2rem); }
.etiquette > div + div { border-top: 3px dashed var(--encre); }
.etiquette dt { color: #55527f; font-size: .95rem; }
.etiquette dd { margin: .15rem 0 0; }
.etiquette dl { margin: 0; }
.etiquette address { font-style: normal; font-size: 1.2rem; line-height: 1.5; }
.etiquette address strong { font-family: var(--display); font-size: 1.7rem; }
.courriel {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.3vw, 2.5rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 3px;
}
.etiquette .actions { margin-top: 1.5rem; }
.etiquette .bouton.principal { background: var(--soleil); }
.code-barres {
  height: 3.5rem;
  background: repeating-linear-gradient(90deg,
    var(--encre) 0 3px, transparent 3px 6px,
    var(--encre) 6px 7px, transparent 7px 11px,
    var(--encre) 11px 17px, transparent 17px 19px,
    var(--encre) 19px 21px, transparent 21px 26px);
}
.statut { min-height: 1.65em; }
.etiquette .statut { margin-top: .75rem; font-size: .95rem; color: var(--encre); }

/* Pied de page */
.pied { background: var(--encre); color: var(--blanc); padding-block: 3.5rem 2rem; }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.pied ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; list-style: none; margin: 0; padding: 0; }
.pied-bas {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3d3970;
  font-size: .92rem;
  color: #c3c1e6;
}

/* Pages de texte */
.bandeau { background: var(--cobalt); color: var(--blanc); }
.bandeau .cadre { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }
.bandeau h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.bandeau p { margin-top: 1rem; color: #e4e6ff; }
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal article { max-width: 46rem; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 3rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }
.legal p + p { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; }
.fiche { margin: 0; border-top: 2px solid var(--encre); }
.legal p + .fiche,
.legal .fiche + p { margin-top: 1.5rem; }
.fiche div { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #c9c8e0; }
.fiche dt { font-weight: 700; }
.fiche dd { margin: 0; }

/* Écrans moyens et petits */
@media (max-width: 62rem) {
  .hero .cadre,
  .contact .cadre,
  .presentation .cadre { grid-template-columns: 1fr; }
  .rayon,
  .rayon.inverse { grid-template-columns: 1fr; }
  .rayon.inverse .rayon-visuel { order: 0; }
  .rayon-visuel img { max-width: 32rem; margin-inline: auto; }
  .etapes { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .etapes li:nth-child(2)::before { display: none; }
  .profils { grid-template-columns: 1fr; }
}

@media (max-width: 46rem) {
  .js .menu-bouton {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .4rem 1.1rem;
    border: 2px solid var(--blanc);
    border-radius: 999px;
    background: transparent;
    color: var(--blanc);
    font: 700 1rem var(--texte);
    cursor: pointer;
  }
  .tete .cadre { flex-wrap: wrap; }
  .js .nav { display: none; width: 100%; }
  .js .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; padding-block: .75rem; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; }

  .ruban ul { justify-content: flex-start; gap: 1.25rem; padding-left: 3rem; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: 2.5rem; row-gap: .1rem; }
  .ruban li { gap: 1.25rem; }
  .fiche div { grid-template-columns: 1fr; gap: .1rem; }
  .etiquette { transform: none; box-shadow: 6px 6px 0 var(--encre); }
}

@media (max-width: 32rem) {
  .etapes { grid-template-columns: 1fr; }
  .etapes li::before { display: none; }
  .actions .bouton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
