/*
 * Habillage de l'en-tête (header-1) et du pied de page (footer-1) du parent au style Galaxyy
 * Studio : maquettes `Header.dc.html` et `Footer.dc.html` (.claude/maquettes/), guide
 * `galaxyy-studio.md` (« Header collant »). Les blocs restent ceux du parent : seules leurs
 * valeurs changent ici. Clair et `.dark`, 320 px et plus.
 */

/* ---------------------------------------------------------------------------------------------
   En-tête : 72 px (84 px dès 768 px), transparent en haut de page ; après 8 px de défilement
   (classe `is-scrolled`, assets/js/header.js) ou menu ouvert : fond de la page à 95 %, flou de
   8 px et trait inférieur `--border-subtle`.
   --------------------------------------------------------------------------------------------- */
.theme-galaxyy-studio .header-1 {
    --header-1-height: 72px;
    border-bottom: 0;
    background-color: transparent;
    box-shadow: inset 0 -1px 0 transparent;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-galaxyy-studio .header-1.header-1--sticky {
    background-color: transparent;
    backdrop-filter: none;
}

.theme-galaxyy-studio .header-1.is-scrolled,
.theme-galaxyy-studio .header-1[data-open] {
    background-color: color-mix(in oklch, var(--surface-page) 95%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.theme-galaxyy-studio .header-1.is-scrolled {
    box-shadow: inset 0 -1px 0 var(--border-subtle);
}

.theme-galaxyy-studio .header-1__wordmark {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
}

/* Liens : pastille au survol, page courante soulignée de 2 px dans la couleur de marque. */
.theme-galaxyy-studio .header-1__menu a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-galaxyy-studio .header-1__menu a:hover {
    background-color: var(--action-ghost-bg-hover);
    color: var(--text-strong);
}

.theme-galaxyy-studio .header-1__menu a[aria-current="page"],
.theme-galaxyy-studio .header-1__menu a[aria-current="page"]:hover {
    color: var(--text-strong);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 10px;
    text-decoration-color: var(--border-brand);
}

/* Ancres et focus jamais sous l'en-tête collant (WCAG 2.4.11) : hauteur + 16 px (+ 20 dès md). */
html:has(.theme-galaxyy-studio .header-1--sticky) {
    scroll-padding-top: 88px;
}

@media (min-width: 768px) {
    .theme-galaxyy-studio .header-1 {
        --header-1-height: 84px;
    }

    .theme-galaxyy-studio .header-1__wordmark {
        font-size: 1.25rem;
    }

    html:has(.theme-galaxyy-studio .header-1--sticky) {
        scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 104px);
    }
}

/* Panneau du menu mobile : liens en police d'affichage, 52 px, pleine largeur, séparés par un
   filet. Sélecteurs en `html.js` pour battre ceux du parent (0,2,2). */
@media (max-width: 767.98px) {
    html.js .theme-galaxyy-studio .header-1__menu {
        row-gap: 0;
    }

    html.js .theme-galaxyy-studio .header-1__menu a {
        display: flex;
        min-height: 52px;
        padding: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border-subtle);
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: var(--font-weight-medium);
        color: var(--text-strong);
    }

    html.js .theme-galaxyy-studio .header-1__menu a:hover {
        background-color: transparent;
    }

    html.js .theme-galaxyy-studio .header-1__menu a[aria-current="page"],
    html.js .theme-galaxyy-studio .header-1__menu a[aria-current="page"]:hover {
        color: var(--text-brand);
        text-decoration: none;
    }

    html.js .theme-galaxyy-studio .header-1__panel-cta {
        margin-top: var(--space-5);
    }
}

/* Dès 768 px : navigation à droite, contre les actions (maquette), au lieu d'être centrée. */
@media (min-width: 768px) {
    .theme-galaxyy-studio .header-1__nav {
        margin-inline-start: auto;
    }

    .theme-galaxyy-studio .header-1__menu {
        justify-content: flex-end;
        column-gap: var(--space-1);
    }
}

/* Page dont le premier élément est un hero Aurora (classe `has-hero-overlay` sur <body>) : la
   barre se pose sur le haut du hero, qui reste dessous au défilement. */
.has-hero-overlay .header-1--sticky {
    margin-bottom: calc(-1 * var(--header-1-height));
}

@media (prefers-reduced-motion: reduce) {
    .theme-galaxyy-studio .header-1,
    .theme-galaxyy-studio .header-1__menu a {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------------------------
   Pied de page : fond de la page (pas de bande), filet supérieur subtil, marque et slogan à
   gauche, liens en rangée à droite ; barre légale (liens légaux, « Gérer les cookies », pause
   des animations) et copyright, séparés par un filet.
   --------------------------------------------------------------------------------------------- */
.theme-galaxyy-studio .footer-1 {
    border-top-color: var(--border-subtle);
    background-color: var(--surface-page);
}

.theme-galaxyy-studio .footer-1__inner {
    padding-block: clamp(48px, 5vw, 80px) var(--space-8);
}

.theme-galaxyy-studio .footer-1__brand-name {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.theme-galaxyy-studio .footer-1__tagline {
    max-width: 34ch;
}

/* Menu à un niveau : chaque lien est une « colonne » du walker ; ici, une rangée. */
.theme-galaxyy-studio .footer-1__cols {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0 var(--space-8);
}

.theme-galaxyy-studio .footer-1__bottom {
    border-top-color: var(--border-subtle);
}

.theme-galaxyy-studio .footer-1__legal,
.theme-galaxyy-studio .footer-1__legal-list {
    column-gap: var(--space-6);
}

.theme-galaxyy-studio .footer-1__legal a {
    color: var(--text-muted);
}

.theme-galaxyy-studio .footer-1__legal a:hover {
    color: var(--text-strong);
}

/* Bouton de pause des animations (assets/js/motion.js), rendu comme un lien de la barre. */
.footer-1__motion {
    display: inline-flex;
    align-items: center;
    min-height: var(--target-min);
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: var(--text-body-sm);
    color: var(--text-muted);
    cursor: pointer;
}

.footer-1__motion:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

.footer-1__motion-paused {
    display: none;
}

.motion-paused .footer-1__motion-running {
    display: none;
}

.motion-paused .footer-1__motion-paused {
    display: inline;
}

@media (min-width: 768px) {
    .theme-galaxyy-studio .footer-1__top {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .theme-galaxyy-studio .footer-1__cols {
        justify-content: flex-end;
    }
}
