/* ===========================
   AtelierBaechler - Style clair, élégant & responsive
   Version : override des fonds foncés
   (Remplace ton fichier CSS par celui-ci)
   =========================== */

/* ---------------------------
   Palette (modifiables ici)
   --------------------------- */
:root{
  --bg-page: #FBF9F7;        /* fond général très clair (écru) */
  --surface: #FFFFFF;        /* surface blanche */
  --muted-surface: #F5F3F1;  /* surface secondaire */
  --border: #E9E6E0;         /* bordure légère */
  --text: #222222;           /* texte principal (très lisible) */
  --text-muted: #5a5a5a;     /* texte secondaire */
  --accent: #C8A97D;         /* beige-doré (accent principal) */
  --accent-strong: #D4AF37;  /* or chaud (hover/cta) */
  --shadow: rgba(34,34,34,0.06);
  --focus: rgba(200,169,125,0.28);
  --transition: 250ms cubic-bezier(.22,.9,.26,1);
}

/* ---------------------------
   Font-face (garde le tien)
   --------------------------- */
@font-face {
    font-family: "Aviano Sans";
    src: url("https://db.onlinewebfonts.com/t/62d5e5e6ae787eba5151a26a1dde5062.eot");
    src: url("https://db.onlinewebfonts.com/t/62d5e5e6ae787eba5151a26a1dde5062.eot?#iefix") format("embedded-opentype"),
         url("https://db.onlinewebfonts.com/t/62d5e5e6ae787eba5151a26a1dde5062.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/62d5e5e6ae787eba5151a26a1dde5062.woff") format("woff"),
         url("https://db.onlinewebfonts.com/t/62d5e5e6ae787eba5151a26a1dde5062.ttf") format("truetype"),
         url("https://db.onlinewebfonts.com/t/62d5e5e6ae787eba5151a26a1dde5062.svg#Aviano Sans W00 Regular") format("svg");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------
   Reset / Base
   --------------------------- */
html,body {
  height: 100%;
  background: var(--bg-page);
  color: var(--text);
  font-family: "Aviano Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Small helper utilities */
.visually-hidden{ position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* ---------------------------
   Headings
   --------------------------- */
h1,h2,h3,h4,h5,h6 {
  font-family: "Aviano Sans", serif;
  color: var(--text);
  margin: 0 0 0.6rem;
  line-height: 1.08;
  letter-spacing: 0.6px;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--text);
}

h2 {
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 700;
}

h3 {
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 700;
}

/* Keep the specific selectors you already had with new colors */
h1.h1-black, h1.not-found-title, h1.entry-title.main_title, h1.product_title.entry-title {
  color: var(--text) !important;
}

/* ---------------------------
   Links
   --------------------------- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}
a:hover, a:focus {
  color: var(--accent-strong);
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}
a:focus-visible {
  box-shadow: 0 0 0 4px var(--focus);
  border-radius: 6px;
}

/* ---------------------------
   Header / Navigation
   --------------------------- */
#main-header {
  background: var(--surface) !important; /* clair */
  border-bottom: 1px solid var(--border);
  -webkit-font-smoothing:antialiased;
}
#main-header #et-top-navigation { padding-left: 0 !important; }

#top-menu li a {
  color: var(--text) !important;
  font-size: 16px !important;
  display: inline-block;
  position: relative;
  padding: 8px 6px;
  transition: color var(--transition), transform var(--transition);
}
#top-menu li.current-menu-item > a { color: var(--accent-strong) !important; }

#top-menu li a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition), left var(--transition);
}
#top-menu li a:hover::after { width: 100%; left: 0; }
#top-menu li a:hover { color: var(--accent-strong) !important; transform: translateY(-2px); }

/* mobile icon color */
.mobile_menu_bar:before { color: var(--text) !important; }

/* ---------------------------
   Buttons (global)
   --------------------------- */
.button, .button-primary, .button-secondary, .see-more, .wpcf7-form .wpcf7-submit, .woocommerce-product-details__short-description a.small-button {
  font-family: inherit;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Primary - filled warm beige */
.button-primary, .wpcf7-form .wpcf7-submit, .woocommerce-product-details__short-description a.small-button {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 100%);
  color: var(--text);
  border: 2px solid var(--accent);
  box-shadow: 0 8px 20px var(--shadow);
}
.button-primary:hover, .wpcf7-form .wpcf7-submit:hover, .woocommerce-product-details__short-description a.small-button:hover {
  background: linear-gradient(180deg, var(--accent-strong) 0%, var(--accent) 100%);
  color: #fff;
  border-color: var(--accent-strong);
  transform: translateY(-3px);
}

/* Secondary - outline */
.button-secondary, .see-more {
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.button-secondary:hover, .see-more:hover {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

/* Tiny button styles for small-button kept */
.woocommerce-product-details__short-description a.small-button {
  border-radius: 6px;
  padding: 10px 18px;
  color: #fff !important;
  background: var(--accent);
  font-weight: 700;
}
.woocommerce-product-details__short-description a.small-button:hover {
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15) !important;
}

/* ---------------------------
   Forms (Contact Form 7)
   --------------------------- */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.wpcf7-form p { width: 100%; margin: 0; }
.wpcf7-form p label { font-size: 16px; color: var(--text); display:block; margin-bottom:6px; }
.wpcf7-form p label span { display:block; }

.wpcf7-form input.text,
.wpcf7-form input.title,
.wpcf7-form input[type=email],
.wpcf7-form input[type=password],
.wpcf7-form input[type=tel],
.wpcf7-form input[type=text],
.wpcf7-form select,
.wpcf7-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.wpcf7-form textarea { min-height: 120px; resize: vertical; }

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--focus);
}

/* "a-propos" form variant (kept shape but clear colors) */
.contact-form.a-propos .wpcf7-form p label { color: var(--text); }
.contact-form.a-propos .wpcf7-form .wpcf7-submit {
  display: inline-block;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: var(--surface);
  padding: 10px 18px;
  box-shadow: 0 6px 18px var(--shadow);
  font-weight: 800;
}
.contact-form.a-propos .wpcf7-form .wpcf7-submit:hover {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

/* make sure CF7 full-width button remains usable */
.wpcf7-form .wpcf7-submit[style], .wpcf7-form .wpcf7-submit { width: 100%; }

/* ---------------------------
   Triple-bloc (services/cards)
   --------------------------- */
.triple-bloc {
  background: linear-gradient(180deg, var(--surface) 0%, var(--muted-surface) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.triple-bloc .titre-triple-bloc { padding: 0 15px; }
.triple-bloc .text-triple-bloc { padding: 20px; }

.triple-bloc:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px var(--shadow);
}

/* subtle accent for any previously dark blocks */
.bg-light-grey { background-color: var(--muted-surface) !important; }
.bg-dark-grey  { background-color: var(--surface) !important; }

/* ---------------------------
   Product / WooCommerce adjustments
   (preserve selectors, change colors)
   --------------------------- */

/* Hide elements that were intentionally hidden */
.ec_product_addtocart_container, .ec_details_quantity, .ec_details_add_to_cart, .ec_details_final_price,
#et-top-navigation a.et-cart-info,
div.et_pb_module.et_pb_wc_add_to_cart, div.et_pb_module.et_pb_wc_tabs {
  display: none !important;
}

#main-content .container:before { display: none !important; }

/* Price styling - highlight with beige */
div.ec_price_container_type1 span.ec_price_type1 {
  color: var(--accent) !important;
  font-size: 16px !important;
  font-family: "Aviano Sans" !important;
}

/* product box */
.ec_product_type1 { border-radius: 10px !important; border: 1px solid var(--border); background: var(--surface); }

/* product title / summary */
h1.product_title.entry-title, .product h2.woocommerce-loop-product__title {
  color: var(--text) !important;
}
.product h2.woocommerce-loop-product__title { font-size: clamp(20px, 4vw, 30px) !important; }

/* summary price placements */
.product .entry-summary p.price span.woocommerce-Price-amount.amount { margin-bottom: 20px; display:block; color: var(--text-muted); }
.product .entry-summary p.price span.woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol { padding-right: 10px; }

/* small-button style already above: ensure contrast */
.woocommerce-product-details__short-description a.small-button {
  background: var(--accent);
  color: #fff !important;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
}

/* ---------------------------
   Footer
   --------------------------- */
#footer-widgets .footer-widget {
    display: flex;
    flex-direction: column;
    float: none;
}

#footer-widgets .footer-widget div {
    margin-bottom: 1%;
}
#footer-widgets .footer-widget div:first-child {
    margin-bottom: 2%;
}
#footer-widgets .et-social-icons {
    text-align: center;
    margin-top: 2%;
    float: none;
}
#footer-widgets ul.et-social-icons  li{
    text-align: center;
    margin: 0px 10px;
    padding: 0px;
}
#footer-bottom .et-social-icons{
    display: none;
}
#footer-bottom {
    padding-top: 0px !important;
}
#footer-bottom #footer-info {
    text-align: center;
    float: none;
}
#footer-bottom #footer-info p,
#footer-bottom #footer-info p a{
    color: white;
}


/* logo in footer */
img.logo-footer { margin:auto; max-width:45% !important; display:block; }

/* ---------------------------
   Misc / small helpers
   --------------------------- */
#left-area { display: contents !important; }

.ec_details_main_image { border: none !important; }

/* provide accessible focus states for interactive elements */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 8px 24px var(--focus);
  border-radius: 8px;
}

/* small responsive tweaks */
@media (max-width: 991px) {
  .triple-bloc { padding: 16px; }
  #top-menu li a { font-size: 15px !important; }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(22px, 7vw, 32px); }
  h2 { font-size: clamp(18px, 5.5vw, 26px); }
  .see-more, .button-primary, .wpcf7-form .wpcf7-submit { padding: 10px 14px; }
}
@media (max-width: 450px) {
  #logo { max-width: 220px; }
  .triple-bloc { padding: 12px; border-radius:10px; }
  .wpcf7-form .wpcf7-submit { height: auto; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===================================================
   OVERRIDE : neutraliser TOUS fonds foncés / inline dark
   ---------------------------------------------------
   -> Ce bloc force les sections/rows/modules qui ont
      un background noir/foncé à passer en clair.
   -> Placé à la fin pour être prioritaire (avec !important).
   =================================================== */

/* cible générique : toutes les sections ET builder classes contenant et_pb_section_ */
.et_pb_section, [class*="et_pb_section_"]{
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text) !important;
}

/* rows / columns / modules souvent utilisés par Divi/ET */
.et_pb_row, .et_pb_row_inner, .et_pb_column, .et_pb_module {
  background-color: transparent !important; /* éviter interférences */
  color: inherit !important;
}

/* remplacer les backgrounds foncés explicites sur les classes nommées */
.et_pb_section_dark, .dark-section, .section-dark, .section--dark {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

/* selectors spécifiques trouvés habituellement */
.et_pb_section_1.et_pb_section,
.et_pb_section_2.et_pb_section,
.et_pb_section_3.et_pb_section,
.et_pb_section_4.et_pb_section,
.et_pb_section_5.et_pb_section {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

/* override pour styles inline contenant hex noir/foncé ou rgb noir */
*[style*="#2a2a2a" i],
*[style*="#121212" i],
*[style*="#000000" i],
*[style*="#000" i],
*[style*="#111111" i],
*[style*="#474747" i],
*[style*="rgb(0,0,0" i],
*[style*="rgb(0, 0, 0" i],
*[style*="rgba(0,0,0" i],
*[style*="rgba(0, 0, 0" i] {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text) !important;
}

/* override pour backgrounds en gradient sombres via inline */
*[style*="linear-gradient" i] {
  /* si le gradient contient '0,0,0' il est probablement sombre : on neutralise */
  background-image: none !important;
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

/* si un module a une image de fond sombre, on garde l'image mais on met un overlay clair */
.et_pb_section .et_pb_row .et_pb_column[data-bg-dark="true"],
.et_pb_section[data-bg-dark="true"] {
  /* garde l'image mais ajoute un overlay clair */
  position: relative;
}
.et_pb_section .et_pb_row .et_pb_column[data-bg-dark="true"]::after,
.et_pb_section[data-bg-dark="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.92));
  pointer-events: none;
}

/* Si besoin, forcer le texte clair sur les rares blocs qui restaient sombres */
.et_pb_section * { color: var(--text) !important; }

/* Fin des overrides */
