/* CSS spécifique pour la page de remerciement */

/* Utilisation des variables définies dans style.css */
:root {
    --primary-color: #002D62;
    --secondary-color: #2ECC71;
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-light: rgba(255, 255, 255, 0.95);
    --background-dark-footer: rgba(34, 34, 34, 0.95);
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --transition-duration: 0.3s;
}

body {
    background: linear-gradient(135deg, var(--primary-color), #003875, #004d9f);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(46, 204, 113, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

* {
    box-sizing: border-box;
}

/* Container de confettis */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #2ECC71;
    animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(odd) {
    background: #002D62;
    animation-duration: 2.5s;
}

.confetti:nth-child(even) {
    background: #FFD700;
    animation-duration: 3.5s;
}

.confetti:nth-child(3n) {
    background: #FF6B6B;
    animation-duration: 2.8s;
}

.confetti:nth-child(4n) {
    background: #4ECDC4;
    animation-duration: 3.2s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Page principale */
.thank-you-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.thank-you-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
    max-width: 800px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.8s ease-out;
}

.thank-you-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    pointer-events: none;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icône de succès avec animation */
.success-icon {
    margin-bottom: var(--spacing-lg);
    animation: bounceIn 1s ease-out 0.5s both;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--secondary-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--secondary-color);
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Titre principal */
h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease-out 0.3s both;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: slideIn 0.8s ease-out 0.8s both;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message de remerciement */
.thank-you-message {
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.main-message {
    font-size: 1.3em;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-weight: 400;
}

.response-info {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.1);
    animation: slideInLeft 0.8s ease-out 0.9s both;
}

.next-steps {
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInRight 0.8s ease-out 1.1s both;
}

.next-steps h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    font-size: 1.2em;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps ul li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
    transition: transform 0.3s ease;
}

.next-steps ul li:hover {
    transform: translateX(5px);
}

.next-steps ul li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1em;
    position: absolute;
    left: 0;
    top: 2px;
}

.next-steps a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
}

.next-steps a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 120px;
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Boutons d'action */
.action-buttons {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.action-buttons .btn {
    margin: 0 var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1em;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.action-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.action-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.action-buttons .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Informations de contact */
.contact-info {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.9), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out 1.2s both;
}

.contact-info p {
    margin: var(--spacing-xs) 0;
    font-size: 0.95em;
}

/* Responsivité */
@media (max-width: 768px) {
    .thank-you-content {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 2em;
    }
    
    .main-message {
        font-size: 1.1em;
    }
    
    .action-buttons .btn {
        display: block;
        margin: var(--spacing-sm) 0;
        width: 100%;
    }
    
    .checkmark {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .thank-you-content {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-xs);
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .next-steps {
        text-align: center;
    }
}
