/* ====================================================
   STYLES COMPLETS - PAGE FAMILLE
   APPROCHE MOBILE-FIRST : tout est pensé pour mobile,
   les media queries n'ajoutent que des améliorations
   pour écrans plus larges.
   ==================================================== */

/* ----- VARIABLES & RESET ----- */
:root {
    --color-gold: #C5A572;
    --color-earth: #5C4033;
    --color-cream: #F5F0E6;
    --color-ivory: #FFFEF7;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-light-earth: #8B7355;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-ivory);
    overflow-x: hidden;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* ----- NAVIGATION (mobile-first) ----- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 0.8rem 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo .logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-earth);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    list-style: none;
    z-index: 998;
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    margin-bottom: 1.5rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.nav-link.active {
    color: var(--color-gold);
    font-weight: 600;
}

.hamburger {
    display: block;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-earth);
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ----- HERO SECTION (mobile d'abord) ----- */
.famille-hero {
    position: relative;
    height: 40vh;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(92,64,51,0.8) 0%,
        rgba(92,64,51,0.6) 50%,
        rgba(92,64,51,0.8) 100%);
    z-index: 2;
}

.famille-hero-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    max-width: 800px;
}

.famille-hero-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.famille-hero-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-gold);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* ----- INTRODUCTION ----- */
.famille-introduction {
    background-color: var(--color-cream);
    padding: 2.5rem 0;
}

.introduction-content {
    text-align: center;
}

.introduction-text h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-earth);
    margin-bottom: 1rem;
}

.introduction-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.2rem;
}

.introduction-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-earth);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ----- ÉPOUSE ----- */
.famille-epouse {
    background-color: var(--color-white);
    padding: 2.5rem 0;
}

.epouse-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.epouse-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.epouse-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.epouse-info {
    padding: 0;
}

.relation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.epouse-info h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-earth);
    margin-bottom: 0.3rem;
}

.epouse-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1.2rem;
    font-style: italic;
}

.epouse-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.qualities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.quality {
    background-color: var(--color-cream);
    color: var(--color-earth);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ----- ENFANTS (redesign) ----- */
.famille-enfants {
    background-color: var(--color-cream);
    padding: 2.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-earth);
    margin-bottom: 0.8rem;
}

.title-decoration {
    width: 70px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 0 auto 1.2rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

.enfants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.enfant-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.enfant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.enfant-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.enfant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.enfant-card:hover .enfant-image img {
    transform: scale(1.03);
}

.enfant-info {
    padding: 1.5rem;
}

.enfant-info h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-earth);
    margin-bottom: 0.2rem;
}

.enfant-age {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.enfant-details {
    background-color: var(--color-cream);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.enfant-details p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.enfant-details i {
    color: var(--color-gold);
    width: 18px;
    text-align: center;
}

.enfant-description p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* ----- SAGESSE BASSA (nouvelle section minimaliste) ----- */
.sagesse-bassaa {
    background-color: var(--color-ivory);
    padding: 3rem 0;
    text-align: center;
}

.sagesse-content {
    max-width: 700px;
    margin: 0 auto;
}

.sagesse-icon {
    color: var(--color-gold);
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    opacity: 0.7;
}

.sagesse-texte {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--color-earth);
    margin-bottom: 1rem;
    font-style: italic;
}

.sagesse-texte .bassaa {
    font-weight: 600;
}

.sagesse-texte cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.sagesse-traduction {
    font-size: 1.1rem;
    color: var(--color-text);
    border-top: 1px solid var(--color-gold);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* ----- HÉRITAGE CULTUREL (valeurs bassaa) ----- */
.heritage-culturel {
    background-color: var(--color-cream);
    padding: 2.5rem 0;
}

.valeurs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.valeur-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.valeur-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.valeur-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-earth);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.valeur-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-earth);
    margin-bottom: 0.3rem;
}

.valeur-def {
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.valeur-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ----- FAMILLE ÉLARGIE ----- */
.famille-elargie {
    background-color: var(--color-white);
    padding: 2.5rem 0;
}

.elargie-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.elargie-item {
    background-color: var(--color-cream);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.elargie-item h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-earth);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold);
}

.fratrie-list {
    list-style: none;
}

.fratrie-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fratrie-list i {
    color: var(--color-gold);
    width: 18px;
}

.elargie-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* ----- MESSAGE DE LA FAMILLE ----- */
.famille-message {
    background-color: var(--color-earth);
    padding: 3rem 0;
    color: var(--color-white);
}

.message-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.message-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.2rem;
}

.message-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-align: left;
}

.signature {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.signature p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.signature-names {
    font-family: var(--font-serif);
    font-size: 1.6rem !important;
    color: var(--color-gold) !important;
    opacity: 1 !important;
}

/* ----- FOOTER ----- */
.site-footer {
    background-color: var(--color-earth);
    color: var(--color-white);
    padding: 2rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-bottom: 1.8rem;
}

.footer-logo h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.9;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.footer-navigation h4,
.footer-tradition h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--color-gold);
}

.footer-navigation ul {
    list-style: none;
}

.footer-navigation li {
    margin-bottom: 0.5rem;
}

.footer-navigation a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-navigation a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.traditional-symbols {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    font-size: 1.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enfant-card,
.valeur-card,
.elargie-item,
.sagesse-content {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.enfant-card:nth-child(1) { animation-delay: 0.1s; }
.enfant-card:nth-child(2) { animation-delay: 0.2s; }
.enfant-card:nth-child(3) { animation-delay: 0.3s; }
.enfant-card:nth-child(4) { animation-delay: 0.4s; }
.valeur-card:nth-child(1) { animation-delay: 0.1s; }
.valeur-card:nth-child(2) { animation-delay: 0.2s; }
.valeur-card:nth-child(3) { animation-delay: 0.3s; }
.valeur-card:nth-child(4) { animation-delay: 0.4s; }

/* ==================================================== */
/* MEDIA QUERIES - À PARTIR DE 600px (TABLETTE) */
/* ==================================================== */
@media (min-width: 600px) {
    .section-container { padding: 0 2rem; }
    
    .famille-hero-title { font-size: 2.8rem; }
    .famille-hero-subtitle { font-size: 1.3rem; }
    
    .introduction-text h2 { font-size: 2.5rem; }
    .introduction-text p { font-size: 1.1rem; }
    
    .epouse-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .enfants-grid { grid-template-columns: repeat(2, 1fr); }
    
    .valeurs-grid { grid-template-columns: repeat(2, 1fr); }
    
    .elargie-content { grid-template-columns: repeat(2, 1fr); }
    
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* ==================================================== */
/* MEDIA QUERIES - À PARTIR DE 900px (DESKTOP) */
/* ==================================================== */
@media (min-width: 900px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    .nav-menu li {
        margin-bottom: 0;
        margin-left: 1.8rem;
    }
    .nav-link {
        border-bottom: none;
        padding: 0;
    }
    .hamburger { display: none; }
    
    .famille-hero { height: 60vh; }
    .famille-hero-title { font-size: 3.5rem; }
    .famille-hero-subtitle { font-size: 1.5rem; }
    
    .introduction-stats { gap: 3rem; }
    .stat-number { font-size: 3rem; }
    
    .enfants-grid { grid-template-columns: repeat(4, 1fr); }
    
    .valeurs-grid { grid-template-columns: repeat(4, 1fr); }
    
    .elargie-content { grid-template-columns: repeat(3, 1fr); }
    
    .footer-content { grid-template-columns: repeat(3, 1fr); }
}

/* ==================================================== */
/* MEDIA QUERIES - TRÈS GRAND ÉCRAN (1200px+) */
/* ==================================================== */
@media (min-width: 1200px) {
    .section-container { padding: 0 2.5rem; }
    .famille-hero-title { font-size: 4rem; }
}