/* ============================================
   FICAD - Festival International de la Culture et des Arts de Daoukro
   Custom Styles
   ============================================ */

:root {
    --ficad-green: #2D6A4F;
    --ficad-green-dark: #1B4332;
    --ficad-green-light: #40916C;
    --ficad-orange: #E76F51;
    --ficad-orange-light: #F4A261;
    --ficad-red: #C1121F;
    --ficad-gold: #FFB703;
    --ficad-dark: #1B1B1B;
    --ficad-light: #FFF8F0;
    --ficad-white: #FFFFFF;
}

/* ---- Global ---- */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: var(--ficad-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    color: var(--ficad-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ficad-orange);
}

/* ---- Navbar ---- */
.navbar-ficad {
    transition: all 0.4s ease;
    padding: 1rem 0;
    z-index: 1050;
}

.navbar-ficad.navbar-scrolled {
    background-color: var(--ficad-green-dark) !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-ficad .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--ficad-gold) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-ficad .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-ficad .nav-link:hover,
.navbar-ficad .nav-link.active {
    color: var(--ficad-gold) !important;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ficad-green-dark) 0%, var(--ficad-green) 50%, var(--ficad-orange) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path d="M0 0h80v80H0z" fill="none"/><path d="M40 0L80 40L40 80L0 40z" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    background-size: 80px 80px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(80px) translateY(80px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-edition {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- Page Hero (Sub-pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--ficad-green-dark) 0%, var(--ficad-green) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--ficad-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%, 50% 50%);
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ---- Buttons ---- */
.btn-ficad {
    /* inline-block : sans cela, un libelle qui passe a la ligne coupe le fond
       du bouton en deux morceaux decales. */
    display: inline-block;
    text-align: center;
    background: var(--ficad-orange);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-ficad:hover {
    background: var(--ficad-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 111, 81, 0.4);
}

.btn-ficad-outline {
    display: inline-block;
    text-align: center;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-ficad-outline:hover {
    background: white;
    color: var(--ficad-green);
    transform: translateY(-2px);
}

.btn-ficad-green {
    background: var(--ficad-green);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-ficad-green:hover {
    background: var(--ficad-green-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(45, 106, 79, 0.4);
}

/* ---- Section Styling ---- */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--ficad-orange);
    border-radius: 2px;
}

.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---- Cards ---- */
.ficad-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: white;
}

.ficad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.ficad-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ficad-card:hover .card-img-top {
    transform: scale(1.05);
}

.ficad-card .card-body {
    padding: 1.5rem;
}

.ficad-card .card-title {
    font-weight: 700;
    color: var(--ficad-dark);
    margin-bottom: 0.5rem;
}

/* ---- Feature Cards ---- */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--ficad-orange);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card .icon-green { background: var(--ficad-green); }
.feature-card .icon-orange { background: var(--ficad-orange); }
.feature-card .icon-gold { background: var(--ficad-gold); }

/* ---- Edition Card ---- */
.edition-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.edition-card .edition-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--ficad-orange);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
}

.edition-card .badge-statut {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

/* ---- Artiste Card ---- */
.artiste-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.artiste-card .artiste-img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artiste-card:hover .artiste-img {
    transform: scale(1.1);
}

.artiste-card .artiste-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.artiste-card .categorie-badge {
    background: var(--ficad-orange);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ---- Gallery ---- */
.gallery-grid {
    columns: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 106, 79, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ---- Lightbox ---- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ---- News Card ---- */
.news-card {
    border-radius: 15px;
    overflow: hidden;
}

.news-card .news-date {
    background: var(--ficad-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 0;
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---- Contact Form ---- */
.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--ficad-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 106, 79, 0.15);
}

.contact-info-card {
    background: var(--ficad-dark);
    color: white;
    border-radius: 15px;
    padding: 2.5rem;
}

.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-card .info-icon {
    width: 45px;
    height: 45px;
    background: var(--ficad-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--ficad-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 1rem;
}

.footer h5 {
    color: var(--ficad-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--ficad-gold);
}

.footer .social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--ficad-orange);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ---- Scroll to Top ---- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--ficad-green);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.2rem;
}

.scroll-top:hover {
    background: var(--ficad-orange);
    transform: translateY(-3px);
}

.scroll-top.visible {
    display: flex;
}

/* ===== RESPONSIVE - TABLET (max 991px) ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-padding {
        padding: 3.5rem 0;
    }
    .page-hero {
        padding: 6rem 0 3rem;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .gallery-grid {
        columns: 2;
    }
    .feature-card {
        padding: 2rem 1.5rem;
    }
    .feature-card .icon {
        width: 65px;
        height: 65px;
    }
}

/* ===== RESPONSIVE - MOBILE LARGE (max 768px) ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 0.88rem;
    }
    .section-padding {
        padding: 3rem 0;
    }
    .page-hero {
        padding: 5rem 0 2.5rem;
    }
    .page-hero h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    .btn-ficad, .btn-ficad-outline {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    .feature-card {
        padding: 1.5rem 1.25rem;
    }
    .feature-card .icon {
        width: 55px;
        height: 55px;
    }
    .gallery-grid {
        columns: 2;
        gap: 8px;
    }
}

/* ===== RESPONSIVE - MOBILE (max 576px) ===== */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    .section-title {
        font-size: 1.35rem;
    }
    .section-subtitle {
        font-size: 0.82rem;
        padding: 0 0.5rem;
    }
    .section-divider {
        width: 45px;
    }
    .section-padding {
        padding: 2.5rem 0;
    }
    .page-hero {
        padding: 10rem 0 2.5rem;
    }
    .page-hero h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    .page-hero::after {
        height: 25px;
    }
    .gallery-grid {
        columns: 1;
    }
    .btn-ficad, .btn-ficad-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    .feature-card {
        padding: 1.25rem 1rem;
    }
    .feature-card .icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    /* Prevent horizontal overflow */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== RESPONSIVE - VERY SMALL (max 400px) ===== */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .page-hero h1 {
        font-size: 1.3rem;
    }
    .btn-ficad, .btn-ficad-outline {
        padding: 0.55rem 1rem;
        font-size: 0.75rem;
    }
}

/* ---- Loading Animation ---- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ficad-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--ficad-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Filter Buttons ---- */
.filter-btn {
    background: transparent;
    border: 2px solid var(--ficad-green);
    color: var(--ficad-green);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--ficad-green);
    color: white;
}

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--ficad-green);
    border-radius: 50%;
    margin: 0 3px;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    background: var(--ficad-green);
    border-color: var(--ficad-green);
}
