/* ============================================
   FIDENCIA — Animation de pitch home (Option 1, pleine largeur)
   Préfixe unique .fid-* — aucun conflit avec le CSS existant
   30 secondes en boucle, 6 scènes
   ============================================ */

/* === SECTION ENVELOPPE === */
.fid-video-section {
    padding: 4.5rem 1.5rem;
    background: linear-gradient(180deg, #f5f5f1 0%, #fafaf8 100%);
    border-top: 1px solid #e8e8e6;
    border-bottom: 1px solid #e8e8e6;
}
.fid-video-section-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.fid-section-eyebrow {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #C9A84C;
    font-weight: 500;
}
.fid-section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin: 0.6rem 0 0.4rem;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    line-height: 1.15;
}
.fid-section-title em {
    font-style: italic;
    color: #C9A84C;
}
.fid-section-subtitle {
    color: #666;
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

/* === LA VIDÉO (720px) === */
.fid-video {
    margin: 2.5rem auto 0;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #fafaf8;
    box-shadow: 0 25px 70px -20px rgba(0,0,0,0.3);
    position: relative;
    border: 1px solid #e8e8e6;
}

.fid-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

/* Timing 30s */
.fid-scene-1 { animation: fid-fade-4s 30s infinite; animation-delay: 0s; }
.fid-scene-2 { animation: fid-fade-6s 30s infinite; animation-delay: 4s; }
.fid-scene-3 { animation: fid-fade-8s 30s infinite; animation-delay: 10s; }
.fid-scene-4 { animation: fid-fade-6s 30s infinite; animation-delay: 18s; }
.fid-scene-5 { animation: fid-fade-3s 30s infinite; animation-delay: 24s; }
.fid-scene-6 { animation: fid-fade-3s 30s infinite; animation-delay: 27s; }

@keyframes fid-fade-3s {
    0%, 100% { opacity: 0; transform: translateY(8px); }
    2%, 9%   { opacity: 1; transform: translateY(0); }
    11%      { opacity: 0; transform: translateY(-8px); }
}
@keyframes fid-fade-4s {
    0%, 100% { opacity: 0; transform: translateY(8px); }
    2%, 12%  { opacity: 1; transform: translateY(0); }
    14%      { opacity: 0; transform: translateY(-8px); }
}
@keyframes fid-fade-6s {
    0%, 100% { opacity: 0; transform: translateY(8px); }
    2%, 18%  { opacity: 1; transform: translateY(0); }
    20%      { opacity: 0; transform: translateY(-8px); }
}
@keyframes fid-fade-8s {
    0%, 100% { opacity: 0; transform: translateY(8px); }
    2%, 25%  { opacity: 1; transform: translateY(0); }
    27%      { opacity: 0; transform: translateY(-8px); }
}
@keyframes fid-pop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes fid-typein {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* === Scène 1 : question === */
.fid-scene-1 { background: #fafaf8; flex-direction: column; padding: 2rem; }
.fid-question {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.6rem;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.fid-question em {
    font-style: italic;
    color: #C9A84C;
    display: block;
    font-size: 2.1rem;
    margin-top: 0.3rem;
}

/* === Scène 2 : 11 modules === */
.fid-scene-2 {
    background: #fafaf8;
    flex-direction: column;
    padding: 1.8rem 2.5rem;
    gap: 1.2rem;
}
.fid-modules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    width: 100%;
}
.fid-mod {
    background: white;
    border: 1px solid #e8e8e6;
    border-radius: 5px;
    padding: 0.65rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #2a2a2a;
    text-align: center;
    opacity: 0;
    animation: fid-pop 0.3s ease-out forwards;
    border-left: 2px solid #C9A84C;
    line-height: 1.2;
}
.fid-mod:nth-child(1)  { animation-delay: 0.08s; }
.fid-mod:nth-child(2)  { animation-delay: 0.16s; }
.fid-mod:nth-child(3)  { animation-delay: 0.24s; }
.fid-mod:nth-child(4)  { animation-delay: 0.32s; }
.fid-mod:nth-child(5)  { animation-delay: 0.40s; }
.fid-mod:nth-child(6)  { animation-delay: 0.48s; }
.fid-mod:nth-child(7)  { animation-delay: 0.56s; }
.fid-mod:nth-child(8)  { animation-delay: 0.64s; }
.fid-mod:nth-child(9)  { animation-delay: 0.72s; }
.fid-mod:nth-child(10) { animation-delay: 0.80s; }
.fid-mod:nth-child(11) { animation-delay: 0.88s; }
.fid-counter {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-align: center;
}

/* === Scène 3 : démo Actions gratuites === */
.fid-scene-3 { background: #fafaf8; padding: 1.5rem; }
.fid-demo {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    padding: 1.1rem 1.3rem;
    border: 1px solid #e8e8e6;
}
.fid-demo-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0ee;
}
.fid-demo-icon {
    width: 36px; height: 36px;
    background: #f5f5f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A84C;
    flex-shrink: 0;
}
.fid-demo-tag {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.fid-demo-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1px;
}
.fid-demo-fields {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.fid-demo-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.8rem;
    background: #fafaf8;
    border-radius: 5px;
    font-size: 0.85rem;
}
.fid-demo-field-label { color: #555; }
.fid-demo-field-value {
    color: #1a3a5c;
    font-weight: 600;
    opacity: 0;
    animation: fid-typein 0.4s ease-out forwards;
}
.fid-demo-field:nth-child(1) .fid-demo-field-value { animation-delay: 0.6s; }
.fid-demo-field:nth-child(2) .fid-demo-field-value { animation-delay: 1.1s; }
.fid-demo-field:nth-child(3) .fid-demo-field-value { animation-delay: 1.6s; }
.fid-demo-result {
    margin-top: 0.8rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0E0E0E, #2C2C2C);
    border-radius: 6px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fid-pop 0.5s ease-out 2.2s forwards;
    border-left: 3px solid #C9A84C;
}
.fid-demo-result-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
}
.fid-demo-result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #C9A84C;
}

/* === Scène 4 : la case 1TZ === */
.fid-scene-4 {
    background: #fafaf8;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.5rem;
}
.fid-case-msg {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.fid-case-msg em {
    font-style: italic;
    color: #C9A84C;
}
.fid-case-callout-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    text-align: center;
}
.fid-case-box {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.4rem;
    background: white;
    border: 2px solid #C9A84C;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(201,168,76,0.2);
}
.fid-case-code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0E0E0E;
    background: #f5f5f1;
    padding: 0.25rem 0.7rem;
    border-radius: 5px;
}
.fid-case-arrow {
    color: #C9A84C;
    font-size: 1.2rem;
    font-weight: bold;
}
.fid-case-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* === Scène 5 : confidentialité === */
.fid-scene-5 {
    background: #fafaf8;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.5rem;
}
.fid-privacy-icon-large {
    width: 60px; height: 60px;
    background: #f5f5f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A84C;
}
.fid-privacy-msg {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.85rem;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.fid-privacy-sub {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    max-width: 70%;
    line-height: 1.5;
}

/* === Scène 6 : outro épuré === */
.fid-scene-6 {
    background: #0E0E0E;
    flex-direction: column;
    gap: 0.6rem;
}
.fid-outro-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 400;
    color: #FAFAF8;
    letter-spacing: -0.04em;
    line-height: 1;
}
.fid-outro-tagline {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #C9A84C;
    margin-top: 0.3rem;
}
.fid-outro-domain {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.85rem;
    color: #6B6B6B;
    margin-top: 0.6rem;
}

/* === Barre de progression === */
.fid-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #C9A84C;
    width: 100%;
    transform-origin: left;
    animation: fid-progress 30s linear infinite;
    z-index: 10;
}
@keyframes fid-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* === Responsive === */
@media (max-width: 768px) {
    .fid-video-section { padding: 3rem 1rem; }
    .fid-section-title { font-size: 1.7rem; }
    .fid-question { font-size: 1.6rem; }
    .fid-question em { font-size: 1.3rem; }
    .fid-modules { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
    .fid-mod { font-size: 0.7rem; padding: 0.5rem 0.55rem; }
    .fid-case-msg { font-size: 1.4rem; }
    .fid-privacy-msg { font-size: 1.3rem; }
    .fid-outro-logo { font-size: 2.5rem; }
}

/* === Accessibilité : respecter prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
    .fid-scene,
    .fid-scene-1, .fid-scene-2, .fid-scene-3,
    .fid-scene-4, .fid-scene-5, .fid-scene-6,
    .fid-mod, .fid-demo-field-value, .fid-demo-result,
    .fid-progress {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    /* En mode statique : afficher uniquement la scène d'outro avec le logo */
    .fid-scene-1, .fid-scene-2, .fid-scene-3,
    .fid-scene-4, .fid-scene-5 {
        display: none;
    }
}
