/* ========================================
   VARIABLES & FOUNDATIONAL STYLES
   ======================================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --danger-color: #dc3545;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Header brand font */
.brand-text-container,
.whatsapp-number,
.brand-slogan,
.whatsapp-link,
.whatsapp-text {
    font-family: 'Poppins', sans-serif;
}

.whatsapp-number {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b7a5f;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.whatsapp-link i.fab.fa-whatsapp {
    color: #25D366;
    font-size: 1.05rem;
    background: rgba(37,211,102,0.12);
    padding: 6px;
    border-radius: 50%;
}

.brand-slogan {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slogan-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.slogan-link:hover {
    transform: scale(1.05);
}

.slogan-link:hover .text-gold {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.slogan-link:hover .text-blue {
    text-shadow: 0 0 8px rgba(30, 144, 255, 0.5);
}

/* ========================================
   NAVBAR STYLING
   ======================================== */
.navbar-custom {
    /* Frosted glass style with subtle gradient and rounded corners */
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%) !important;
    
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(18, 38, 63, 0.07);
    padding: 0.6rem 0;
    position: sticky;
    top: 12px;
    z-index: 1000;
    margin: 8px 0;
    border-radius: 12px;
    border: 1px solid rgba(30,144,255,0.06);
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #1e90ff 0%, #ffd700 100%) 1;
    transition: var(--transition);
}

.navbar-custom:hover {
    box-shadow: 0 14px 45px rgba(18, 38, 63, 0.10);
    transform: translateY(-2px);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e90ff 0%, #ffd700 100%);
    border-radius: 8px;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
    transition: var(--transition);
}

.logo-img {
    width: 50px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
    transition: var(--transition);
}

.brand-text-container {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.text-blue {
    color: #1e90ff;
    font-weight: 800;
}

.text-gold {
    color: #ffd700;
    font-weight: 800;
}

.text-separator {
    color: #1e90ff;
    opacity: 0.7;
    margin: 0 2px;
}

.navbar-brand-custom {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #1a1a2e ;
    transition: var(--transition);
    text-decoration: none ;
}

.navbar-brand-custom:hover {
    transform: translateY(-3px);
}

.navbar-brand-custom:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

.brand-text {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.nav-link-custom {
    position: relative;
    font-weight: 700;
    margin: 0 12px;
    transition: var(--transition);
    color: #333 ;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    padding: 8px 0 ;
}

/* ==========================
   Header-specific typography
   Target only elements inside .navbar-custom to avoid touching admin styles
   ========================== */
.navbar-custom .navbar-brand-custom,
.navbar-custom .brand-text-container,
.navbar-custom .brand-slogan,
.navbar-custom .whatsapp-link,
.navbar-custom .nav-link-custom {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.navbar-custom .navbar-brand-custom {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #0f1724 !important;
}

.navbar-custom .nav-link-custom {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: none; /* more modern look */
    color: #2c3e50 !important;
    padding: 10px 8px !important;
}

.navbar-custom .nav-link-custom::before {
    bottom: -6px;
}

.navbar-custom .nav-link-custom:hover {
    color: #1e90ff !important;
    transform: translateY(-3px);
    text-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.navbar-custom .navbar-brand-custom .logo-img {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.navbar-custom .navbar-brand-custom:hover .logo-img {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 8px 30px rgba(30,144,255,0.12);
}

/* Responsive: slightly smaller text on very small screens */
@media (max-width: 576px) {
    .navbar-custom .navbar-brand-custom { font-size: 1.05rem; }
    .navbar-custom .nav-link-custom { font-size: 0.88rem; letter-spacing: 0.5px; }
}

/* ========================================
   LEM Platform Cards
   ======================================== */
.lem-card {
    border-radius: 12px;
    overflow: hidden;
}
.lem-card .card-body {
    padding: 1rem;
}
.lem-card .card-title {
    font-size: 1.05rem;
}
.lem-card img {
    transition: transform 0.35s ease;
}
.lem-card:hover img {
    transform: scale(1.05);
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #1e90ff 0%, #ffd700 100%);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link-custom:hover {
    color: #1e90ff !important;
    transform: translateY(-2px);
}

.nav-link-custom:hover::before {
    width: 100%;
}

.nav-link-admin {
    background: linear-gradient(135deg, #1e90ff 0%, #ffd700 100%);
    color: white !important;
    border-radius: 6px;
    padding: 8px 20px !important;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.nav-link-admin::before {
    display: none;
}

.nav-link-admin:hover {
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
    background: linear-gradient(135deg, #1e90ff 0%, #ffd700 100%) !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.85) 0%, rgba(25, 135, 84, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInUp 1s ease-out;
}

.hero h1 {
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    animation: fadeInScale 1.2s ease-out;
}

.hero h2 {
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeIn 1.4s ease-out;
}

.hero .btn {
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero .btn-light {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.hero .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
    background: #f0f0f0;
}

.hero .btn-outline-light {
    border: 2px solid white;
    color: white;
}

.hero .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================
   STATS SECTION
   ======================================== */
.bg-gradient-dark {
    background: linear-gradient(135deg, #1a1e22 0%, #0d0f12 100%);
}

.stat-box {
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    z-index: -1;
}

.stat-box:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(25, 135, 84, 0.2) 100%);
}

.stat-box h3 {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.stat-box i {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ========================================
   CARD STYLING
   ======================================== */
.card {
    transition: var(--transition);
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card-hover {
    position: relative;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15) !important;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.card-img-top {
    transition: var(--transition);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-hover:hover .card-img-top {
    transform: scale(1.1) rotate(0.5deg);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.card-hover:hover .card-overlay {
    opacity: 1;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-stats {
    padding-top: 1rem;
}

.card-stats small {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-stats p {
    margin: 5px 0 0 0;
    font-size: 1.2rem;
}

/* ========================================
   TERRAIN SPECS
   ======================================== */
.terrain-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
}

.spec-item i {
    width: 20px;
    color: var;
    margin-right: 8px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 20px;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.6);
    border-color: transparent;
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #156f3a 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.6);
    border-color: transparent;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: -1;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: linear-gradient(135deg, #212529 0%, #1a1e22 100%) !important;
    border-top: 3px solid var(--primary-color);
}

footer h5 {
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

footer p {
    color: #aaa;
    line-height: 1.8;
}

footer a {
    color: var(--primary-color);
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color);
}

/* ========================================
   BADGES
   ======================================== */
.badge-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #156f3a 100%) ;
    font-weight: 700;
    padding: 8px 12px ;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-box {
        margin-bottom: 20px;
    }

    .card-img-top {
        height: 200px;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .bg-gradient-primary {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .hero .lead {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-box h3 {
        font-size: 2rem;
    }

    .card-img-top {
        height: 180px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}
/* ============================================= */
/* FIX RESPONSIVE HEADER – spécial pour ton design */
/* ============================================= */

.navbar-custom {
    padding: 0.5rem 1rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 70px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.whatsapp-link {
    color: #25d366 ;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-link:hover {
    color: #128c7e ;
}

.brand-slogan {
    font-size: 0.85rem;
}

.text-gold { color: #ffc107; font-weight: 700; }
.text-blue  { color: #007bff; font-weight: 700; }
.text-separator { color: #fff; margin: 0 6px; }

/* ============================================= */
/* RESPONSIVE – LE PLUS IMPORTANT */
/* ============================================= */

@media (max-width: 991.98px) {
    .logo-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .brand-text-container {
        align-items: center;
    }

    .whatsapp-number,
    .brand-slogan {
        justify-content: center;
    }

    .navbar-brand-custom {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 55px;
    }

    .whatsapp-link {
        font-size: 0.9rem;
    }

    .whatsapp-text {
        font-size: 0.85rem;
    }

    .brand-slogan {
        font-size: 0.75rem;
    }

    .text-gold,
    .text-blue {
        font-size: 0.8rem;
    }

    /* Force le menu à être propre quand déplié */
    .navbar-collapse {
        background: rgba(0,0,0,0.95);
        margin-top: 10px;
        border-radius: 10px;
        padding: 15px
    }

    .navbar-nav .nav-link {
        padding: 10px 0 ;
        text-align: center;
        font-size: 1rem;
    }
}

/* Bonus : animation légère au survol du slogan */
.brand-slogan a:hover .text-gold,
.brand-slogan a:hover .text-blue {
    text-shadow: 0 0 8px rgba(255,193,7,0.6);
    transition: all 0.3s;
}

/* ============================================= */
/* AMÉLIORATION HEADER UNIQUEMENT – 100 % PRO & RESPONSIVE */
/* Colle ça à la toute fin de ton style.css actuel */
/* ============================================= */

.navbar-custom {
    background: rgba(255,255,255,0.96) ;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-radius: 16px;
    margin: 12px 15px;
    padding: 0.9rem 1.2rem;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #1e90ff, #ffd700) 1;
    transition: var(--transition);
}

.navbar-custom:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.logo-wrapper {
    gap: 18px;
}

.logo-img {
    height: 75px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(30,144,255,0.3);
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.07);
}

/* Mot du directeur + WhatsApp */
.brand-text-container {
    gap: 8px;
}

.whatsapp-link {
    font-size: 1.98rem;
    font-weight: 700;
    color: #0b7a5f ;
}

.whatsapp-link i {
    font-size: 1.4rem;
    background: rgba(37,211,102,0.15);
    padding: 8px;
    border-radius: 50%;
}

.slogan-link {
    font-size: 0.94rem;
    font-weight: 700;
}

.text-gold { color: #ffd700; }
.text-blue { color: #1e90ff; }

/* Bouton Admin */
.nav-link-admin {
    background: linear-gradient(135deg, #1e90ff, #ffd700);
    color: white ;
    border-radius: 30px;
    padding: 10px 26px ;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(30,144,255,0.4);
}

.nav-link-admin:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(30,144,255,0.6);
}

/* RESPONSIVE PARFAIT (le plus important) */
@media (max-width: 991.98px) {
    .navbar-custom {
        margin: 8px;
        border-radius: 14px;
    }
    .logo-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .brand-text-container {
        align-items: center;
        text-align: center;
    }
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        border-radius: 14px;
        padding: 20px 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-link-custom {
        text-align: center;
        font-size: 1.1rem;
        padding: 14px 10px ;
        border-bottom: 1px solid #eee;
    }
    .nav-link-admin {
        margin: 15px auto 0;
        display: block;
        width: fit-content;
    }
}

/* FORCE "Mot du directeur" SUR UNE SEULE LIGNE" – même sur petit écran */
@media (max-width: 991.98px) {
    .nav-link-custom {
        white-space: nowrap ;   /* empêche le retour à la ligne */
        font-size: 0.95rem ;    /* un peu plus petit si besoin */
        padding: 10px 12px ;
    }
}

/* Option bonus : si tu veux que ce lien soit encore plus visible */
.nav-item .nav-link-custom[href="motdirecteur.php"] {
    font-weight: 700;
    color: #1e90ff0 ;
}

