/*
Theme Name: NGDC Theme
Author: KLN
Version: 1.0
*/

/* General Style */
/* Compensation Hader Fixe */
body{
    margin:0;
    padding: 0;
    min-width: 0;
    font-family:Arial,sans-serif;
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}

/* Container Global */

.container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Top Bar (BANDE BLEUE) */
.top-bar{
    background:  #2472b2;
    color: #ffffff;
    font-size: 14px;
    height: 50px;
    min-width: 0;
}

.top-bar-container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 0;
    
}

.top-contact{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

}

.top-contact span{
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-social{
    display: flex;
    gap: 15px;
}

.top-social a{
    color: #ffffff;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.top-social a:hover{
    opacity: 0.8;
}

/* Header Principal */
.navbar{
    background: rgb(242, 241, 235);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    
    position: relative;
    top: 0;
    z-index: 1000;
}

.navbar .container{
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    background: #F5F3EE;

    /* Réduction de la hauteur */
    min-height: 50px;
    padding: 3px 0px;
}

/* ==========================================================
   LOGO CIRCULAIRE
========================================================== */

.logo{
    position: absolute;
    left: 10px;
    top: -35px;
    z-index: 3000;
}

.logo img{
    width: 125px;
    height: 125px;

    object-fit: cover;

}

/* Menu */

/* MENU À DROITE */
.main-nav{
    margin-left: auto;
}

.main-nav ul{
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a{
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: color 0.3s ease;
}
.main-nav a:hover,
.main-nav a.active{
    color: #0E4A92;
}

section{
    scroll-margin-top: 100px;
}

/* Button Hamburger */
.menu-toggle{
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #0E4A92;
    cursor: pointer;
    padding: 5px;
}

/* Responsive */
@media (max-width:992px){

    .navbar .container{
        justify-content:flex-end;
        padding:2px 0px;
        min-height:50px;
    }

    /* LOGO */
    .logo{
        left:10px;
        top:-35px;
    }

    .logo img{
        width:100px;
        height:100px;
    }

    /* HAMBURGER */
    .menu-toggle{
        display:block;
    }

    /* MENU CACHE */
    .main-nav{
        display:none;

        position:absolute;
        top:100%;
        right:20px;

        width:260px;

        background:white;

        border-radius:10px;

        padding:20px;

        box-shadow:0 10px 25px rgba(0,0,0,0.15);

        z-index:2000;
    }

    .main-nav.active{
        display:block;
    }

    .main-nav ul{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .main-nav li{
        width:100%;
    }

    .main-nav a{
        display:block;
        width:100%;
    }
}

@media (max-width:768px){

    .navbar .container{
        padding:2px 0px;
    }

    /* LOGO */
    .logo{
        left:10px;
        top:-35px;
    }

    .logo img{
        width:100px;
        height:100px;
    }

    /* MENU */
    .main-nav{
        width:220px;
        right:10px;
    }

    .main-nav a{
        font-size:13px;
    }

    section{
        scroll-margin-top:120px;
    }
}


/* Hero Style*/
.hero{
    position: relative;
    min-height: 100vh;
    margin-top: -1px;
}

.hero-banner{
    height:500px;
    background-size:cover;
    background-position:center;
    position:relative;
    min-width: 0;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.25);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    color:white;
    text-align:center;
    min-width: 0;


    gap:15px; /* contrôle direct de l’espace */
}

.hero-overlay h1{
    font-size:60px;
    font-weight:bold;
    margin:0;
    line-height:1.1;
}

.hero-overlay p{
    font-size:28px;
    margin:0;
    line-height:1.4;
    opacity:0.9;
}


/* About and Mission Style */
.about-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height:500px;
}

@media (max-width: 768px){
    .about-grid{
        grid-template-columns:1fr;
    }
}

.about-left{
    padding: 80px;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-icon{
    font-size: 80px;
    color: #0E4A92;
    margin-bottom: 5px;
    line-height: 1;
}

.about-left h2{
    font-size: 50px;
    line-height: 1;
    color: #0E4A92;
    text-align: center;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: -5px !important;
}

.about-left p{
    font-size: 20px;
    line-height: 1.8;
    text-align: justify;
    color: #000;
    width: 100%;
}

.about-right{
    background-size:cover;
    background-position:center;
    padding:50px;

    display:flex;
    flex-direction:column;
    gap:20px;
}

.mission-box h3{
    display: inline-block;
    background: #0E4A92;
    color: #ffffff;
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    padding: 8px 28px;
    border-radius: 10px;
    margin-bottom: 20px;
}
/* Vision en gris clair, comme sur la maquette */
.mission-box.vision h3{
    background: #cfcfcf;
    color: #ffffff;
}

.mission-box p{
    background: rgba(255, 255, 255, 0.75);
    padding: 25px;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.mission-box h3{
    font-size: 42px;
    padding: 6px 20px;
}

.value-list{
    background: rgba(255, 255, 255, 0.75);
    padding: 25px 25px 25px 45px;
    border-radius: 10px;
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
}

.value-list li{
    margin-bottom: 8px;
}

.value-list li:last-child{
    margin-bottom: 0;
}

/* Project Key Style */
.projects-section{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height:500px; 
}

@media (max-width: 768px){
    .projects-section{
        grid-template-columns:1fr;
    }
}

.projects-left{
    background-size:cover;
    padding:50px;

    display:flex;
    flex-direction:column;
    gap:20px;
}

.project-card{
    background:rgba(255,255,255,0.85);
    padding:20px;
    border-radius:10px;
}
.project-card h3{
    font-size: 20px;
    text-align: center;
}

.projects-right{
    background:#0E4A92;
    color:white;
    padding:80px;
    display:flex;
    flex-direction:column;
    align-items: center;
    text-align: center;
}

.projects-right h2{
    font-size:50px;
    margin-bottom:20px;
    margin-top: -5px !important;
}

.projects-right p{
    text-align: justify;
    width: 100%;
    font-size: 20px;
    line-height: 1.8;
}

.projects-icon{
    font-size: 100px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 5px;
    line-height: 1;
}

.projects-video{
    width: 100%;
    margin-top: 30px;
    border: 0;
    border-radius: 12px;
    background-color: transparent;
    
}

.projects-video iframe{
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
}


/* News Style */
.news-section{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height:500px;
}

@media (max-width: 768px){
    .news-section{
        grid-template-columns:1fr;
    }
    .news-right{
        padding: 30px 20px;
        overflow: visible;
    }

    .slider{
        max-width: 100%;
    }
}

/* ==========================================
   COLONNE GAUCHE
========================================== */
.news-left{
    background: #f7f7f7;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.news-icon{
    font-size: 80px;
    color: #0E4A92;
    margin-bottom: 5px;
    line-height: 1;
}

.news-left h2{
    font-size: 50px;
    line-height: 1;
    color: #0E4A92;
    text-align: center;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: -5px !important;
}

.news-left p{
    font-size: 20px;
    line-height: 1.8;
    text-align: justify;
    width: 100%;
}

/* ==========================================
   COLONNE DROITE
========================================== */
.news-right{
    background-size: cover;
    background-position: center;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    position: relative;
}

/* ==========================================
   SLIDER ACTUALITÉS
========================================== */

/* Conteneur principal */
.slider{
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Zone qui contient toutes les slides */
.slides{
    display: flex;
    overflow: hidden;
}

/* Toutes les slides sont superposées */
.slide{
    display: none;
    flex: 0 0 100%;
}

/* Slide active visible */
.slide.active{
    display: block;
}

/* ==========================================
   PHOTOS SUPERPOSÉES
========================================== */
.polaroid-stack{
    position: relative;
    width: 320px;
    height: 280px;
    margin: 0 auto 30px;
}

.polaroid{
    position: absolute;
    width: 220px;
    height: 240px;
    background: #f5f3ee;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.20);
}

.polaroid-back{
    top: 20px;
    left: 60px;
    transform: rotate(4deg);
}

.polaroid-middle{
    top: 10px;
    left: 40px;
    transform: rotate(-3deg);
}

.polaroid-front{
    top: 0;
    left: 20px;
    transform: rotate(-1deg);
    z-index: 3;
}

.polaroid-front img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================
   DESCRIPTION
========================================== */
.news-caption{
    background: rgba(255,255,255,0.85);
    padding: 30px;
    border-radius: 20px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-caption p{
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #000;
    text-align: justify;
}

/* ==========================================
   BOUTONS PREV / NEXT
========================================== */
.prev,
.next{
    position: absolute;
    top: 200px; /* centré sur les photos */
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #0E4A92;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    z-index: 100;
}

.prev{
    left: 10px;
}

.next{
    right: 10px;
}

/* Effet au survol */
.prev:hover,
.next:hover{
    opacity: 0.9;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px){

    .slides{
        min-height: 560px;
    }

    .polaroid-stack{
        width: 260px;
        height: 230px;
    }

    .polaroid{
        width: 180px;
        height: 200px;
    }

    .prev{
        left: 0;
    }

    .next{
        right: 0;
    }
}

/* Resources Style */

.resources-section{
    position:relative;
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height:650px;
    overflow:hidden;
}

/* BACKGROUND */
.resources-bg{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    z-index:0;
}

/* OVERLAY */
.resources-overlay{
    position:absolute;
    inset:0;
    background:rgba(23,65,125,0.5);
    z-index:1;
}

/* LEFT */

.resources-left{
    position:relative;
    z-index:2;

    display:flex;
    flex-direction:column; /* IMPORTANT */
    align-items:center;
    justify-content:center;

    color:white;
    padding:60px;
    text-align:center;
    gap:20px; /* espace entre icône et titre */
}

.resources-left h2{
    font-size:50px;
    line-height:1;
    text-align: center;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: -5px !important;
}

.resources-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:80px;
    color:white;
    margin-bottom: 5px;
    line-height: 1;
}

/* RIGHT */
.resources-right{
    position:relative;
    z-index:2;
    display:flex;
    gap:40px;
    justify-content:center;
    align-items:center;
}

/* CARD */
.resource-card{
    width:340px;
    height:520px;
    background:rgba(255,255,255,0.15);
    border:1px solid rgba(255,255,255,0.4);
    border-radius:20px;
    padding:10px;
    backdrop-filter:blur(8px);
    margin-right: 12px;

    display:flex;
    flex-direction:column;
    gap:5px;
}

.resource-card h3{
    color:white;
    font-size:16px;
}

/* ==========================================
   SELECT PDF
========================================== */
.resource-select{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:white;
    color:#0E4A92;
    font-size:14px;
    margin-bottom:15px;
    cursor:pointer;
}

/* ==========================================
   PDF VIEWER
========================================== */
.pdf-viewer{
    flex:1;
    overflow:hidden;
    border-radius:14px;
    background:white;
    margin-bottom:15px;
    width:100%;
    height:240px;
    border-radius:12px;
}

.pdf-viewer iframe{
    width:100%;
    height:100%;
    border:none;
}

.download-btn{
    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    background:#0E4A92;
    color:white;

    padding:12px;
    border-radius:10px;

    transition:0.3s ease;
    font-size:14px;
    font-weight:600;
}

.download-btn:hover{
    background:white;
    color:#0E4A92;
}
/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px) {

    .resources-section{
        grid-template-columns: 1fr;
        height:auto;
        padding:40px 20px;
    }

    /* BACKGROUND */
    .resources-bg{
        position:absolute;
        inset:0;
        background-size:cover;
        background-position:center;
    }

    .resources-overlay{
        position:absolute;
        inset:0;
        background:rgba(23,65,125,0.8);
    }

    /* LEFT TITLE */
    .resources-left{
        padding:20px 0;
        text-align:center;
        justify-content:center;
    }

    .resources-left h2{
        font-size:28px;
        line-height:1.3;
    }

    /* RIGHT SECTION */
    .resources-right{
        flex-direction:column;
        gap:25px;
        align-items:center;
    }

    /* CARD */
    .resource-card{
        width:90%;
        max-width:380px;
        height:500px;
    }

}

/* Partners Style */
.partners-section{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height:700px;
}

/* ==========================================
   COLONNE GAUCHE
========================================== */
.partners-left{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#ffffff;
    padding:80px 50px;
}

.partners-icon{
    font-size:80px;
    line-height:1;
    margin-bottom:10px;
}

.partners-left h2{
    font-size:60px;
    font-weight:300;
    line-height:1;
    margin:0;
    max-width:420px;
    text-align: center; 
    margin-top: -10px !important;
}

/* ==========================================
   COLONNE DROITE
========================================== */
.partners-right{
    background:#f7f7f7;
    padding:80px 60px;

    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
    align-items:center;
    justify-items:center;
}

/* ==========================================
   LOGOS
========================================== */
.partner-logo{
    width:100%;
    /* max-width:180px; */
    display:flex;
    justify-content:center;
    align-items:center;
}

.partner-logo img{
    max-width:100%;
    /* max-height:110px; */
    width:auto;
    height:auto;
    object-fit:contain;
    filter:grayscale(0%);
    transition:transform 0.3s ease;
}

.partner-logo img:hover{
    transform:scale(1.05);
}

/* ==========================================
   RESPONSIVE TABLET
========================================== */
@media (max-width: 992px){

    .partners-section{
        grid-template-columns:1fr;
    }

    .partners-left{
        padding:60px 30px;
    }

    .partners-left h2{
        font-size:48px;
    }

    .partners-icon{
        font-size:80px;
    }

    .partners-right{
        grid-template-columns:repeat(3, 1fr);
        padding:50px 30px;
        gap:30px;
    }
}

/* ==========================================
   RESPONSIVE MOBILE
========================================== */
@media (max-width: 768px){

    .partners-left h2{
        font-size:36px;
    }

    .partners-icon{
        font-size:70px;
    }

    .partners-right{
        grid-template-columns:repeat(2, 1fr);
        gap:25px;
        padding:40px 20px;
    }

    .partner-logo{
        max-width:140px;
    }

    .partner-logo img{
        max-height:80px;
    }
}

/*Contact Style */
.contact-section{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height:500px;
}

/* ==========================================
   COLONNE GAUCHE
========================================== */
.contact-logo{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
    background:#f7f7f7;
}

.contact-logo img{
    max-width:320px;
    width:100%;
    height:auto;
    object-fit:contain;
}

/* ==========================================
   COLONNE DROITE
========================================== */
.contact-form{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:10px 30px;
    background:#ffffff;
}

.contact-form h2{
    font-size:48px;
    font-weight:300;
    color:#0E4A92;
    margin-bottom:30px;
    margin-top: -8px !important;
    line-height:1;
    text-align: center;
}

.contact-icon{
    display: flex;
    justify-content:center;
    align-items:center;
    font-size:80px;
    color: #0E4A92;
    margin-bottom: 8px;
    line-height: 1;
}

/* ==========================================
   CHAMPS CONTACT FORM 7
========================================== */
.contact-form input,
.contact-form textarea{
    width:100%;
    padding:16px 20px;
    margin-bottom:20px;
    border:none;
    border-radius:10px;
    background:#e9ecef;
    font-size:16px;
    box-sizing:border-box;
}

.contact-form textarea{
    min-height:160px;
    resize:vertical;
}

/* Bouton */
.contact-form input[type="submit"],
.contact-form button{
    width:60%;
    padding:15px;
    background:#0E4A92;
    color:#ffffff;
    border:none;
    border-radius:10px;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:all 0.3s ease;
    margin-left: auto;
    display: block;
    
}

.contact-form input[type="submit"]:hover,
.contact-form button:hover{
    background:#0b3a74;
    transform:translateY(-2px);
}

/* Message CF7 */
.wpcf7-response-output{
    margin-top:20px;
    border-radius:8px;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px){

    .contact-section{
        grid-template-columns:1fr;
        min-height:auto;
    }

    .contact-logo,
    .contact-form{
        padding:10px 30px;
    }

    .contact-logo img{
        max-width:220px;
    }

    .contact-form h2{
        font-size:38px;
        text-align:center;
    }
}

/* Footer Style*/
.footer-section{
    background:#0E4A92;
    color:white;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 10%;
    gap:30px;
    flex-wrap:wrap;
}

/* LEFT */
.footer-left{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.footer-left p{
    font-size:18px;
    font-weight:600;
}

/* SOCIAL LINKS */
.social-link{
    display:flex;
    align-items:center;
    gap:10px;

    color:white;
    text-decoration:none;

    transition:0.3s ease;
}

.social-link:hover{
    transform:translateX(5px);
    opacity:0.8;
}

.social-link i{
    font-size:20px;
}

/* RIGHT */
.footer-right{
    display:flex;
    flex-direction:column;
    gap:15px;
    text-align:right;
}

.footer-right p{
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:flex-end;
}

.footer-right i{
    color:#FFD54A;
    font-size:30px;
}

.footer-right span{
    font-size:14px;
    opacity:0.8;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width:768px){

    .footer-section{
        flex-direction:column;
        text-align:center;
    }

    .footer-right{
        text-align:center;
    }

    .footer-right p{
        justify-content:center;
    }
}

/* * {
    outline: 1px solid red;
} */