/* Bamy Tatou 72, première version. Tokens first, see DESIGN.md. */

:root {
  --encre: #17191D;
  --anthracite: #222428;
  --blanc: #F3F3F0;
  --gris: #63666C;
  --gris-clair: #B7B9BE;
  --bleu: #3D6FA6;
  --bleu-appuye: #325D8C;

  --ligne-sombre: rgba(255, 255, 255, 0.14);
  --ligne-claire: rgba(23, 25, 29, 0.14);

  --rayon: 4px;
  --wrap: 1400px;
  --gouttiere: 24px;
  --section: 96px;
  --header: 64px;

  --etroit: 62%;
}

@media (min-width: 1024px) {
  :root {
    --gouttiere: 64px;
    --section: 128px;
    --header: 72px;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

@media (min-width: 1024px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--bleu); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  background: var(--blanc); color: var(--encre); padding: 8px 16px; border-radius: var(--rayon);
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
.sombre :focus-visible { outline-color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Type */

.display {
  font-stretch: var(--etroit);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gris);
  margin-bottom: 16px;
}
.sombre .eyebrow { color: var(--gris-clair); }

.titre {
  font-size: clamp(40px, 7.4vw, 72px);
  max-width: 16ch;
}
.titre + * { margin-top: 24px; }

.chapeau {
  font-size: 20px;
  line-height: 1.35;
  max-width: 34ch;
}
@media (min-width: 1024px) { .chapeau { font-size: 24px; } }

.petit { font-size: 14px; line-height: 1.45; color: var(--gris); }
@media (min-width: 1024px) { .petit { font-size: 15px; } }
.sombre .petit { color: var(--gris-clair); }

.sombre { background: var(--anthracite); color: #fff; }

/* Actions */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--rayon);
  background: var(--bleu);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.lien-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

@media (hover: hover) and (pointer: fine) {
  .btn { transition: background-color 0.3s ease; }
  .btn:hover { background: var(--bleu-appuye); }
  .lien-action { transition: text-decoration-color 0.3s ease; }
  .lien-action:hover { text-decoration-color: transparent; }
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--anthracite);
  color: #fff;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 16px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.marque img { width: 40px; height: 40px; }
.marque span {
  font-stretch: var(--etroit);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
}

.nav { display: none; }

.nav a:not(.btn) {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.nav a[aria-current="page"] { text-decoration: underline; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu {
  display: none;
  padding: 8px var(--gouttiere) 24px;
}
.menu.is-open { display: block; }
.menu a:not(.btn) {
  display: block;
  padding: 12px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--ligne-sombre);
}
.menu .btn { width: 100%; margin-top: 16px; }

@media (min-width: 1024px) {
  .menu-btn, .menu, .menu.is-open { display: none; }
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav .btn { min-height: 44px; font-size: 16px; }
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
}

.hero__media {
  position: relative;
  flex: 1 1 0;
  min-height: 200px;
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero__texte { padding: 24px var(--gouttiere) 32px; }

.hero__nom {
  font-size: clamp(44px, 14vw, 144px);
  line-height: 0.9;
  margin-bottom: 16px;
}

.hero__phrase { margin-bottom: 12px; }

.hero__preuve {
  font-size: 15px;
  color: var(--gris-clair);
  margin-bottom: 24px;
}
.hero__preuve strong { color: #fff; font-weight: 600; }

.hero .actions .btn, .page-tete .actions .btn { flex: 1 1 100%; }

@media (min-width: 600px) {
  .hero .actions .btn, .page-tete .actions .btn { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 42%);
    min-height: calc(100vh - var(--header));
  }
  .hero__media { order: 2; min-height: 0; }
  .hero__texte {
    align-self: center;
    padding: 64px 64px 96px max(var(--gouttiere), calc((100vw - var(--wrap)) / 2 + var(--gouttiere)));
  }
  .hero__nom { margin-bottom: 24px; }
  .hero__phrase { margin-bottom: 16px; }
  .hero__preuve { font-size: 16px; margin-bottom: 40px; }
}

/* Sections */

.section { padding-block: var(--section); }
.section:not(.sombre) + .section:not(.sombre) { padding-top: 0; }
.section__tete { margin-bottom: 48px; }
@media (min-width: 1024px) { .section__tete { margin-bottom: 64px; } }

/* Avis */

.avis {
  display: grid;
  gap: 48px;
}

.citation blockquote {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
}
.citation figcaption {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
}
.citation figcaption span { color: var(--gris); font-weight: 400; }

.citation--grande blockquote {
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.2;
  max-width: 22ch;
}

.avis__petites { display: grid; gap: 32px; }
.avis__petites .citation { padding-top: 24px; border-top: 1px solid var(--ligne-claire); }

.avis__lien { margin-top: 8px; }

@media (min-width: 1024px) {
  .avis { grid-template-columns: 7fr 4fr; gap: 96px; align-items: start; }
  .avis__petites .citation blockquote { font-size: 24px; }
}

/* Tableau des prix */

.tableau__liste { border-bottom: 1px solid var(--ligne-sombre); }

.ligne-prix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 24px;
  row-gap: 4px;
  padding: 24px 0;
  border-top: 1px solid var(--ligne-sombre);
}

.ligne-prix__nom {
  font-stretch: var(--etroit);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}

.ligne-prix__duree {
  grid-column: 1;
  font-size: 15px;
  color: var(--gris-clair);
  font-variant-numeric: tabular-nums;
}

.ligne-prix__note {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--gris-clair);
  max-width: 52ch;
}

.ligne-prix__prix {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-stretch: var(--etroit);
  font-weight: 800;
  font-size: clamp(44px, 11vw, 80px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.tableau__pied {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}
.tableau__pied .actions .btn { flex: 1 1 100%; }

@media (min-width: 600px) {
  .tableau__pied .actions .btn { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .ligne-prix {
    grid-template-columns: minmax(0, 1fr) 200px 240px;
    padding: 32px 0;
  }
  .ligne-prix__nom { font-size: 32px; }
  .ligne-prix__duree { grid-column: 2; grid-row: 1; font-size: 16px; }
  .ligne-prix__prix { grid-column: 3; grid-row: 1; align-self: baseline; }
  .ligne-prix__note { grid-column: 1; }
  .tableau__pied { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Travail */

.travail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}

.piece img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rayon);
  background: #DDDDD9;
}
.piece figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--gris); }

.piece--grande { grid-column: 1 / -1; }
.piece--grande img { aspect-ratio: 810 / 727; }

.travail__pied { margin-top: 48px; }

@media (min-width: 1024px) {
  .travail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
  .piece--grande { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .piece--grande img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
}

/* Tatoueur */

.tatoueur {
  display: grid;
  gap: 48px;
}

.tatoueur__texte p + p { margin-top: 16px; }
.tatoueur__texte .chapeau { margin-bottom: 24px; }

.ses-mots {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ligne-claire);
  max-width: 52ch;
}
.ses-mots blockquote { font-size: 20px; line-height: 1.45; }
.ses-mots figcaption { margin-top: 12px; font-size: 15px; color: var(--gris); }

.tatoueur__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tatoueur__photos img { border-radius: var(--rayon); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tatoueur__photos figcaption { margin-top: 8px; font-size: 14px; color: var(--gris); }

@media (min-width: 1024px) {
  .tatoueur { grid-template-columns: 6fr 5fr; gap: 96px; align-items: center; }
  .tatoueur__photos { order: -1; }
  .tatoueur__photos figure:last-child { margin-top: 96px; }
}

/* Venir */

.venir {
  display: grid;
  gap: 48px;
}

.adresse { font-size: 20px; line-height: 1.4; margin-bottom: 24px; }
.adresse strong { font-weight: 600; }

.contact-ligne { margin-bottom: 8px; }
.contact-ligne a { color: inherit; font-weight: 600; }

.horaires { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horaires caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.horaires th, .horaires td {
  padding: 12px 0;
  border-top: 1px solid var(--ligne-claire);
  text-align: left;
  font-weight: 400;
}
.horaires td { text-align: right; }
.horaires tr:last-child th, .horaires tr:last-child td { border-bottom: 1px solid var(--ligne-claire); }
.horaires .ferme { color: var(--gris); }
.horaires tr.is-today th, .horaires tr.is-today td { font-weight: 600; }
.horaires tr.is-today th::after {
  content: "Aujourd’hui";
  margin-left: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gris);
}

.venir__source { margin-top: 12px; }

@media (min-width: 1024px) {
  .venir { grid-template-columns: 5fr 6fr; gap: 128px; align-items: start; }
}

/* Clôture */

.cloture { text-align: left; }
.cloture .titre { font-size: clamp(40px, 8vw, 112px); max-width: 18ch; }
.cloture .chapeau { margin-bottom: 32px; }
.cloture .actions .btn { flex: 1 1 100%; }
@media (min-width: 600px) { .cloture .actions .btn { flex: 0 0 auto; } }

/* En-tête de page intérieure */

.page-tete { padding-top: 64px; padding-bottom: 64px; }
.page-tete .actions { margin-top: 32px; }
.page-tete + .tableau { padding-top: 0; }
@media (min-width: 1024px) { .page-tete { padding-top: 96px; padding-bottom: 96px; } }

/* Pages intérieures */

.deux-col { display: grid; gap: 48px; }
@media (min-width: 1024px) { .deux-col { grid-template-columns: 5fr 6fr; gap: 128px; align-items: start; } }

.etapes { counter-reset: etape; display: grid; gap: 24px; }
.etapes li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ligne-claire);
}
.etapes li::before {
  content: counter(etape);
  font-stretch: var(--etroit);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
}

.photo-section img { width: 100%; border-radius: var(--rayon); aspect-ratio: 3 / 4; object-fit: cover; }
.photo-section figcaption { margin-top: 8px; font-size: 14px; color: var(--gris); }

.contacts { display: grid; gap: 0; }
.contacts li {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--ligne-claire);
}
.contacts li:last-child { border-bottom: 1px solid var(--ligne-claire); }
.contacts .petit { font-weight: 600; color: var(--gris); }
.contacts a { font-size: 20px; font-weight: 600; color: var(--encre); overflow-wrap: anywhere; }

/* Pied de page */

.pied { padding-top: 64px; padding-bottom: 32px; }
.pied__grille { display: grid; gap: 32px; }
.pied a { color: #fff; }
.pied .marque { margin-bottom: 16px; }
.pied p + p { margin-top: 4px; }
.pied__liens { display: grid; gap: 8px; align-content: start; justify-items: start; }
.pied__mention {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ligne-sombre);
  font-size: 14px;
  color: var(--gris-clair);
}

@media (min-width: 768px) {
  .pied__grille { grid-template-columns: 2fr 1fr 1fr; }
}

/* Action épinglée, téléphone */

.epingle {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--anthracite);
  transform: translateY(110%);
  visibility: hidden;
}
.epingle .btn { width: 100%; }
.epingle.is-visible { transform: none; visibility: visible; }
.menu-ouvert .epingle.is-visible { transform: translateY(110%); visibility: hidden; }
body.a-epingle { padding-bottom: 76px; }

@media (min-width: 1024px) {
  .epingle { display: none; }
  body.a-epingle { padding-bottom: 0; }
}

/* Apparition des sections */

@media (prefers-reduced-motion: no-preference) {
  .epingle { transition: transform 0.3s ease, visibility 0.3s; }
  .js .reveal > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }
  .js .reveal.is-in > * { opacity: 1; transform: none; }
}
