/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Hero */
.qualite-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.qualite-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 100px 100px;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.comic-title {
    font-family: 'Bangers', cursive;
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.qualiopi-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.qualiopi-badge:hover {
    transform: scale(1.05);
}

.qualiopi-badge i {
    font-size: 1.8rem;
    color: #667eea;
}

.qualiopi-badge span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

/* Section Documents */
.documents-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.document-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.document-card:hover::before {
    left: 100%;
}

.document-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.document-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.document-card:hover .document-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.document-icon i {
    font-size: 2.2rem;
    color: #fff;
}

.document-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

.document-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    font-weight: 500;
}

/* Section Certification */
.certification-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.certification-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.certification-image {
    text-align: center;
}

.certification-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.certification-image img:hover {
    transform: scale(1.05);
}

.certification-text h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.certification-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-size: 1.05rem;
    color: #333;
    font-weight: 600;
}

.benefits-list i {
    color: #667eea;
    font-size: 1.3rem;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .comic-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .certification-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .certification-text h2 {
        font-size: 2rem;
        text-align: center;
    }

    .certification-text p {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .qualite-hero {
        padding: 80px 0 60px;
    }

    .comic-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .qualiopi-badge {
        padding: 12px 25px;
    }

    .qualiopi-badge i {
        font-size: 1.5rem;
    }

    .qualiopi-badge span {
        font-size: 1rem;
    }

    .documents-section {
        padding: 60px 0;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .document-card {
        padding: 30px 20px;
    }

    .certification-section {
        padding: 60px 0;
    }

    .certification-content {
        padding: 30px 20px;
    }

    .certification-text h2 {
        font-size: 1.8rem;
    }

    .certification-text p {
        font-size: 1rem;
    }

    .benefits-list li {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .comic-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .document-card h3 {
        font-size: 1.1rem;
    }

    .document-card p {
        font-size: 0.85rem;
    }

    .certification-text h2 {
        font-size: 1.5rem;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.document-card {
    animation: fadeInUp 0.6s ease forwards;
}
