/* ========================================
   HEADER COMPLET - LE FUNAMBULE
   ======================================== */

header.tete {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1001;
}

header.tete.fixed {
    background: var(--color4);
}

/* ========================================
   TOP HEADER (Adresse + Partage)
   ======================================== */

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4em 2em;
    background: rgba(var(--color4_rgb), 0.2);
    border-bottom: 1px solid rgba(var(--color2_rgb), 0.2);
    transition: all 0.4s ease;
    opacity: 1;
    max-height: 60px;
    overflow: hidden;
}

.top-header .coordonnees {
    display: flex;
    align-items: baseline;
    gap: 0.3em;
    margin: 0;
    color: var(--color0);
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 1.05);
    font-style: normal;
    opacity: 0.7;
}

.top-header .coordonnees:before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color2);
    font-size: 1.1em;
    margin-right: 0.3em;
}

.top-header .coordonnees .texte:not(:last-child)::after {
    content: ',';
    margin-right: 0.3em;
}

.top-header .flex-info {
    display: flex;
    align-items: center;
}

/* ========================================
   MENU PRINCIPAL (Logo + Navigation + Tel)
   ======================================== */

.fluid-menu {
    position: relative;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 2em;
    padding: 0 2em;
    height: 12vh;
    min-height: 80px;
    background: rgba(var(--color4), 0.05);
    align-items: center;
    transition: all 0.4s ease;
}

.logo-site {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-site a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
}

.logo-site a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color2), transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.logo-site a:hover::after {
    width: 80%;
}

.logo-site img {
    width: auto;
    height: 10vh;
    min-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(var(--color4_rgb), 0.2));
    transition: all 0.4s ease;
}

.navh {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.navh .menu_principal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.3em;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 1.3);
}

.navh .menu_principal li {
    position: relative;
}

.navh .menu_principal a {
    position: relative;
    display: block;
    padding: 0.6em 1em;
    text-decoration: none;
    color: var(--color0);
    text-wrap: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: calc(var(--border-radius) * 2);
}

.navh .menu_principal li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0.3em;
    left: 50%;
    width: 30%;
    height: 2px;
    background: var(--color2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navh .menu_principal a:hover {
    /* background: rgba(var(--color0_rgb), 0.1); */
}

.navh .menu_principal li.active > a:hover::after,
.navh .menu_principal a:hover::after {
    width: 60%;
}

.navh .menu_principal li:not(.active) a:before {
    content: '';
    position: absolute;
    bottom: 0.3em;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navh .menu_principal li:not(.active) a:hover:before {
    width: 60%;
}

.fluid-menu .flex-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1em;
}

.fluid-menu .flex-info .tel {
    position: relative;
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 1.1);
    color: var(--color0);
    padding-left: 2em;
    line-height: 1.4;
    transition: all 0.3s ease;
    margin: 0;
}

.fluid-menu .flex-info .tel:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2em;
    height: 1.2em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FCFCFC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.fluid-menu .flex-info .tel:hover:before {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.callTracker {
    position: relative;
    cursor: pointer;
    min-width: 180px;
}

.callTracker span {
    display: inline-block;
    padding: 0;
    color: var(--color0);
    font-family: var(--font_family_2);
    vertical-align: bottom;
    text-decoration: none;
    transition: all 0.4s ease;
}

.contact .callTracker span {
    color: var(--color4);
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 0.95);
}
.pied .callTracker span {
    color: var(--color0);
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 0.95);
}



.callTracker .t_phone {
    opacity: 0;
    display: none;
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 1.2);
}

.callTracker .t_affiche {
    font-size: calc(var(--taille_font) * 1.1);
    opacity: 0.9;
    position: relative;
    transition: all 0.3s ease;
}

/* .callTracker .t_affiche::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(
        to right,
        rgba(var(--color0_rgb), 0.5) 0px,
        rgba(var(--color0_rgb), 0.5) 4px,
        transparent 4px,
        transparent 8px
    );
    transition: all 0.3s ease;
} */

.slogan .callTracker .t_affiche::after {
    display: none;
}

.callTracker .t_affiche:hover::after {
    background-image: repeating-linear-gradient(
        to right,
        var(--color2) 0px,
        var(--color2) 4px,
        transparent 4px,
        transparent 8px
    );
}

.slogan .callTracker .t_affiche {
    font-size: calc(var(--taille_font) * 1.05);
    border-bottom: none;
}

.callTracker .t_affiche:hover {
    border-bottom-color: var(--color2);
    color: var(--color2);
    opacity: 1;
}

.slogan .callTracker .t_affiche:hover {
    color: var(--color0);
}

.callTracker.active .t_phone {
    opacity: 1;
    display: inline-block;
    animation: fadeIn 0.4s ease;
}

.callTracker.active .t_affiche {
    opacity: 0;
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ÉTAT FIXÉ (classe .fixed au scroll)
   ======================================== */

header.tete.fixed .top-header {
    opacity: 0;
    max-height: 0;
    padding: 0 2em;
    border-bottom: none;
    pointer-events: none;
}

header.tete.fixed .fluid-menu {
    height: 9vh;
    min-height: 70px;
    box-shadow: 0 4px 20px rgba(var(--color4_rgb), 0.15);
}

header.tete.fixed .logo-site img {
    height: 7vh;
    min-height: 50px;
}

header.tete.fixed .navh .menu_principal {
    font-size: calc(var(--taille_font) * 1.3);
}

/* ========================================
   RESPONSIVE - TABLETTES
   ======================================== */

@media (max-width: 1400px) {
    .fluid-menu {
        grid-template-columns: 220px 1fr auto;
    }

    .navh .menu_principal {
        font-size: calc(var(--taille_font) * 1.05);
        gap: 0.2em;
    }

    .navh .menu_principal a {
        padding: 0.5em 0.8em;
    }
}

@media (max-width: 1200px) {
    .top-header {
        padding: 0.7em 1.5em;
    }

    .fluid-menu {
        grid-template-columns: 200px 1fr auto;
        padding: 0 1.5em;
    }

    .navh .menu_principal {
        font-size: var(--taille_font);
        gap: 0.1em;
    }

    .navh .menu_principal a {
        padding: 0.5em 0.6em;
    }

    .fluid-menu .flex-info .tel {
        font-size: var(--taille_font);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 1024px) {
    .top-header {
        padding: 0.6em 1em;
        max-height: 50px;
    }

    .top-header .coordonnees {
        font-size: calc(var(--taille_font) * 0.85);
    }

    .fluid-menu {
        grid-template-columns: 180px 1fr auto;
        height: 10vh;
        min-height: 70px;
    }

    .logo-site img {
        height: 8vh;
        min-height: 50px;
    }

    header.tete.fixed .logo-site img {
        height: 6vh;
        min-height: 45px;
    }

    /* Menu burger - À adapter selon votre solution */
    .navh {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-header {
        justify-content: center;
        padding: 0.5em 1em;
    }

    .top-header .coordonnees {
        display: none;
    }

    .btn-partage .icone-share {
        width: 1.3em;
        height: 1.3em;
    }

    .btn-partage .btnp {
        width: 1.8em;
        height: 1.8em;
    }

    .fluid-menu {
        grid-template-columns: 150px 1fr auto;
        padding: 0 1em;
    }

    .fluid-menu .flex-info .tel {
        padding-left: 2em;
        font-size: calc(var(--taille_font) * 0.95);
    }

    .fluid-menu .flex-info .tel:before {
        width: 1.5em;
        height: 1.5em;
    }

    .slogan {
        display: none;
    }

    .body-page-1 .slogan {
        display: none;
    }

    .btn-descendre {
        display: none;
    }
}

@media (max-width: 480px) {
    .btn-partage {
        gap: 0.3em;
    }

    .btn-partage .btnp {
        width: 1.6em;
        height: 1.6em;
    }

    .fluid-menu .flex-info .tel {
        padding-left: 0;
        min-width: auto;
    }

    .fluid-menu .flex-info .tel:before {
        display: none;
    }

    .callTracker {
        min-width: auto;
    }

    .logo-site img {
        height: 6vh;
        min-height: 50px;
    }
}

/* ========================================
   RESPONSIVE - TABLETTES
   ======================================== */

@media (max-width: 1400px) {
    .fluid-menu {
        grid-template-columns: 220px 1fr auto;
    }

    .navh .menu_principal {
        font-size: calc(var(--taille_font) * 1.05);
        gap: 0.2em;
    }

    .navh .menu_principal a {
        padding: 0.5em 0.8em;
    }
}

@media (max-width: 1200px) {
    .fluid-menu {
        grid-template-columns: 200px 1fr auto;
        padding: 0 1.5em;
    }

    .navh .menu_principal {
        font-size: var(--taille_font);
        gap: 0.1em;
    }

    .navh .menu_principal a {
        padding: 0.5em 0.6em;
    }

    .flex-info .tel {
        font-size: var(--taille_font);
    }
}

/* ========================================
   RESPONSIVE - MOBILE (à adapter selon votre menu burger)
   ======================================== */

@media (max-width: 1024px) {
    .fluid-menu {
        grid-template-columns: 180px 1fr auto;
        height: 10vh;
        min-height: 70px;
    }

    .navh {
        display: none; /* À remplacer par votre menu burger */
    }

    .logo-site img {
        height: 8vh;
        min-height: 50px;
    }

    .fixed .logo-site img {
        height: 6vh;
        min-height: 45px;
    }
}

@media (max-width: 768px) {
    .fluid-menu {
        grid-template-columns: 150px 1fr auto;
        padding: 0 1em;
    }

    .flex-info .tel {
        padding-left: 2em;
        font-size: calc(var(--taille_font) * 0.95);
    }

    .flex-info .tel:before {
        width: 1.5em;
        height: 1.5em;
    }
}

@media (max-width: 480px) {
    .flex-info .tel {
        padding-left: 0;
    }

    .flex-info .tel:before {
        display: none;
    }

    .callTracker {
        min-width: auto;
    }
}


