/* ==========================================================================
   Festival Toi & Moi — En-tête et menu (v1.2)
   Menu éditorial (bureau + mobile) et en-tête collant optionnel.
   L'en-tête collant s'active dans Apparence > Personnaliser > Festival Toi & Moi.
   ========================================================================== */

/* ---------- 1. En-tête : fond ivoire + filet noir fin ---------- */
body.oceanwp-theme #site-header { border-bottom: 1px solid var(--tm-ink, #232120) !important; background-color: var(--tm-ivory, #FFFDFB); }

/* ---------- 2. Menu bureau : petites capitales espacées ---------- */
#site-navigation-wrap .dropdown-menu > li > a.menu-link { padding: 0 16px; font-family: var(--tm-font-text, "Nunito", sans-serif); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tm-ink-soft, #45403D); }
#site-navigation-wrap .dropdown-menu > li:last-child > a.menu-link { padding-right: 0; }

/* Survol : un trait fin se dessine de gauche à droite (remplace les crochets OceanWP) */
.effect-four #site-navigation-wrap .dropdown-menu > li > a.menu-link > span::before,
.effect-four #site-navigation-wrap .dropdown-menu > li > a.menu-link > span::after { display: none !important; content: none !important; }
#site-navigation-wrap .dropdown-menu > li > a.menu-link > span.text-wrap { padding-bottom: 4px; text-decoration: none !important; background: linear-gradient(var(--tm-ink, #232120), var(--tm-ink, #232120)) left bottom / 0 1px no-repeat; transition: background-size .2s ease, color .2s ease; }
#site-navigation-wrap .dropdown-menu > li > a.menu-link:hover,
#site-navigation-wrap .dropdown-menu > li > a.menu-link:focus-visible { color: var(--tm-ink, #232120); }
#site-navigation-wrap .dropdown-menu > li > a.menu-link:hover > span.text-wrap,
#site-navigation-wrap .dropdown-menu > li > a.menu-link:focus-visible > span.text-wrap { background-size: 100% 1px; }

/* Page en cours : noir et soulignée */
#site-navigation-wrap .dropdown-menu > li.current-menu-item > a.menu-link,
#site-navigation-wrap .dropdown-menu > li.current-menu-item > a.menu-link span { color: var(--tm-ink, #232120) !important; font-weight: 600 !important; text-decoration: none !important; }
#site-navigation-wrap .dropdown-menu > li.current-menu-item > a.menu-link > span.text-wrap { background-size: 100% 1px; }

/* ---------- 3. Menu mobile plein écran ---------- */
.oceanwp-mobile-menu-icon a.mobile-menu { font-family: var(--tm-font-text, "Nunito", sans-serif); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tm-ink, #232120); }
#mobile-fullscreen { background-color: var(--tm-ivory, #FFFDFB) !important; }
#mobile-fullscreen #mobile-fullscreen-inner { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: 96px 24px 48px; box-sizing: border-box; }
#mobile-fullscreen nav ul.fs-dropdown-menu { border-top: 1px solid var(--tm-ink, #232120); }
#mobile-fullscreen nav ul.fs-dropdown-menu > li { border-bottom: 1px solid var(--tm-ink-faint, #C9C3BF); margin: 0; }
#mobile-fullscreen nav ul.fs-dropdown-menu > li > a { display: block; padding: 18px 0; font-family: var(--tm-font-display, "Cormorant Garamond", serif); font-size: 40px; font-weight: 400; line-height: 1.05; letter-spacing: -.01em; text-transform: none; color: var(--tm-ink, #232120); }
#mobile-fullscreen nav ul.fs-dropdown-menu > li > a:hover,
#mobile-fullscreen nav ul.fs-dropdown-menu > li.current-menu-item > a { color: var(--tm-blush-deep, #8F5C5E); font-style: italic; }
#mobile-fullscreen a.close .close-icon-inner,
#mobile-fullscreen a.close .close-icon-inner::after { background-color: var(--tm-ink, #232120); }

/* Liens secondaires du menu mobile (Contact, Instagram, Facebook) :
   dans Apparence > Menus, mettre la classe CSS « tm-mm-small » sur l'élément. */
#mobile-fullscreen nav ul.fs-dropdown-menu > li.tm-mm-small { display: inline-block; border-bottom: 0; margin: 20px 20px 0 0; }
#mobile-fullscreen nav ul.fs-dropdown-menu > li.tm-mm-small > a { padding: 0 0 2px; font-family: var(--tm-font-text, "Nunito", sans-serif); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--tm-blush-deep, #8F5C5E); border-bottom: 1px solid currentColor; }

/* ---------- 4. En-tête collant (option) ----------
   L'en-tête est fixé en haut ; une marge de la hauteur de l'en-tête (mesurée en JS, --tm-header-h)
   réserve sa place : le contenu ne bouge jamais quand l'en-tête se compacte ou s'agrandit. */
body.tm-sticky-header #site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; transition: box-shadow .25s ease; }
body.tm-sticky-header.admin-bar #site-header { top: var(--wp-admin--admin-bar--height, 32px); }
body.tm-sticky-header #outer-wrap { padding-top: var(--tm-header-h, 0px); }
body.tm-sticky-header #site-header #site-header-inner { height: var(--tm-header-inner-h, auto); transition: height .25s ease; }
body.tm-sticky-header #site-logo img { max-height: 110px; transition: max-height .25s ease; }
body.tm-sticky-header #site-navigation-wrap .dropdown-menu > li > a.menu-link,
body.tm-sticky-header .oceanwp-mobile-menu-icon a { transition: line-height .25s ease, height .25s ease, color .2s ease; }
/* Version compacte une fois la page défilée */
body.tm-sticky-header.tm-scrolled #site-header { box-shadow: 0 6px 18px -12px rgba(35, 33, 32, .35); }
body.tm-sticky-header.tm-scrolled #site-header #site-header-inner { height: 64px; }
body.tm-sticky-header.tm-scrolled #site-logo img { max-height: 56px !important; width: auto; }
body.tm-sticky-header.tm-scrolled #site-navigation-wrap .dropdown-menu > li > a.menu-link { line-height: 64px; height: 64px; }
body.tm-sticky-header.tm-scrolled .oceanwp-mobile-menu-icon a { line-height: 64px; height: 64px; }

@media (prefers-reduced-motion: reduce) {
  #site-navigation-wrap .dropdown-menu > li > a.menu-link > span.text-wrap,
  body.tm-sticky-header #site-header, body.tm-sticky-header #site-logo img,
  body.tm-sticky-header #site-navigation-wrap .dropdown-menu > li > a.menu-link { transition: none; }
}

/* Focus : pas de contour par défaut sur les liens (repris du CSS additionnel, v1.3.4). */
a:focus { outline: 0 !important; outline: none !important; }

/* === Menu mobile plein écran (emplacement « Mobile », menu « Menu mobile ») — repris du CSS additionnel, v1.3.4 === */
#mobile-fullscreen #mobile-nav ul.menu{list-style:none;margin:0;padding:0;border-top:1px solid #232120}
#mobile-fullscreen #mobile-nav ul.menu > li{margin:0;border-bottom:1px solid #C9C3BF}
#mobile-fullscreen #mobile-nav ul.menu > li > a{display:block;padding:18px 0;font-family:"Cormorant Garamond",Georgia,serif;font-size:40px;font-weight:400;line-height:1.05;letter-spacing:-.01em;text-transform:none;color:#232120}
#mobile-fullscreen #mobile-nav ul.menu > li > a:hover,#mobile-fullscreen #mobile-nav ul.menu > li.current-menu-item > a{color:#8F5C5E;font-style:italic}
#mobile-fullscreen #mobile-nav ul.menu > li.tm-mm-small{display:inline-block;margin:24px 14px 0;border-bottom:0}
#mobile-fullscreen #mobile-nav ul.menu > li.tm-mm-small > a{padding:0 0 2px;font-family:"Nunito",sans-serif;font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;font-style:normal;color:#8F5C5E;border-bottom:1px solid currentColor}
