/* Explain: Styles for cards, icons, input fields, hero animations, and sticky header. */
.domain-card {
    background-color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.domain-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.domain-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: rgba(158, 136, 75, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1.25rem;
}

.payment-tile {
    background-color: var(--secondary-color);
    border: 1px solid rgba(158, 136, 75, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.testimonial-card {
    background-color: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(28, 29, 31, 0.05);
}

.input-dark {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.input-dark:focus {
    border-color: var(--accent-color) !important;
    outline: none !important;
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.banner-zoom {
    animation: slowZoom 25s ease-in-out infinite alternate;
}

/* En-tête : logo et réduction au défilement */
.site-header nav {
    transition: padding 0.3s ease;
}

.logo-frame {
    transition: height 0.3s ease, max-width 0.3s ease;
}

@media (min-width: 1024px) {
    .site-header.is-scrolled .logo-frame {
        height: 2.75rem;
        max-width: 220px;
    }
}

.site-header.is-scrolled nav {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

/* -------------------------------------
   Hero Animations
------------------------------------- */

.anim-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.anim-delay-100 { animation-delay: 120ms; }
.anim-delay-200 { animation-delay: 240ms; }
.anim-delay-300 { animation-delay: 360ms; }
.anim-delay-400 { animation-delay: 480ms; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.draw-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.draw-underline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform-origin: left;
    transform: scaleX(0);
    animation: scaleX 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: -1;
}
@keyframes scaleX {
    to { transform: scaleX(1); }
}

.hero-img-entrance {
    opacity: 0;
    transform: scale(1.05);
    animation: imgEntrance 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes imgEntrance {
    to { opacity: 1; transform: scale(1); }
}

.hero-ken-burns {
    animation: kenBurnsLoop 20s ease-in-out infinite alternate;
}
@keyframes kenBurnsLoop {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.float-card {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               floatAnim 5s ease-in-out infinite alternate;
}
.float-card.card-1 { animation-delay: 0.8s, 1.3s; }
.float-card.card-2 { animation-delay: 1.0s, 1.5s; }
.float-card.card-3 { animation-delay: 1.2s, 1.7s; }

@keyframes popIn {
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes floatAnim {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

/* Désactivation des animations pour les utilisateurs y étant sensibles */
@media (prefers-reduced-motion: reduce) {
    .anim-fade-up,
    .hero-img-entrance,
    .float-card,
    .hero-ken-burns,
    .draw-underline::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}