﻿/* ============================================================
   Au Rythme des Rêves — Styles complémentaires (Flowbite + Tailwind)
   Palette : rose-rouge #c94060
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.hero-custom {
    background: linear-gradient(160deg, rgba(18, 4, 8, 0.90) 0%, rgba(35, 10, 15, 0.85) 60%, rgba(20, 6, 2, 0.88) 100%);
    background-color: #180408;
    padding-top: 80px; /* offset navbar fixe */
}

.hero-title {
    text-shadow: 0 2px 24px rgba(201, 64, 96, 0.55);
    letter-spacing: 0.02em;
}

.hero-subtitle {
    text-shadow: 0 1px 8px rgba(201, 64, 96, 0.4);
}

/* ── Animations hero ──────────────────────────────────────── */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.55s; }
.hero-content > *:nth-child(3) { animation-delay: 0.9s; }
.hero-content > *:nth-child(4) { animation-delay: 1.2s; }
.hero-content > *:nth-child(5) { animation-delay: 1.5s; }
.hero-content > *:nth-child(6) { animation-delay: 1.8s; }
.hero-content > *:nth-child(7) { animation-delay: 2.1s; }

/* ── Séparateur de section ────────────────────────────────── */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a82d4e, #c94060);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

/* ── Note partenariat ─────────────────────────────────────── */
.partenariat-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    border-left: 3px solid #c94060;
    padding-left: 0.75rem;
}

/* ── Animations au défilement ─────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-divider.reveal {
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-divider.reveal.is-visible {
    transform: scaleX(1);
    opacity: 1;
}

/* Décalage progressif pour les cartes équipe */
.team-card.reveal {
    transition-delay: var(--card-delay, 0s);
}

/* Ombre rose au hover des cartes */
.team-card:hover {
    box-shadow: 0 12px 28px rgba(201, 64, 96, 0.18) !important;
}

/* Désactiver les animations si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-content > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ── Classes responsives critiques ───────────────────────────
   Évite le flash de mise en page avant que le CDN Tailwind
   ait généré ses classes utilitaires.
   ─────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    .sm\:inline-flex { display: inline-flex !important; }
    .sm\:hidden      { display: none        !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (min-width: 768px) {
    #navbar-flowbite        { display: flex              !important; }
    .md\:flex               { display: flex              !important; }
    .md\:hidden             { display: none              !important; }
    .md\:inline-flex        { display: inline-flex       !important; }
    .md\:w-auto             { width: auto                !important; }
    .md\:order-1            { order: 1                   !important; }
    .md\:order-2            { order: 2                   !important; }
    .md\:flex-row           { flex-direction: row        !important; }
    .md\:mt-0               { margin-top: 0              !important; }
    .md\:border-0           { border-width: 0            !important; }
    .md\:bg-transparent     { background-color: transparent !important; }
    .md\:p-0                { padding: 0                 !important; }
    .md\:rounded-none       { border-radius: 0           !important; }
    .md\:gap-8              { gap: 2rem                  !important; }
    .md\:grid-cols-2        { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

