/* ==========================================================================
   L'Entre Potes – Kadence Child  |  custom.css
   Charte : or / noir profond / crème
   ========================================================================== */

:root {
  --g: #C8A45A;
  --g2: #E8C87A;
  --g3: #7A5E20;
  --g4: rgba(200,164,90,.12);
  --dk: #070503;
  --dk2: #0E0A06;
  --s: #130D06;
  --s2: #1C1409;
  --tx: #F0E8D0;
  --tx2: rgba(240,232,208,.6);
  --mu: #7A6A4A;
  --border: rgba(200,164,90,.18);
  --border2: rgba(200,164,90,.08);
  --sidebar: 260px;

  --ff-display: 'Bebas Neue', sans-serif;
  --ff-lux: 'Cormorant Garamond', serif;
  --ff-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body,
body.ep-theme {
  background: var(--dk);
  color: var(--tx);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fonds Kadence/Elementor : on laisse la charte sombre prendre le dessus */
body .site,
body .content-bg,
body .site-container,
body #wrapper,
body #inner-wrap,
body .entry-content-wrap,
body .content-wrap { background-color: transparent; }

/* Grain subtil */
body.ep-grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--g); color: var(--dk); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5, h6,
.entry-title,
.elementor-heading-title {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.05;
  color: var(--tx);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h4 { font-size: 1.5rem; }

p { color: var(--tx2); }

a { color: var(--g); transition: color .25s var(--ease); }
a:hover, a:focus { color: var(--g2); }

strong, b { font-weight: 500; color: var(--tx); }

/* Utilitaires typographiques (Elementor > Classes CSS) */
.ep-lux {
  font-family: var(--ff-lux);
  font-style: italic;
  font-weight: 300;
  color: var(--g);
  text-transform: none;
  letter-spacing: 0;
}
.ep-lux-bold { font-family: var(--ff-lux); font-weight: 600; }
.ep-logo {
  font-family: var(--ff-lux);
  font-weight: 600;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--g);
  letter-spacing: .02em;
}
.ep-display { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .06em; }
.ep-eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 1rem;
}
.ep-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--g);
  vertical-align: middle;
  margin-right: 12px;
}
.ep-muted { color: var(--mu); }
.ep-gold { color: var(--g); }

/* ---------- Séparateur or ---------- */
.ep-divider {
  height: 1px; border: 0; margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, var(--g), transparent);
  opacity: .6;
}

/* ---------- Boutons ---------- */
.ep-btn,
body .elementor-button.ep-btn,
body .button.ep-btn,
.wp-block-button.is-style-ep .wp-block-button__link {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--g);
  color: var(--dk);
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--g);
  border-radius: 0;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.ep-btn:hover,
body .elementor-button.ep-btn:hover {
  background: var(--g2);
  border-color: var(--g2);
  color: var(--dk);
  transform: translateY(-2px);
}
.ep-btn--ghost,
body .elementor-button.ep-btn--ghost {
  background: transparent;
  color: var(--g);
  border-color: var(--g);
}
.ep-btn--ghost:hover { background: var(--g); color: var(--dk); }

/* Boutons Kadence/Elementor par défaut, harmonisés */
body .elementor-button,
body .wp-block-button__link,
body .button,
body button[type="submit"],
body input[type="submit"] {
  font-family: var(--ff-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 0;
}

/* ---------- Cartes ---------- */
.ep-card {
  background: var(--s);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.ep-card:hover {
  border-color: var(--g);
  background: var(--s2);
  transform: translateY(-4px);
}
.ep-card--soft { border-color: var(--border2); }

/* ---------- Formulaires ---------- */
body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="number"],
body input[type="date"],
body input[type="time"],
body textarea,
body select,
body .elementor-field-textual {
  background: var(--s);
  color: var(--tx);
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--ff-body);
  font-weight: 300;
  padding: .85rem 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
body input:focus,
body textarea:focus,
body select:focus {
  outline: none;
  border-color: var(--g);
  box-shadow: 0 0 0 3px var(--g4);
}
::placeholder { color: var(--mu); opacity: 1; }
body label { color: var(--tx2); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Header Kadence (couleurs seulement, structure intacte) ---------- */
body .site-header-wrap,
body #masthead { background: transparent; }
body .site-header-wrap .header-navigation .menu > li > a { font-family: var(--ff-body); letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; }
body .site-header-wrap .header-navigation .menu > li > a:hover { color: var(--g2); }

/* ---------- Footer ---------- */
body .site-footer,
body #colophon { background: var(--dk2); color: var(--tx2); border-top: 1px solid var(--border); }

/* ---------- Elementor : sections / séparateurs ---------- */
.elementor-section.ep-section-alt,
.e-con.ep-section-alt { background: var(--dk2); }
.elementor-section.ep-section-surface,
.e-con.ep-section-surface { background: var(--s); }
.ep-border-top { border-top: 1px solid var(--border); }
.ep-border-bottom { border-bottom: 1px solid var(--border); }

/* Mise en page avec sidebar fixe (optionnelle) : classe ep-with-sidebar sur le body via Elementor/Kadence */
@media (min-width: 1025px) {
  .ep-has-sidebar { margin-left: var(--sidebar); }
}

/* ---------- Horaires [ep_hours] ---------- */
.ep-hours { max-width: 480px; }
.ep-hours__status {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mu);
}
.ep-hours__status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mu);
}
.ep-hours__status.is-open { color: var(--g2); }
.ep-hours__status.is-open::before { background: #5BBF6A; box-shadow: 0 0 0 4px rgba(91,191,106,.18); }
.ep-hours__status.is-closed::before { background: #B5503C; }
.ep-hours__list { list-style: none; margin: 0; padding: 0; }
.ep-hours__list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border2);
  color: var(--tx2);
}
.ep-hours__list li.is-today { color: var(--g2); border-bottom-color: var(--border); }
.ep-hours__day { font-family: var(--ff-display); letter-spacing: .08em; font-size: 1.15rem; text-transform: uppercase; }
.ep-hours__slots { font-weight: 400; }

/* ---------- Réseaux sociaux [ep_social] ---------- */
.ep-social { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.ep-social__item {
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--tx2); text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
}
.ep-social__item:hover { color: var(--g2); border-color: var(--g2); }

.ep-link { color: var(--g); text-decoration: none; border-bottom: 1px solid var(--border); }
.ep-link:hover { color: var(--g2); border-color: var(--g2); }

/* ---------- Animations d'apparition (JS ajoute .is-visible) ---------- */
.ep-js .ep-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--ep-delay, 0s);
}
.ep-js .ep-reveal.is-visible { opacity: 1; transform: none; }

/* Édition Elementor : on montre tout */
.elementor-editor-active .ep-reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep-js .ep-reveal { opacity: 1; transform: none; transition: none; }
  .ep-card, .ep-btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .ep-card { padding: 1.4rem; }
  .ep-btn { padding: .9rem 1.8rem; }
  .ep-hours__day { font-size: 1rem; }
}
