/* ============================================
   16-MERCI.CSS - Pages de confirmation
   Style consistant avec le site
   ============================================ */

/* HERO */
.merci-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
    background:
        radial-gradient(ellipse at top, rgba(79, 195, 247, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, var(--gris-tres-clair) 100%);
    position: relative;
    overflow: hidden;
}

.merci-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle, rgba(38, 198, 218, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.merci-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* SUCCESS ICON */
.success-icon-wrapper {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, #4FC3F7 0%, #26C6DA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(79, 195, 247, 0.3),
        0 16px 48px rgba(79, 195, 247, 0.15);
    animation: merci-pop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon-wrapper svg {
    width: 48px;
    height: 48px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-icon-wrapper .check-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: merci-check 0.5s 0.4s ease forwards;
}

@keyframes merci-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes merci-check {
    to {
        stroke-dashoffset: 0;
    }
}

/* TITRES */
.merci-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-xs);
    color: var(--texte-principal);
    letter-spacing: -0.02em;
}

.merci-subtitle {
    font-size: var(--text-xl);
    color: var(--texte-secondaire);
    margin-bottom: var(--space-xl);
}

/* MESSAGE BOX */
.merci-message-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: left;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.merci-message-box h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
    color: var(--texte-principal);
}

.merci-message-box>p {
    color: var(--texte-secondaire);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* TIMELINE */
.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #4FC3F7 0%, #26C6DA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    font-family: var(--font-heading);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.step-content h3 {
    font-size: var(--text-lg);
    margin-bottom: 0.2rem;
    color: var(--texte-principal);
}

.step-content p {
    color: var(--texte-secondaire);
    font-size: var(--text-base);
    margin: 0;
    line-height: 1.5;
}

/* INFO BOXES */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.info-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 195, 247, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 195, 247, 0.12);
    border-color: rgba(79, 195, 247, 0.25);
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(38, 198, 218, 0.1));
    border-radius: 12px;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    color: #4FC3F7;
    margin-bottom: var(--space-sm);
}

.info-box h3 {
    font-size: var(--text-lg);
    margin-bottom: 0.25rem;
    color: var(--texte-principal);
}

.info-box p {
    color: var(--texte-secondaire);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

/* ACTIONS */
.merci-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* FOOTER NOTE */
.merci-footer-note {
    padding: var(--space-md);
    background: rgba(255, 152, 0, 0.06);
    border-left: 4px solid #FF9800;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    text-align: left;
}

.merci-footer-note p {
    color: var(--texte-secondaire);
    font-size: var(--text-sm);
    margin: 0;
    line-height: 1.7;
}

.merci-footer-note strong {
    color: #E65100;
}

/* SECTION EN ATTENTE */
.section-accent-blue {
    background:
        radial-gradient(ellipse at bottom, rgba(79, 195, 247, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, var(--gris-tres-clair) 0%, var(--blanc) 100%);
}

/* CARD GLOW (cartes merci) */
.card-glow {
    text-align: center;
}

.card-glow h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--texte-principal);
}

.card-glow p {
    color: var(--texte-secondaire);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .merci-hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    .merci-hero h1 {
        font-size: 1.75rem;
    }

    .merci-subtitle {
        font-size: var(--text-lg);
    }

    .merci-message-box {
        padding: var(--space-lg) var(--space-md);
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }

    .merci-actions {
        flex-direction: column;
    }

    .merci-actions .btn {
        width: 100%;
    }

    .success-icon-wrapper {
        width: 72px;
        height: 72px;
    }

    .success-icon-wrapper svg {
        width: 36px;
        height: 36px;
    }
}