/* =======================
   ROOT VARIABLES
======================= */
:root {
  --red: #800020;
  --white: #FFFFFF;
  --gray-100: #F7F7F7;
  --dark-gray: #757575;
  --light-black: #1E1E1E;
  --black: #000000;

  --color-primary: var(--red);

  --font-Garamond: "Cormorant Garamond";
  --font-sans: "Open Sans";

  --fs-h1: clamp(2.5rem, 2.0122rem + 1.2195vw, 3rem);
  --fs-h2: clamp(2.25rem, 1.7622rem + 1.2195vw, 2.75rem);
  --fs-h3: clamp(1.5rem, 1.2561rem + 0.6098vw, 1.75rem);
  --fs-h4: clamp(1.125rem, 0.7591rem + 0.9146vw, 1.5rem);
  --fs-texte18: clamp(1.125rem, 0.8811rem + 0.6098vw, 1.375rem);
  --fs-texte16: clamp(1rem, 0.878rem + 0.3049vw, 1.125rem);
  --fs-texte14: clamp(0.875rem, 0.753rem + 0.3049vw, 1rem);
  --fs-texte12: clamp(0.75rem, 0.628rem + 0.3049vw, 0.875rem);

  --dropshadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
  --innershadowbtn: inset 4px 4px 4px rgba(0, 0, 0, 0.25);
  --innershadowsection: inset 0px 20px 20px rgba(0, 0, 0, 0.25), inset 0px -20px 20px rgba(0, 0, 0, 0.25);
}

/* =======================
   TYPOGRAPHIE & UTILS
======================= */
body {
  font-family: var(--font-sans) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-Garamond) !important;
}
.nav, .nav-link {
  font-family: var(--font-sans) !important;
  font-weight: 400 !important;
}

body.scrolled.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.bg-red {
  background-color: var(--red);
}

.bg-light-black {
  background-color: var(--light-black);
}

.innershadowsection {
  box-shadow: var(--innershadowsection);
}

.px-6 {
  padding-left: 5rem !important;
  padding-right: 5rem !important;
}

/* =======================
   RESPONSIVE FONT UTILS
======================= */
h1 {
  font-size: var(--fs-h1) !important; 
  font-weight: 500;
}

h2 {
  font-size: var(--fs-h2) !important;
  font-weight: 500;
}

h3 {
  font-size: var(--fs-h3) !important;
  font-weight: 400;
}

h4 {
  font-size: var(--fs-h3) !important;
  font-weight: 500;
}

h5 {
  font-size: var(--fs-h4) !important;
}

p, li {
  font-size: var(--fs-texte14) !important;
  font-weight: 300;
}

.fs-18 {
  font-size: var(--fs-texte18);
}
.fs-16 {
  font-size: var(--fs-texte16);
}
.fs-14 {
  font-size: var(--fs-texte14);
}
.fs-12 {
  font-size: var(--fs-texte12);
}

/* =======================
   HEADER / NAVIGATION
======================= */
#header {
  background-color: transparent;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
  z-index: 999;
}

body.scrolled #header {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: var(--dropshadow);
}

body.mobile-nav-active {
  overflow: hidden;
  height: 100vh;
}

.navmenu {
  display: none;
}

body.mobile-nav-active .navmenu {
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  width: calc(100% - 2rem); /* réduit la largeur pour respecter la marge */
  height: 70vh;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  margin: 2rem 1rem 0;
  z-index: 999;
  border-radius: 5px;
  animation: fadeInDown 0.5s ease forwards;
}


body.mobile-nav-active .navmenu > ul:first-of-type {
  flex-direction: column !important;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.mobile-nav-toggle {
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
}

#navmenu a {
  color: var(--white);
  transition: color 0.5s ease;
}

#navmenu a.active {
  color: var(--color-primary);
  font-weight: 500 !important;
}

.header__logo-link {
  fill: var(--white);
}

.svg-icon {
  width: 80px;
  height: 80px;
}
.svg-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  fill: currentColor;
}

.hidden {
  display: none !important;
}

@media (min-width: 992px) {
  .hidden {
    display: block !important;
  }

  .navmenu {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
}

/* =======================
   HERO
======================= */
.hero {
  max-height: 100vh;
  height: 100vh;
}

.hero-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.hero-container * {
  pointer-events: auto;
}

#hero .container {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.start-25 {
  left: 50% !important;
  width: 100%;
}

@media (min-width: 992px) {
  .start-25 {
    left: 25% !important;
    width: 50%;
  }
}

.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInHero 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   SLIDER
======================= */
.swiper-hero,
.swiper-slide,
.swiper-slide-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 100vh;
}

.swiper-slide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* =======================
   CTA / BOUTONS
======================= */
.btn-custom-primary {
  background-color: var(--color-primary);
  box-shadow: var(--dropshadow);
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

/* =======================
   GALERIE
======================= */
.w-md-75 {
  width: 100% !important;
}
@media (min-width: 768px) {
  .w-md-75 {
    width: 75% !important;
  }
}

.preview-link img {
  transition: transform 0.5s ease;
}

/* =======================
   BOUTONS DE FILTRES
======================= */
.filter-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--dropshadow);
  cursor: pointer;
  font-size: var(--fs-texte12);
}

.nav-item.filter-active .filter-btn {
  background-color: var(--dark-gray, #555);
  color: #fff;
  box-shadow: var(--innershadowbtn);
  cursor: default;
}

/* =======================
   CONTACT
======================= */
.form-select.border-bottom-only,
.form-control.border-bottom-only {
  border: none;
  border-bottom: 1px solid var(--dark-gray);
  border-radius: 0;
  background-color: transparent;
  color: var(--dark-gray);
}

.form-control.border-bottom-only::placeholder {
  color: var(--dark-gray);
}

.form-control:focus {
  border: none;
  box-shadow: none !important;
}

.form-control.border-bottom-only:focus,
.form-select.border-bottom-only:focus {
  color: var(--dark-gray);
}

.innershadowsectioncontact{
  box-shadow: inset 0px 20px 20px rgba(0, 0, 0, 0.25);
}

.mobile-italic {
  font-style: italic;
}

/* =======================
   FOOTER / LIENS
======================= */
.footer__bar-red {
  background-color: var(--red);
  padding-top: 100px;
}

.footer__icon {
  fill: var(--white);
}

.footer__icon .aux-reflets path {
  transition: fill 0.5s ease;
  fill: var(--white);
}

.link-hover {
  color: var(--white);
  transition: color 0.5s ease;
}

.link-hover i {
  color: var(--white);
  transition: color 0.5s ease;
}

/* =======================
   AUTRES
======================= */
#scroll-top {
  width: 45px;
  height: 45px;
  font-size: var(--fs-texte18); /* police personnalisée */
  background-color: transparent;
  z-index: 999;
  color: var(--white) !important;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Caché sans .active */
#scroll-top:not(.active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

section[id] {
  scroll-margin-top: 100px;
}

/* =======================
   HOVER EFFECTS DESKTOP ONLY
======================= */
@media (min-width: 992px) {
  #navmenu a:hover {
    color: var(--color-primary);
  }

  .header__logo-link:hover .aux-reflets path {
    transition: fill 0.5s ease;
    fill: var(--red);
  }

  .preview-link:hover img {
    transform: scale(1.05);
  }

  .filter-btn:hover {
    background-color: var(--dark-gray, #555);
    color: #fff;
    box-shadow: var(--innershadowbtn);
  }

  .footer__icon:hover .aux-reflets path {
    fill: var(--red);
  }

  .link-hover:hover {
    color: var(--color-primary);
  }

  .link-hover:hover i {
    color: var(--color-primary);
  }

  .btn-custom-primary:hover {
    box-shadow: var(--innershadowbtn);
  }
  
  .mobile-italic {
    font-style: normal;
  }
}