

.morph-text {
    color: #0161bb;
    margin: 0 4px;
    display: inline-block;
    text-align: center;
}

.header-animation-container {
    position: relative;
    padding-top: 60px;
    padding-bottom: 60px;
    margin-bottom: 20px;
    overflow: hidden;
}

#headline {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -2px;
    margin: 0;
    text-align: center;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

#headline .partner-tagline {
    position: relative;
    color: #333;
    width: max-content;
    margin: 0 auto;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: center;
    letter-spacing: -2px;
    font-size: 3rem;
}

.partner-tagline::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--underline-width, 0%);
    height: 6px;
    background: #0161bb;
    border-radius: 0px;
}

/* --- RÈGLE D'OR R29 : ÉQUILIBRE LOGOTYPE (DOT SPACING) --- */
.dot-median {
    margin: 0 3px;
    display: inline-block;
    color: #333;
    vertical-align: middle;
}



.hero-slider {
    max-width: 1300px;
    margin: 0 auto 40px;
    padding: 0 20px;
    overflow: hidden !important;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
}

.swiper {
    padding: 20px 10px 60px 10px !important;
    position: relative;
}

.slider-bottom-controls {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    /* Très peu de marge avec les bullets */
    z-index: 10;
}

.slider-bottom-controls .swiper-pagination {
    position: relative;
    bottom: auto;
    width: auto;
}

.swiper-play-pause {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 24px !important;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-play-pause:hover {
    color: #0161bb;
    transform: scale(1.1);
}

.swiper-slide {
    height: auto;
    display: flex;
}

.slide-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
}

.slide-content {
    background: #fff;
    padding: 30px 15px 25px 15px;
    /* less side padding to fit more text on one line */
    border-radius: 16px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.slide-top-content {
    width: 100%;
}

.slide-link:hover .slide-content {
    transform: translateY(-12px);
    border-color: #0161bb;
    box-shadow: 0 15px 40px rgba(1, 97, 187, 0.1);
}

.slide-content .material-symbols-outlined,
.emoji-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100%;
    margin: 0 auto 5px;
    text-align: center;
}

.slide-content .material-symbols-outlined {
    font-size: 54px !important;
    /* Suppression de la déclaration de font-family ici pour laisser le head gérer Material Symbols */
}

.emoji-icon {
    font-size: 55px !important;
}

.slide-content h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    margin: 5px 0 10px;
    font-size: 1.3rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.55;
    margin: 20px 0 25px 0;
    /* consistent space, text aligns top naturally */
    flex-grow: 1;
    /* stretches to push the button down */
    display: block;
    line-clamp: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-align: center;
}

.read-more {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    margin-top: auto;
    /* guarantees the link is pushed to the bottom if p doesn't grow enough */
    font-size: 0.8rem;
    font-weight: 800;
    color: #599ee2;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 5px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.read-more::before {
    content: "";
    display: block;
}

.read-more .material-symbols-outlined {
    grid-column: 3;
    font-size: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-link:hover .read-more {
    color: #1a1a1a;
    letter-spacing: 1.2px;
}

.slide-link:hover .read-more .material-symbols-outlined {
    transform: scale(1.2) rotate(-10deg);
}

@media (max-width: 768px) {
    .hero-slider {
        padding: 0 20px;
    }
}