/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    background: radial-gradient(circle at top right, var(--bg-secondary), var(--bg-primary) 60%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-neon);
    opacity: 0.05;
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.carousel-container {
    min-height: 320px;
    margin-bottom: 3.5rem;
    position: relative;
}

@media (max-width: 767px) {
    .carousel-container {
        min-height: 280px;
    }
}

.carousel-track {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active,
.carousel-slide.exiting {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Hide indicators */
.carousel-indicators {
    display: none !important;
}

/* Hero Title */
.hero-title {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 20;

    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;

    color: #e9e8eb;
    background: linear-gradient(135deg, #e9e8eb 0%, #9a979e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    white-space: normal;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #530054 0%, #c607b3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
        padding: 0 2rem;
    }
}

/* Char animation styles */
.hero-title .word,
.hero-title .char {
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    -webkit-text-fill-color: inherit;
    color: inherit;
    background-color: transparent !important;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(0);
    white-space: pre;
    will-change: opacity, transform, filter;
}

/* Entry Animation */
.carousel-slide.active .char {
    animation: fadeChar 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeChar {
    0% {
        opacity: 0;
        transform: scale(1.1) translateY(10px);
        filter: blur(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Exit Animation */
.carousel-slide.exiting .char {
    animation: fadeCharOut 2s cubic-bezier(0.7, 0, 0.84, 0) both;
}

@keyframes fadeCharOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(1.1) translateY(-10px);
        filter: blur(20px);
    }
}

/* Mobile — animation allégée sans blur */
@media (max-width: 768px) {
    .carousel-slide.active .char {
        animation: fadeCharLight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .carousel-slide.exiting .char {
        animation: fadeCharOutLight 0.8s cubic-bezier(0.7, 0, 0.84, 0) both;
    }
}

@keyframes fadeCharLight {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeCharOutLight {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    opacity: 0.3;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--accent-neon);
    opacity: 1;
    transform: scale(1.2);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 5rem;
}

.cta-micro {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Trust Bar */
.trust-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

[data-theme="light"] .trust-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.trust-logo iconify-icon {
    font-size: 1.5rem;
}

.trust-logo:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* ============================================
   Douleurs Section
   ============================================ */
.douleurs-section {
    background-color: var(--bg-primary);
    padding-top: 3rem;
}

.section-header.center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 901px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.pain-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .pain-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pain-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-neon);
}

[data-theme="light"] .pain-card:hover {
    background: #fff;
    border-color: var(--accent-neon);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pain-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.pain-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-cta-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--accent-neon);
    color: var(--accent-neon);
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-neon);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   Solutions Section (Flip Cards)
   ============================================ */
.solutions-section {
    background-color: var(--bg-secondary);
    background-image: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.flip-card {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 20px;
}

/* Desktop: hover + clic */
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
    border-color: rgba(198, 7, 179, 0.3);
}

/* Mobile: only click */
@media (hover: none) and (pointer: coarse) {
    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
    background-color: rgba(8, 1, 18, 0.8);
}

[data-theme="light"] .flip-card-front {
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.flip-card-back {
    background-color: #ffffff;
    color: #1a1a1a;
    transform: rotateY(180deg);
    border-color: rgba(0, 0, 0, 0.1);
    border-left: 3px solid #28A745;
}

[data-theme="dark"] .flip-card-back {
    background-color: #25103f;
    /* Plus violet comme demandé */
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.flip-card-back h3,
.flip-card-back p,
.flip-card-back span:not(.label-apres),
.flip-card-back .card-icon {
    color: inherit;
}

.flip-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.flip-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.label-avant {
    background: rgba(220, 53, 69, 0.15);
    color: #DC3545;
}

.label-apres {
    background: rgba(40, 167, 69, 0.15);
    color: #28A745;
}

/* Flip card icon alignment */
.flip-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-bottom: 1rem;
}

.flip-card .card-icon svg {
    width: 32px;
    height: 32px;
}

/* ============================================
   Video Section (YouTube Facade)
   ============================================ */
.video-section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.video-section-intro h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTube Facade */
.youtube-facade {
    cursor: pointer;
}

.youtube-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 2;
}

.youtube-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================
   Pourquoi OPT Section
   ============================================ */
.section-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-bottom: 2rem;
}

.pourquoi-section {
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.pourquoi-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 7, 179, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pourquoi-grid {
        grid-template-columns: 1fr;
    }
}

.pourquoi-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-neon);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .pourquoi-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 3px solid #A0059A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pourquoi-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-neon);
}

.pourquoi-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
    opacity: 0.6;
}

.pourquoi-content h3 {
    background: linear-gradient(135deg, #c607b3, #eb5074);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.pourquoi-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ============================================
   Comment ça se passe (Méthode / 3 étapes)
   ============================================ */
.methode-section {
    background-color: var(--bg-secondary);
    position: relative;
}

.steps-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

/* Vertical line - Per-step implementation for responsive alignment */
/* .steps-timeline::before removed */

.step-item::before {
    content: '';
    position: absolute;
    left: calc(-3rem + 19px);
    /* Center of 40px circle (20px) minus half line width (1px) at -3rem offset */
    top: 20px;
    /* Center of circle */
    height: calc(100% + 3rem);
    /* Connect to next circle center (Content + Margin) */
    width: 2px;
    background: var(--accent-neon);
    opacity: 0.3;
    z-index: 0;
}

.step-item:last-child::before {
    display: none;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-neon);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-neon);
    position: absolute;
    left: -3rem;
    top: 0;
    z-index: 1;
    box-shadow: 0 0 15px rgba(198, 7, 179, 0.2);
    transition: all 0.3s ease;
}

[data-theme="light"] .step-number-circle {
    background: #fff;
}

.step-item:hover .step-number-circle {
    background: var(--accent-neon);
    color: #fff;
    box-shadow: 0 0 25px rgba(198, 7, 179, 0.5);
}

.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.methode-cta {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background-color: var(--bg-primary);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 300px;
    position: relative;
}

.about-image img {
    border-radius: 50%;
    border: 4px solid var(--accent-neon);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-primary);
}

.about-role {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #c607b3, #eb5074);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-bio {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-bio:last-of-type {
    margin-bottom: 2rem;
}

.about-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-list li {
    background: rgba(198, 7, 179, 0.1);
    color: #c607b3;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(198, 7, 179, 0.25);
}

@media (max-width: 900px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-image {
        flex: none;
    }

    .about-image img {
        width: 200px;
        height: 200px;
    }

    .about-list {
        justify-content: center;
    }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    background-color: var(--bg-secondary);
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

[data-theme="light"] .accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-family);
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--accent-neon);
}

.icon-chevron {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 4rem 20px 2rem;
    background-color: var(--bg-primary);
    position: relative;
}

.final-cta-section {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.final-cta-section p {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.cal-embed-wrapper {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    background: var(--bg-secondary);
}

.footer-contact {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .footer-contact {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-contact-items {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--accent-neon);
}

.footer-contact-item svg {
    flex-shrink: 0;
}

.contact-alternatives {
    margin: 1.5rem 0;
}

.contact-alt-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.contact-alt-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-contact-alt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(198, 7, 179, 0.3);
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-contact-alt:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
    background: rgba(198, 7, 179, 0.08);
}

.btn-whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
    background: rgba(37, 211, 102, 0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-logo-img .logo-img {
    height: 30px;
    width: auto;
}

.footer-seo {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link-icon svg {
    flex-shrink: 0;
}

.footer-links a:hover {
    color: var(--accent-neon);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .carousel-slide.active .char,
    .carousel-slide.exiting .char {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .pain-card,
    .flip-card-inner,
    .pourquoi-item,
    .step-number-circle {
        transition: none !important;
    }
}

/* Auto-flip Animation (Option A) */
@keyframes hint-flip {
    0% {
        transform: rotateY(0deg);
    }

    25% {
        transform: rotateY(180deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    75% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

.flip-card:first-child .flip-card-inner.hint-animate {
    animation: hint-flip 4s ease-in-out 1s 1 forwards;
}

@media (prefers-reduced-motion: reduce) {
    .flip-card:first-child .flip-card-inner.hint-animate {
        animation: none;
    }
}

.flip-hint-header {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    /* Reduced to bring cards closer */
    margin-top: 1.5rem;
    /* Increased to descend from subtitle */
}