
/* =========================
   BACKGROUND FIXE
========================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("https://lebertlea.com/wp-content/uploads/2026/03/design-sans-titre.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* =========================
   HEADER STICKY (NE PAS TOUCHER STRUCTURE)
========================= */
.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: transparent;
    transition: background 0.3s ease;
}

.wp-block-template-part.scrolled {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
}

/* =========================
   LOGO (SAFE)
========================= */
.wp-block-site-logo img {
    max-height: 80px;
    width: auto;
    transition: max-height 0.3s ease;
}

.wp-block-template-part.scrolled .wp-block-site-logo img {
    max-height: 55px;
}

/* =========================
   TITRE (SAFE + 2 LIGNES OK)
========================= */
.wp-block-site-title,
.wp-block-site-title a {
    display: block;
    white-space: normal;   /* IMPORTANT : 2 lignes autorisées */
    line-height: 1.2;
    font-size: 18px;
    max-width: 100%;
    transition: font-size 0.3s ease;
}

/* réduction au scroll */
.wp-block-template-part.scrolled .wp-block-site-title,
.wp-block-template-part.scrolled .wp-block-site-title a {
    font-size: 14px;
}

/* =========================
   CONTENU
========================= */
.wp-site-blocks > .wp-block-group,
.wp-site-blocks > .wp-block-cover {
    background: transparent !important;
}

.page .grand-cadre {
    background-color: rgba(255, 252, 250, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
}

/* Étendre l'en-tête sur toute la largeur */
.wp-block-template-part,
.wp-block-group,
header {
    width: 100%;
    max-width: 100% !important;
}

/* Le conteneur des colonnes prend toute la largeur */
.header-cols {
    width: 100%;
    max-width: 100% !important;
    display: flex;
    align-items: center;
}

/* Réduire la hauteur générale du header */
.wp-block-template-part {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Colonnes plus compactes */
.header-cols {
    min-height: auto !important;
    gap: 10px;
    align-items: center;
}

/* Réduire le logo */
.wp-block-site-logo img {
    max-height: 50px !important;
}

/* Navigation plus compacte */
.header-cols .wp-block-navigation {
    margin: 0 !important;
}

/* Réduire espace des items menu */
.header-cols .wp-block-navigation-item {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Langues plus compactes */
.header-cols .lang-switch {
    margin: 0 !important;
}

/* Supprimer espace blanc en haut */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Header beaucoup plus mince */
.wp-block-template-part {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
}

/* Enlever les espaces internes des groupes du header */
.wp-block-template-part .wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Colonnes compactes */
.header-cols {
    min-height: 60px !important;
    align-items: center;
}

/* Petit logo */
.wp-block-site-logo img {
    max-height: 60px !important;
}

/* Navigation compacte */
.header-cols .wp-block-navigation {
    margin: 0 !important;
    min-height: auto !important;
}

/* Réduire hauteur des liens */
.header-cols .wp-block-navigation-item a {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* ALIGNEMENT SWITCH LANGUE */
.header-cols .lang-switch {
    display: flex;
    align-items: center;
    height: 100%;
    align-self: center;
}

/* éléments internes */
.header-cols .lang-switch li {
    display: flex;
    align-items: center;
}

/* lien langue */
.header-cols .lang-switch a {
    padding: 0 !important;
    line-height: 60px;
    display: flex;
    align-items: center;
}

