/* FIX mots longs sur mobile */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

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

html,
body {
  width: 100%;
  overflow-x: hidden;
}
@media (max-width: 480px) {
  .title h1 {
    font-size: 26px;
    line-height: 1.3;
  }
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .main-header {
    padding: 15px 20px;
  }

  .Barbix-logo {
    height: 60px;
  }

  .main-container {
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
  }

  .title h1 {
    text-align: center;
    max-width: 100%;
    white-space: normal;
  }

  .title h5 {
    text-align: center;
  }

  .button-press {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .button-press button {
    width: 90%;
  }
}
@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
    padding: 60px 20px;
    gap: 40px;
  }

  .about-images {
    flex-direction: column;
    align-items: center;
  }

  .img-large img {
    width: 100%;
    height: auto;
  }

  .img-small-group {
    flex-direction: row;
  }

  .img-small-group img {
    width: 48%;
    height: auto;
  }

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

  .about-btn {
    margin: 0 auto;
  }
}
@media (max-width: 900px) {
  .services-cards {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
  }
}

/* HEADER */
.main-header {
  background-color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  z-index: 1000;
}

.Barbix-logo {
  height: 80px;
}

/* NAV */
a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(246, 245, 243, 0.954);
  transition: 0.2s ease;
}

a:hover {
  color: rgb(235, 173, 2);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* BUTTONS */
button {
  padding: 10px 20px;
  background: rgb(235, 173, 2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  color: rgb(12, 12, 11);
}
/* Cacher le bouton mobile sur desktop */
.mobile-only {
  display: none;
}

/* Afficher sur mobile */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
    margin-top: 20px;
  }

  .mobile-only button {
    width: 90%;
    padding: 18px;
    font-size: 18px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f7e27d, #cfa23f);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(247, 226, 125, 0.35);
    transition: 0.3s ease;
  }

  .mobile-only button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(247, 226, 125, 0.55);
  }
  .mobile-only button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* HERO SECTION */
.main-container {
  height: 800px;
  background-image: url("image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px; /* tu peux modifier */
}

/* Overlay sombre */
.main-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.45
  ); /* tu peux augmenter si tu veux plus sombre */
  z-index: 0;
}

/* Pour que le texte reste par-dessus */
.title,
.button-press {
  position: relative;
  z-index: 2;
}

.title h5 {
  color: rgb(235, 173, 2);
  font-size: 20px;
  margin: 0;
}

.title h1 {
  color: white;
  font-size: 55px;
  max-width: 600px;
  margin-top: 10px;
}

.button-press {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 100px;
  gap: 60px;
}

/* LEFT SIDE IMAGES */
.about-images {
  display: flex;
  gap: 20px;
  position: relative;
}

.about-images img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.img-large img {
  width: 300px;
  height: 380px;
  object-fit: cover;
}

.img-small-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.img-small-group img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* RIGHT TEXT CONTENT */
.about-content {
  max-width: 500px;
}

.about-content h5 {
  color: #c29c47;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.about-content h2 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* Highlight box */
.about-box {
  background: #f8f6f2;
  padding: 20px;
  border-left: 4px solid #c29c47;
  font-size: 15px;
  color: #444;
  margin-bottom: 25px;
  border-radius: 4px;
}

/* BUTTON */
.about-btn {
  background: #c29c47;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.about-btn:hover {
  background: #000;
  color: #fff;
}

/* SECTION */
.services-section {
  background: #131416;
  padding: 80px 0;
  color: #fff;
  padding: 60px 0 20px 0; /* réduit fortement le bas */
}

/* CENTER TITLES */
.services-header {
  text-align: center;
}

.services-header h5 {
  color: #c9a34a;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 5px;
}

.services-header h2 {
  font-size: 38px;
  margin-bottom: 40px;
}

/* CENTER CARDS */
.services-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

/* CARDS */
.service-card {
  background: #1b1c1f;
  padding: 30px;
  width: 260px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 0.3s ease;
}

.service-card:hover {
  border: 1px solid #c9a34a;
}

.service-icon {
  width: 55px;
  margin-bottom: 20px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(64%) saturate(657%)
    hue-rotate(1deg) brightness(94%) contrast(90%);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.service-card p {
  font-size: 14px;
  color: rgb(190, 190, 190);
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  text-decoration: none;
  color: #c9a34a;
  font-weight: 600;
  font-size: 13px;
}

/* SECTION */
.portfolio-section {
  background: #131416;
  padding: 40px 100px 80px 100px; /* petit haut, normal bas */
  color: #fff;
}

/* TITLES */
.portfolio-header {
  text-align: center;
  margin-bottom: 50px;
}

.portfolio-header h5 {
  color: #c9a34a;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 5px;
  padding: 0;
}
@media (max-width: 768px) {
  .portfolio-header {
    padding: 0 20px;
  }
}

.portfolio-header h2 {
  font-size: 38px;
  font-weight: 700;
}

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

/* ITEM */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.portfolio-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* HOVER OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s ease;
}

.overlay span {
  color: #c9a34a;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* HOVER EFFECTS */
.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

/* MOBILE GRID */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   POPUP OVERLAY – LUXE NOIR & OR
   ============================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.85), rgba(5, 0, 8, 0.95));
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==============================
   POPUP CARD
   ============================== */

.popup-pro {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 34px 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, #0d0d0d, #1a0f0f);
  border: 1px solid rgba(255, 215, 100, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9),
    inset 0 0 30px rgba(255, 215, 100, 0.08);
  color: #f5f5f5;
  animation: luxuryIn 0.4s ease;
  box-sizing: border-box;
}

@keyframes luxuryIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ==============================
   TITLES
   ============================== */

.popup-pro h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #f7e27d, #cfa23f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popup-pro p {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 215, 160, 0.85);
  margin-bottom: 24px;
}

/* ==============================
   FORM FIELDS
   ============================== */

.field {
  position: relative;
  margin-bottom: 14px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
  color: rgba(255, 215, 160, 0.85);
}

/* INPUTS & SELECTS */
.field input,
.field select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 215, 100, 0.25);
  color: #fdf6e3;
  font-size: 14px;
  outline: none;
  transition: 0.25s;
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  overflow: hidden;
  background-clip: padding-box;
}

.field input::placeholder {
  color: rgba(255, 215, 160, 0.45);
}

.field input:focus,
.field select:focus {
  border-color: #f7e27d;
  box-shadow: 0 0 0 3px rgba(247, 226, 125, 0.15);
}

/* SELECT SPECIFIC */
.field select {
  cursor: pointer;
  padding-right: 48px;
  line-height: 1.2;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}

/* CUSTOM GOLD ARROW */
.field::after {
  content: "▾";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #f7e27d;
  font-size: 18px;
  pointer-events: none;
}

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

.popup-btn-pro {
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  border-radius: 22px;
  border: none;
  background: linear-gradient(90deg, #f7e27d, #cfa23f);
  color: #1a0f0f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.popup-btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(247, 226, 125, 0.45);
}

/* ==============================
   CLOSE BUTTON
   ============================== */

.popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: rgba(247, 226, 125, 0.75);
  cursor: pointer;
  transition: 0.3s;
}

.popup-close:hover {
  color: #f7e27d;
  transform: rotate(90deg);
}

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

@media (max-width: 480px) {
  .popup-pro {
    padding: 28px 22px;
    border-radius: 22px;
  }
}

/* ==============================
   HAMBURGER MENU – MOBILE
   ============================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 10001;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: linear-gradient(90deg, #f7e27d, #cfa23f);
  border-radius: 3px;
  transition: 0.3s;
}

/* ==============================
   NAV MOBILE STYLE
   ============================== */

.nav-menu {
  display: flex;
  gap: 30px;
}

/* MOBILE */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: linear-gradient(180deg, #0d0d0d, #1a0f0f);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    transition: 0.4s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
    z-index: 10000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 20px;
    color: #f7e27d;
    text-decoration: none;
    font-weight: 600;
  }
}

/* ==============================
   HAMBURGER ANIMATION
   ============================== */

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/* ==============================
   MOBILE BOOKING BUTTON
   ============================== */

.mobile-booking-btn {
  margin-top: 30px;
  padding: 16px 42px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #f7e27d, #cfa23f);
  color: #1a0f0f;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(247, 226, 125, 0.35);
  transition: 0.3s ease;
}

.mobile-booking-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(247, 226, 125, 0.55);
}

/* FOOTER */
.main-footer {
  background: #131416;
  color: #f5f5f5;
  padding: 60px 100px 20px 100px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo p {
  max-width: 250px;
  color: rgb(200, 180, 120);
  font-size: 14px;
  line-height: 1.5;
}

.footer-nav,
.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  color: #c9a34a;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.footer-nav a,
.footer-contact p {
  color: #f5f5f5;
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-nav a:hover {
  color: #f7e27d;
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
}

.footer-social .social-icons a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(72%) sepia(64%) saturate(657%) hue-rotate(1deg)
    brightness(94%) contrast(90%);
  transition: 0.3s;
}

.footer-social .social-icons a img:hover {
  filter: brightness(0) invert(98%) sepia(78%) saturate(500%) hue-rotate(1deg)
    brightness(100%) contrast(100%);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255, 215, 160, 0.7);
  border-top: 1px solid rgba(255, 215, 100, 0.2);
  padding-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }
  .footer-logo p {
    max-width: 100%;
  }
  .footer-social .social-icons {
    justify-content: start;
  }
}
@media (max-width: 900px) {
  .main-footer {
    padding: 50px 20px 20px;
    text-align: center;
  }

  .footer-container {
    align-items: center;
  }

  .footer-nav,
  .footer-contact,
  .footer-social {
    align-items: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }
}
