.hero {
    background: var(--color-gray-blue-50);
    padding: 8px;
    width: 100%;
}

.hero__panel {
    position: relative;
    min-height: 784px;
    border-radius: var(--radius-lg);
    background-color: var(--color-gray-blue-800);
    overflow: hidden;
    isolation: isolate;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    background: var(--hero-poster, none) center / cover no-repeat var(--color-gray-blue-800);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(to bottom, rgba(8, 35, 90, 0.15) 0%, rgba(8, 35, 90, 0.55) 100%),
        rgba(24, 73, 169, 0.18);
    pointer-events: none;
    z-index: 1;
}

/* ---------- Carousel ---------- */

.hero__carousel {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero__carousel .carousel-inner,
.hero__carousel .carousel-item {
    height: 100%;
}

/* Si le slide a une image perso, on la pose en fond de l'item entier
   (l'item couvre maintenant tout le panel grâce à inset:0 sur le carousel) */
.hero__carousel .carousel-item.has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Vidéo de fond par slide — sit derrière le contenu .hero__slide */
.hero__slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

.hero__carousel .carousel-item.has-video > .hero__slide {
    position: relative;
    z-index: 1;
}

.hero__slide {
    height: 100%;
    padding: 144px 64px 64px;
    box-sizing: border-box;
}

/* La col gauche : titre/subtitle/cta empilés, le reste géré par Bootstrap (d-flex flex-column justify-content-between gap-4) */
.hero__col-content { min-width: 0; }

.hero__top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.hero__title {
    margin: 0;
    max-width: 816px;
    color: var(--color-white);
    font-weight: 400;
    font-size: 80px;
    line-height: 80px;
    letter-spacing: -1.6px;
}

.hero__subtitle {
    margin: 0;
    max-width: 652px;
    color: var(--color-white);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.48px;
}

/* ---------- Overlays persistants : pager + carte investisseur ---------- */

.hero__pager {
    position: absolute;
    right: 64px;
    bottom: 256px;
    display: flex;
    gap: 16px;
    z-index: 3;
}

.hero__investor {
    position: absolute;
    right: 64px;
    bottom: 64px;
    z-index: 3;
}

/* Boutons base (.btn, .btn--primary, .btn--sm, .btn__icon, .btn__dot) déplacés dans style.css. */

/* ---------- Pager ---------- */
.pager-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-700);
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.pager-btn:hover { background: var(--color-gray-100); }
.pager-btn--muted { opacity: 0.7; }

/* ---------- Investor card ---------- */
.investor-card {
    display: inline-flex;
    align-items: stretch;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 6px;
    text-decoration: none;
    color: var(--color-black);
    box-shadow: var(--shadow-xl);
    flex: 0 0 auto;
}

.investor-card__media {
    width: 112px;
    height: 144px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-gray-100);
    flex: 0 0 auto;
}

.investor-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.investor-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 16px;
    width: 272px;
}

.investor-card__title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--color-black);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .hero__panel { min-height: 640px; }
    .hero__slide { padding: 96px 40px 40px; }
    .hero__title { font-size: 64px; line-height: 1; }
    .hero__pager { right: 40px; bottom: 220px; }
    .hero__investor { right: 40px; bottom: 40px; }
}

@media (max-width: 900px) {
    .hero__panel { min-height: 600px; }
    .hero__slide { padding: 72px 24px 220px; }
    .hero__title { font-size: 44px; letter-spacing: -0.88px; }
    .hero__subtitle { font-size: 18px; }
    .hero__pager { right: 24px; bottom: 200px; }
    .hero__investor { right: 24px; bottom: 24px; }
}

@media (max-width: 640px) {
    .hero { padding: 4px; }
    .hero__panel { border-radius: var(--radius-md); min-height: 560px; }
    .hero__slide { padding: 56px 20px 200px; }
    .hero__title { font-size: 34px; line-height: 1.1; letter-spacing: -0.5px; }
    .hero__pager { right: 20px; bottom: auto; top: 24px; }
    .hero__investor { left: 20px; right: 20px; bottom: 20px; }
    .investor-card { width: 100%; }
    .investor-card__body { width: auto; flex: 1 1 auto; }
}
