/*
    ==========================================================
    PROJECT : SITE-GENERIQUE
    FILE    : css/header-branding.css
    AUTH    : Renaud
    CREATED : 07 décembre 2025
    UPDATED : 22 février  2026
    ==========================================================
*/

/**
*   @project        SITE-GENERIQUE
*   @description    Style du bloc Identité (Titre + Slogan).
*                   Gère la typographie, les couleurs et les interactions.
*                   Dimensions gérées dans header-content.css.
*
*   @file           css/header-branding.css
*
*   @see            includes/header-branding.php
*   @see            css/fonts-semantic.css
*   @see            css/color-semantic.css
*/


/* --- BLOCK : Header Branding --- */
.header-branding {
    /* PLACEMENT */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 3rem;
    /* TEXTE */
    text-decoration: none !important;
    /* EFFET */
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}


/* --- ELEMENT : Title --- */
.header-branding__title {
    /* PLACEMENT */
    display: block;
    margin: 0;
    overflow: hidden;
    /* TEXTE */
    font-family: var(--font-header-title);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--color-header-title-default);
    text-shadow: 0.3rem 0.3rem 3px var(--color-header-title-default-shadow);
    /* EFFET */
    transition: color 0.2s ease, text-shadow 0.2s ease;
}


/* --- ELEMENT : Title - États --- */
.header-branding:hover .header-branding__title,
.header-branding:focus .header-branding__title {
    color: var(--color-header-title-hover);
    text-shadow: 0.3rem 0.3rem 3px var(--color-header-title-hover-shadow);
    outline: none;
}

.header-branding:active .header-branding__title {
    transform: translateY(1px);
    color: var(--color-header-title-active);
    text-shadow: 0.2rem 0.2rem 2px var(--color-header-title-active-shadow);
    transition: none;
}


/* --- ELEMENT : Tagline --- */
.header-branding__tagline {
    /* PLACEMENT */
    display: block;
    margin-top: 0.25rem;
    overflow: hidden;
    /* TEXTE */
    font-family: var(--font-header-tagline);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--color-header-tagline-default);
    /* EFFET */
    transition: color 0.3s ease;
}


/* --- ELEMENT : Tagline - États --- */
.header-branding:hover .header-branding__tagline,
.header-branding:focus .header-branding__tagline {
    color: var(--color-header-tagline-hover);
}


/* --- RESPONSIVE (Tablette < 1150px) --- */
@media (max-width: 1150px) {
    .header-branding {
        /* PLACEMENT */
        padding-left: 0;
    }

    .header-branding__title {
        /* TEXTE */
        font-size: 2rem;
    }

    .header-branding__tagline {
        /* TEXTE */
        font-size: 0.6rem;
        letter-spacing: 0.2rem;
    }
}


/* --- RESPONSIVE (Mobile < 768px) --- */
@media (max-width: 768px) {
    .header-branding__title {
        /* TEXTE */
        font-size: 1.7rem;
    }

    .header-branding__tagline {
        /* PLACEMENT */
        display: none;
    }
}


/* 
   ==========================================================================
   DEBUG (À retirer en production ou commenter)
   ========================================================================== 
*/

/* .header-branding { border: 1px dashed blue; } */