/* =========================
   GOOGLE FONT
========================= */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f1e8;
    color: #1f2937;
    scroll-behavior: smooth;
}

/* =========================
   COULEURS PRINCIPALES
========================= */
:root {
    --primary: #0b1f3a;
    --secondary: #f8f4eb;
    --dark: #111111;
    --accent: #c1121f;
    --soft: #f7f2e8;
    --muted: #e9e0cf;
    --text: #334155;
}

/* =========================
   HEADER FIXE
========================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(11, 31, 58, 0.75);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* effet scroll header */
.main-header.scrolled {
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* =========================
   LOGO
========================= */
.logo {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    transition: 0.3s ease;
    background: white;
}

.brand-text h5 {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.brand-text small {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
}

/* =========================
   NAV LINKS
========================= */
.navbar-nav .nav-link {
    color: white;
    font-weight: 500;
    margin: 0 8px;
    transition: 0.3s;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent);
}

.navbar-nav .nav-link.active {
    color: var(--accent);
}

/* underline animation */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* =========================
   DROPDOWN MENU
========================= */
.dropdown-menu {
    background: #fcfaf5;
    border: none;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.dropdown-item:hover {
    background: var(--primary);
    color: white;
}

/* =========================
   BOUTONS
========================= */
.btn-login {
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.btn-login:hover {
    background: #fcfaf5;
    color: var(--primary);
}

.btn-don {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(193, 18, 31, 0.3);
}

.btn-don:hover {
    background: #a10f1a;
    transform: translateY(-2px);
}

/* =========================
   MOBILE MENU ICON
========================= */
.menu-icon {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: 0.3s;
}

/* animation open */
.menu-open .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-open .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* =========================
   MOBILE OVERLAY
========================= */
.mobile-overlay {
    position: fixed;
        top: 80px;
        left: 0;
        width: calc(100% - min(340px, 80vw));
        height: calc(100vh - 80px);
        background: rgba(0,0,0,0.45);
    transition: 0.3s;
    z-index: 9998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   NAVBAR MOBILE
========================= */
@media (max-width: 1199px) {
    .navbar-collapse {
        position: fixed !important;
        top: 80px;
        right: 0;
        left: auto;
        width: min(340px, 80vw);
        max-height: 0;
        overflow: hidden;
        background: rgba(11, 31, 58, 0.98);
        padding: 0 24px;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.35s ease, visibility 0.35s ease, padding 0.35s ease, right 0.35s ease, width 0.35s ease;
        z-index: 10000;
        box-shadow: 0 12px 48px rgba(0,0,0,0.16);
        box-sizing: border-box;
    }

    .navbar-collapse.show {
        max-height: calc(100vh - 80px);
        width: min(340px, 80vw);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        padding: 24px;
    }

    .navbar-collapse.show + .mobile-overlay,
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .navbar-nav .nav-link {
        display: block;
        margin: 0;
        color: white;
        padding: 12px 0;
    }

    .navbar-nav .nav-item.d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .navbar-collapse::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(11,31,58,0.98);
        pointer-events: none;
    }

    .navbar-collapse .navbar-nav,
    .navbar-collapse .nav-item {
        position: relative;
        z-index: 1;
    }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   SCROLL EFFECT GLOBAL
========================= */
section {
    padding: 80px 0;
}

/* =========================
   RESPONSIVE GLOBAL FIX
========================= */
@media (max-width: 768px) {

    .brand-text h5 {
        font-size: 14px;
    }

    .logo {
        height: 40px;
    }

    section {
        padding: 60px 0;
    }
}

/* =========================
   SMOOTH ELEMENT ANIMATION
========================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   FOOTER   */

.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(11,31,58,0.8), rgba(0,0,0,0.7)),
    url('../images/logo.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.floating-evangile-card {
    position: relative;
    display: inline-block;
    width: min(640px, 92vw);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 28px;
    padding: 22px 24px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 28px 70px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    text-decoration: none;
    margin: 32px auto 0;
}

.floating-evangile-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 42px 110px rgba(0,0,0,0.32);
}

.floating-evangile-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    background: rgba(193,18,31,0.2);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.floating-evangile-card h3 {
    margin: 16px 0 12px;
    font-size: 1.55rem;
    line-height: 1.12;
    color: #ffffff;
}

.floating-evangile-card-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.95rem;
}

.floating-evangile-card-line strong {
    color: #f8fafc;
    min-width: 145px;
    font-weight: 700;
}

.floating-evangile-card-line span {
    color: #e9eff7;
    opacity: 0.94;
}

@media (max-width: 900px) {
    .floating-evangile-card {
        position: static;
        width: 100%;
        margin: 32px auto 0;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 100px;
        height: auto;
    }

    .hero-content {
        padding: 40px 24px 20px;
    }

    .floating-evangile-card {
        padding: 20px;
    }
}

.hero-content h1 {
    font-size: 50px;
    font-weight: 800;
}

.hero-content p {
    font-size: 18px;
    margin-top: 15px;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 25px;
}

.btn-hero {
    display: inline-block;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.btn-hero.primary {
    background: #c1121f;
    color: white;
}

.btn-hero.primary:hover {
    background: #a10f1a;
    transform: translateY(-3px);
}

.btn-hero.secondary {
    border: 2px solid white;
    color: white;
}

.btn-hero.secondary:hover {
    background: white;
    color: #0b1f3a;
}

.hero-info {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.hero-info span {
    margin: 0 10px;
}




.section-light {
    background: white;
}

.section-dark {
    background: #0b1f3a;
    color: white;
}

.section-light h2,
.section-dark h2 {
    font-weight: 700;
    margin-bottom: 30px;
}



.card-service {
    background: white;
    padding: 20px;
    border-radius: 15px;
    color: #0b1f3a;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card-service:hover {
    transform: translateY(-5px);
}


.card-box {
    background: #f3f6fb;
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s;
}

.card-box:hover {
    background: #0b1f3a;
    color: white;
    transform: scale(1.03);
}


.news-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    color: #0b1f3a;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    border-left: 4px solid #c1121f;
}


.gallery-box {
    height: 180px;
    background: #ccc;
    border-radius: 10px;
    transition: 0.3s;
    overflow: hidden;
}

.gallery-box:hover {
    transform: scale(1.05);
    background: #0b1f3a;
}


.don-section {
    background: linear-gradient(135deg, #0b1f3a, #111);
    color: white;
    padding: 80px 20px;
}

.btn-don-large {
    display: inline-block;
    background: #c1121f;
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.btn-don-large:hover {
    background: #a10f1a;
    transform: translateY(-3px);
}


.main-footer {
    background: #0b1f3a;
    color: white;
    padding: 60px 0 20px;
}

.main-footer h4 {
    margin-bottom: 15px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

.main-footer ul li {
    margin-bottom: 10px;
}

.main-footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.main-footer ul li a:hover {
    color: #c1121f;
}

.main-footer hr {
    border-color: rgba(255,255,255,0.2);
    margin: 30px 0;
}

.social-block h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links 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: #ffffff;
    text-decoration: none;
    transition: 0.25s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.social-links a:hover {
    background: linear-gradient(135deg, #c1121f, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.social-links a i {
    font-size: 1.05rem;
}

.developer-credit {
    margin-top: 10px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.developer-credit strong {
    color: #fff;
}

.card-service,
.card-box,
.news-card {
    width: 100%;
}

.row {
    row-gap: 20px;
}

@media (max-width: 768px) {

    .card-service,
    .card-box,
    .news-card {
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 15px;
    }
}



@media (max-width: 1199px) {
    .dropdown-menu {
        position: static !important;
        display: none;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        margin-left: 10px;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-item {
        color: white;
    }
}


.navbar-nav .nav-item.d-flex {
    align-items: center;
}

@media (max-width: 1199px) {
    .nav-item.d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

section {
    padding: 70px 0;
}

@media (max-width: 768px) {
    section {
        padding: 50px 15px;
    }
}


/* =========================
   FIX DROPDOWN MOBILE VISIBILITY
========================= */

@media (max-width: 1199px) {

    .dropdown-menu {
        position: static !important;
        float: none;
        display: none;
        background: rgba(255,255,255,0.08);
        border-radius: 10px;
        margin: 8px 0;
        box-shadow: none;
    }

    .dropdown-menu.show {
        display: block;
        animation: fadeIn 0.25s ease;
    }

    .dropdown-toggle {
        color: white;
    }

    .dropdown-toggle[aria-expanded="false"] {
        color: white;
    }

    .dropdown-toggle[aria-expanded="true"] {
        color: var(--accent);
    }

    .dropdown-item {
        color: white !important;
        padding: 10px 15px;
    }

    .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
    }
}


/* =========================
   FIX MENU BLOQUÉ MOBILE
========================= */

.navbar-collapse {
    transition: right 0.35s ease;
}

body.menu-open {
    overflow: hidden;
    touch-action: pan-y;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu {
    pointer-events: auto;
    z-index: 9999;
}
