/**
 * Theme Name: Cubedefrahim
 * 
 */
/* =========================================================
   PORTAIL DU MULTISITE : sociologie (gauche) / photo (droite)
   Version sobre : un seul effet au survol, un fondu au clic
   ========================================================= */

   @font-face {
    font-family: 'Hubot Sans';
    src: url('fonts/HubotSans-VariableFont.woff2') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 125%; /* plage de largeur, à ajuster selon la police */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hubot Sans';
    src: url('fonts/HubotSans-Italic-VariableFont.woff2') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Grenze';
    src: url('fonts/Grenze-VariableFont.woff2') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grenze';
    src: url('fonts/Grenze-Italic-VariableFont.woff2') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: italic;
    font-display: swap;
}

:root {
    --collection-card-width: 250px;
    --collection-gap: 30px;

    --font-primary: 'Hubot Sans', system-ui, sans-serif;
    --font-secondary: 'Grenze', system-ui, sans-serif;
}

body {
    font-family: var(--font-primary);
    font-stretch: 80%;
}

/*-------------*/
/* header */
/*-------------*/

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.site-header a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-title {
    font-family: 'Hubot Sans', system-ui, sans-serif ;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 450;
    margin: 0;
    padding: 0;

}
.menu-item  {
    font-size: 1.4rem;
    font-weight: 450;
}


.site-face {
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
    color: grey;
    font-style: italic;
    font-family: var(--font-secondary);
}

/*-------------*/
/* footer */
/*-------------*/

.site-footer {
    margin-top: 10vh;
    text-align: center;
}

/*-------------*/
/* portal */
/*-------------*/

.portal {
    display: flex;
    height: clamp(360px, 60vh, 560px); /* plus compact : ajuste à ton goût */
    overflow: hidden;
    transition: opacity 0.3s ease;
}
.portal-panel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-start;      /* au lieu de center : le titre part du haut */
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    padding-top: clamp(1.5rem, 12%, 4rem);  /* règle la hauteur ici */
    box-sizing: border-box;
}

.portal-title {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;                  /* prend toute la largeur du panneau */
    padding-inline: 1rem;         /* évite que le texte touche les bords */
    box-sizing: border-box;
    text-align: center;           /* reste centré même s'il passe sur 2 lignes */
    font-family: var(--font-secondary);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portal-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

/* Seul effet au survol : l'image s'éclaircit */
.portal-panel:hover .portal-img,
.portal-panel:focus-visible .portal-img {
    filter: brightness(1);
}

.portal.is-leaving { opacity: 0; }

@media (max-width: 768px) {
    .portal { flex-direction: column; height: auto; }
    .portal-panel {
        min-height: 30vh;
        padding-top: 1.5rem;
    }
}


.portal-message {
    text-align: center;
    font-family: var(--font-secondary);
    font-weight: 400; 
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.3;
    letter-spacing: 0.04em;
    max-width: 28em;
    margin: 0 auto;
}

.portal-separator {
    width: 4vw;
}
/*-------------*/
/* footer */
/*-------------*/

.site-footer {
    margin-top: 10vh;
    text-align: center;
}