.hero-brand {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: var(--bg-color);
    padding: var(--section-padding);
    box-sizing: border-box;
}

.hero-brand__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-height: 100vh;
}

.hero-brand__container {
    width: 100%;
}
.hero-brand__container .hero-brand__breadcrumb{
        padding-top: calc(4vh + 1.5rem);
}

.hero-brand__header {
    display: none;
}

.hero-brand__logo-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    width: 250px;
    height: 360px;
}

/* LOGO — posé sur la branche blanche bas-droite (cf. BrandsArchive) */
.hero-brand__logo-img {
    position: absolute;
    right: 3%;
    bottom: 10%;
    width: 40%;
    height: 27%;
    object-fit: contain;
    object-position: center;
    z-index: 3;
}

.hero-brand__brand-info {
    display: none;
}

.hero-brand__tagline {
    display: none;
}

.hero-brand__brand-name {
    display: none;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-brand__brand-slogan {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
}

.hero-brand__headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-brand__country-flag {
    font-size: 2rem;
    line-height: 1;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s;
}

/* SVG flag image (replaces the legacy emoji text): sized to match the emoji. */
.hero-brand__country-flag img {
    display: block;
    width: auto;
    height: 1.8rem;
    border-radius: 2px;
}

.hero-brand.is-visible .hero-brand__country-flag {
    opacity: 1;
    transform: translateX(0);
    margin-bottom: 5px;
}

.hero-brand__logo-top {
    background: #ffffff;
    border-radius: 12px;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-30px);
    will-change: opacity, transform;
}

.hero-brand__logo-top-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Grille 2 colonnes : image à gauche (collée), contenu textuel à droite */
.hero-brand__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: 0;
}

.hero-brand__media {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 0;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.hero-brand.is-visible .hero-brand__media {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* TOTEM — moulinet 4 branches centré */
.hero-brand__totem {
    position: relative;
    width: min(90%, 70vh);
    aspect-ratio: 1 / 1;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* IMAGE — remplit les 3 branches (bas-gauche + haut-gauche + haut-droite) */
.hero-brand__media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    clip-path: url(#hb-totem-img);
}

/* PLAQUE — branche bas-droite en blanc, support du logo */
.hero-brand__plate {
    position: absolute;
    inset: 0;
    background: #fff;
    clip-path: url(#hb-totem-plate);
    z-index: 2;
}

.hero-brand__left {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding-right: 6vw;
}

.hero-brand__title {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 0 2.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.hero-brand.is-visible .hero-brand__title {
    opacity: 1;
    transform: translateY(0);
}

.hero-brand__title-line {
    display: inline;
}

/* Espace naturel entre les deux segments */
.hero-brand__title-line + .hero-brand__title-line::before {
    content: ' ';
}

.hero-brand__title-word {
    display: inline;
}

.hero-brand__title-word em {
    font-style: normal;
}

.hero-brand__gold {
    color: var(--hero-brand-accent, #FCDF1B);
}

.hero-brand__description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-40px);
    color: rgba(255, 255, 255, 1);
    font-weight: 400;
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.hero-brand.is-visible .hero-brand__description {
    opacity: 1;
    transform: translateX(0);
}

/* Breadcrumb: same slide-in reveal as the description, slightly earlier. */
.hero-brand__breadcrumb {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero-brand.is-visible .hero-brand__breadcrumb {
    opacity: 1;
    transform: translateX(0);
}

.hero-brand__description > * {
    margin: 0;
}

.hero-brand__description > * + * {
    margin-top: var(--space-sm, 0.75rem);
}

.hero-brand__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hero-brand__metric {
    margin-bottom: 2.5rem;
    transform: translateY(40px);
    opacity: 0;
}

.hero-brand__metric:hover {
    transform: translateY(40px);
}

.hero-brand__metric-number {
    display: block;
    font-size: 2.625rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0;
    line-height: 1;
}

.hero-brand__metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--hero-brand-accent, #FCDF1B);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 6px;
    display: block;
}

.hero-brand__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.hero-brand__btn {
    position: relative;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    overflow: hidden;
}

.hero-brand__btn--primary {
    background: var(--hero-brand-accent, #FCDF1B);
    color: var(--bg-color);
    border: 1px solid var(--hero-brand-accent, #FCDF1B);
}

.hero-brand__btn--primary:hover {
    background: transparent;
    color: var(--hero-brand-accent, #FCDF1B);
}

.hero-brand__btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-brand__btn--secondary:hover {
    border-color: var(--hero-brand-accent, #FCDF1B);
    color: var(--hero-brand-accent, #FCDF1B);
}

.hero-brand__btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(var(--hero-brand-accent-rgb, 252, 223, 27), 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.hero-brand__btn:hover::after {
    width: 300px;
    height: 300px;
}


.hero-brand__heritage {
    display: none;
}

.hero-brand__heritage-timeline {
    display: none;
}

.hero-brand__heritage-item {
    display: none;
}

.hero-brand__heritage-year {
    display: none;
    color: #f39c12;
    margin-bottom: 1rem;
}

.hero-brand__heritage-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-brand__heritage-content p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

.hero-brand__scroll-section {
    display: none;
}

.hero-brand__scroll-text {
    display: none;
}

.hero-brand__scroll-indicator {
    display: none;
}

.hero-brand__scroll-arrow {
    display: none;
}

.hero-brand__scroll-arrow::after {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 1023px) {
    .hero-brand__container .hero-brand__breadcrumb {
        /*padding-top: calc(4vh + 6.5rem);*/
        padding-top: 0px;
    }
    .hero-brand__title{
                font-size: clamp(2.1rem, 10.5vw, 3.2rem);
        line-height: var(--line-height-heading-relaxed);
        margin-bottom: 1.8rem;
        max-width: 100%;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
        -o-hyphens: auto;
        hyphens: auto;
    }
    .hero-brand {
        min-height: 100svh;
        padding: var(--section-padding-mobile-offset);
        align-items: flex-end;
    }

    .hero-brand__content {
        position: relative !important;
        width: 100%;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 0 0 2.5rem 0;
    }

    .hero-brand__main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-brand__media {
        min-height: auto;
        aspect-ratio: auto;
        padding: 1rem 0;
    }
    .hero-brand__totem {
        width: min(80%, 60vw);
    }

    .hero-brand__left {
        width: 100%;
        max-width: 100%;
    }

    .hero-brand__title-word {
        transform: none !important;
    }

    .hero-brand__description {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-brand__metric {
        opacity: 1 !important;
        transform: none !important;
    }


    .hero-brand__description {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
   
    
    .hero-brand__metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-brand__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-brand__btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-brand__heritage {
        padding: 2rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-brand__media,
    .hero-brand__country-flag,
    .hero-brand__title,
    .hero-brand__description,
    .hero-brand__breadcrumb {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
