* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --senegal-green: #00853F;
    --senegal-yellow: #FCD116;
    --senegal-red: #E31B23;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-gray: #F3F4F6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 1rem 5%;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-flag {
    width: 45px;
    height: 30px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.flag-stripe {
    flex: 1;
}

.flag-green {
    background: var(--senegal-green);
}
.flag-yellow {
    background: var(--senegal-yellow);
}
.flag-red {
    background: var(--senegal-red);
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #475569;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
}

.nav-menu-desktop {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu-desktop a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-menu-desktop a:hover,
.nav-menu-desktop a.active {
    color: #475569;
}

/* Hero Section */
.standards-hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.standards-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 116, 139, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.standards-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.standards-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #334155;
    margin-bottom: 1.5rem;
}

.standards-hero p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.hero-badge-icon {
    font-size: 1.5rem;
}

.hero-badge-text {
    font-weight: 700;
    color: var(--text-dark);
}

/* Main Content */
.standards-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Standards Grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.standard-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.standard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #64748b, #94a3b8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.standard-card:hover::before {
    transform: scaleX(1);
}

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

.standard-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.standard-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.standard-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.standard-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.standard-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-light);
}

.standard-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.standard-detail-label {
    color: var(--text-light);
    font-weight: 600;
}

.standard-detail-value {
    color: var(--text-dark);
    font-weight: 700;
}

.standard-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.standard-status.adopte {
    background: #dcfce7;
    color: #16a34a;
}

.standard-status.en-cours {
    background: #fef3c7;
    color: #d97706;
}

.standard-status.planifie {
    background: #e0e7ff;
    color: #4f46e5;
}

.standard-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.standard-link:hover {
    gap: 1rem;
}

/* Documentation Section */
.documentation-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

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

.documentation-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.doc-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.doc-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.doc-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.doc-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.doc-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Compliance Checklist */
.compliance-section {
    margin-bottom: 5rem;
}

.compliance-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.compliance-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.compliance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #64748b, #94a3b8);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.compliance-header h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
}

.compliance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compliance-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.compliance-item:hover {
    background: #e2e8f0;
}

.compliance-checkbox {
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.compliance-item.checked .compliance-checkbox {
    background: #64748b;
    border-color: #64748b;
}

.compliance-item.checked .compliance-checkbox::after {
    content: '✓';
    color: var(--white);
    font-weight: 900;
}

.compliance-text {
    flex: 1;
}

.compliance-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

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

/* Timeline Section */
.timeline-section {
    margin-bottom: 5rem;
}

.timeline-container {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

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

.timeline-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #64748b, #cbd5e1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: #64748b;
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #e2e8f0;
}

.timeline-item.completed .timeline-dot {
    background: #16a34a;
}

.timeline-item.upcoming .timeline-dot {
    background: #cbd5e1;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #64748b;
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.timeline-item.completed .timeline-date {
    background: #16a34a;
}

.timeline-item.upcoming .timeline-date {
    background: #cbd5e1;
    color: #64748b;
}

.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer-about p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #cbd5e1;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.social-icon:hover {
    background: #64748b;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.footer-bottom p {
    margin-bottom: 1rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,0.9);
}

/* Responsive */
@media (max-width: 1024px) {
    .standards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .documentation-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-menu-desktop {
        display: none;
    }

    nav {
        padding: 1rem 3%;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

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

    /* Hero mobile */
    .standards-hero {
        padding: 3rem 4%;
    }

    .standards-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .standards-hero p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-badge {
        width: 100%;
        justify-content: center;
    }

    /* Main content mobile */
    .standards-main {
        padding: 3rem 4%;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Standards grid mobile */
    .standards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .standard-card {
        padding: 2rem 1.5rem;
    }

    .standard-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .standard-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .standard-card h3 {
        font-size: 1.2rem;
    }

    .standard-card p {
        font-size: 0.95rem;
    }

    .standard-details {
        margin-top: 1.2rem;
        padding-top: 1.2rem;
    }

    /* Documentation mobile */
    .documentation-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

    .documentation-header {
        margin-bottom: 2rem;
    }

    .documentation-header h2 {
        font-size: 1.8rem;
    }

    .documentation-grid {
        gap: 1rem;
    }

    .doc-item {
        flex-direction: row;
        padding: 1.2rem;
        gap: 1rem;
    }

    .doc-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .doc-content h4 {
        font-size: 1rem;
    }

    .doc-content p {
        font-size: 0.85rem;
    }

    .doc-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    /* Timeline mobile */
    .timeline-section {
        margin-bottom: 3rem;
    }

    .timeline-container {
        padding: 2rem 1.5rem;
    }

    .timeline-header h2 {
        font-size: 1.8rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-dot {
        left: -2.5rem;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-date {
        font-size: 0.75rem;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    /* Compliance mobile */
    .compliance-section {
        margin-bottom: 3rem;
    }

    .compliance-card {
        padding: 2rem 1.5rem;
    }

    .compliance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1.2rem;
    }

    .compliance-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .compliance-header h3 {
        font-size: 1.6rem;
    }

    .compliance-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .compliance-text h4 {
        font-size: 0.95rem;
    }

    .compliance-text p {
        font-size: 0.85rem;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 3rem 4% 1.5rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .standards-hero {
        padding: 2.5rem 4%;
    }

    .standards-hero h1 {
        font-size: 1.7rem;
    }

    .standards-hero p {
        font-size: 0.95rem;
    }

    .hero-badge {
        padding: 0.7rem 1.2rem;
    }

    .hero-badge-icon {
        font-size: 1.3rem;
    }

    .hero-badge-text {
        font-size: 0.9rem;
    }

    /* Main sections */
    .standards-main {
        padding: 2.5rem 4%;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* Standard cards compact */
    .standard-card {
        padding: 1.5rem 1.2rem;
    }

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

    .standard-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .standard-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .standard-detail-item {
        font-size: 0.85rem;
    }

    .standard-status {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .standard-link {
        font-size: 0.85rem;
    }

    /* Documentation compact */
    .documentation-section {
        padding: 1.8rem 1.2rem;
    }

    .documentation-header h2 {
        font-size: 1.6rem;
    }

    .doc-item {
        padding: 1rem;
    }

    .doc-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .doc-content h4 {
        font-size: 0.95rem;
    }

    .doc-content p {
        font-size: 0.8rem;
    }

    .doc-meta {
        font-size: 0.75rem;
    }

    /* Timeline compact */
    .timeline-container {
        padding: 1.8rem 1.2rem;
    }

    .timeline-header h2 {
        font-size: 1.6rem;
    }

    .timeline-header p {
        font-size: 0.9rem;
    }

    .timeline {
        padding-left: 1.8rem;
    }

    .timeline::before {
        width: 2px;
    }

    .timeline-dot {
        left: -2.3rem;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Compliance compact */
    .compliance-card {
        padding: 1.8rem 1.2rem;
    }

    .compliance-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .compliance-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .compliance-header h3 {
        font-size: 1.5rem;
    }

    .compliance-list {
        gap: 0.8rem;
    }

    .compliance-item {
        padding: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .compliance-checkbox {
        width: 22px;
        height: 22px;
    }

    .compliance-text h4 {
        font-size: 0.9rem;
    }

    .compliance-text p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 375px) {
    /* Very small screens */
    .standards-hero h1 {
        font-size: 1.5rem;
    }

    .hero-badge {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .standard-card-header {
        text-align: center;
        align-items: center;
    }

    .timeline-header h2,
    .compliance-header h3,
    .documentation-header h2 {
        font-size: 1.4rem;
    }

    .doc-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Landscape mode for phones */
@media (max-width: 968px) and (orientation: landscape) {
    .standards-hero {
        padding: 2rem 4%;
    }

    .standards-hero h1 {
        font-size: 1.8rem;
    }

    .standards-hero p {
        font-size: 0.95rem;
    }

    .hero-badges {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-badge {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .standard-card,
    .doc-item,
    .compliance-item,
    .timeline-content {
        /* Larger touch targets */
        min-height: 44px;
    }

    .standard-link,
    .nav-menu-desktop a,
    .footer-section a {
        padding: 0.5rem;
        margin: -0.5rem;
    }

    /* Remove hover effects on touch devices */
    .standard-card:hover::before {
        transform: scaleX(0);
    }

    .standard-card:active::before {
        transform: scaleX(1);
    }
}
