/*
 * PIP'N'HUB Impératrice — CSS de surcharge
 * Chargé automatiquement par le parent (handle child-custom, différé, après tous les CSS du parent)
 * Scope : .pnh-grid figure (home) et .pnh-cat-grid figure (catégorie) uniquement
 */

/* ─── HOME : grille 3 colonnes, figures en colonnes CSS ─── */

@font-face {
  font-family: "Montserrat";
  src:
    local("Trickster"),
    url("../fonts/Montserrat-Regular.ttf") format("ttf");
}

.pnh-grid {
    column-count: 1;
    width: 100%;
}

.pnh-grid figure.pnh-card {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* ratio 16:9 — % de la largeur de la figure elle-même en column layout */
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
    margin: 0;
    break-inside: avoid;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #fff;
    font-size: 16px;
    background-color: white;
}

.pnh-grid figure.pnh-card .pnh-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease-out;
}

.pnh-grid figure.pnh-card h3 {
    margin: 0;
    padding: 15px 20px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 55px;
    font-weight: 200;
    color: #fff;
    opacity: 0;
    text-transform: uppercase;
    text-align: center;
    white-space: pre-wrap;
    line-height: 1.2;
    transition: opacity 0.4s ease;
    transition-delay: 0.3s;
}

.pnh-grid figure.pnh-card h3 a {
    color: #fff;
    text-decoration: none;
}

.pnh-grid figure.pnh-card:hover .pnh-overlay { opacity: 1; }
.pnh-grid figure.pnh-card:hover h3           { opacity: 1; }



/* ─── CATÉGORIE ─── */

.pnh-cat-title {
    padding: 1.5em 2em;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 200;
    font-size: 2rem;
    text-transform: uppercase;
    text-align: center;
}

.pnh-cat-grid {
    column-count: 1;
    width: 100%;
}

.pnh-cat-grid figure.pnh-cat-card {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    margin: 0;
    break-inside: avoid;
}

.pnh-cat-grid figure.pnh-cat-card .pnh-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    padding: 1.5em 2em;
    transition: all 300ms ease-out;
}

.pnh-cat-grid figure.pnh-cat-card:hover .pnh-overlay {
    transform: scale(1.2);
    background: rgba(0,0,0,0.7);
}

.pnh-cat-grid figure.pnh-cat-card h3 {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 200;
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
}

.pnh-cat-grid figure.pnh-cat-card h3 a {
    color: #fff;
    text-decoration: none;
}



/* ─── MENU OVERLAY PLEIN ÉCRAN (style Dank) ─── */

/* Écrase le comportement parent : l'overlay est fixé, plein écran, fond noir */
#header-menu {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    overflow: hidden;
    background: rgba(0,0,0,0.9);
    z-index: 9000;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#header-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Burger au-dessus de l'overlay */
#main-header {
    position: relative;
    z-index: 9999;
}

/* Liste centrée verticalement et horizontalement */
#header-menu .main-navigation {
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

#header-menu .main-navigation li {
    padding: 15px 0;
    text-align: center;
}

/* Supprimer le séparateur / du parent */
#header-menu .main-navigation li::after {
    display: none !important;
}

#header-menu .main-navigation a {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 200;
    font-size: 25px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}

#header-menu .main-navigation a:hover {
    opacity: 0.8;
    color: #fff;
}

/* Burger : spans en noir au repos, blancs quand menu ouvert */
/* Burger toujours visible sur desktop */
@media (min-width: 768px) {
    .burger-menu {
        display: flex !important;
    }
}

/* Burger : spans noirs au repos */
.burger-menu span {
    background: #000 !important;
}

/* Burger : spans blancs quand menu ouvert */
.burger-menu[aria-expanded="true"] span {
    background: #fff !important;
}

/* Croix de fermeture : visible uniquement quand menu ouvert, au-dessus de l'overlay */
.burger-menu[aria-expanded="true"] {
    position: fixed !important;
    top: 20px;
    left: 20px;
    z-index: 99999 !important;
}
.social-footer
{
  width: 100%;
  font-size: 2em;
  margin-top: 1em;
  margin-bottom : 1em;
  text-align : center;
}
.social-footer a
{
   margin : 0.25em;
}
.social-top
{
  width: 100%;
  font-size: 1em;
  margin-top: 1em;
  margin-bottom : 1em;
  text-align : center;
}
