/* template/css/demarche_certificats.css */
.page-certificats {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::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" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #fff;
    backdrop-filter: blur(10px);
}

.hero-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.illustration-container {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a3a8f;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #1a3a8f;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1a3a8f, #2c5aa0);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    flex-direction: row-reverse;
}

.timeline-marker {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #1a3a8f;
    box-shadow: 0 10px 30px rgba(26, 58, 143, 0.3);
    z-index: 2;
    position: relative;
}

.marker-number {
    font-size: 2rem;
    font-weight: 900;
    color: #1a3a8f;
}

.timeline-content {
    flex: 1;
    padding: 0 30px;
}

.process-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.process-card .card-header {
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    color: white;
    padding: 20px 30px;
    border: none;
}

.process-card .card-body {
    padding: 30px;
}

.process-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.process-description {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(26, 58, 143, 0.05);
    border-radius: 8px;
    border-left: 4px solid #1a3a8f;
}

.process-description p {
    margin-bottom: 0;
    line-height: 1.6;
}

.process-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.process-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.process-list li:last-child {
    border-bottom: none;
}

.process-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.process-detail {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid #1a3a8f;
    border-radius: 5px;
    font-size: 0.9rem;
}

.process-detail p {
    margin-bottom: 0;
    line-height: 1.5;
}

.process-detail strong {
    color: #1a3a8f;
}

/* Details Section */
.details-section {
    background: #f8f9fa;
}

.info-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.info-card .card-header {
    background: linear-gradient(135deg, #1a3a8f, #2c5aa0);
    color: white;
    padding: 20px 30px;
    border: none;
}

.info-card .card-body {
    padding: 30px;
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-description {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(26, 58, 143, 0.05);
    border-radius: 8px;
    border-left: 4px solid #1a3a8f;
}

.info-description p {
    margin-bottom: 0;
    line-height: 1.6;
}

.info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.info-list li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 15px;
    color: #1a3a8f;
    font-size: 1.5rem;
    line-height: 1;
}

.nested-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.nested-list li {
    padding-left: 25px;
    border-bottom: none;
    font-size: 0.95rem;
}

.nested-list li::before {
    content: '›';
    left: 0;
    color: #666;
}

.info-subsection {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.info-subsection h5 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-detail {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}

.info-detail p {
    margin-bottom: 0;
    line-height: 1.6;
    font-style: italic;
}

.info-detail strong {
    color: #1a3a8f;
    font-style: normal;
}

/* Session Cards */
.session-card {
    height: 100%;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.session-card .card-header {
    background: rgba(26, 58, 143, 0.1);
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
}

.session-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.session-note {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Special Notices */
.important-notice {
    margin: 20px 0;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.important-notice h5 {
    color: #856404;
    display: flex;
    align-items: center;
}

.important-notice p {
    margin-bottom: 10px;
    color: #856404;
}

.submission-info {
    margin: 20px 0;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 8px;
}

.submission-methods {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.submission-methods li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.info-requirement {
    margin: 20px 0;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.info-requirement p {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
    padding: 80px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-primary {
    background: #1a3a8f;
    border-color: #1a3a8f;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #153077;
    border-color: #153077;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.4);
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.cta-details {
    margin-top: 50px;
}

.cta-detail-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.cta-detail-item:hover {
    transform: translateY(-3px);
}

.cta-detail-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.cta-detail-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
.fade-in:nth-child(7) { animation-delay: 0.7s; }
.fade-in:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .illustration-container {
        width: 250px;
        height: 250px;
        font-size: 6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item:nth-child(even) .timeline-content {
        flex-direction: column;
    }

    .timeline-content {
        padding: 20px 0;
    }

    .process-timeline::before {
        left: 50px;
        width: 4px;
        height: 100%;
        top: 0;
    }

    .timeline-marker {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .cta-detail-item {
        margin-bottom: 15px;
    }
}

/* Print styles */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
    }

    .btn {
        display: none !important;
    }

    .info-detail {
        break-inside: avoid;
    }

    .process-timeline::before {
        display: none;
    }

    .timeline-marker {
        display: none;
    }
}