/* =====================================================
   HT42 BARBER — PREMIUM WEBSITE
===================================================== */

/* ================================
   VARIABLES
================================ */

:root {
  --gold: #d4af37;
  --gold-light: #f2d675;
  --black: #080808;
  --dark: #111;
  --card: #181818;
  --white: #ffffff;
  --gray: #bfbfbf;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --transition: 0.35s ease;
}

/* ================================
   RESET
================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Poppins, sans-serif;
  background: var(--black);
  color: white;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

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

section {
  padding: 120px 8%;
  opacity: 0;
  transform: translateY(50px);
  transition: 1s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
}

h2 {
  font-size: 52px;
  text-align: center;
  margin-bottom: 15px;
}

.section-text {
  text-align: center;
  color: var(--gray);
  margin-bottom: 70px;
  font-size: 17px;
}

/* ================================
   HEADER
================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  transition: 0.4s;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ================================
   BRAND & LOGO
================================ */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 10px;
}

.logo {
  font-size: 36px;
  font-family: "Cormorant Garamond", serif;
  font-weight: bold;
}

.logo span {
  color: var(--gold);
}

/* ================================
   NAVIGATION
================================ */

nav {
  display: flex;
  gap: 45px;
}

nav a {
  position: relative;
  font-size: 15px;
  transition: 0.3s;
}

nav a:hover {
  color: var(--gold);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.35s;
}

nav a:hover::after {
  width: 100%;
}

/* ================================
   HEADER BUTTON
================================ */

.btn-header {
  padding: 13px 28px;
  border: 2px solid var(--gold);
  border-radius: 40px;
  transition: 0.3s;
}

.btn-header:hover {
  background: var(--gold);
  color: black;
}

/* ================================
   BURGER
================================ */

#burger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

/* ================================
   HERO
================================ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Décoration : grandes ciseaux discrètes sur la partie noire du hero */
.hero-deco {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  z-index: 1;
  font-size: 220px;
  color: rgba(212, 175, 55, 0.08);
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 1;
}

.hero:hover .hero-deco {
  transform: translateY(-50%) rotate(-8deg) scale(1.02);
}



.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 12s ease infinite alternate;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.78));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.subtitle {
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 14px;
}

.hero h1 {
  font-size: 82px;
  line-height: 0.95;
  margin-bottom: 25px;
}

.hero h1 span {
  color: var(--gold);
}

.description {
  color: #ddd;
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 580px;
}

/* ================================
   HERO BUTTONS
================================ */

.hero-buttons {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFade 0.9s ease forwards;
  animation-delay: 0.9s;
}

.btn {
  padding: 16px 38px;
  border-radius: 50px;
  transition: 0.35s;
  font-weight: 600;
}

.gold {
  background: var(--gold);
  color: black;
}

.gold:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.45);
}

.white {
  border: 2px solid white;
}

.white:hover {
  background: white;
  color: black;
}

/* ================================
   HERO INFO
================================ */

.hero-info {
  display: flex;
  gap: 45px;
  margin-top: 45px;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFade 0.9s ease forwards;
  animation-delay: 1.1s;
}

.hero-info div {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--gold);
  padding-left: 15px;
}

.hero-info strong {
  font-size: 24px;
  color: white;
}

.hero-info span {
  font-size: 13px;
  color: #aaa;
  margin-top: 5px;
}


/* ================================
   HERO ANIMATIONS
================================ */

.hero-content .subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFade 0.8s ease forwards;
  animation-delay: 0.3s;
}

.hero-content h1 {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFade 0.9s ease forwards;
  animation-delay: 0.5s;
}

.hero-content .description {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFade 0.9s ease forwards;
  animation-delay: 0.7s;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* ================================
   SERVICES
================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.card {
  background: var(--card);
  padding: 45px 35px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  background: rgba(212, 175, 55, 0.15);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: 0.5s;
}

.card:hover::before {
  width: 500px;
  height: 500px;
}

.card:hover {
  transform: translateY(-12px);
}

.card i {
  position: relative;
  font-size: 45px;
  color: var(--gold);
  margin-bottom: 25px;
}

.card h3 {
  position: relative;
  font-size: 32px;
  margin-bottom: 15px;
}

.card p {
  position: relative;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 25px;
}

.card span {
  position: relative;
  font-size: 28px;
  color: var(--gold);
  font-weight: bold;
}

/* ================================
   DARK SECTION
================================ */

.dark {
  background: #050505;
}

/* ================================
   GALERIE
================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
  height: 320px;
  cursor: pointer;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

.gallery-btn {
  display: inline-flex;
  margin-top: 50px;
  align-items: center;
  gap: 10px;
}

/* ================================
   FEATURES
================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature {
  background: var(--card);
  padding: 40px 30px;
  text-align: center;
  border-radius: 20px;
  transition: 0.35s;
}

.feature:hover {
  transform: translateY(-10px);
}

.feature i {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 30px;
  margin-bottom: 15px;
}

.feature p {
  color: var(--gray);
  line-height: 1.7;
}

/* ================================
   GOOGLE REVIEW
================================ */

.google-review {
  max-width: 650px;
  margin: auto;
  padding: 60px 40px;
  background: linear-gradient(145deg, #181818, #0b0b0b);
  border-radius: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.google-logo {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.stars {
  font-size: 35px;
  letter-spacing: 8px;
  margin-bottom: 20px;
}

.google-review h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 65px;
  color: var(--gold);
  margin-bottom: 15px;
}

.google-review p {
  color: #bbb;
  font-size: 18px;
  margin-bottom: 35px;
}

.google-review strong {
  color: white;
}

/* ================================
   CONTACT
================================ */

.contact-section {
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.info-box {
  background: var(--card);
  padding: 35px;
  border-radius: 20px;
  transition: 0.35s;
}

.info-box:hover {
  transform: translateY(-8px);
}

.info-box i {
  font-size: 35px;
  color: var(--gold);
  margin-bottom: 20px;
}

.info-box h3 {
  font-size: 30px;
  margin-bottom: 15px;
}

.info-box p {
  color: #bbb;
  line-height: 1.7;
}

#status {
  display: block;
  margin-top: 15px;
  color: var(--gold);
  font-weight: bold;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

/* ================================
   GOOGLE MAPS — un seul bloc
================================ */

.map {
  margin-top: 50px;
  width: 100%;
  height: 450px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-btn {
  display: inline-flex;
  margin-top: 30px;
  align-items: center;
  gap: 10px;
}

.map-btn:hover {
  transform: translateY(-5px);
}

/* ================================
   FOOTER — un seul bloc fusionné
================================ */

footer {
  padding: 80px 8% 40px;
  background: #050505;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 50px;
  color: var(--gold);
  margin-bottom: 15px;
}

footer p {
  color: #aaa;
  margin-top: 10px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 35px 0;
}

.socials a {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 22px;
  transition: 0.35s;
}

.socials a:hover {
  background: var(--gold);
  color: black;
  transform: translateY(-5px);
}

.socials i {
  color: white;
}

.socials a:hover i {
  color: black;
}

.footer-info {
  margin: 30px 0;
}

.footer-info p {
  margin: 10px;
}

.copyright {
  margin-top: 35px;
  font-size: 14px;
}

/* ================================
   WHATSAPP FLOTTANT
================================ */

.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #25d366;
  color: white;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
}

.whatsapp:hover {
  transform: scale(1.1);
}

/* ================================
   BOUTON RETOUR EN HAUT
================================ */

#top {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  cursor: pointer;
  display: none;
  font-size: 20px;
}

#top.active {
  display: block;
}

/* ================================
   LIGHTBOX
================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
}

/* ================================
   LOADER
================================ */

.loader {
  position: fixed;
  inset: 0;
  background: #050505;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: hideLoader 1s forwards;
  animation-delay: 1.5s;
}

.loader-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 70px;
  color: white;
  animation: pulse 1.5s infinite;
}

.loader-logo span {
  color: var(--gold);
}

.loader-logo p {
  font-family: Poppins, sans-serif;
  font-size: 15px;
  letter-spacing: 8px;
  text-align: center;
  color: #aaa;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

@keyframes pulse {
  50% {
    transform: scale(1.05);
  }
}

@keyframes hideLoader {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ================================
   RESPONSIVE TABLETTE
================================ */

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 65px;
  }

  .hero-deco {
    font-size: 160px;
    right: 4%;
  }

  .hero-side svg {
    width: 160px;
  }

  .cards,
  .features,
  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    gap: 25px;
  }
}

/* ================================
   RESPONSIVE MOBILE
================================ */

@media (max-width: 768px) {
  section {
    padding: 90px 6%;
  }

  h2 {
    font-size: 40px;
  }

  .header {
    padding: 20px 6%;
  }

  .logo {
    font-size: 30px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand .logo {
    font-size: 28px;
  }

  .btn-header {
    display: none;
  }

  #burger {
    display: block;
  }

  nav {
    position: absolute;
    top: 80px;
    right: 6%;
    width: 220px;
    background: #0c0c0c;
    padding: 25px;
    border-radius: 15px;
    display: none;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

  nav.active {
    display: flex;
    animation: menu 0.3s ease;
  }

  @keyframes menu {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero {
    height: 90vh;
  }

  .hero-content {
    text-align: center;
  }

  .subtitle {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .description {
    font-size: 16px;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }


  @media (max-width: 768px) {
    .hero-deco {
      display: none;
    }
  }

  .hero-info {
    display: none;
  }

  .btn {
    width: 220px;
    text-align: center;
  }

  .cards,
  .features,
  .reviews,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 280px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ================================
   PETITS TELEPHONES
================================ */

@media (max-width: 400px) {
  .hero h1 {
    font-size: 40px;
  }
  .logo {
    font-size: 26px;
  }
}

/* Aperçu intégré dans les écrans du portfolio HSC */
.portfolio-preview .hero-content {
  transform: translateY(52px);
}

@media (max-width: 768px) {
  .portfolio-preview .hero-content {
    padding-inline: 10px;
    transform: translateY(30px);
  }
}
