/* ============================================================
   common.css — Styles partagés Uyghur Sanat Culture And Arts
   ============================================================ */

/* --- Variables CSS --- */
:root {
    --primary-color: #0b3c5d;
    --primary-dark: #07273d;
    --secondary-color: #d4af37;
    --accent-color: #ca6702;
    --bg-light: #fbf9f5;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(11, 60, 93, 0.06);
    --shadow-hover: 0 20px 45px rgba(11, 60, 93, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

/* --- Animations --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

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

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse { animation: pulse 2.5s ease-in-out infinite; }

/* --- Preloader --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(11, 60, 93, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

/* --- Scroll To Top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(11, 60, 93, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-4px);
}

/* --- Header --- */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(7, 39, 61, 0.95);
    backdrop-filter: blur(10px);
}

.header-container-fluid {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color);
    background: var(--white);
    transition: var(--transition);
}

.logo-link:hover .logo-img-wrapper {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--white);
}

.logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
    color: var(--white);
    transition: var(--transition);
}

.logo-link:hover h1 {
    color: var(--secondary-color);
}

.logo span {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

/* --- Navigation --- */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-email {
    font-size: 0.85rem !important;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    transition: var(--transition) !important;
    color: var(--white);
    text-decoration: none;
}

.nav-email::after {
    display: none !important;
}

.nav-email:hover {
    background: var(--secondary-color) !important;
    color: var(--primary-dark) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.nav-email i {
    color: var(--secondary-color);
    transition: var(--transition);
}

.nav-email:hover i {
    color: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--secondary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-dark) !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark) !important;
    border-color: var(--white);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px;
    font-weight: 300;
}

/* --- Subpage Hero (toutes pages sauf index) --- */
.subpage-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
}

.subpage-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subpage-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 300;
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #051a29 100%);
    color: #b0c2cc;
    padding: 100px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.footer-wave path {
    fill: var(--bg-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.footer-col:hover h3::after {
    width: 60px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #b0c2cc;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #617b8c;
    font-size: 0.88rem;
}

/* ============================================================
   Carte d'Identité Officielle (section "Pourquoi uyghursanat.org ?")
   ============================================================ */
.identity-section {
    background-color: #fdf6f0;
    padding: 60px 0;
}

.identity-card {
    background: var(--white);
    border-radius: 16px;
    border-left: 6px solid var(--secondary-color);
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(11, 60, 93, 0.08);
    transition: var(--transition);
}

.identity-card:hover {
    box-shadow: 0 15px 50px rgba(11, 60, 93, 0.13);
}

.identity-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.identity-title span {
    color: var(--secondary-color);
}

.identity-subtitle {
    font-size: 0.98rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

.identity-domain-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 50px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(11, 60, 93, 0.25);
    transition: var(--transition);
}

.identity-domain-badge:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.identity-description {
    font-size: 0.96rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 28px;
    padding: 20px 25px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid #eae5d0;
}

.identity-description strong {
    color: var(--primary-color);
}

.identity-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a8f3c;
    color: var(--white);
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 5px 20px rgba(26, 143, 60, 0.3);
    transition: var(--transition);
    text-decoration: none;
}

.identity-official-badge:hover {
    background: #157030;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 143, 60, 0.4);
}

.identity-official-badge i {
    font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-dark);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        width: 90%;
        margin: 0 auto;
    }

    .nav-email {
        margin-left: 0;
        margin-top: 10px;
    }

    footer {
        padding-top: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 10px;
    }

    .identity-card {
        padding: 30px 20px;
    }

    .identity-title {
        font-size: 1.5rem;
    }
}
