/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
    min-height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #1a2a6c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo i {
    color: #e74c3c;
    font-size: 28px;
}

.logo-img {
    max-height: 45px;
    width: auto;
}

.logo span {
    display: inline-block;
}

/* ===== MENU DE NAVIGATION ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
}

.nav-menu a:hover {
    color: #1a2a6c;
    background: rgba(26, 42, 108, 0.06);
}

.nav-menu a.active {
    color: #1a2a6c;
    background: rgba(26, 42, 108, 0.08);
    font-weight: 600;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #1a2a6c;
    border-radius: 3px;
}

.nav-menu .admin-btn {
    background: #1a2a6c !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-menu .admin-btn:hover {
    background: #2d3561 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 42, 108, 0.3);
}

.nav-menu .admin-btn::after {
    display: none !important;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 3px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 992px) {
    .nav-menu a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        gap: 5px;
        border-radius: 0 0 12px 12px;
        animation: slideDown 0.3s ease;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 8px;
        width: 100%;
        text-align: left;
    }
    
    .nav-menu a:hover {
        background: #f5f5f5;
    }
    
    .nav-menu a.active::after {
        display: none;
    }
    
    .nav-menu .admin-btn {
        text-align: center !important;
        margin-top: 5px;
    }
    
    .nav-menu .admin-btn:hover {
        transform: none !important;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
        min-height: 60px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .logo-img {
        max-height: 35px;
    }
    
    .hamburger span {
        width: 24px;
        height: 2px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a2a6c, #2d3561);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulse 10s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.2) rotate(10deg);
        opacity: 0.9;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.35);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: white;
    color: #1a2a6c;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a2a6c;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e74c3c;
    margin: 15px auto 0;
    border-radius: 3px;
}

/* ===== FEATURES ===== */
.features {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.feature-card i {
    font-size: 48px;
    color: #1a2a6c;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: #1a2a6c;
}

.feature-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.testimonial-rating {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.7;
}

.testimonial-card h4 {
    color: #1a2a6c;
    font-weight: 600;
    font-size: 16px;
}

.testimonial-card span {
    color: #888;
    font-size: 14px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a2a6c, #2d3561);
    color: white;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== REGISTRATION FORM ===== */
.registration-form {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-container {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.form-container h1 {
    color: #1a2a6c;
    font-size: 32px;
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a2a6c;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 42, 108, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 10px;
    background: #fafafa;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 13px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 18px 24px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.alert i {
    font-size: 20px;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert ul li {
    margin: 5px 0;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 {
    color: #1a2a6c;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item i {
    font-size: 24px;
    color: #1a2a6c;
    width: 40px;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    color: #333;
}

.contact-item p {
    color: #666;
    margin-top: 2px;
}

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    margin-bottom: 15px;
    color: #1a2a6c;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a2a6c;
    color: white;
    margin-right: 12px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 42, 108, 0.3);
}

/* ===== FAQ ===== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #1a2a6c;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px 20px;
    color: #666;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
    background: #1a2a6c;
    color: rgba(255,255,255,0.9);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-grid ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-grid ul li a:hover {
    color: white;
}

.footer-grid ul li i {
    width: 20px;
    color: rgba(255,255,255,0.5);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icons a:hover {
    background: #e74c3c;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    color: #1a2a6c;
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text h3 {
    color: #1a2a6c;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
}

.values-list li i {
    color: #2ecc71;
    font-size: 18px;
}

.about-image img {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .page-header h1 {
        font-size: 30px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== UTILITY ===== */
.text-center {
    text-align: center;
}

.text-danger {
    color: #e74c3c !important;
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-nouvelle {
    background: #3498db;
    color: white;
}

.badge-en-cours {
    background: #f39c12;
    color: white;
}

.badge-traitée {
    background: #2ecc71;
    color: white;
}