/* ==========================================================================
   ANIMLAB STYLE SYSTEM
   Colors: Blue (#1E3A8A), Orange (#F97316), White (#FFFFFF)
   Typography: Poppins (Sans-serif)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #1E3A8A;
    --primary-light: #2563EB;
    --primary-dark: #1E293B;
    --accent: #F97316;
    --accent-hover: #EA580C;
    --accent-light: #FFedd5;
    --white: #FFFFFF;
    
    /* Backgrounds and Neutrals */
    --bg-main: #F8FAFC;
    --bg-dark: #0F172A;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    
    /* Layout Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Max Width */
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Grid System Helper */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Common */
section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    height: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 10px;
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1010;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--primary);
    border-radius: 2px;
}

/* Video Banner Section */
.video-banner {
    padding: 0;
    margin-top: 80px; /* offset for fixed navbar */
    width: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 250px;
    max-height: 450px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.3) 0%, rgba(15, 23, 42, 0.6) 100%);
    pointer-events: none;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
    padding-top: 90px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: rgba(30, 58, 138, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(30, 58, 138, 0.12);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 550px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-image-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    transform: rotate(1deg);
    transition: var(--transition);
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Concept Section */
.concept {
    background-color: var(--white);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.concept-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    padding: 0;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.concept-card:hover {
    transform: translateY(-8px);
    background-color: var(--white);
    border-color: rgba(30, 58, 138, 0.2);
    box-shadow: var(--shadow-lg);
}

.concept-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.concept-card:hover .concept-card-img {
    transform: scale(1.04);
}

.concept-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.concept-card h3 {
    font-size: 1.35rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.concept-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Security Section */
.security {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8aeb 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.security-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.security-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.security-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.security-item {
    display: flex;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.security-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.security-icon {
    font-size: 2rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.security-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Capture Form Section */
.register {
    background-color: var(--bg-main);
    position: relative;
}

.register-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.register-info h2 {
    font-size: 2.25rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 20px;
}

.register-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 550;
    color: var(--primary);
}

.register-benefit-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Form Styling */
.form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Alert Boxes */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #BCF0DA;
}

.alert-danger {
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #FBD5D5;
}

/* Footer Section */
footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   Agenda Table Section
   ========================================================================== */
.agenda-section {
    background-color: var(--white);
}

.agenda-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 10px;
    border: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}

.agenda-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.agenda-table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 18px 20px;
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 2px solid var(--primary-dark);
}

.agenda-table th:first-child {
    border-top-left-radius: var(--radius-md);
}

.agenda-table th:last-child {
    border-top-right-radius: var(--radius-md);
}

.agenda-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
    font-size: 0.95rem;
}

.agenda-table tbody tr:last-child td {
    border-bottom: none;
}

.agenda-table tbody tr:nth-child(even) {
    background-color: rgba(30, 58, 138, 0.03); /* very light blue */
}

.agenda-table tbody tr:hover {
    background-color: rgba(249, 115, 22, 0.05); /* very light orange hover */
}

.agenda-table td.date-col {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ==========================================================================
   Team Org Section
   ========================================================================== */
.team-org {
    padding: 80px 0;
}

.team-org .section-header h2 {
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-org .section-header p {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 500;
}

.org-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.org-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

/* Horizontal Card Style */
.org-card.horizontal {
    background-color: #0d4750;
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
    border: 2px solid #38b2ac;
    border-radius: 50px;
}

.org-card.horizontal .org-avatar {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background-color: var(--white);
    color: #0d4750;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    overflow: hidden;
}

.org-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ajustements spécifiques pour les photos dont le visage est en haut */
.org-avatar img[src*="Dr_Ibrahima"],
.org-avatar img[src*="Oumar_Diouf"] {
    object-position: top;
}

.org-card.horizontal .org-info h4 {
    color: #f6ad55;
    font-size: 1rem;
    margin-bottom: 5px;
}

.org-card.horizontal .org-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
}

/* Separator */
.org-separator {
    text-align: center;
    margin: 60px 0;
    position: relative;
}

.org-separator h3 {
    color: #38b2ac;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    background: var(--bg-main);
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.org-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #38b2ac;
    z-index: 1;
}

/* Bottom Grid */
.org-grid-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Vertical Card Style */
.org-card.vertical {
    background-color: #4a5568;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 2px solid #a0aec0;
}

.org-card.vertical .org-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--bg-main);
    color: #4a5568;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    border: 3px solid #f6ad55;
    overflow: hidden;
}

.org-card.vertical .org-info h4 {
    color: #f6ad55;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.org-card.vertical .org-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners {
    padding: 60px 0;
}

.partners-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
}

.partners-img {
    max-width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply; /* Removes white background if page is not purely white */
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

@media (max-width: 992px) {
    .org-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-h1 {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        order: -1; /* Place image on top on tablet/mobile */
        max-width: 500px;
        margin: 0 auto;
    }
    
    .security-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .register-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .register-info {
        text-align: center;
    }
    
    .register-benefits {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .org-grid-top {
        grid-template-columns: 1fr;
    }
    
    .org-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2, .security-text h2, .register-info h2 {
        font-size: 1.75rem;
    }
    
    .navbar {
        height: 70px;
    }
    
    .video-banner {
        margin-top: 70px;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hamburger Active state */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        padding: 50px 0;
        gap: 25px;
        align-items: center;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-cta {
        margin-left: 0;
        width: 80%;
    }
    
    .nav-cta .btn {
        width: 100%;
    }
    
    .hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}


