/* ========================================
   Variables CSS - Couleurs CER Réseau
   ======================================== */
:root {
    --cer-blue: #0056A6;
    --cer-blue-dark: #003D7A;
    --cer-blue-light: #3380C1;
    --cer-red: #E30613;
    --cer-red-dark: #B30410;
    --cer-red-light: #FF2830;
    --gray-light: #F5F7FA;
    --gray-medium: #E1E8ED;
    --gray-dark: #657786;
    --text-dark: #14171A;
    --text-light: #657786;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 86, 166, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 86, 166, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 86, 166, 0.2);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--gray-light) 0%, #E8EFF5 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   Header
   ======================================== */
.header {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--cer-blue) 0%, var(--cer-red) 100%);
}

.logo-container {
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cer-blue);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ========================================
   Cards Container
   ======================================== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* ========================================
   Platform Cards
   ======================================== */
.platform-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.4s ease;
}

.drivup-card::before {
    background: linear-gradient(90deg, var(--cer-blue) 0%, var(--cer-blue-light) 100%);
}

.code-card::before {
    background: linear-gradient(90deg, var(--cer-red) 0%, var(--cer-red-light) 100%);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.platform-card:hover::before {
    height: 100%;
    opacity: 0.03;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.drivup-card .card-icon {
    background: linear-gradient(135deg, var(--cer-blue) 0%, var(--cer-blue-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 166, 0.3);
}

.code-card .card-icon {
    background: linear-gradient(135deg, var(--cer-red) 0%, var(--cer-red-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.platform-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
}

.card-features li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.card-features li:hover {
    transform: translateX(5px);
}

.card-features i {
    margin-right: 12px;
    font-size: 1rem;
}

.drivup-card .card-features i {
    color: var(--cer-blue);
}

.code-card .card-features i {
    color: var(--cer-red);
}

.card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drivup-card .card-button {
    background: linear-gradient(135deg, var(--cer-blue) 0%, var(--cer-blue-light) 100%);
    box-shadow: 0 4px 15px rgba(0, 86, 166, 0.3);
}

.code-card .card-button {
    background: linear-gradient(135deg, var(--cer-red) 0%, var(--cer-red-light) 100%);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

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

.card-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 86, 166, 0.4);
}

.card-button i {
    transition: transform 0.3s ease;
}

.card-button:hover i {
    transform: translateX(5px);
}

/* ========================================
   Quick Access Section
   ======================================== */
.quick-access {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.8s both;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cer-blue);
    margin-bottom: 20px;
    text-align: center;
}

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

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--gray-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--cer-blue);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    background: var(--cer-blue);
    color: var(--white);
    border-color: var(--cer-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Testimonial Section
   ======================================== */
.testimonial {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out 0.8s both;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
}

.testimonial-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.stars {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.stars i {
    animation: starPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stars i:nth-child(1) { animation-delay: 0s; }
.stars i:nth-child(2) { animation-delay: 0.2s; }
.stars i:nth-child(3) { animation-delay: 0.4s; }
.stars i:nth-child(4) { animation-delay: 0.6s; }
.stars i:nth-child(5) { animation-delay: 0.8s; }

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 30px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--cer-blue);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text::after {
    content: '"';
    position: absolute;
    right: 0;
    bottom: -40px;
    font-size: 4rem;
    color: var(--cer-red);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 15px;
}

.testimonial-author strong {
    color: var(--cer-blue);
    font-weight: 600;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    position: relative;
    animation: fadeIn 1s ease-out 1s both;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--cer-blue) 0%, var(--cer-red) 100%);
    border-radius: 20px 20px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--cer-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section i {
    color: var(--cer-red);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--gray-medium);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 15px;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .platform-card {
        padding: 30px 20px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .quick-links {
        flex-direction: column;
    }
    
    .quick-link {
        justify-content: center;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
    }
    
    .platform-card,
    .header,
    .footer,
    .quick-access {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
