/* Les Bar’oudeurs — feuille de style unique */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-fr.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-fr.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-600-fr.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #ffffff;
  --encre: #2a1f17;
  --brume: #65564a;
  --terre: #ab4827;
  --ocre: #d79a2b;
  --ocre-clair: #f0c26a;
  --jungle: #2e5e3b;
  --sable: #f5eee3;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --main: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --page: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 3px; }
.sur-fonce :focus-visible { outline-color: var(--ocre-clair); }

.passer {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--encre); color: var(--blanc);
  padding: .6rem 1rem; z-index: 100; border-radius: .25rem;
}
.passer:focus { top: 1rem; }

.cadre { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- En-tête ---------- */
.entete { padding-block: 1.1rem; }
.entete .cadre { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: baseline; justify-content: space-between; }
.marque { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; color: var(--encre); }
.marque span { color: var(--terre); }
.entete nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.entete nav a { text-decoration: none; font-weight: 500; padding-block: .25rem; border-bottom: 2px solid transparent; }
.entete nav a:hover { border-bottom-color: var(--terre); }

/* ---------- Accueil ---------- */
.accueil { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem); }
.accueil .cadre { display: grid; gap: 3rem; align-items: center; }

.titre-site { font-size: clamp(2.6rem, 13vw, 5.25rem); line-height: .92; letter-spacing: -.02em; }
.titre-site .ligne { display: block; white-space: nowrap; }
.titre-site .ligne:first-child { color: var(--brume); font-size: .5em; margin-bottom: .1em; }

.apos { color: var(--terre); cursor: pointer; display: inline-block; margin: 0 -.04em 0 -.02em; }
.apos .d {
  display: none;
  background: var(--ocre); color: var(--encre);
  padding: 0 .06em; border-radius: .12em;
}
/* Le titre dessiné est masqué aux lecteurs d’écran : ils lisent le texte « Les Bar’oudeurs » du .vh */
.apos[data-d="1"] .guill { display: none; }
.apos[data-d="1"] .d { display: inline-block; animation: pose .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pose { from { transform: translateY(-.35em) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

.legende-d { margin: 1.25rem 0 0; color: var(--brume); font-size: 1rem; }
.intro { font-size: 1.2rem; margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .85rem 1.4rem; border-radius: .4rem; border: 2px solid var(--terre);
  background: var(--terre); color: var(--blanc);
  transition: background-color .15s, color .15s;
  font-family: var(--sans); font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--encre); border-color: var(--encre); }
.btn-ligne { background: transparent; color: var(--terre); }
.btn-ligne:hover { background: var(--terre); border-color: var(--terre); color: var(--blanc); }
.sur-fonce .btn { background: var(--ocre-clair); border-color: var(--ocre-clair); color: var(--encre); }
.sur-fonce .btn:hover { background: var(--blanc); border-color: var(--blanc); }

/* Pile de cartes postales */
.pile { position: relative; width: min(calc(100% - 2.5rem), 26rem); aspect-ratio: 4 / 5.1; margin-inline: auto; }
.carte {
  position: absolute; inset: 0 0 auto 0;
  display: flex; flex-direction: column; text-align: left;
  background: var(--blanc); border: 1px solid #e6dccd; border-radius: .35rem;
  margin: 0; padding: .7rem; font: inherit; color: inherit; cursor: pointer;
  box-shadow: 0 .8rem 1.6rem -.9rem rgba(42, 31, 23, .45);
  transition: transform .45s cubic-bezier(.3, 1.2, .5, 1);
  --x: 0px; --y: 0px; --r: 0deg;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
}
.carte[data-pos="0"] { z-index: 3; --r: -2deg; }
.carte[data-pos="1"] { z-index: 2; --r: 3deg;  --x: 1.1rem; --y: -.7rem; }
.carte[data-pos="2"] { z-index: 1; --r: -5deg; --x: -.9rem; --y: -1.4rem; }
.carte:hover[data-pos="0"] { --r: -1deg; --y: -.25rem; }
.carte .image { aspect-ratio: 1 / 1; border-radius: .15rem; overflow: hidden; background: var(--sable); }
.carte .image img { width: 100%; height: 100%; object-fit: cover; }
.carte::before, .tirage::before {
  content: ""; position: absolute; z-index: 2; top: -.8rem; left: 50%;
  width: 5.2rem; height: 1.6rem; margin-left: -2.6rem;
  background: rgba(215, 154, 43, .5); transform: rotate(var(--t, -3deg));
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 0, 96% 50%, 100% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%, 3% 50%);
}
.carte[data-pos="1"]::before { --t: 4deg; }
.carte[data-pos="2"]::before { --t: -6deg; }
.carte .legende { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .8rem .2rem .3rem; }
.carte .lieu { font-family: var(--main); font-weight: 600; font-size: 1.9rem; line-height: 1; display: block; color: var(--encre); }
.carte .detail { font-size: .95rem; color: var(--brume); display: block; margin-top: .25rem; }
.timbre {
  flex: none; width: 3.1rem; height: 3.6rem; display: grid; place-items: center;
  border: 2px dashed var(--ocre); border-radius: .15rem;
  font-family: var(--serif); font-size: .95rem; color: var(--terre);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section-sable { background: var(--sable); }
.section-jungle { background: var(--jungle); color: var(--blanc); }
.section-jungle p { color: #e7efe8; }
.chapeau { font-size: 1.15rem; margin-top: 1.25rem; }

/* Qui on est */
.duo { display: grid; gap: 3rem; }
.duo h2 { margin-bottom: 1.25rem; }
.regles { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.75rem; }
.regles li { padding-left: 1.25rem; border-left: 4px solid var(--jungle); }
.regles h3 { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; margin-bottom: .25rem; }
.regles p { margin: 0; color: var(--brume); }

/* Asie 2027 : l’étape suit un ordre, la liste est donc numérotée par la ligne du temps */
.route { list-style: none; margin: 3rem 0 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: calc(.45rem - 1px); top: .6rem; bottom: .6rem; width: 2px; background: rgba(255, 255, 255, .35); }
.etape { position: relative; padding: 0 0 2.25rem 2.25rem; }
.etape:last-child { padding-bottom: 0; }
.etape::before {
  content: ""; position: absolute; left: 0; top: .5rem;
  width: .9rem; height: .9rem; left: .0rem; border-radius: 50%;
  background: var(--ocre-clair); box-shadow: 0 0 0 4px var(--jungle);
}
.etape .quand { color: var(--ocre-clair); font-weight: 600; font-size: .98rem; display: block; }
.etape h3 { margin-block: .15rem .35rem; }
.etape p { margin: 0; max-width: 56ch; }
.note-route { margin-top: 2.5rem; font-size: .98rem; max-width: 60ch; }

/* Nos voyages */
.voyages { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 2px solid var(--encre); }
.voyages li { display: grid; gap: .25rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid #d9ccb8; }
.voyages h3 { grid-column: 1; }
.voyages .comment { color: var(--brume); margin: 0; }
.voyages .statut { color: var(--terre); font-weight: 600; margin: 0; }

/* Cambodge : mur de tirages */
.cambodge { display: grid; gap: 2.5rem; margin-top: 2.5rem; padding-bottom: 2.5rem; }
.cambodge-texte h3 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: .6rem; }
.cambodge-texte p { margin-bottom: .4rem; }
.cambodge-texte .comment { color: var(--brume); }
.cambodge-texte .statut { color: var(--terre); font-weight: 600; }
.mur { columns: 2; column-gap: 1.25rem; padding: .9rem .4rem 0; }
.tirage {
  position: relative; display: inline-block; width: 100%; margin: 0 0 1.5rem;
  break-inside: avoid; padding: .55rem .55rem .35rem;
  background: var(--blanc); border: 1px solid #e6dccd; border-radius: .3rem;
  box-shadow: 0 .8rem 1.6rem -1rem rgba(42, 31, 23, .5);
  transform: rotate(var(--r, 0deg));
}
.tirage img { width: 100%; height: auto; border-radius: .15rem; }
.tirage figcaption { font-family: var(--main); font-weight: 600; font-size: 1.45rem; line-height: 1.1; padding: .5rem .2rem .25rem; color: var(--encre); }

/* Récits et journal */
.recit { padding-block: 2.5rem 5rem; }
.recit .fil { margin-bottom: 1.5rem; }
.recit h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin-bottom: .6rem; }
.recit .comment { color: var(--brume); font-size: 1.1rem; margin-bottom: 2.5rem; }
.recit .corps { max-width: 44rem; }
.recit .corps p, .recit .corps li { max-width: none; }
.recit .corps h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 2.75rem 0 .8rem; }
.recit .corps h3 { margin: 2rem 0 .5rem; }
.recit .corps blockquote { margin: 1.75rem 0; padding-left: 1.25rem; border-left: 4px solid var(--ocre); font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.recit .corps blockquote p { margin: 0; }
.recit .corps a { text-underline-offset: .2em; }
.recit .corps > .tirage { display: block; width: min(100%, 28rem); margin: 2.5rem auto; }
.recit .corps > .mur { columns: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; align-items: start; margin: 2.5rem 0; padding: .9rem 0 0; }
.recit .corps > .mur .tirage { margin: 0; }
.voyages .h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.voyages a { text-underline-offset: .2em; }

/* Accessibilité */
.vh { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-texte {
  font: inherit; font-weight: 600; color: var(--terre); background: none; border: 0;
  padding: .55rem 0; margin-top: .4rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px;
}
.btn-texte:hover { color: var(--encre); }
.pile-bloc { display: grid; justify-items: center; gap: 1.5rem; }
.formulaire input::placeholder { color: var(--brume); opacity: 1; }
.retour.erreur { color: var(--terre); }
.liens-pied { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.pied :focus-visible { outline-color: var(--ocre-clair); }
.page-simple ul { max-width: 62ch; padding-left: 1.2rem; }
.page-simple li { margin-bottom: .4rem; }
.page-simple a { text-underline-offset: .2em; }

/* Un site sobre */
.sobre .poids { margin-top: 2rem; font-family: var(--serif); font-size: clamp(1.35rem, 3.4vw, 1.8rem); line-height: 1.2; max-width: 26ch; }
.sobre .poids strong { font-weight: 400; color: var(--terre); white-space: nowrap; }
.sobre .regles a { color: var(--jungle); text-underline-offset: .2em; }

/* Newsletter */
.lettre { margin-top: 4rem; padding-top: 3rem; border-top: 2px solid var(--encre); display: grid; gap: 1.5rem; }
.lettre h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.formulaire { display: grid; gap: .75rem; max-width: 30rem; }
.formulaire label { font-weight: 600; }
.formulaire input[type="email"] {
  font: inherit; padding: .8rem 1rem; border: 2px solid var(--encre); border-radius: .4rem;
  background: var(--blanc); color: var(--encre); width: 100%;
}
.formulaire .info { font-size: .92rem; color: var(--brume); margin: 0; }
.retour { min-height: 1.6em; margin: 0; font-weight: 600; color: var(--jungle); }

/* Collaborations */
.offre { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; max-width: 52ch; }
.offre li { padding-left: 1.25rem; border-left: 4px solid var(--ocre); }

/* Pied de page */
.pied { background: var(--encre); color: #e9dfd2; padding-block: 2.5rem; font-size: .98rem; }
.pied .cadre { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.pied p { margin: 0; max-width: none; }
.pied a { color: var(--ocre-clair); }

/* Pages simples (mentions légales, 404) */
.page-simple { padding-block: 3rem 5rem; }
.page-simple h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-bottom: 1.5rem; }
.page-simple h2 { font-size: 1.5rem; margin: 2.25rem 0 .6rem; }
.page-simple .grand { font-family: var(--serif); font-size: clamp(5rem, 22vw, 11rem); line-height: .9; color: var(--terre); margin: 0 0 1rem; }

/* ---------- Écrans larges ---------- */
@media (min-width: 56rem) {
  .accueil .cadre { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .titre-site { font-size: clamp(3rem, 6.4vw, 5.25rem); }
  .duo { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .etape { display: grid; grid-template-columns: 11rem 1fr; gap: 0 1.5rem; padding-left: 2.5rem; }
  .etape .quand { padding-top: .45rem; grid-column: 1; grid-row: 1 / span 2; }
  .etape h3, .etape p { grid-column: 2; }
  .etape h3 { margin-top: 0; }
  .voyages li { grid-template-columns: 1fr 1.4fr auto; align-items: baseline; }
  .cambodge { grid-template-columns: .7fr 1.6fr; gap: 3.5rem; align-items: start; }
  .cambodge-texte { position: sticky; top: 2rem; }
  .mur { columns: 2; column-gap: 2rem; padding-inline: .8rem; }
  .lettre { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte { transition: none; }
  .apos[data-d="1"] .d { animation: none; }
}
