/*
Theme Name:   Yoga (Hello Elementor enfant)
Description:  En-tête et pied de page du site Yoga, mobile d'abord, aux couleurs de la charte. Thème enfant de Hello Elementor.
Author:       Maé Milhau
Template:     hello-elementor
Version:      1.0.10
Text Domain:  hello-yoga
*/

:root {
  --y-sapin: #1F3B2D; --y-sapin-2: #3E5A4A; --y-bordeaux: #7A2E3A; --y-beige: #EFE7DA; --y-creme: #FBF8F3;
  --y-line: #E4DED3; --y-text: #1E2A23; --y-text-2: #4A5650;
  --y-serif: 'Cormorant Garamond', Georgia, serif; --y-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body { background: var(--y-creme); }

/* Lien d'évitement */
.y-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: var(--y-sapin); color: var(--y-creme); font: 500 15px/1.2 var(--y-sans); text-decoration: none; }
.y-skip:focus { top: 12px; }

/* ---------- En-tête ---------- */
.y-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 243, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.admin-bar .y-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .y-header { top: 32px; } }
/* Sur mobile, la barre WordPress défile avec la page : l’en-tête reste collé tout en haut. */
@media (max-width: 600px) { .admin-bar .y-header { top: 0; } }
.y-header.is-scrolled { border-bottom-color: var(--y-line); }
.y-header-in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; font-family: var(--y-sans); }
.y-logo { margin-right: auto; font: 500 30px/1 var(--y-serif); color: var(--y-sapin); text-decoration: none; padding: 6px 0; }
.y-logo em { font-style: italic; }
.y-logo:hover { color: var(--y-sapin); }

.y-nav { display: none; }
.y-nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.y-nav a { display: inline-block; padding: 10px 0; border-bottom: 1px solid transparent; color: var(--y-text); font-size: 15px; text-decoration: none; }
.y-nav a:hover { color: var(--y-bordeaux); }
.y-nav .current-menu-item > a, .y-nav .current_page_item > a { color: var(--y-bordeaux); border-bottom-color: var(--y-bordeaux); }

.y-account { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--y-sapin); font-size: 15px; text-decoration: none; }
.y-account:hover { color: var(--y-bordeaux); }
.y-account svg { width: 22px; height: 22px; flex: none; }
.y-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--y-sapin); color: var(--y-creme); font: 500 15px/1 var(--y-sans); text-decoration: none; white-space: nowrap; }
.y-cta:hover, .y-cta:focus { background: var(--y-sapin-2); color: var(--y-creme); }

.y-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--y-line); border-radius: 999px; background: #fff; color: var(--y-sapin); cursor: pointer; }
.y-burger:hover, .y-burger:focus { background: #fff; color: var(--y-sapin); }
.y-burger svg { width: 20px; height: 20px; }
.y-burger .y-close { display: none; }
.y-burger[aria-expanded="true"] .y-open { display: none; }
.y-burger[aria-expanded="true"] .y-close { display: block; }
.y-header :focus-visible { outline: 2px solid var(--y-bordeaux); outline-offset: 3px; }

/* Panneau mobile */
.y-panel { border-top: 1px solid var(--y-line); background: var(--y-creme); padding: 8px 16px 24px; font-family: var(--y-sans); max-height: calc(100vh - 64px); overflow-y: auto; }
.y-panel[hidden] { display: none; }
.y-panel ul { margin: 0; padding: 0; list-style: none; }
.y-panel li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--y-line); color: var(--y-sapin); font: 500 22px/1.1 var(--y-serif); text-decoration: none; }
.y-panel .current-menu-item > a { color: var(--y-bordeaux); }
.y-panel-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.y-panel-actions .y-account { display: flex; justify-content: center; min-height: 48px; border: 1px solid var(--y-line-2, #D9CDBA); border-radius: 999px; background: #fff; }
.y-panel-actions .y-cta { min-height: 48px; }
body.y-menu-open { overflow: hidden; }

@media (max-width: 359px) { .y-header .y-cta-top { display: none; } }
@media (min-width: 1024px) {
  .y-header-in { padding: 14px 32px; gap: 28px; }
  .y-logo { margin-right: auto; }
  .y-nav { display: block; margin-right: 8px; }
  .y-account { display: inline-flex; }
  .y-burger, .y-panel { display: none !important; }
}

/* ---------- Pied de page ---------- */
.y-footer { border-top: 1px solid var(--y-line); background: var(--y-beige); color: var(--y-text); font: 400 15px/1.6 var(--y-sans); }
.y-footer a { color: var(--y-sapin); text-decoration: none; }
.y-footer a:hover { color: var(--y-bordeaux); text-decoration: underline; }
.y-footer-in { max-width: 1280px; margin: 0 auto; padding: 44px 16px 28px; display: grid; gap: 32px; }
.y-footer .y-logo { display: inline-block; margin: 0 0 10px; }
.y-footer p { margin: 0 0 6px; }
.y-footer-h { margin: 0 0 10px; font: 600 13px/1.3 var(--y-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--y-bordeaux); }
.y-footer ul { margin: 0; padding: 0; list-style: none; }
.y-footer li a { display: inline-block; padding: 6px 0; }
.y-footer-cta { margin-top: 14px; }
.y-footer-bottom { max-width: 1280px; margin: 0 auto; padding: 18px 16px 28px; border-top: 1px solid #D9CDBA; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--y-text-2); }
.y-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.y-footer-bottom li a { padding: 4px 0; }
@media (min-width: 768px) {
  .y-footer-in { grid-template-columns: 1.4fr 1fr 1fr; padding: 56px 32px 36px; }
  .y-footer-bottom { padding: 18px 32px 32px; }
}
.y-cta-long { margin-left: .28em; }
@media (max-width: 1023px) { .y-cta-long { display: none; } }
.y-footer a.y-cta, .y-footer a.y-cta:hover { color: var(--y-creme); text-decoration: none; }
.y-footer-bottom { align-items: center; }
.y-footer-bottom p { margin: 0; }

/* Sommaire des pages « style de yoga » : reste visible pendant la lecture (ordinateur uniquement). */
@media (min-width: 1025px) { .y-toc { position: sticky; top: 96px; align-self: flex-start; } }

/* 1.0.7 — Pied de page sur téléphone : « Le studio » et « Votre espace » côte à côte, bouton en dessous. */
.y-footer-in { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
.y-footer-in > div:first-child { grid-column: 1 / -1; }
.y-footer-cta-col { display: none !important; }
.y-footer-cta-m { grid-column: 1 / -1; }
.y-footer-cta-m .y-cta { width: 100%; }
@media (min-width: 768px) {
  .y-footer-in { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .y-footer-in > div:first-child { grid-column: auto; }
  .y-footer-cta-col { display: inline-flex !important; }
  .y-footer-cta-m { display: none; }
}

/* 1.0.8 — 5 px de marge à droite et à gauche du pied de page (évite le texte collé au bord). */
.y-footer { padding-left: 5px; padding-right: 5px; box-sizing: border-box; }
