/*
Theme Name:   B&O Art Agency Child
Template:     hello-elementor
Description:  Child theme for B&O Art Agency — built on Hello Elementor
Version:      1.0.0
Author:       B&O Art Agency
*/

/* ======================================================
   1. GOOGLE FONTS
   ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap');

/* ======================================================
   2. DESIGN TOKENS
   ====================================================== */
:root {
  /* Palette */
  --bg:          #F5F4F1;
  --bg-dark:     #2E4A3C;
  --accent:      #2E4A3C;
  --accent-warm: #C8A96E;
  --text:        #1A1917;
  --text-mid:    #5C574F;
  --text-light:  #8C8680;
  --border:      rgba(26,25,23,.12);
  --border-warm: rgba(200,169,110,.35);

  /* Typography */
  --font-serif:  'Cormorant Garant', Georgia, serif;
  --font-sans:   'Raleway', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container:   min(1180px, 92vw);

  /* Transitions */
  --ease:        cubic-bezier(.25,.46,.45,.94);
}

/* ======================================================
   3. GLOBAL RESET & BASE
   ====================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ======================================================
   4. TYPOGRAPHY SCALE
   ====================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

/* Paragraphes : seul l'espacement est défini ici, pour que les polices/couleurs
   réglées dans Elementor s'appliquent (modif. 29/09/2026) */
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ======================================================
   5. UTILITY CLASSES
   ====================================================== */
.bo-container {
  width: var(--container);
  margin-inline: auto;
}

.bo-section {
  padding-block: var(--section-pad);
}

.bo-section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.bo-section--dark p {
  color: rgba(255,255,255,.72);
}

.bo-label {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 1.2rem;
}

.bo-label--light {
  color: rgba(200,169,110,.8);
}

.bo-divider {
  width: 3rem;
  height: 1px;
  background: var(--accent-warm);
  margin-block: 1.5rem;
}

/* ======================================================
   6. NAVIGATION — overrides Hello Elementor defaults
   ====================================================== */
.bo-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}

.bo-nav.transparent {
  background: transparent;
}

.bo-nav.scrolled {
  background: rgba(245,244,241,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.bo-nav__logo img {
  height: 44px;
  transition: filter .4s;
}

/* Logo white on dark hero, normal when scrolled */
.bo-nav.transparent .bo-nav__logo img {
  filter: invert(1) brightness(.88);
}

.bo-nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.bo-nav__links a {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .3s;
}

.bo-nav.transparent .bo-nav__links a {
  color: rgba(255,255,255,.85);
}

.bo-nav__links a:hover { color: var(--accent-warm); }

/* ======================================================
   7. HERO SECTION
   ====================================================== */
.bo-hero {
  min-height: 100svh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.bo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(200,169,110,.08) 0%, transparent 70%);
  pointer-events: none;
}

.bo-hero__logo {
  width: clamp(160px, 22vw, 300px);
  filter: invert(1) brightness(.88);
  margin-bottom: 3.5rem;
}

.bo-hero__subtitle {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(200,169,110,.85);
  margin-bottom: 1.6rem;
}

.bo-hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  color: rgba(245,244,241,.92);
  letter-spacing: .02em;
  max-width: 14ch;
  margin-inline: auto;
}

.bo-hero__cta {
  margin-top: 3.5rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,244,241,.7);
  border: 1px solid rgba(245,244,241,.2);
  padding: 1rem 2.2rem;
  transition: all .3s;
}

.bo-hero__cta:hover {
  color: #fff;
  border-color: rgba(200,169,110,.6);
  background: rgba(200,169,110,.08);
}

/* ======================================================
   8. CARDS & ARTWORK GRIDS
   ====================================================== */
.bo-artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.bo-artwork-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #e8e4de;
}

.bo-artwork-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.bo-artwork-card:hover img {
  transform: scale(1.04);
}

.bo-artwork-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(26,25,23,.7));
  color: #fff;
  opacity: 0;
  transition: opacity .4s;
}

.bo-artwork-card:hover .bo-artwork-card__info {
  opacity: 1;
}

.bo-artwork-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}

.bo-artwork-card__meta {
  font-size: .72rem;
  letter-spacing: .1em;
  opacity: .8;
  margin-top: .3rem;
}

/* ======================================================
   9. EVENT CARDS
   ====================================================== */
.bo-event-card {
  padding: 2.5rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 2rem;
  transition: border-color .3s, box-shadow .3s;
}

.bo-event-card:hover {
  border-color: var(--border-warm);
  box-shadow: 0 8px 32px rgba(46,74,60,.06);
}

.bo-event-card__date {
  flex-shrink: 0;
  text-align: center;
}

.bo-event-card__day {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}

.bo-event-card__month {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ======================================================
   10. CONTACT FORM
   ====================================================== */
.bo-form input,
.bo-form textarea,
.bo-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245,244,241,.25);
  padding: 1rem 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: .9rem;
  outline: none;
  transition: border-color .3s;
  margin-bottom: 2rem;
}

.bo-form input::placeholder,
.bo-form textarea::placeholder {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,244,241,.4);
}

.bo-form input:focus,
.bo-form textarea:focus {
  border-bottom-color: var(--accent-warm);
}

.bo-form textarea {
  resize: none;
  min-height: 120px;
}

.bo-form__submit {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(245,244,241,.3);
  padding: 1rem 2.8rem;
  cursor: pointer;
  transition: all .3s;
}

.bo-form__submit:hover {
  border-color: var(--accent-warm);
  background: rgba(200,169,110,.1);
}

/* ======================================================
   11. CAROUSEL
   ====================================================== */
.bo-carousel {
  position: relative;
  overflow: hidden;
}

.bo-carousel__track {
  display: flex;
  gap: 1.5rem;
  transition: transform .5s var(--ease);
}

.bo-carousel__card {
  flex: 0 0 calc(33.333% - 1rem);
  opacity: .42;
  transform: scale(.97);
  transition: opacity .4s, transform .4s;
}

@media (max-width: 768px) {
  .bo-carousel__card { flex: 0 0 80%; }
}

.bo-carousel__card.active {
  opacity: 1;
  transform: scale(1);
}

.bo-carousel__dots {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: 2rem;
}

.bo-carousel__dot {
  width: 1.6rem;
  height: 1px;
  background: var(--border);
  cursor: pointer;
  transition: width .3s, background .3s;
}

.bo-carousel__dot.active {
  width: 2.8rem;
  background: var(--accent);
}

/* ======================================================
   12. SCROLL REVEAL
   ====================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ======================================================
   13. FOOTER
   ====================================================== */
.bo-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-light);
  letter-spacing: .08em;
}

/* ======================================================
   14. ELEMENTOR OVERRIDES — keep tokens consistent
   ====================================================== */
/* Anciennes règles !important supprimées le 29/09/2026 : elles empêchaient
   de modifier les polices depuis Elementor. */

/* Remove Hello Elementor default padding on some containers */
.e-con,
.elementor-section {
  --padding-top: 0;
  --padding-bottom: 0;
}

/* ======================================================
   15. RESPONSIVE
   ====================================================== */
@media (max-width: 900px) {
  .bo-nav__links { display: none; }
}

@media (max-width: 640px) {
  .bo-event-card { flex-direction: column; }
  .bo-artwork-grid { grid-template-columns: 1fr 1fr; }
}
