/* ===================================
   AWPF DYNASTY — STYLE PRINCIPAL
   Couleurs : Bleu Marine & Or
   =================================== */

:root {
    --navy: #1a2351;
    --navy-dark: #111a3e;
    --navy-deeper: #0c1230;
    --gold: #c9a84c;
    --gold-light: #e2c872;
    --gold-dark: #a8873a;
    --cream: #f5f0e8;
    --white: #ffffff;
    --text-light: #d4d0c8;
    --text-muted: #8a8577;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background-color: var(--navy);
    background-image: url('fond.png');
    background-repeat: repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--cream);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: rgba(17, 26, 62, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transition: all 0.4s ease;
}

.nav.scrolled {
    padding: 0.6rem 3rem;
    background: rgba(12, 18, 48, 0.97);
}

.nav-logo img {
    height: 45px;
    transition: height 0.4s ease;
}

.nav.scrolled .nav-logo img {
    height: 35px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--cream);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('fond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(17, 26, 62, 0.6) 0%, rgba(12, 18, 48, 0.9) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 1.5s ease;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-line {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.hero-title-main {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 20px;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.hero-divider, .footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-diamond {
    color: var(--gold);
    font-size: 0.7rem;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-motto {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 2.5rem;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.hero-btn:hover {
    color: var(--navy-dark);
}

.hero-btn:hover::before {
    transform: translateY(0);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(201, 168, 76, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   SECTIONS COMMUNES
   =================================== */

.section {
    padding: 6rem 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 26, 62, 0.4);
    pointer-events: none;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.8rem;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
}

.title-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.ornament-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.ornament-symbol {
    color: var(--gold-dark);
    font-size: 0.6rem;
}

/* ===================================
   SECTION HISTOIRE
   =================================== */

.histoire-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.histoire-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
}

.histoire-text p {
    margin-bottom: 1.5rem;
}

.histoire-intro {
    font-size: 1.3rem;
    color: var(--cream);
}

.histoire-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateX(5px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--gold);
}

.stat-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    color: var(--gold);
    min-width: 50px;
}

.stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ===================================
   ARBRE GENEALOGIQUE
   =================================== */

.tree-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tree-btn {
    padding: 0.7rem 2rem;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tree-btn.active,
.tree-btn:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.tree-container {
    overflow-x: visible;
    padding: 2rem 0;
    width: 100%;
}

.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.tree-generation {
    width: 100%;
    text-align: center;
}

.gen-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
}

.tree-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tree-couple {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.couple-link {
    color: var(--gold);
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tree-member {
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 1.5rem;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.tree-member:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.1);
}

.tree-member.founder {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    position: relative;
    background: rgba(201, 168, 76, 0.1);
}

.avatar-initials {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 600;
}

.member-crown {
    position: absolute;
    top: -12px;
    right: -5px;
    font-size: 1rem;
    color: var(--gold);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.member-name {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--cream);
    font-weight: 600;
    letter-spacing: 1px;
}

.member-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.member-metier {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.member-mission {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.2rem;
}

.tree-member.future-member {
    border-style: dashed;
    border-color: rgba(201, 168, 76, 0.25);
    background: rgba(201, 168, 76, 0.02);
}

.tree-member.future-member:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.tree-member.add-member {
    border-style: dashed;
    opacity: 0.5;
}

.tree-member.add-member:hover {
    opacity: 1;
}

.tree-connector {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.connector-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), rgba(201, 168, 76, 0.2));
}

/* Member Modal */
.member-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 48, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.member-modal.active {
    display: flex;
}

.modal-content {
    background: var(--navy-dark);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalIn 0.4s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(201, 168, 76, 0.1);
}

.modal-initials {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
}

.modal-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.modal-role {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.modal-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.modal-quote {
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===================================
   CHARTE FAMILIALE
   =================================== */

.charte-preamble {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.preamble-border {
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 2.5rem;
    position: relative;
    background: rgba(201, 168, 76, 0.03);
}

.preamble-border::before,
.preamble-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
}

.preamble-border::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.preamble-border::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.preamble-text {
    font-size: 1.2rem;
    line-height: 1.9;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.charte-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.charte-article {
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.12);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.charte-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.4s ease;
}

.charte-article:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.06);
}

.charte-article:hover::before {
    height: 100%;
}

.article-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    color: rgba(201, 168, 76, 0.2);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.article-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.article-divider {
    width: 40px;
    height: 1px;
    background: var(--gold-dark);
    margin-bottom: 1.2rem;
}

.article-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.article-rules {
    list-style: none;
    padding: 0;
}

.article-rules li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.article-rules li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--gold-dark);
    font-size: 0.5rem;
    top: 0.7rem;
}

/* --- Charte Titres --- */

.charte-titre {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.titre-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(201, 168, 76, 0.2);
}

.titre-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    color: rgba(201, 168, 76, 0.25);
    line-height: 1;
    min-width: 60px;
}

.titre-name {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 2px;
}

/* --- Charte Sommaire --- */

.charte-sommaire {
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.sommaire-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}

.sommaire-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sommaire-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.sommaire-item:hover {
    background: rgba(201, 168, 76, 0.06);
    border-left-color: var(--gold);
    padding-left: 1.5rem;
}

.sommaire-num {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold-dark);
    min-width: 30px;
}

.sommaire-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--text-light);
}

.sommaire-item:hover .sommaire-text {
    color: var(--gold-light);
}

/* --- Valeurs Grid --- */

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.valeur-item {
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.valeur-item:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.06);
}

.valeur-icon {
    font-size: 1.8rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.8rem;
}

.valeur-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.valeur-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* --- Conflit Étapes --- */

.conflit-etapes {
    margin-top: 1.5rem;
}

.conflit-etape {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.conflit-etape:last-child {
    border-bottom: none;
}

.etape-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.etape-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.etape-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* --- Signatures Block --- */

.charte-signature-block {
    text-align: center;
    padding: 2rem 0;
}

.signature-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.signature-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
}

.signature-seal-large {
    margin-bottom: 2rem;
}

.signature-seal-large img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 5px;
    opacity: 0.8;
}

.signature-date {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.signature-version {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 3rem;
}

.signatures-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.signature-line {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.signature-space {
    height: 50px;
}

.signature-name {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.signature-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.charte-final-motto {
    margin-top: 3rem;
    text-align: center;
}

.charte-final-motto p {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--gold-light);
    margin: 1.5rem 0;
}

/* --- Legacy Charte Signature (other pages) --- */

.charte-signature {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.signature-seal {
    margin-bottom: 1.5rem;
}

.signature-seal img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    opacity: 0.7;
    filter: sepia(0.3);
}

.signature-text {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.signature-motto {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold-light);
}

/* ===================================
   HERITAGE & VISION
   =================================== */

.vision-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto 5rem;
    padding-left: 3rem;
}

.vision-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(201, 168, 76, 0.1));
}

.timeline-item {
    position: relative;
    padding: 0 0 3rem 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--navy-dark);
    left: 0;
    transform: translateX(-5px);
}

.marker-year {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-left: 2rem;
    white-space: nowrap;
}

.timeline-content {
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.12);
    padding: 1.5rem 2rem;
    margin-left: 3rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.06);
}

.timeline-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.pillars-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pillar {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(201, 168, 76, 0.03);
    transition: all 0.4s ease;
}

.pillar:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    transform: translateY(-5px);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.pillar h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.pillar p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    background: rgba(12, 18, 48, 0.5);
}

.footer-emblem img {
    width: auto;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-motto {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-legacy {
    font-size: 0.85rem;
    color: rgba(201, 168, 76, 0.4);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ===================================
   EMPIRE STRUCTURE (page héritage)
   =================================== */

.empire-structure {
    margin-bottom: 4rem;
}

.empire-holding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.holding-box {
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 1.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.holding-box:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.holding-box.main {
    border: 2px solid var(--gold);
    background: rgba(201, 168, 76, 0.08);
    padding: 2rem 3rem;
    min-width: 350px;
}

.holding-box.asso {
    border-style: dashed;
}

.holding-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 600;
}

.holding-type {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.holding-detail {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.holding-branches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.holding-branches .holding-box {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

/* Revenue flux — Machine à patrimoine */

.empire-flux {
    margin: 4rem 0;
}

.flux-machine {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
}

.flux-step-vertical {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 1.5rem 2rem;
    width: 100%;
    transition: all 0.3s ease;
}

.flux-step-vertical:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
}

.flux-step-vertical.highlight {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    border-width: 2px;
}

.flux-step-vertical.success {
    border-color: var(--gold-light);
    background: rgba(201, 168, 76, 0.1);
}

.flux-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.flux-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.flux-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
}

.flux-arrow-down {
    color: var(--gold);
    font-size: 1.5rem;
    text-align: center;
    padding: 0.3rem 0;
}

.flux-label-arrow {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    text-align: center;
    padding: 0.2rem 0 0.5rem;
}

.flux-cycle {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    border: 2px dashed rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.03);
    width: 100%;
}

.cycle-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.flux-cycle p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gold-light);
    font-style: italic;
}

/* Legacy horizontal flux */
.flux-arrow {
    color: var(--gold);
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .holding-branches {
        flex-direction: column;
        align-items: center;
    }

    .holding-branches .holding-box {
        max-width: 100%;
        width: 100%;
    }

    .holding-box.main {
        min-width: auto;
        width: 100%;
    }

    .flux-steps {
        flex-direction: column;
    }

    .flux-arrow {
        transform: rotate(90deg);
    }

    .flux-step {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .pillars-grid[style*="repeat(5"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .pillars-grid[style*="repeat(5"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   PARTS TRANSMISSION (page héritage)
   =================================== */

.parts-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.parts-phase {
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.12);
    padding: 2rem;
    transition: all 0.3s ease;
}

.parts-phase:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.06);
}

.parts-moment {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.parts-distribution {
    display: flex;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 1rem;
}

.part-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.3);
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
}

.part-bar span {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--cream);
    white-space: nowrap;
    padding: 0 0.5rem;
}

.part-bar.alicia {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold-dark);
}

.part-bar.enfant {
    background: rgba(100, 180, 120, 0.25);
    border-color: rgba(100, 180, 120, 0.5);
}

.part-bar.enfant2 {
    background: rgba(100, 150, 200, 0.25);
    border-color: rgba(100, 150, 200, 0.5);
}

.part-bar.petit {
    background: rgba(180, 130, 200, 0.25);
    border-color: rgba(180, 130, 200, 0.5);
}

.parts-note {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-style: italic;
}

.parts-rules {
    max-width: 800px;
    margin: 0 auto 4rem;
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-left: 3px solid var(--gold);
    padding: 2rem;
}

.parts-rules h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .part-bar span {
        font-size: 0.5rem;
        padding: 0 0.2rem;
    }
}

/* ===================================
   PAGE HERO (sous-pages)
   =================================== */

.page-hero {
    position: relative;
    padding: 10rem 2rem 5rem;
    text-align: center;
    background-image: url('fond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(17, 26, 62, 0.7) 0%, rgba(12, 18, 48, 0.95) 70%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

/* ===================================
   APERCU GRID (accueil)
   =================================== */

.apercu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.apercu-card {
    display: block;
    text-decoration: none;
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.12);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.apercu-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.apercu-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.07);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.apercu-card:hover::before {
    transform: scaleX(1);
}

.apercu-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.apercu-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.apercu-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.apercu-link {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    transition: color 0.3s ease;
}

.apercu-card:hover .apercu-link {
    color: var(--gold);
}

/* ===================================
   HISTOIRE CHAPITRES (page histoire)
   =================================== */

.histoire-chapitre {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(201, 168, 76, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-left: 3px solid var(--gold);
    transition: all 0.3s ease;
}

.histoire-chapitre:hover {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.25);
    border-left-color: var(--gold);
}

.chapitre-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.chapitre-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    color: rgba(201, 168, 76, 0.3);
    min-width: 40px;
}

.chapitre-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.histoire-chapitre p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===================================
   PAGE NAVIGATION (précédent/suivant)
   =================================== */

.page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    gap: 2rem;
}

.page-nav-link {
    text-decoration: none;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(201, 168, 76, 0.15);
    background: rgba(201, 168, 76, 0.03);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.page-nav-link.next {
    text-align: right;
    margin-left: auto;
}

.page-nav-link:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    transform: translateY(-3px);
}

.page-nav-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.page-nav-title {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 1px;
}

/* ===================================
   NAV ACTIVE LINK
   =================================== */

.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    width: 100%;
}

/* ===================================
   ANIMATIONS (scroll reveal)
   =================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .valeurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tree-row {
        gap: 1rem;
    }

    .tree-member {
        min-width: 130px;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .apercu-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .page-nav {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .page-nav-link {
        max-width: 100%;
        width: 100%;
        padding: 1.2rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-nav-link.next {
        text-align: center;
        margin-left: 0;
    }

    .page-nav-label {
        font-size: 0.65rem;
    }

    .page-nav-title {
        font-size: 0.9rem;
    }

    .nav {
        padding: 0.8rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(12, 18, 48, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 6rem 1rem 5rem;
    }

    .nav-logo img {
        height: 32px;
    }

    .nav.scrolled .nav-logo img {
        height: 26px;
    }

    .footer-emblem img {
        height: 40px;
    }

    .hero-title-main {
        font-size: 2.5rem;
        letter-spacing: 10px;
    }

    .hero-title-line {
        font-size: 0.9rem;
        letter-spacing: 5px;
    }

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

    .histoire-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .charte-grid {
        grid-template-columns: 1fr;
    }

    .valeurs-grid {
        grid-template-columns: 1fr;
    }

    .titre-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .titre-number {
        min-width: auto;
    }

    .titre-name {
        font-size: 1.3rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .tree-container {
        overflow-x: visible;
        padding: 1rem 0;
    }

    .tree-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .tree-couple {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .tree-member {
        min-width: 0;
        width: 100%;
        max-width: 280px;
        padding: 1rem;
    }

    .member-avatar {
        width: 45px;
        height: 45px;
    }

    .avatar-initials {
        font-size: 1.1rem;
    }

    .member-name {
        font-size: 0.8rem;
    }

    .member-role {
        font-size: 0.7rem;
    }

    .member-metier {
        font-size: 0.6rem;
    }

    .member-mission {
        font-size: 0.6rem;
    }

    .gen-label {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .connector-line {
        height: 25px;
    }

    .couple-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title-main {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .tree-member {
        max-width: 100%;
        padding: 0.8rem;
    }

    .member-avatar {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .avatar-initials {
        font-size: 1rem;
    }

    .member-crown {
        font-size: 0.8rem;
        top: -8px;
    }

    .member-metier {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .member-mission {
        font-size: 0.55rem;
    }

    .tree-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tree-btn {
        width: 100%;
        max-width: 200px;
    }
}
