/* assets/css/layout.css — Header VeRo + Footer */

/* ── BANDEAU D'ANNONCE ── */
.site-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--vero-brown);
    color: var(--vero-white);
    font-family: var(--font-body);
    padding: 18px 24px;
    gap: 6px;
}
.site-banner-badge {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
}
.site-banner-content {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.35;
}
.site-banner-content p {
    margin: 0;
}
.site-banner-content a {
    display: inline-block;
    vertical-align: middle;
    background: var(--vero-orange);
    color: var(--vero-white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 28px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    margin: 6px 0 0 8px;
}
@media (max-width: 600px) {
    .site-banner {
        padding: 14px 16px;
    }
    .site-banner-content {
        font-size: 0.9rem;
    }
}

/* ── HEADER ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--vero-black);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 54px;
}

/* Logo VeRo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 26px; }
.site-logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--vero-white);
    border-left: 2px solid var(--vero-orange);
    padding-left: 12px;
    line-height: 1.3;
    transition: color var(--transition);
}
.site-logo-name small {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 8px;
    color: rgba(255,255,255,.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color var(--transition);
}
.site-logo:hover .site-logo-name { color: var(--vero-orange); text-decoration: none; }
.site-logo:hover .site-logo-name small { color: rgba(243,146,0,.7); }

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 1px;
}
.site-nav a {
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    padding: 5px 9px;
    text-decoration: none;
    border-radius: 3px;
    transition: var(--transition);
    white-space: nowrap;
}
.site-nav a.active,
.site-nav a:hover {
    color: var(--vero-white);
    background: rgba(255,255,255,.08);
    text-decoration: none;
}

/* Sélecteur de langue — déroulant à largeur constante (robuste à N langues) */
.lang-switcher {
    position: relative;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.1);
    margin-left: 4px;
}
.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255,255,255,.6);
    padding: 4px 6px;
    border-radius: 3px;
    transition: var(--transition);
}
.lang-current:hover { color: var(--vero-white); }
.lang-caret { font-size: 8px; transition: transform .2s ease; }
.lang-switcher.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 64px;
    margin: 0;
    padding: 4px;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 1px;
    background: var(--vero-black);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    z-index: 210;
}
.lang-switcher.open .lang-menu { display: flex; }
.lang-menu a {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255,255,255,.55);
    padding: 7px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}
.lang-menu a:hover  { color: var(--vero-white); background: rgba(255,255,255,.08); text-decoration: none; }
.lang-menu a.active { color: var(--vero-orange); }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 201;
    flex-shrink: 0;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--vero-white);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

/* Burger → X animé */
.site-nav.open ~ .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav.open ~ .burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.site-nav.open ~ .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── FOOTER ── */
.site-footer { background: var(--vero-black); }

/* Bande 5 couleurs VeRo */
.footer-stripe {
    height: 5px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

/* Corps */
/* Wrapper transparent sur desktop — les 3 cols participent directement au grid */
.footer-nav-cols { display: contents; }

.footer-body { padding: 48px 56px 24px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Bloc identité */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-logo img { height: 26px; }
.footer-logo-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--vero-white);
    border-left: 2px solid var(--vero-orange);
    padding-left: 11px;
}
.footer-logo-name small {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 9px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-align: left;
}
.footer-tagline {
    font-family: var(--font-body);
    font-size: 13px;
    font-style: italic;
    color: rgba(255,255,255,.6);
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 280px;
}
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: var(--transition);
}
.footer-contact a:hover { color: var(--vero-orange); text-decoration: none; }

/* Colonnes nav */
.footer-col-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 14px;
}
.footer-col-links { display: flex; flex-direction: column; }
.footer-col a {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,.65);
    display: block;
    margin-bottom: 9px;
    text-decoration: none;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--vero-orange); text-decoration: none; }

/* Bas de footer */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-copy {
    font-family: var(--font-body);
    font-size: 11px;
    color: rgba(255,255,255,.25);
}
.footer-legal {
    font-family: var(--font-body);
    font-size: 11px;
    color: rgba(255,255,255,.35);
    text-decoration: underline;
}
.footer-legal:hover { color: var(--vero-orange); }

/* Responsive footer */
@media (max-width: 900px) {
    .footer-body { padding: 36px 28px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .site-footer { flex-direction: column; padding: 20px; text-align: center; }
    .footer-links { flex-direction: column; gap: 8px; align-items: center; }
}
@media (max-width: 600px) {
    .footer-body { padding: 24px 20px 16px; }

    /* Haut de C : brand compact sans tagline */
    .footer-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-tagline { display: none; }
    .footer-brand {
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,.07);
        margin-bottom: 16px;
    }
    .footer-contact { gap: 5px; }
    .footer-contact a { font-size: 12px; }

    /* Liens de B : 3 colonnes côte à côte */
    .footer-nav-cols {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }
    .footer-col-title { font-size: 8px; margin-bottom: 8px; }
    .footer-col a { font-size: 11px; margin-bottom: 6px; }
    .footer-col-links { flex-direction: column; }

    .footer-bottom {
        border-top: 1px solid rgba(255,255,255,.07);
        padding-top: 14px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .footer-copy { font-size: 10px; }
}

/* ── Responsive header : bascule en menu burger.
   Seuil à 1100px : le nav horizontal (7 liens + Actualités + sélecteur de langue)
   déborde dès ~1026px ; on passe au burger avant le débordement (sinon le menu et
   le sélecteur de langue sont coupés entre ~900 et ~1026px). ── */
@media (max-width: 1100px) {
    .header-inner { padding: 0 16px; height: 48px; }
    .site-logo img { height: 22px; }
    .site-logo-name { font-size: 11px; padding-left: 10px; line-height: 1.2; }
    .site-logo-name small { display: block; font-size: 7px; letter-spacing: 2px; }
    .burger { display: flex; }
    .site-nav {
        display: none;
        position: fixed;
        top: 48px; left: 0; right: 0; bottom: 0;
        background: var(--vero-black);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        z-index: 200;
        overflow-y: auto;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        font-size: 15px;
        padding: 14px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
        color: rgba(255,255,255,.8);
    }
    .lang-switcher {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.1);
        padding: 16px 24px;
        margin-left: 0;
    }
    .lang-current { display: none; }            /* pas de déroulant dans le burger */
    .lang-menu {                                 /* langues listées, toujours visibles */
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
    }
    .lang-menu a { font-size: 13px; padding: 6px 10px; }
}
