/*
Theme Name: Anita Bellotto Child
Theme URI: https://anitabellotto.fr
Description: Thème enfant pour Anita Bellotto, peintre. Basé sur Hello Elementor.
Author: Anita Bellotto
Template: hello-elementor
Version: 1.0.0
Text Domain: anita-bellotto-child
*/

/* ═══════════════════════════════════════
   VARIABLES
═══════════════════════════════════════ */
:root {
  --white:  #FAFAF8;
  --off:    #F2F1EE;
  --light:  #E8E6E1;
  --mid:    #B0ADA6;
  --dark:   #3A3935;
  --black:  #1A1A18;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white) !important;
  color: var(--black);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

/* Supprimer styles Hello Elementor par défaut */
.site-header,
.main-header-bar,
.ast-above-header,
.site-footer,
#colophon {
  display: none !important;
}

.entry-content,
.ast-container,
#primary,
#content,
.site-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page .entry-header {
  display: none !important;
}

/* ═══════════════════════════════════════
   COULEUR ACCENTUATION WORDPRESS
═══════════════════════════════════════ */
:root {
  --wp--preset--color--primary: #1A1A18 !important;
  --wp--preset--color--secondary: #B0ADA6 !important;
}

* {
  accent-color: #1A1A18;
}

a {
  color: var(--black);
}

a:hover {
  color: var(--mid);
}

/* Supprimer le rose WordPress sur les boutons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  background-color: transparent !important;
  border-color: transparent !important;
  color: var(--black) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ═══════════════════════════════════════
   HEADER — TRANSPARENT (page accueil)
═══════════════════════════════════════ */
.ab-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
  background: transparent;
}

/* Logo — blanc par défaut (sur hero) */
.ab-header .ab-logo {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .4s;
  z-index: 2;
  color: #FAFAF8;
}

/* Nav — blanc par défaut (sur hero) */
.ab-header .ab-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s;
  position: relative;
  color: rgba(250,250,248,.75);
}

.ab-header .ab-nav a:hover {
  color: #FAFAF8;
}

/* Burger — blanc par défaut (sur hero) */
.ab-header .ab-burger span {
  background: #FAFAF8;
}

/* ═══════════════════════════════════════
   HEADER — SOLID (pages intérieures + scroll)
═══════════════════════════════════════ */
.ab-header.solid,
.ab-header.scrolled {
  background: rgba(250,250,248,.94) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--light) !important;
  padding: 16px 60px !important;
}

/* Logo — noir sur fond blanc */
.ab-header.solid .ab-logo,
.ab-header.scrolled .ab-logo {
  color: var(--black) !important;
}

/* Nav — gris sur fond blanc */
.ab-header.solid .ab-nav a,
.ab-header.scrolled .ab-nav a {
  color: var(--mid) !important;
}

.ab-header.solid .ab-nav a:hover,
.ab-header.scrolled .ab-nav a:hover,
.ab-header.solid .ab-nav li.current-menu-item > a,
.ab-header.scrolled .ab-nav li.current-menu-item > a {
  color: var(--black) !important;
}

/* Burger — noir sur fond blanc */
.ab-header.solid .ab-burger span,
.ab-header.scrolled .ab-burger span {
  background: var(--black) !important;
}

/* ═══════════════════════════════════════
   NAV — UNDERLINE EFFECT
═══════════════════════════════════════ */
.ab-nav {
  z-index: 2;
}

.ab-nav ul {
  display: flex;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ab-nav ul li {
  position: relative;
}

.ab-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.ab-nav a:hover::after,
.ab-nav li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════
   SOUS-MENU DÉROULANT
═══════════════════════════════════════ */
.ab-nav ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: rgba(250,250,248,.97) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--light);
  min-width: 210px;
  padding: 12px 0;
  z-index: 9999;
}

.ab-nav ul li:hover > ul {
  display: block;
}

.ab-nav ul ul li a {
  display: block !important;
  padding: 10px 24px !important;
  font-size: 11px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: var(--mid) !important;
  transition: color .2s, padding-left .2s !important;
  white-space: nowrap;
}

.ab-nav ul ul li a:hover {
  color: var(--black) !important;
  padding-left: 32px !important;
}

.ab-nav ul ul li a::after {
  display: none !important;
}

/* ═══════════════════════════════════════
   BURGER MENU MOBILE
═══════════════════════════════════════ */
.ab-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10000;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.ab-burger span {
  display: block;
  width: 24px;
  height: 1px;
  transition: background .4s, transform .3s, opacity .3s;
}

/* Burger ouvert — toujours noir */
.ab-burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--black) !important;
}

.ab-burger.open span:nth-child(2) {
  opacity: 0;
}

.ab-burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--black) !important;
}

/* ═══════════════════════════════════════
   MENU MOBILE OVERLAY
═══════════════════════════════════════ */
.ab-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250,250,248,.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity .3s;
}

.ab-nav-mobile.open {
  display: flex;
  opacity: 1;
}

.ab-nav-mobile ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.ab-nav-mobile a {
  font-family: 'EB Garamond', serif !important;
  font-size: 36px !important;
  font-style: italic !important;
  color: var(--black) !important;
  text-decoration: none !important;
  transition: color .3s;
}

.ab-nav-mobile a:hover {
  color: var(--mid) !important;
}

/* Sous-menu mobile */
.ab-nav-mobile ul ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.ab-nav-mobile ul ul a {
  font-size: 20px !important;
  color: var(--mid) !important;
}

.ab-nav-mobile ul ul a:hover {
  color: var(--black) !important;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.ab-footer {
  background: var(--black);
  padding: 56px 60px 36px;
  font-family: 'Outfit', sans-serif;
}

.ab-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,250,248,.08);
}

.ab-footer-brand {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}

.ab-footer-sub {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,250,248,.3);
}

.ab-footer-nav-wrap ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}

.ab-footer-nav-wrap a {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,250,248,.4);
  text-decoration: none;
  transition: color .3s;
}

.ab-footer-nav-wrap a:hover {
  color: rgba(250,250,248,.85);
}

.ab-footer-social {
  display: flex;
  gap: 28px;
  align-items: center;
}

.ab-footer-social a {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,250,248,.25);
  text-decoration: none;
  transition: color .3s;
}

.ab-footer-social a:hover {
  color: rgba(250,250,248,.7);
}

.ab-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ab-footer-copy {
  font-size: 12px;
  color: rgba(250,250,248,.2);
  letter-spacing: .06em;
}

.ab-footer-legal a {
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(250,250,248,.2);
  text-decoration: none;
  transition: color .3s;
}

.ab-footer-legal a:hover {
  color: rgba(250,250,248,.5);
}

/* ═══════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--light); }

/* ═══════════════════════════════════════
   RESPONSIVE TABLETTE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .ab-header {
    padding: 20px 40px;
  }
  .ab-header.solid,
  .ab-header.scrolled {
    padding: 14px 40px !important;
  }
  .ab-nav ul {
    gap: 28px;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE MOBILE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .ab-header {
    padding: 18px 24px;
  }

  .ab-header.solid,
  .ab-header.scrolled {
    padding: 14px 24px !important;
  }

  .ab-nav {
    display: none;
  }

  .ab-burger {
    display: flex;
  }

  .ab-footer {
    padding: 48px 24px 28px;
  }

  .ab-footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .ab-footer-nav-wrap ul {
    gap: 20px;
  }

  .ab-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .ab-nav-mobile a {
    font-size: 28px !important;
  }
}
