/* ==========================================================================
   VITAKER HAIR STUDIO — Feuille de style unique
   Version 2 · validée le 04/09/2026
   --------------------------------------------------------------------------
   Pages de scan QR : une colonne, bandes de couleur inversées, zéro
   dépendance. Palette échantillonnée sur la maquette Canva.
   Univers chromatique unique et assumé : toutes les surfaces sont peintes
   explicitement, la page tient donc sur n'importe quel fond.
   --------------------------------------------------------------------------
   SOMMAIRE
   01. Tokens          07. Note Google
   02. Bases           08. Panneau d'informations
   03. Mise en page    09. Bloc studio (accueil)
   04. Typographie     10. Pied de page
   05. En-tête         11. Animation d'ouverture
   06. Boutons         12. Accessibilité & impression
   ========================================================================== */

/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  --terra:      #a9593c;   /* terracotta de marque */
  --terra-deep: #8c4830;
  --terra-dark: #6b3524;   /* bandeau d'en-tête, opaque */
  --espresso:   #2e1a13;   /* neutre sombre teinté brun-rouge, jamais gris */
  --bone:       #f2ece4;   /* ground clair */
  --gold:       #c9a173;   /* accent sourd */
  --ok:         #4f7d55;   /* pastille « ouvert » */

  /* Bodoni Moda est un Didone : même famille que le wordmark « vitaker ». */
  --display: "Bodoni Moda", Didot, Georgia, serif;
  /* Jost reprend le géométrique du « HAIR STUDIO » de la maquette. */
  --sans:    Jost, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   02. BASES
   ========================================================================== */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--terra);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* `height: auto` est indispensable : les images portent des attributs
   width/height (qui réservent la place et évitent les sauts de mise en page),
   et sans cette règle la hauteur resterait figée à la valeur de l'attribut. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

::selection { background: var(--gold); color: var(--espresso); }

/* ==========================================================================
   03. MISE EN PAGE
   La page se lit comme une étiquette de produit : bandes pleine largeur,
   contenu toujours dans la même gouttière.
   ========================================================================== */
.col {
  width: 100%;
  max-width: 27.5rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

.band { position: relative; overflow: hidden; }
.band--terra { background: var(--terra);      color: var(--bone); }
.band--deep  { background: var(--terra-deep); color: var(--bone); }
.band--bone  { background: var(--bone);       color: var(--espresso); }
.band--dark  { background: var(--espresso);   color: rgba(242,236,228,.6); }

/* Grain : évite l'aplat numérique mort sur les grandes surfaces colorées */
.band--terra::before,
.band--deep::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   04. TYPOGRAPHIE
   ========================================================================== */
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 9.5vw, 3rem);
  line-height: 1.05;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--gold); }

/* Micro-capitales : le vocabulaire d'un panneau de dos de packaging */
.micro {
  font-size: .625rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 400;
}
.num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   05. EN-TÊTE
   Transparent en haut de page, il se condense au scroll et fait alors
   apparaître son CTA : l'action reste accessible partout.
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-block: 1.25rem;
  transition: background-color .35s, padding .35s, box-shadow .35s;
}

/* Dès le premier pixel de défilement, le bandeau devient PLEINEMENT opaque :
   le contenu passe proprement derrière au lieu de transparaître à travers.
   Deux états distincts — `stuck` habille le bandeau, `armed` révèle le CTA
   plus tard, quand le grand bouton du hero a quitté l'écran. */
.header.stuck {
  padding-block: .6rem;
  background: var(--terra-dark);
  box-shadow: 0 1px 0 rgba(242,236,228,.12), 0 18px 34px -26px rgba(0,0,0,.9);
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header img { height: 20px; width: auto; transition: height .4s; }
.header.stuck img { height: 17px; }

/* CTA compact : masqué tant que le grand bouton du hero est à l'écran */
.header__cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.15rem;
  background: var(--bone); color: var(--espresso);
  border-radius: 999px;
  font-size: .7rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .4s, transform .4s, background-color .3s;
}
.header__cta svg { width: 15px; height: 15px; flex: none; }
.header.armed .header__cta { opacity: 1; transform: none; pointer-events: auto; }
.header__cta:hover { background: #fff; }

/* Pastilles de réseaux sociaux */
.icons { display: flex; gap: .5rem; }
.icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(242,236,228,.25);
  border-radius: 50%;
  color: var(--bone);
  transition: background-color .35s, color .35s, border-color .35s, transform .35s;
}
.icon:hover { background: var(--bone); color: var(--terra); border-color: var(--bone); transform: translateY(-2px); }
.icon svg { width: 16px; height: 16px; }

/* Sur mobile c'est la barre de conversion du bas qui porte le CTA : on retire
   celui de l'en-tête pour ne jamais afficher deux fois le même bouton. */
@media (max-width: 639px) {
  .header__cta { display: none; }
}

/* --------------------------------------------------------------------------
   BARRE DE CONVERSION MOBILE
   Elle glisse depuis le bas une fois le grand bouton du hero dépassé.
   Masquée à partir de 640 px, où l'en-tête prend le relais.
   -------------------------------------------------------------------------- */
.bar {
  position: fixed; inset: auto 0 0; z-index: 45;
  display: flex; gap: .6rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(46, 26, 19, .94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid rgba(242,236,228,.12);
  transform: translateY(115%);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.bar.show { transform: none; }
.bar .cta { flex: 1; padding: 1rem; font-size: .74rem; letter-spacing: .12em; box-shadow: none; }

.bar__ico {
  flex: 0 0 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(242,236,228,.28);
  border-radius: 999px;
  color: var(--bone);
  transition: background-color .3s, color .3s, border-color .3s;
}
.bar__ico:hover { background: var(--bone); color: var(--espresso); border-color: var(--bone); }
.bar__ico svg { width: 18px; height: 18px; }

@media (min-width: 640px) { .bar { display: none; } }

/* Réserve la hauteur de la barre : le pied de page n'est jamais masqué */
@media (max-width: 639px) {
  .has-bar { padding-bottom: 5.25rem; }
}

/* ==========================================================================
   06. HERO & BOUTONS
   ========================================================================== */
.hero { padding-block: 6rem 3.5rem; text-align: center; }
.hero__logo { width: 100%; max-width: 16rem; margin: 0 auto 2.25rem; }
.hero .micro { color: var(--gold); margin-bottom: 1rem; }
.hero__lead {
  color: rgba(242,236,228,.75);
  font-size: .95rem;
  max-width: 23rem;
  margin: .9rem auto 2.25rem;
}

.cta {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bone);
  color: var(--espresso);
  border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 18px 40px -16px rgba(46,26,19,.7);
  overflow: hidden; isolation: isolate;
  transition: transform .3s, background-color .3s;
}
.cta:hover { background: #fff; transform: translateY(-2px); }
.cta:active { transform: translateY(0); }
.cta svg { width: 18px; height: 18px; flex: none; }
/* Reflet laqué au contact */
.cta::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg);
  transition: left .75s cubic-bezier(.16, 1, .3, 1);
}
.cta:hover::after, .cta:focus-visible::after { left: 130%; }

/* Variante sombre : sur la bande claire, l'inversion se poursuit */
.cta--dark { background: var(--espresso); color: var(--bone); }
.cta--dark:hover { background: #3d251b; }
.cta--dark::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); }

/* Paire de contacts directs sous le CTA du hero */
.ghosts { display: flex; gap: .625rem; }
.ghost {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 0;
  border: 1px solid rgba(242,236,228,.3);
  border-radius: 999px;
  font-size: .78rem; letter-spacing: .1em;
  transition: background-color .35s, border-color .35s;
}
.ghost:hover { background: rgba(242,236,228,.1); border-color: rgba(242,236,228,.6); }
.ghost svg { width: 16px; height: 16px; flex: none; }

/* Bouton plein empilé sous un autre groupe d'actions */
.cta--stack { margin-top: .625rem; }

/* Liens de marque pleine largeur (page d'accueil) */
.link-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  border: 1px solid rgba(242,236,228,.35);
  border-radius: 999px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .35s, border-color .35s;
}
.link-btn:hover { background: rgba(242,236,228,.1); border-color: rgba(242,236,228,.7); }
.link-btn svg { width: 15px; height: 15px; flex: none; opacity: .7; }

/* ==========================================================================
   07. AVIS GOOGLE (widget Elfsight)
   ========================================================================== */
/* Le widget d'avis occupe seul le haut de la bande claire : il ferme sur un
   filet, comme le faisait la note qu'il remplace. */
.widget-slot:empty { display: none; }
.widget-slot--sole {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(46,26,19,.12);
}

/* ==========================================================================
   08. PANNEAU D'INFORMATIONS
   Composé comme le dos d'un packaging : étiquettes en micro-capitales,
   valeurs alignées, filets fins.
   ========================================================================== */
.infos { padding-block: 3.5rem; }
.infos > .micro { color: rgba(46,26,19,.45); margin: 2.5rem 0 .25rem; }

.row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(46,26,19,.12);
}
.row:last-child { border-bottom: 0; }
.row__ico { width: 18px; height: 18px; margin-top: .3rem; flex: none; color: var(--terra); }
.row__body { flex: 1; }
.row__k { display: block; color: rgba(46,26,19,.45); margin-bottom: .25rem; }
.row__v { display: block; font-size: 1.05rem; line-height: 1.35; }
.row__do { color: var(--terra); margin-top: .35rem; flex: none; transition: transform .3s; }
.row:hover .row__do { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .75rem;
  border: 1px solid rgba(46,26,19,.15);
  border-radius: 999px;
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: rgba(46,26,19,.4); flex: none; }

.hours__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.hours__line { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .375rem 0; }
.hours__line + .hours__line { border-top: 1px solid rgba(46,26,19,.08); }
.hours__line span { font-size: 1.02rem; }
.hours__line span:last-child { color: rgba(46,26,19,.7); font-variant-numeric: tabular-nums; }
.hours__line.closed span { color: rgba(46,26,19,.5); }
.hours__line.closed span:last-child { font-style: italic; }

/* ==========================================================================
   09. BLOC STUDIO (page d'accueil)
   Dupliquer ce bloc pour chaque nouveau studio du réseau.
   ========================================================================== */
.studios { padding-block: 3.5rem; }
.studios > .micro { color: rgba(46,26,19,.45); margin-bottom: 1.75rem; }

.studio__city { font-family: var(--display); font-size: 2.5rem; line-height: 1; margin-bottom: .4rem; }
.studio__dept { color: var(--terra); margin-bottom: 1.5rem; }
.studio__line {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .55rem 0;
  font-size: 1rem;
  color: rgba(46,26,19,.75);
}
.studio__line svg { width: 16px; height: 16px; margin-top: .28rem; flex: none; color: var(--terra); }
.studio__sep { height: 1px; background: rgba(46,26,19,.14); margin: 1.75rem 0; }

.links { padding-block: 3.5rem; display: flex; flex-direction: column; gap: .75rem; }
.links > .micro { color: var(--gold); margin-bottom: .75rem; text-align: center; }

/* ==========================================================================
   10. PIED DE PAGE
   ========================================================================== */
.footer { padding-block: 3rem; text-align: center; }
.footer .micro { color: var(--gold); margin-bottom: 1.25rem; }
.footer .icons { justify-content: center; margin-bottom: 1.75rem; }
.footer .icon { width: 40px; height: 40px; border-color: rgba(242,236,228,.2); color: rgba(242,236,228,.8); }
.footer .icon:hover { background: var(--bone); color: var(--espresso); }
.footer__site { transition: color .35s; }
.footer__site:hover { color: var(--gold); }
.footer__legal { font-size: .7rem; color: rgba(242,236,228,.35); margin-top: 1.5rem; }

/* Mentions légales dépliables */
.legal { margin-top: 2rem; border-top: 1px solid rgba(242,236,228,.12); text-align: left; }
.legal summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 0;
  display: flex; align-items: center; justify-content: space-between;
  color: rgba(242,236,228,.6);
  transition: color .35s;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary:hover { color: var(--gold); }
.legal summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.legal[open] summary::after { content: "–"; }
.legal__body { padding-bottom: 1.5rem; font-size: .78rem; line-height: 1.75; color: rgba(242,236,228,.5); }
.legal__body p { margin: 0 0 .8rem; }
.legal__body strong { color: rgba(242,236,228,.75); font-weight: 400; }

/* L'adresse de contact doit se voir comme un lien, malgré le texte assourdi */
.legal__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--bone); }

/* ==========================================================================
   11. ANIMATION D'OUVERTURE
   Tout finit visible : rien n'attend le scroll. Après un scan de QR code,
   le bouton doit être là immédiatement.
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }

/* ==========================================================================
   12. PAGE D'ERREUR
   Contenu court : sans cela le pied de page flotte au milieu de l'écran,
   avec une bande de fond vide en dessous. Le contenu occupe la hauteur
   disponible, le pied reste collé en bas.
   ========================================================================== */
.page-error {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page-error main { flex: 1 0 auto; display: flex; }
.page-error main .band { flex: 1; display: flex; align-items: center; }
.page-error main .col { width: 100%; }
.page-error .footer { padding-block: 2rem; }

/* ==========================================================================
   13. ACCESSIBILITÉ & IMPRESSION
   ========================================================================== */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .85rem 1.5rem;
  background: var(--bone); color: var(--espresso);
  font-size: .8rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
}

@media print {
  .header, .band--terra::before, .band--deep::before { display: none !important; }
  body { background: #fff; color: #000; }
}
