/* ==========================================================================
   NP BarberShop — feuille de style principale
   Couleurs et polices reprises de l'ancien site Elementor.
   ========================================================================== */

:root {
  --noir: #151515;
  --noir-header: #0a0909;
  --texte: #333;
  --texte-doux: #777;
  --gris-clair: #e9e9e9;
  --blanc: #fff;
  --osmo: #605be5;

  --f-titre: 'Ubuntu', system-ui, sans-serif;
  --f-texte: 'Poppins', system-ui, sans-serif;
  --f-menu: 'Oswald', system-ui, sans-serif;
  --f-carte: 'Playfair Display', Georgia, serif;

  --largeur: 1120px;
  --header-h: 125px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--largeur) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.titre {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  text-align: center;
  color: var(--texte);
}
.titre--blanc { color: var(--blanc); }

.texte {
  font-family: var(--f-texte);
  font-size: 20px;
  line-height: 30px;
  color: var(--texte-doux);
}
.texte p + p { margin-top: 14px; }

.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;
}

/* ---------- En-tête ---------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s;
}
.header.is-scrolled { background: rgba(10, 9, 9, .9); }

.header__inner {
  max-width: 1305px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo { display: block; padding: 10px; }
.header__logo img { width: 100px; height: 100px; }

.nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  display: block;
  padding: 0 0 3px;
  font-family: var(--f-menu);
  font-size: 22px;
  line-height: 26px;
  color: var(--blanc);
  text-decoration: none;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blanc);
  transform: scaleX(0); transition: transform .3s;
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; margin: 5px 0;
  background: var(--blanc); transition: transform .3s, opacity .3s;
}

/* ---------- Hero ------------------------------------------------------- */

.hero {
  min-height: 860px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px 80px;
  background: #000 url(../img/hero-bg.webp) center / cover no-repeat;
  text-align: center;
}
.hero h1 {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--blanc);
}

.btn-rdv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  max-width: 100%;
  margin-top: 30px;
  padding: 7px;
  background: var(--noir);
  border: 2px solid var(--blanc);
  border-radius: 15px;
  font-family: var(--f-menu);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.5;
  color: var(--blanc);
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .4s, background-color .4s;
}
.btn-rdv:hover { border-color: #e8e8e8; background: #222; }

/* ---------- Présentation ---------------------------------------------- */

.intro { margin: 60px 0 65px; }

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.galerie img { width: 100%; height: 340px; object-fit: cover; }

.salon-video {
  width: 600px; max-width: 100%;
  aspect-ratio: 1;
  margin: 90px auto 20px;
  object-fit: cover;
}

/* ---------- Avantages -------------------------------------------------- */

.avantages { padding: 10px 0 64px; }
.avantages ul {
  width: fit-content;
  max-width: 100%;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}
.avantages li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--f-menu);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.5;
  color: var(--texte);
}
.avantages li + li { margin-top: 20px; }
.avantages svg { flex: none; width: 35px; height: 35px; fill: var(--texte); }

/* ---------- Prestations ----------------------------------------------- */

.prestations {
  padding: 100px 0;
  background: var(--noir);
  color: var(--blanc);
}
.prestations .titre { font-size: 45px; margin-bottom: 40px; }

.cartes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cartes + .cartes { margin-top: 40px; }
.carte--large { grid-column: 1 / -1; }

.carte { padding: 10px; }
.carte h3 {
  margin-bottom: 20px;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  text-align: center;
}
.carte ul { width: 100%; margin: 0 auto; padding: 0; list-style: none; }
.carte li {
  display: flex;
  align-items: center;
  padding: 10px;
  font-size: 17px;
  line-height: 1.5;
}
.carte li + li { margin-top: 5px; }
.carte .nom { font-family: var(--f-carte); }
.carte .points {
  flex: 1;
  min-width: 20px;
  margin: 0 15px;
  border-bottom: 2px dotted rgba(255, 255, 255, .25);
}
.carte .prix { font-family: var(--f-texte); white-space: nowrap; }

/* ---------- Équipe ----------------------------------------------------- */

.equipe { padding-top: 50px; }
.equipe .texte { margin-top: 20px; text-align: center; }

.membres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 70px 0 50px;
  padding: 0 20px;
}
.membre {
  padding: 50px 10px 0;
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  text-align: center;
}
.membre__contenu { padding: 20px 15px 50px; }
.membre h3 {
  font-family: var(--f-texte);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .2px;
  color: #222;
}
.membre h3::after {
  content: '';
  display: block;
  width: 30px; height: 1px;
  margin: 9px auto 0;
  background: #222;
}
.membre a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px; height: 45px;
  margin-top: 4px;
  border-radius: 50%;
  color: #222;
  transition: background-color .3s, color .3s;
}
.membre a:hover { background: #222; color: var(--blanc); }
.membre svg { width: 36px; height: 36px; fill: currentColor; }

/* ---------- Bandeau vidéo --------------------------------------------- */

.bandeau {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 415px;
  overflow: hidden;
  background: var(--noir);
}
.bandeau video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .55;
}
.bandeau h2 { position: relative; font-size: 45px; }

/* ---------- Contact ---------------------------------------------------- */

.contact {
  padding: 100px 0 120px;
  background: var(--noir);
  color: var(--blanc);
}
.contact .titre { font-size: 45px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 561px;
  max-width: 100%;
  margin: 50px auto 0;
}
.form__champ { display: flex; flex-direction: column; }
.form__champ--large,
.form button,
.form__statut { grid-column: 1 / -1; }

.form label {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1;
}
.form input,
.form textarea {
  width: 100%;
  padding: 6px 10px;
  background: #3f3f3f;
  border: 1px solid var(--texte-doux);
  border-radius: 2px;
  font: 12px/18px var(--f-texte);
  color: #ddd;
}
.form input { height: 32px; }
.form textarea { height: 140px; resize: vertical; }
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--blanc); }

.form button {
  height: 51px;
  margin-top: 4px;
  background: transparent;
  border: 1px solid var(--blanc);
  border-radius: 4px;
  font: 500 24px/1.5 var(--f-titre);
  color: var(--blanc);
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.form button:hover { background: var(--blanc); color: var(--noir); }
.form button:disabled { opacity: .5; cursor: wait; }

.form__piege { position: absolute; left: -9999px; }
.form__statut { min-height: 20px; font-size: 14px; text-align: center; }
.form__statut.ok { color: #8fd18f; }
.form__statut.erreur { color: #ff8a8a; }

/* ---------- Pied de page ---------------------------------------------- */

.footer {
  padding: 50px 0 0;
  background: var(--noir);
  color: var(--blanc);
}
.footer__logo { width: 148px; margin: 0 auto 30px; }

.footer__cols {
  display: grid;
  grid-template-columns: 387fr 247fr 506fr;
  padding: 20px 0 10px;
  border-top: 1px solid #2a2a2a;
}
.footer__cols > div { padding: 10px; }
.footer h2 {
  margin-bottom: 20px;
  font-family: var(--f-menu);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
}
.footer__insta svg { width: 17px; height: 17px; fill: var(--blanc); }
.footer__insta:hover svg { fill: #b6b6b6; }

.footer__liens { margin: 0; padding: 0; list-style: none; }
.footer__liens li {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #b6b6b6;
}
.footer__liens li + li { margin-top: 20px; }
.footer__liens a { text-decoration: none; }
.footer__liens a:hover { color: var(--blanc); }

.footer__contact { margin: 0; padding: 0; list-style: none; }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #b1b1b1;
}
.footer__contact li + li { margin-top: 13px; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--blanc); }
.footer__contact svg { width: 14px; height: 14px; fill: #b1b1b1; flex: none; }

.footer__bas {
  margin-top: 20px;
  padding: 25px 10px 35px;
  border-top: 1px solid #2a2a2a;
  font-size: 13px;
  line-height: 1.5;
  color: #999;
  text-align: center;
}
.footer__bas a { color: var(--osmo); text-decoration: none; }

/* ---------- Pages légales --------------------------------------------- */

.header--plein,
.header--plein.is-scrolled { background: var(--noir-header); }

.legal {
  padding: calc(var(--header-h) + 60px) 0 80px;
}
.legal .container { max-width: 840px; }
.legal h1 {
  margin-bottom: 10px;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  color: var(--noir);
}
.legal__maj { margin-bottom: 40px; font-size: 14px; color: var(--texte-doux); }
.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 22px;
  color: var(--noir);
}
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal p + p,
.legal ul + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--noir); }

/* ---------- Retour en haut -------------------------------------------- */

.haut {
  position: fixed;
  right: 15px; bottom: 15px;
  z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 35px; height: 35px;
  background: #000;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.haut.visible { opacity: 1; visibility: visible; }
.haut svg { width: 14px; height: 14px; fill: var(--blanc); }

/* ---------- Apparition au défilement ---------------------------------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablette --------------------------------------------------- */

@media (max-width: 1024px) {
  .membres { grid-template-columns: repeat(2, 1fr); }
  .galerie img { height: 260px; }
}

/* ---------- Mobile ----------------------------------------------------- */

@media (max-width: 767px) {
  .legal { padding: calc(var(--header-h) + 30px) 0 60px; }
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 20px; }

  :root { --header-h: 90px; }

  .header__logo img { width: 70px; height: 70px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(10, 9, 9, .97);
    max-height: 0; overflow: hidden;
    transition: max-height .35s;
  }
  .nav.ouvert { max-height: 320px; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
  .nav a { padding: 12px 0; }
  .header.menu-ouvert { background: rgba(10, 9, 9, .97); }
  .header.menu-ouvert .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.menu-ouvert .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.menu-ouvert .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 670px; padding-bottom: 60px; background-position: center; }
  .hero h1 { font-size: 24px; }

  .titre { font-size: 32px; }
  .prestations .titre, .contact .titre { font-size: 34px; }
  .texte { font-size: 19px; line-height: 29px; }

  .galerie { grid-template-columns: 1fr; }
  .galerie img { height: 340px; }

  .avantages li { font-size: 22px; }
  .avantages svg { width: 28px; height: 28px; margin-top: 1px; }

  .prestations { padding: 70px 0; }
  .cartes { grid-template-columns: 1fr; gap: 30px; }
  .cartes + .cartes { margin-top: 30px; }
  .carte h3 { font-size: 26px; }
  .carte ul { width: 100%; }
  .carte li { padding: 8px 0; font-size: 16px; }
  .carte .points { margin: 0 8px; }

  .membres { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; margin-top: 40px; }
  .membre { padding-top: 25px; }
  .membre__contenu { padding: 10px 5px 25px; }
  .membre h3 { font-size: 19px; }
  .membre svg { width: 30px; height: 30px; }

  .bandeau { min-height: 300px; }
  .bandeau h2 { font-size: 30px; }

  .contact { padding: 70px 0 80px; }
  .form { grid-template-columns: 1fr; }

  .footer__cols { grid-template-columns: 1fr; gap: 16px; }
}
