/* 
   ETNIQUE MINORITY PAGE STYLES 
   Indigo & Imperial Gold Theme
   RESTORATION: V18 "SEAMLESS HERO BLEND"
   LOCAL ONLY
*/

.indigo-theme {
    background-color: #05070a;
    background: #05070a;
    color: #b8c2d6;
    font-family: 'Inter', sans-serif;
}

.ethnie-single-page {
    position: relative;
    overflow-x: hidden;
    padding-left: 0 !important;
    /* Décalage supprimé : la barre d'annonce passe au-dessus */
    box-sizing: border-box;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* FOG TEXTURE */
.ethnie-fog-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    filter: hue-rotate(190deg) brightness(0.8) saturate(1.2);
}

/* HERO SECTION - CORRECTION TRANSITION DOUCE */
.ethnie-hero {
    height: 85vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 200px;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.ethnie-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 15%;
    filter: brightness(0.6) saturate(1.0);
    transform: scale(1.05);
}

.ethnie-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(5, 7, 10, 0.8) 80%, #05070a 100%);
    z-index: 1;
}

.ethnie-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    bottom: 50px;
}

.ethnie-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    color: #d4a574;
    text-transform: uppercase;
    letter-spacing: 15px;
    margin: 0;
    filter: drop-shadow(0 0 30px rgba(212, 165, 116, 0.4));
    position: relative;
    padding-bottom: 30px;
}

.ethnie-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 3px;
    background: #8b0000;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
}

/* IDENTITY SECTION */
.ethnie-identity {
    padding-top: 0;
    padding-bottom: 8rem;
    position: relative;
    z-index: 2;
    margin-top: -150px;
}

.identity-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* HÉRITAGE ANCESTRAL */
.identity-main {
    width: 100%;
    text-align: center;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    color: #f1e4d1;
    margin-bottom: 50px;
    letter-spacing: 8px;
    text-transform: uppercase;
    padding-bottom: 25px;
    width: 100%;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #8b0000;
}

.ethnie-content {
    max-width: 850px;
    margin: 0 auto;
}

.ethnie-content p,
.ethnie-content ul,
.ethnie-content ol,
.lead-text {
    font-size: 1.6rem;
    color: #b8c2d6;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
}

.ethnie-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
}

/* REGISTRE CULTUREL CARTOUCHE */
.minorite-registry-cartouche {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 100px auto;
    background: rgba(10, 15, 25, 0.4);
    border: 1px solid rgba(212, 165, 116, 0.15);
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.registry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.registry-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #f1e4d1;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: 0;
}

.registry-seal {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registry-seal svg {
    width: 50px;
    height: 50px;
    fill: #8b0000;
    filter: drop-shadow(0 0 12px rgba(139, 0, 0, 0.4));
}

.registry-content {
    display: flex;
    justify-space-between;
    gap: 40px;
}

.registry-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.registry-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6d7b91;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.registry-item .value {
    font-size: 1.4rem;
    color: #d4a574;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.3;
}

/* STRUCTURED SECTIONS V4 */
.ethnie-structured-sections {
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 120px;
    width: 100%;
}

.structured-content {
    display: grid;
    grid-template-columns: 180px 850px 1fr;
    grid-template-areas:
        ". header ."
        "chinese french .";
    grid-template-rows: auto auto;
    gap: 0 60px;
    align-items: start;
    width: 100%;
    margin: 0 auto 80px auto;
}

/* LE TITRE ET L'ICÔNE : TOUJOURS SUR L'AXE LATIN (Col 2) */
.section-icon-header {
    grid-area: header;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}



.structured-section {
    position: relative;
    margin-bottom: 15rem;
}

.ethnie-title {
    font-size: 5rem;
    font-weight: 700;
    color: #f1e4d1;
    margin-bottom: 20px;
    letter-spacing: 15px;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
}



.ethnie-subtitle {
    font-size: 1.4rem;
    color: #d4a574;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.structured-icon svg {
    width: 60px;
    height: 60px;
    fill: #d4a574;
    margin-bottom: 25px;
    opacity: 0.8;
}

.title-fr {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #f1e4d1;
    text-transform: uppercase;
    letter-spacing: 8px;
    position: relative;
    padding-bottom: 25px;
    text-align: center;
    width: 100%;
}

.title-fr::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #8b0000;
}

/* LE CHINOIS VERTICAL (STYLE MANUSCRIT ANCIEN) */
.content-ch {
    grid-area: chinese;
    justify-self: end;
    writing-mode: vertical-rl;
    text-orientation: upright;
    /* Caractères droits comme des sceaux */
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem;
    line-height: 1.6;
    /* Colonnes plus serrées, comme un livre */
    letter-spacing: 0.15em;
    /* Espace sacré entre les caractères */
    color: rgba(184, 194, 214, 0.7);
    /* Plus d'encrage */
    border-right: 2px solid rgba(139, 0, 0, 0.4);
    /* Ligne de marge impériale */
    padding-right: 25px;
    margin-right: 15px;
    height: fit-content;
    max-height: 800px;
    font-weight: 400;
    text-align: justify;
}

.content-ch p {
    margin: 0;
    padding: 0;
}

.content-fr {
    grid-area: french;
    width: 100% !important;
}

.text-block {
    font-size: 1.25rem;
    line-height: 2;
    color: #b8c2d6;
    text-align: center;
}

.architecture-image-wrapper {
    margin-bottom: 40px;
    border: 1px solid rgba(212, 165, 116, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.architecture-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9);
}



/* ART DE VIVRE */
.ethnie-lifestyle {
    padding: 10rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 165, 116, 0.3), transparent);
}

.ethnie-identity {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    /* Pour contenir le label géant si besoin */
}





.lifestyle-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 850px;
    /* Aligné sur l'axe central 850px */
    margin: 4rem auto 0 auto;
}

.lifestyle-item {
    text-align: center;
    padding: 60px 40px;
    background: rgba(10, 15, 25, 0.4);
    border: 1px solid rgba(212, 165, 116, 0.1);
    transition: all 0.5s ease;
}

.lifestyle-item:hover {
    border-color: #8b0000;
    background: rgba(14, 27, 48, 0.6);
    transform: translateY(-5px);
}

.ls-icon svg {
    width: 60px;
    height: 60px;
    fill: #f1e4d1;
    margin-bottom: 30px;
}

.lifestyle-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #f1e4d1;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.lifestyle-item p {
    color: #b8c2d6;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* NAVIGATION */
.ethnie-navigation {
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.ethnie-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ethnie-nav-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(212, 165, 116, 0.1);
}

.nav-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
    filter: brightness(0.6);
}

.ethnie-nav-card:hover .nav-card-image img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.nav-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.nav-card-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #f1e4d1;
    text-transform: uppercase;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ethnie-single-page {
        padding-left: 0 !important;
        /* Décalage supprimé */
    }

    .ethnie-title {
        font-size: 3.5rem;
        letter-spacing: 10px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .structured-content {
        grid-template-columns: 45px 1fr !important;
        /* Réduction colonne chinoise pour gain de place latin */
        grid-template-areas:
            ". header"
            "chinese french" !important;
        gap: 20px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
        /* Augmentation padding latéral */
        box-sizing: border-box;
    }

    .section-icon-header {
        align-items: center !important;
        width: 100% !important;
    }

    .title-fr {
        font-size: 1.8rem !important;
        letter-spacing: 4px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .title-fr::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .content-fr {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .text-block {
        font-size: 1.1rem !important;
        line-height: 1.7 !important;
        text-align: center !important;
        width: 100% !important;
        padding-right: 5px !important;
        /* Sécurité contre le bord droit */
    }

    .architecture-image-wrapper {
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .content-ch {
        font-size: 0.85rem !important;
        padding-right: 8px !important;
        margin-right: 5px !important;
        max-height: 350px !important;
    }

    .lifestyle-content {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .ethnie-nav-grid {
        grid-template-columns: 1fr;
    }

    .ethnie-single-page {
        padding-left: 0 !important;
    }

    /* REPARATIONS SECTIONS MOBILE */
    .minorite-registry-cartouche {
        padding: 25px 15px !important;
        width: calc(100% - 20px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    .registry-header {
        flex-direction: column !important;
        text-align: center !important;
    }

    .registry-content {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .ethnie-content,
    .text-block,
    .lifestyle-item p {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .lifestyle-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 15px !important;
    }

    .lifestyle-item {
        padding: 30px 15px !important;
        overflow: hidden !important;
    }
}