/* --- HOME.CSS (VERSION FINALE OPTIMISÉE SORA) --- */

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

.morph-text::after {
    content: "PARATION";
    animation: re-lab-morph-clean 12s infinite;
}

@keyframes re-lab-morph-clean {
    0% { content: "PARATION"; opacity: 0; filter: blur(8px); transform: translateY(10px); }
    3%, 15% { content: "PARATION"; opacity: 1; filter: blur(0); transform: translateY(0); }
    18% { content: "PARATION"; opacity: 0; filter: blur(8px); transform: translateY(-10px); }

    19% { content: "CONDITIONNEMENT"; opacity: 0; filter: blur(8px); transform: translateY(10px); }
    22%, 34% { content: "CONDITIONNEMENT"; opacity: 1; filter: blur(0); transform: translateY(0); }
    37% { content: "CONDITIONNEMENT"; opacity: 0; filter: blur(8px); transform: translateY(-10px); }

    38% { content: "CUPERATION"; opacity: 0; filter: blur(8px); transform: translateY(10px); }
    41%, 53% { content: "CUPERATION"; opacity: 1; filter: blur(0); transform: translateY(0); }
    56% { content: "CUPERATION"; opacity: 0; filter: blur(8px); transform: translateY(-10px); }

    57% { content: "VOLUTION"; opacity: 0; filter: blur(8px); transform: translateY(10px); }
    60%, 72% { content: "VOLUTION"; opacity: 1; filter: blur(0); transform: translateY(0); }
    75% { content: "VOLUTION"; opacity: 0; filter: blur(8px); transform: translateY(-10px); }

    76%, 100% { content: ""; opacity: 1; filter: blur(0); transform: translateY(0); }
}

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

/* Fallback layout if vendor Swiper CSS is not applied. */
.swiper-wrapper {
    display: flex;
}

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

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

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

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

.slide-content {
    background: #fff;
    padding: 30px 25px 20px 25px;
    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;
    justify-content: space-between;
    flex: 1;
    min-height: 420px;
}

.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.4;
    margin: auto 0;
    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: 15px auto 0;
    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;
    }
}