@import url("fontes.css");

/* ═══════════════════════════════════════════════════════════════════════════
   HAIR LINE COIFFURE — PARENTIS-EN-BORN
   Direction artistique tirée du bloc-marque : noir absolu, blanc, et l'oxblood
   #840A05 relevé au pixel sur le logo. Les DEUX BARRES ROUGES qui encadrent le
   sigle HLC deviennent le dispositif structurel du site : elles marquent chaque
   entrée de section et se déploient à l'arrivée dans le champ de vision.
   Aucune photographie de synthèse : la composition est typographique et
   graphique, les emplacements photo attendent les vraies images du salon.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --noir:       #000000;
  --encre:      #0b0b0c;
  --charbon:    #141416;
  --blanc:      #ffffff;
  --craie:      #f5e9d6;   /* sable relevé au pixel sur les encarts partenaires */
  --craie-2:    #eaddc6;
  --gris:       #8a8a8c;
  --gris-clair: #b8b6b3;

  --rouge:      #840a05;   /* relevé au pixel sur les barres du logo */
  --rouge-vif:  #c9281b;   /* variante lisible, réservée aux éléments actifs */

  --titre: "Jost", "Futura", "Century Gothic", sans-serif;
  --texte: "Newsreader", Georgia, serif;

  --marge: clamp(1.25rem, 5vw, 5.5rem);
  --large: 1320px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ═══ Socle ════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--noir);
  color: var(--craie);
  font-family: var(--texte);
  font-size: clamp(1rem, .96rem + .22vw, 1.125rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--rouge); color: var(--blanc); }

:focus-visible {
  outline: 2px solid var(--rouge-vif);
  outline-offset: 3px;
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blanc);
  color: var(--noir);
  padding: .75rem 1.25rem;
  z-index: 999;
}
.saut-contenu:focus { left: 1rem; top: 1rem; }

/* ═══ Grille ═══════════════════════════════════════════════════════════════ */

.enveloppe {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--marge);
}

section { position: relative; }

.section { padding-block: clamp(5rem, 11vw, 10rem); }
.section--claire { background: var(--craie); color: var(--encre); }
.section--charbon { background: var(--charbon); }

/* ═══ Typographie ══════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 300;
  margin: 0;
  letter-spacing: -.015em;
  line-height: 1.06;
}

.titre-xl { font-size: clamp(2.75rem, 8.5vw, 7.5rem); }
.titre-l  { font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.08; }
.titre-m  { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -.01em; }

/* Chapeau de section : la barre rouge du logo, qui se déploie à l'arrivée */
.chapeau {
  font-family: var(--titre);
  font-size: clamp(.72rem, .68rem + .18vw, .82rem);
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gris);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.6rem;
}
.section--claire .chapeau { color: #6b6156; }
.chapeau::before {
  content: "";
  display: block;
  width: clamp(2.5rem, 5vw, 4.5rem);
  height: 3px;
  background: var(--rouge);
  transform-origin: left center;
  flex: 0 0 auto;
}
.section--claire .chapeau::before { background: var(--rouge); }

.plomb {
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.5rem);
  line-height: 1.5;
  color: var(--gris-clair);
  max-width: 46ch;
}
.section--claire .plomb { color: #4a423a; }

p { margin: 0 0 1.15em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }
strong { font-weight: 600; }

.mono-caps {
  font-family: var(--titre);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ═══ Boutons ══════════════════════════════════════════════════════════════ */

.bouton {
  --fond: var(--rouge);
  --texte-b: var(--blanc);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.05rem 2.1rem;
  background: var(--fond);
  color: var(--texte-b);
  font-family: var(--titre);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--fond);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.bouton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blanc);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--ease);
  z-index: 0;
}
.bouton > * { position: relative; z-index: 1; }
.bouton:hover { color: var(--noir); border-color: var(--blanc); }
.bouton:hover::after { transform: scaleX(1); transform-origin: left center; }

.bouton--fantome {
  --fond: transparent;
  --texte-b: var(--craie);
  border-color: rgba(244,242,239,.32);
}
.bouton--fantome:hover { color: var(--noir); }
.section--claire .bouton--fantome { --texte-b: var(--encre); border-color: rgba(11,11,12,.22); }
.section--claire .bouton--fantome::after { background: var(--encre); }
.section--claire .bouton--fantome:hover { color: var(--craie); border-color: var(--encre); }

.fleche { width: .9em; height: .9em; flex: 0 0 auto; }

/* ═══ En-tête ══════════════════════════════════════════════════════════════ */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.15rem;
  background: rgba(0,0,0,0);
  transition: background .45s var(--ease), padding .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.entete.est-pose {
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: .7rem;
  border-bottom-color: rgba(244,242,239,.1);
}
.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.entete__marque { display: flex; align-items: center; gap: .85rem; }
.entete__marque img { width: 38px; height: 38px; }
.entete__nom {
  font-family: var(--titre);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--craie);
  line-height: 1.25;
}
.entete__nom span { display: block; font-size: .64rem; letter-spacing: .26em; color: var(--gris); }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav a {
  font-family: var(--titre);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gris-clair);
  padding-block: .35rem;
  position: relative;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--rouge-vif);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--blanc); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav__reserver { margin-left: .6rem; padding: .72rem 1.4rem; font-size: .74rem; }
@media (max-width: 900px) { .nav a:not(.nav__reserver) { display: none; } }

/* ═══ Hero ═════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(8rem, 16vh, 12rem) clamp(4rem, 8vh, 7rem);
  position: relative;
  overflow: hidden;
}

/* Trame de fond : le motif des barres, très en retrait */
.hero__trame {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(132,10,5,.16) 0 2px,
    transparent 2px 46px
  );
  opacity: .5;
  pointer-events: none;
}
.hero__voile {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 18% 42%, transparent 0%, #000 72%);
  pointer-events: none;
}

.hero__contenu { position: relative; z-index: 2; width: 100%; }

/* Les deux barres du bloc-marque, à l'échelle de la page */
.barres {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}
.barres__trait {
  height: 4px;
  background: var(--rouge);
  width: clamp(3rem, 9vw, 8rem);
  transform-origin: left center;
}
.barres__trait--droite { transform-origin: right center; }
.barres__sigle {
  font-family: var(--titre);
  font-size: clamp(.78rem, .74rem + .2vw, .92rem);
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--craie);
  white-space: nowrap;
}

.hero h1 { max-width: 15ch; margin-bottom: 2rem; }
.hero h1 .ligne { display: block; overflow: hidden; }
.hero h1 .ligne > span { display: block; }
.hero__accent { color: var(--rouge-vif); font-style: italic; font-family: var(--texte); font-weight: 300; }

.hero__plomb { margin-bottom: 2.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__defiler {
  position: absolute;
  left: var(--marge);
  bottom: 2.2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--gris);
  font-family: var(--titre);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.hero__defiler i {
  display: block;
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--rouge), transparent);
}
@media (max-width: 760px) { .hero__defiler { display: none; } }

/* ═══ Bandeau de preuve ════════════════════════════════════════════════════ */

.preuve { background: var(--craie); color: var(--encre); padding-block: clamp(2.5rem, 5vw, 3.6rem); }
.preuve__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
}
.preuve__bloc { border-top: 3px solid var(--rouge); padding-top: 1.1rem; }
.preuve__nombre {
  font-family: var(--titre);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  display: block;
  margin-bottom: .5rem;
}
.preuve__nombre sup { font-size: .42em; vertical-align: super; margin-left: .1em; color: var(--rouge); }
.preuve__libelle {
  font-family: var(--titre);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6b6156;
  line-height: 1.4;
}

/* ═══ Blocs de contenu ═════════════════════════════════════════════════════ */

.duo {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

.duo--inverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }

/* ═══ Distinction ══════════════════════════════════════════════════════════ */

.distinction {
  border: 1px solid rgba(244,242,239,.14);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  position: relative;
}
.section--claire .distinction { border-color: rgba(11,11,12,.14); background: rgba(255,255,255,.55); }
.distinction::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 56px; height: 3px;
  background: var(--rouge);
}
.distinction h3 { margin-bottom: .9rem; }
.distinction p { font-size: .98rem; color: var(--gris-clair); }
.section--claire .distinction p { color: #4a4844; }

/* ═══ Tarifs ═══════════════════════════════════════════════════════════════ */

.tarifs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.carte-tarif { border-top: 1px solid rgba(11,11,12,.16); padding-top: 1.5rem; }
.carte-tarif h3 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.carte-tarif h3 b {
  font-family: var(--titre);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rouge);
}
.ligne-tarif {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .6rem;
  padding: .62rem 0;
  border-bottom: 1px solid rgba(11,11,12,.08);
  font-size: .98rem;
}
.ligne-tarif:last-child { border-bottom: 0; }

/* Les filets ci-dessus sont calibrés pour fond clair. Sur fond sombre ils
   disparaissent : on les inverse. */
.section:not(.section--claire) .carte-tarif { border-top-color: rgba(244,242,239,.18); }
.section:not(.section--claire) .ligne-tarif { border-bottom-color: rgba(244,242,239,.1); }
.section:not(.section--claire) .ligne-tarif i { border-bottom-color: rgba(244,242,239,.26); }
.ligne-tarif i { border-bottom: 1px dotted rgba(11,11,12,.28); transform: translateY(-.25em); font-style: normal; }
.ligne-tarif b { font-family: var(--titre); font-weight: 500; white-space: nowrap; letter-spacing: .01em; }

/* ═══ Jours à prix doux ════════════════════════════════════════════════════ */

.jours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(244,242,239,.14);
  border: 1px solid rgba(244,242,239,.14);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.jour { background: var(--charbon); padding: clamp(1.6rem, 3vw, 2.4rem); }
.jour__nom {
  font-family: var(--titre);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rouge-vif);
  margin-bottom: .9rem;
}
.jour__offre { font-family: var(--titre); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.2; }

/* ═══ Équipe ═══════════════════════════════════════════════════════════════ */

.equipe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.membre { border-top: 3px solid var(--rouge); padding-top: 1.1rem; }
.membre__nom { font-family: var(--titre); font-size: 1.3rem; font-weight: 400; margin-bottom: .35rem; }
.membre__role {
  font-family: var(--titre);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gris);
}
.section--claire .membre__role { color: #6b6156; }

/* ═══ Avis ═════════════════════════════════════════════════════════════════ */

.avis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.avis blockquote { margin: 0; border-left: 3px solid var(--rouge); padding-left: 1.4rem; }
.avis p { font-size: 1.05rem; font-style: italic; color: var(--gris-clair); }
.avis cite {
  display: block;
  margin-top: .9rem;
  font-family: var(--titre);
  font-style: normal;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gris);
}

/* ═══ Infos pratiques ══════════════════════════════════════════════════════ */

.pratique { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.horaires { width: 100%; border-collapse: collapse; font-size: 1rem; }
.horaires th, .horaires td { text-align: left; padding: .6rem 0; border-bottom: 1px solid rgba(11,11,12,.1); font-weight: 400; }
.horaires td:last-child { text-align: right; font-family: var(--titre); }
.horaires tr.ferme td { color: #948b7e; }

.section:not(.section--claire) .horaires th,
.section:not(.section--claire) .horaires td { border-bottom-color: rgba(244,242,239,.12); }

.coordonnees a { border-bottom: 1px solid var(--rouge); transition: color .3s var(--ease); }
.coordonnees a:hover { color: var(--rouge); }

/* ═══ Zone desservie ═══════════════════════════════════════════════════════ */

.communes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.communes li {
  list-style: none;
  font-family: var(--titre);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .5rem 1rem;
  border: 1px solid rgba(244,242,239,.18);
  color: var(--gris-clair);
}
.communes li[data-siege] { border-color: var(--rouge); color: var(--blanc); background: rgba(132,10,5,.22); }

/* ═══ Appel final ══════════════════════════════════════════════════════════ */

.final { text-align: center; }
.final .chapeau { justify-content: center; }
.final .chapeau::before { display: none; }
.final h2 { margin-inline: auto; max-width: 18ch; margin-bottom: 2rem; }
.final .plomb { margin-inline: auto; margin-bottom: 2.6rem; text-align: center; }

/* ═══ Pied de page ═════════════════════════════════════════════════════════ */

.pied { background: var(--noir); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid rgba(244,242,239,.1); }
.pied__haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; margin-bottom: 3rem; }
.pied__marque { display: flex; align-items: center; gap: 1rem; }
.pied__marque img { width: 52px; height: 52px; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.pied__liens a { font-family: var(--titre); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-clair); transition: color .3s var(--ease); }
.pied__liens a:hover { color: var(--rouge-vif); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid rgba(244,242,239,.1); font-size: .82rem; color: var(--gris); }

/* ═══ Animation : état de départ ═══════════════════════════════════════════ */
/* Posé par JS uniquement (classe sur <html>) : sans script, tout reste visible. */

.js .anim-monte { opacity: 0; transform: translateY(26px); }
.js .anim-parait { opacity: 0; }
.js .barres__trait { transform: scaleX(0); }
.js .chapeau::before { transform: scaleX(0); }
.js .chapeau.est-vu::before { transform: scaleX(1); transition: transform .8s cubic-bezier(.16,1,.3,1); }
/* Anti-clignotement uniquement. Surtout PAS de transform en pourcentage ici :
   GSAP le convertirait en pixels et son `yPercent` s'ajouterait par-dessus,
   déplaçant la ligne deux fois. Le décalage est posé par le script. */
.js .hero h1 .ligne > span { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .anim-monte, .js .anim-parait { opacity: 1; transform: none; }
  .js .barres__trait, .js .chapeau::before { transform: none; }
  .js .hero h1 .ligne > span { opacity: 1; }
  .bouton::after, .nav a::after { transition: none; }
}
