@charset "utf-8";
/* ==========================================================================
   Tunisia Rent Car — En-tête (toutes les pages)
   Couleurs en aplats unis, sans dégradé : encre #131316 / rouge #fa2837
   Base Bootstrap 3 : 1rem = 10px
   ========================================================================== */

/* `overflow-x: hidden` sur body empêcherait la barre collante de fonctionner ;
   `clip` bloque le débordement horizontal sans créer de conteneur de défilement. */
body { overflow-x: clip; }

.hd {
    --hd-ink: #131316;
    --hd-ink-deep: #0d0d0f;
    --hd-red: #fa2837;
    --hd-red-dark: #d11e2a;
    --hd-text: #d7d7d9;
    --hd-muted: #8b8b91;
    --hd-line: rgba(255, 255, 255, 0.09);

    position: relative;
    z-index: 1000;
}

.hd ul { margin: 0; padding: 0; list-style: none; }
.hd ul li { margin: 0; font-size: 1.4rem; line-height: 1.4; list-style: none; }
.hd a { color: var(--hd-text); text-decoration: none; transition: color 0.2s ease, background 0.2s ease; }
.hd i { margin: 0; }

/* --------------------------------------------------------------------------
   1. Bande utilitaire
   -------------------------------------------------------------------------- */

.hd-top { background: var(--hd-ink-deep); padding: 9px 0; }

.hd-top__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hd-top__contact,
.hd-top__links { display: flex; align-items: center; flex-wrap: wrap; }

.hd-top__contact li { display: inline-flex; align-items: center; }

.hd-top__contact li,
.hd-top__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hd-muted);
}

.hd-top__contact a { color: var(--hd-text); }
.hd-top__contact a:hover, .hd-top__contact a:focus { color: #ffffff; }
.hd-top__contact i { color: var(--hd-red); font-size: 1.4rem; }

.hd-top__links a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hd-muted);
}

.hd-top__links a:hover, .hd-top__links a:focus { color: #ffffff; background: rgba(255, 255, 255, 0.07); }
.hd-top__links a.is-active { color: #ffffff; }

/* --------------------------------------------------------------------------
   2. Barre principale (collante)
   -------------------------------------------------------------------------- */

.hd-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--hd-ink);
    border-bottom: 1px solid var(--hd-line);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hd-bar__grid {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
}

.hd-logo { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 8px 0; }
.hd-logo img { max-width: 150px; height: auto; display: block; }

.hd-nav { flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 20px; }

.hd-nav__list { display: flex; align-items: center; flex-wrap: wrap; }

.hd-nav__list a {
    position: relative;
    display: inline-block;
    padding: 26px 16px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--hd-text);
}

.hd-nav__list a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--hd-red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.hd-nav__list a:hover, .hd-nav__list a:focus { color: #ffffff; }
.hd-nav__list a:hover::after, .hd-nav__list a:focus::after { transform: scaleX(1); }

.hd-nav__list li.is-active a { color: #ffffff; }
.hd-nav__list li.is-active a::after { transform: scaleX(1); }

/* Bouton d'appel à l'action */
.hd-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: var(--hd-red);
    color: #ffffff;
    border-radius: 50px;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.hd-cta:hover, .hd-cta:focus { background: var(--hd-red-dark); color: #ffffff; }

/* Liens secondaires repris dans le menu mobile */
.hd-nav__extra { display: none; }

/* Bouton menu (mobile) */
.hd-burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    margin-left: auto;
    border: 1px solid var(--hd-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.hd-burger:hover, .hd-burger:focus { background: var(--hd-red); border-color: var(--hd-red); }

/* --------------------------------------------------------------------------
   3. Desktop : le menu repliable reste toujours ouvert
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {
    .hd-nav.collapse { display: flex !important; height: auto !important; overflow: visible !important; }
    .hd-logo { order: 1; }
    .hd-nav { order: 2; }
    .hd-cta { order: 3; }
}

/* --------------------------------------------------------------------------
   4. Mobile et tablette
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .hd-burger { display: inline-flex; align-items: center; justify-content: center; }
    .hd-bar__grid { min-height: 66px; flex-wrap: wrap; gap: 12px; }
    .hd-logo img { max-width: 128px; }

    .hd-cta { order: 2; padding: 11px 18px; font-size: 1.2rem; }
    .hd-burger { order: 3; margin-left: 0; }

    .hd-nav {
        order: 4;
        flex: 1 1 100%;
        border-top: 1px solid var(--hd-line);
        padding: 8px 0 14px;
    }

    .hd-nav__list { display: block; }

    .hd-nav__list a {
        display: block;
        padding: 13px 4px;
        font-size: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hd-nav__list a::after { left: 4px; right: auto; width: 22px; bottom: 8px; }

    .hd-nav__extra { display: block; padding-top: 14px; }

    .hd-nav__extra-title {
        font-size: 1.1rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        color: var(--hd-muted);
        margin: 0 0 10px;
    }

    .hd-nav__extra ul { display: flex; flex-wrap: wrap; gap: 8px; }

    .hd-nav__extra a {
        display: inline-block;
        padding: 9px 16px;
        border: 1px solid var(--hd-line);
        border-radius: 50px;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .hd-nav__extra a:hover, .hd-nav__extra a:focus { background: var(--hd-red); border-color: var(--hd-red); color: #ffffff; }

    .hd-top__links { display: none; }
    .hd-top__grid { justify-content: center; }
    .hd-top__contact { justify-content: center; }
    .hd-top__contact li, .hd-top__contact a { padding: 4px 10px; font-size: 1.2rem; }
}

@media (max-width: 767px) {
    .hd-top__contact li.hd-hide-xs { display: none; }
    .hd-logo img { max-width: 112px; }
    .hd-cta { padding: 10px 15px; font-size: 1.15rem; }
}

/* --------------------------------------------------------------------------
   5. Accessibilité
   -------------------------------------------------------------------------- */

.hd a:focus-visible,
.hd button:focus-visible {
    outline: 3px solid var(--hd-red);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hd a, .hd-nav__list a::after { transition-duration: 0.01ms !important; }
}
