/*
Theme Name: Themify Ultra Berg'Hotel Child
Description: A child theme of Themify Ultra
Template: themify-ultra
Author: itup (valentin.lecerf@it-up.tech)
Version:        1.0.0
*/

/* =========================================================
   1. VARIABLES GLOBALES
========================================================= */
:root {
  --color-primary: #D2AA5C;
  --color-primary-hover: #B88C3A;
  --color-primary-light: #E8D3A3;

  --color-bg: #FFFFFF;
  --color-bg-soft: #F8F5EF;
  --color-bg-alt: #F6F1E8;

  --color-text: #222222;
  --color-text-light: #6C675F;
  --color-heading: #1F1F1F;

  --color-border: #DDD6C8;
  --color-dark: #1F1F1F;
  --color-dark-soft: #3A3732;
  --color-white: #FFFFFF;

  --shadow-soft: 0 8px 24px rgba(31, 31, 31, 0.06);
  --shadow-hover: 0 12px 32px rgba(31, 31, 31, 0.10);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition-fast: all 0.25s ease;
  --transition-medium: all 0.35s ease;

  --container-text-width: 860px;
}

/* =========================================================
   2. IMPORT GOOGLE FONTS
========================================================= */
/* À laisser ici si ton setup l'accepte.
   Sinon importe-les via Themify / WordPress customizer */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* =========================================================
   3. BASE GLOBALE
========================================================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
p,
span,
li,
input,
textarea,
select,
button {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
}

p {
  margin: 0 0 1.2em;
  color: var(--color-text);
}

strong {
  font-weight: 600;
  color: var(--color-heading);
}

em {
  color: var(--color-text-light);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--color-primary-hover);
  text-decoration: none;
}

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* =========================================================
   4. TYPOGRAPHIE
========================================================= */
h1, h2, h3, h4, h5, h6,
.module-title,
.tb_text_wrap h1,
.tb_text_wrap h2,
.tb_text_wrap h3,
.tb_text_wrap h4,
.tb_text_wrap h5,
.tb_text_wrap h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1,
.tb_text_wrap h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  font-weight: 600;
}

h2,
.tb_text_wrap h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3,
.tb_text_wrap h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h4,
.tb_text_wrap h4 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

h5,
.tb_text_wrap h5 {
  font-size: 1.25rem;
}

h6,
.tb_text_wrap h6 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

body .text-gold,
body .gold-text {
  color: var(--color-primary) !important;
}

body .text-muted,
body .muted-text {
  color: var(--color-text-light) !important;
}

/* =========================================================
   5. MISE EN PAGE / SECTIONS
========================================================= */
body .section-soft,
body .bg-soft {
  background: var(--color-bg-soft);
}

body .section-alt,
body .bg-alt {
  background: var(--color-bg-alt);
}

body .section-dark,
body .bg-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

body .section-dark h1,
body .section-dark h2,
body .section-dark h3,
body .section-dark h4,
body .section-dark h5,
body .section-dark h6,
body .section-dark p,
body .section-dark li,
body .section-dark span,
body .bg-dark h1,
body .bg-dark h2,
body .bg-dark h3,
body .bg-dark h4,
body .bg-dark h5,
body .bg-dark h6,
body .bg-dark p,
body .bg-dark li,
body .bg-dark span {
  color: var(--color-white);
}

.themify_builder_content .module_row {
  position: relative;
}

.themify_builder_content .module_row.fullwidth .row_inner,
.themify_builder_content .module_row .row_inner {
  max-width: 1400px;
}

.themify_builder_content .module-text.text-center p,
.themify_builder_content .module-text.text-center .tb_text_wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container-text-width);
}

/* =========================================================
   6. HEADER / NAVIGATION
========================================================= */
#headerwrap {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 214, 200, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

#header {
  padding-top: 12px;
  padding-bottom: 12px;
}

#site-logo a,
#site-logo {
  color: var(--color-heading);
}

#site-logo img {
  max-height: 72px;
  width: auto;
}

#main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heading);
  transition: var(--transition-fast);
}

#main-nav a:hover,
#main-nav .current_page_item > a,
#main-nav .current-menu-item > a,
#main-nav .current_page_parent > a,
#main-nav .current-menu-parent > a {
  color: var(--color-primary);
}

#main-nav ul a {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: none;
}

.mobile_menu_active #headerwrap,
.mobile_menu_active.sidemenu-on #headerwrap {
  background: var(--color-white);
}

/* =========================================================
   7. HERO / TITRES DE SECTIONS
========================================================= */
.hero-overlay-dark,
.hero-luxury-overlay {
  position: relative;
}

.hero-overlay-dark::before,
.hero-luxury-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(31,31,31,0.58) 0%,
      rgba(31,31,31,0.38) 45%,
      rgba(31,31,31,0.22) 100%
    );
  z-index: 1;
}

.hero-overlay-dark > *,
.hero-luxury-overlay > * {
  position: relative;
  z-index: 2;
}

.hero-overlay-dark h1,
.hero-overlay-dark h2,
.hero-overlay-dark p,
.hero-luxury-overlay h1,
.hero-luxury-overlay h2,
.hero-luxury-overlay p {
  color: var(--color-white);
}

.subtitle-luxury,
.eyebrow-luxury {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 0 auto 24px;
}

.section-title-divider::before,
.section-title-divider::after {
  content: "";
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 100%);
}

.section-title-divider::after {
  background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
}

/* =========================================================
   8. BOUTONS
========================================================= */
button,
input[type="submit"],
input[type="reset"],
input[type="button"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
a.themify-btn,
.module-buttons .module-buttons-item a,
.module .more-link,
body .button,
body a.button {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  transition: var(--transition-fast);
  box-shadow: none;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
a.themify-btn:hover,
.module-buttons .module-buttons-item a:hover,
.module .more-link:hover,
body .button:hover,
body a.button:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline,
.btn-outline a,
body .outline-button,
body .outline-button a {
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary) !important;
}

.btn-outline:hover,
.btn-outline a:hover,
body .outline-button:hover,
body .outline-button a:hover {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.btn-dark,
.btn-dark a {
  background: var(--color-dark) !important;
  color: var(--color-white) !important;
  border-color: var(--color-dark) !important;
}

.btn-dark:hover,
.btn-dark a:hover {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

/* =========================================================
   9. FORMULAIRES
========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
body .ui input,
body .ui textarea,
body .ui select {
  width: 100%;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  transition: var(--transition-fast);
  box-shadow: none;
}

input::placeholder,
textarea::placeholder {
  color: #9A9388;
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(210, 170, 92, 0.16);
  background: var(--color-white);
  color: var(--color-text);
}

label,
.woocommerce form .form-row label {
  color: var(--color-heading);
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-block;
}

.section-dark input[type="text"],
.section-dark input[type="email"],
.section-dark input[type="tel"],
.section-dark input[type="password"],
.section-dark textarea,
.section-dark select {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.18);
}

.section-dark input::placeholder,
.section-dark textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.section-dark input:focus,
.section-dark textarea:focus,
.section-dark select:focus {
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* =========================================================
   10. BLOCS / CARTES / MODULES
========================================================= */
.card-luxury,
.themify_builder_content .module_box,
.themify_builder_content .ui.module-post,
.themify_builder_content .module.feature-box,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-medium);
  overflow: hidden;
}

.card-luxury:hover,
.themify_builder_content .module_box:hover,
.themify_builder_content .ui.module-post:hover,
.themify_builder_content .module.feature-box:hover,
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-luxury .module-title,
.themify_builder_content .module.feature-box .module-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--color-heading);
}

.card-luxury p,
.themify_builder_content .module.feature-box p,
.woocommerce ul.products li.product .price {
  color: var(--color-text-light);
}

/* =========================================================
   11. IMAGES / GALLERIES
========================================================= */
img,
.module-image img,
.loops-wrapper.grid4 .post-image img,
.loops-wrapper.grid3 .post-image img {
  border-radius: var(--radius-sm);
}

.image-luxury img,
.module-image.image-luxury img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.gallery-premium img {
  transition: var(--transition-medium);
}

.gallery-premium img:hover {
  transform: scale(1.015);
}

/* =========================================================
   12. TABLEAUX
========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

table th,
table td {
  border: 1px solid var(--color-border);
  padding: 14px 16px;
  text-align: left;
}

table th {
  background: var(--color-bg-soft);
  color: var(--color-heading);
  font-weight: 600;
}

/* =========================================================
   13. WOOCOMMERCE
========================================================= */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--color-primary);
  font-weight: 600;
}

.woocommerce .star-rating,
.woocommerce .star-rating::before {
  color: var(--color-primary);
}

.woocommerce span.onsale {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  min-height: auto;
  min-width: auto;
  line-height: 1;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--color-primary);
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.woocommerce-checkout #payment,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce form.checkout,
.woocommerce form.login,
.woocommerce form.register {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   14. FIL D'ARIANE / MÉTAS / PETITS TEXTES
========================================================= */
.breadcrumb,
.post-meta,
.module .post-date,
.module .post-category,
small,
.small {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.breadcrumb a,
.post-meta a {
  color: var(--color-text-light);
}

.breadcrumb a:hover,
.post-meta a:hover {
  color: var(--color-primary);
}

/* =========================================================
   15. FOOTER
========================================================= */
#footerwrap {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer,
#footer p,
#footer li,
#footer span,
#footer a {
  color: rgba(255, 255, 255, 0.85);
}

#footer a:hover {
  color: var(--color-primary);
}

#footer .widgettitle,
#footer h1,
#footer h2,
#footer h3,
#footer h4 {
  color: var(--color-white);
  font-family: 'Cormorant Garamond', serif;
}

.back-top a,
.footer-nav a {
  transition: var(--transition-fast);
}

/* =========================================================
   16. SÉPARATEURS / ORNEMENTS
========================================================= */
.luxury-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 30px;
}

.luxury-divider::before,
.luxury-divider::after {
  content: "";
  width: 110px;
  max-width: 20vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 100%);
}

.luxury-divider::after {
  background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
}

.luxury-divider .star,
.luxury-divider span {
  color: var(--color-primary);
  font-size: 14px;
  letter-spacing: 6px;
}

/* =========================================================
   17. UTILITAIRES
========================================================= */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.max-text {
  max-width: var(--container-text-width);
  margin-left: auto;
  margin-right: auto;
}

.rounded-soft {
  border-radius: var(--radius-md);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.border-gold {
  border-color: var(--color-primary) !important;
}

.bg-gold {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.bg-ivory {
  background: var(--color-bg-soft) !important;
}

.bg-white {
  background: var(--color-white) !important;
}

.bg-anthracite {
  background: var(--color-dark) !important;
  color: var(--color-white) !important;
}

/* =========================================================
   18. ACCESSIBILITÉ / FOCUS
========================================================= */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =========================================================
   19. RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  #main-nav a {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .themify_builder_content .module_row.fullwidth .row_inner,
  .themify_builder_content .module_row .row_inner {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  #header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #site-logo img {
    max-height: 56px;
  }

  button,
  input[type="submit"],
  input[type="reset"],
  input[type="button"],
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  a.themify-btn,
  .module-buttons .module-buttons-item a,
  .module .more-link,
  body .button,
  body a.button {
    width: auto;
    padding: 13px 22px;
    font-size: 13px;
  }

  .luxury-divider::before,
  .luxury-divider::after,
  .section-title-divider::before,
  .section-title-divider::after {
    width: 48px;
  }
}

@media (max-width: 480px) {
  h1,
  .tb_text_wrap h1 {
    line-height: 1.08;
  }

  h2,
  .tb_text_wrap h2 {
    line-height: 1.12;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  input[type="number"],
  input[type="date"],
  textarea,
  select {
    padding: 13px 14px;
  }
}