/* Variables CSS pour personnalisation facile */
:root {
    --signature-primary-color: #4361ee;
    --signature-secondary-color: #48cae4;
    --signature-accent-color: #ff9e00;
    --signature-text-color: #333;
    --signature-text-light: #666;
    --signature-bg-color: #f8f9fa;
    --signature-bg-card: #ffffff;
    --signature-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --signature-shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --signature-transition: all 0.3s ease;

    /* Palette de couleurs officielles Milano-Cortina 2026 */
    --mc-blue: #005eb8;
    --mc-red: #d42e12;
    --mc-white: #ffffff;
    --mc-green: #00a651;
    --mc-gold: #ffd700;
    --mc-gray: #6c757d;
    --mc-light-blue: #90c6e8;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, rgba(240,248,255,0.5), rgba(255,255,255,0.8));
    color: var(--mc-gray);
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.8rem;
    color: var(--mc-blue);
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.6rem;
    color: var(--mc-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.countdown-container {
    display: flex;
    gap: 2rem;
}

.countdown-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--mc-blue);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

.countdown-label {
    font-size: 1.2rem;
    color: #000;
    margin-top: 0.5rem;
}

.olympic-rings {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 8px solid;
}

.ring-blue { border-color: #0081C8; }
.ring-yellow { border-color: #FDB813; }
.ring-black { border-color: #000; }
.ring-green { border-color: #00A651; }
.ring-red { border-color: #ED334E; }

/* SIGNATURE FOOTER */
.signature-footer {
    margin-top: 70px;
    padding: 40px 20px;
    background: linear-gradient(0deg, #f0f2fa, var(--signature-bg-color));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 0.95rem;
    color: var(--signature-text-light);
    position: relative;
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--signature-primary-color),
        var(--signature-secondary-color),
        var(--signature-accent-color));
    opacity: 0.7;
}

.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    font-size: 1.3rem;
    color: var(--signature-text-light);
    transition: var(--signature-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    box-shadow: var(--signature-shadow-sm);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--signature-shadow-md);
}

.gitlab-icon:hover {
    color: #FC6D26;
    background-color: #fff9f6;
}

.twitter-icon:hover {
    color: #1DA1F2;
    background-color: #f5faff;
}

.email-icon:hover {
    color: #D44638;
    background-color: #fff7f6;
}

.paypal-icon:hover {
    color: #003087;
    background-color: #f5f7fa;
}

.copyright {
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.donation-text {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--signature-text-light);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.donation-text a {
    color: var(--signature-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--signature-transition);
    position: relative;
    padding-bottom: 2px;
}

.donation-text a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--signature-primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.donation-text a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.project-info {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--signature-text-light);
}

/* Bandeau de don */
.donation-ribbon {
    position: fixed;
    top: 45px;
    left: -75px;
    width: 260px;
    background: linear-gradient(135deg, var(--signature-accent-color), #ffa726);
    color: white;
    text-align: center;
    padding: 10px 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--signature-transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-ribbon:hover {
    background: linear-gradient(135deg, #ffa726, var(--signature-accent-color));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: rotate(-45deg) scale(1.05);
}

.donation-ribbon i {
    margin-right: 8px;
    font-size: 1rem;
}

/* BANDE DÉFILANTE DES SPORTS OLYMPIQUES */
.sports-marquee {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.9), rgba(255,255,255,0.1));
    padding: 20px 0;
    margin: 30px 0;
}

.sports-container {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 40px;
    align-items: center;
    justify-content: space-around;
}

.sport-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    text-align: center;
}

.sport-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) brightness(0) saturate(100%) invert(17%) sepia(86%) saturate(2679%) hue-rotate(202deg) brightness(96%) contrast(101%);
    transition: transform 0.3s ease;
}

.sport-icon:hover img {
    transform: scale(1.2) rotate(10deg);
}

.sport-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.7);
    padding: 5px 10px;
    border-radius: 15px;
    margin-top: 5px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* LOGO OFFICIEL ET ATTRIBUTION */
.official-logo {
    margin-bottom: 25px;
    text-align: center;
    animation: fadeIn 1.5s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-img {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
    transition: all 0.4s ease;
    border-radius: 8px;
}

.logo-img:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.logo-label {
    font-size: 0.75rem;
    color: var(--mc-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.attribution {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    margin-top: 10px;
    padding: 0 20px;
    line-height: 1.4;
}

.attribution a {
    color: #4361ee;
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .countdown-container {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .signature-footer {
        padding: 30px 15px;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .donation-ribbon {
        top: 50px;
        left: -85px;
        width: 260px;
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .sports-container {
        gap: 20px;
        animation: scroll 20s linear infinite;
    }

    .sport-icon {
        min-width: 100px;
    }

    .sport-icon img {
        width: 50px;
        height: 50px;
    }

    .sport-name {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .official-logo {
        gap: 20px;
    }

    .logo-img {
        max-width: 150px;
    }

    .logo-label {
        font-size: 0.65rem;
    }

    .attribution {
        font-size: 0.6rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .signature-footer {
        padding: 25px 10px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .donation-ribbon {
        display: none;
    }

    .sports-container {
        gap: 15px;
        animation: scroll 15s linear infinite;
    }

    .sport-icon {
        min-width: 80px;
    }

    .sport-icon img {
        width: 40px;
        height: 40px;
    }

    .official-logo {
        gap: 15px;
    }

    .logo-img {
        max-width: 120px;
    }

    .logo-label {
        font-size: 0.6rem;
    }
}
