/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette de couleurs adoucie inspirée des traditions Bassaa */
    --color-cream: #F8F5EF;
    --color-ivory: #FFFDF8;
    --color-earth: #A08B6B;
    --color-indigo: #5A6F8C;
    --color-gold: #D4B483;
    --color-light-earth: #C9B8A1;
    --color-white: #FFFFFF;
    --color-text: #3A3A3A;
    --color-text-light: #777777;
    
    /* Nouvelle palette footer adoucie */
    --footer-bg: #7A6B57;
    --footer-text: #F0E6D6;
    --footer-link: #D4B483;
    
    /* Couleurs pour la section ovale */
    --oval-bg: linear-gradient(135deg, #E6D7C4 0%, #D8C9B6 100%);
    --oval-border: #C9B8A1;
    --oval-text: #5A4A42;
    
    /* Typographie */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Base pour rem */
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem; /* 16px base */
}

/* Navigation - Mobile First */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 253, 248, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(160, 139, 107, 0.1);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo .logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-earth);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--color-ivory);
    width: 100%;
    text-align: center;
    transition: var(--transition-smooth);
    padding: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    list-style: none;
}

.nav-menu.active {
    left: 0;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1000;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-earth);
    transition: var(--transition-smooth);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Section Héro - Mobile First */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),
                url('assets/images/photos/famille/cercueil.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-white);
    padding: 0 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.5) 0%,
                rgba(0,0,0,0.3) 50%,
                rgba(248, 245, 239, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5rem;
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

.hero-dates {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.date-item {
    font-family: var(--font-serif);
    font-style: italic;
}

.date-separator {
    display: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-translation {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-style: normal;
    line-height: 1.5;
}

.hero-scroll {
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

.hero-scroll i {
    font-size: 1.8rem;
    color: var(--color-gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.bassaa-motif {
    position: absolute;
    width: 80px;
    height: 15px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.7;
}

.motif-top {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.motif-bottom {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

/* Sections générales - Mobile First */
.section-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-earth);
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.title-decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    margin: 0 auto;
}

/* Section Biographie - Mobile First */
.bio-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.bio-text h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-earth);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.bio-text h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-indigo);
    margin: 1.5rem 0 0.8rem;
    line-height: 1.3;
}

.bio-text p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.qualities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.quality-tag {
    background-color: var(--color-light-earth);
    color: var(--color-white);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.quality-tag:hover {
    background-color: var(--color-gold);
    transform: translateY(-2px);
}

.bio-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.portrait-no-frame {
    width: 100%;
    max-width: 280px;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    filter: none;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    display: block;
}

.image-caption-page {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 1rem;
    font-size: 1rem;
    background: transparent;
    padding: 0.5rem 0;
    line-height: 1.5;
}

/* Témoignages sur la page (sans cadre) - Mobile First */
.testimonials-page {
    margin-top: 3rem;
    padding: 2rem 0;
}

.testimonials-page h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-earth);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.testimonial-grid-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-item {
    padding: 1.5rem;
}

.testimonial-text-page {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    position: relative;
    color: var(--color-text);
    font-style: italic;
    padding: 0 0.5rem;
}

.testimonial-text-page i {
    color: var(--color-gold);
    font-size: 1.3rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.testimonial-author-page {
    text-align: right;
    font-weight: 600;
    color: var(--color-earth);
    font-size: 0.95rem;
    font-style: italic;
    padding: 0 0.5rem;
}

/* Section Cérémonie - Mobile First */
.ceremony-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
    text-align: center;
    border: 1px solid rgba(160, 139, 107, 0.1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.info-card.main-event {
    border: 2px solid var(--color-gold);
    position: relative;
    overflow: hidden;
}

.info-card.main-event::before {
    content: 'Principal';
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.info-icon {
    font-size: 2.2rem;
    color: var(--color-gold);
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.info-card h3 {
    font-family: var(--font-serif);
    color: var(--color-earth);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    line-height: 1.3;
}

.info-card p {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-card strong {
    color: var(--color-text);
    font-weight: 600;
}

.info-note {
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(160, 139, 107, 0.2);
    color: var(--color-indigo);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ceremony-map {
    margin: 3rem 0;
}

.ceremony-map h3 {
    font-family: var(--font-serif);
    color: var(--color-earth);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Section Instructions et Protocole - Mobile First */
.ceremony-instructions {
    background-color: var(--color-ivory);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.ceremony-instructions h3 {
    font-family: var(--font-serif);
    color: var(--color-earth);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.instructions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instructions-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(160, 139, 107, 0.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.instructions-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.instructions-list i {
    color: var(--color-gold);
    font-size: 1.3rem;
    min-width: 30px;
    margin-top: 0.2rem;
}

.flower-text {
    position: relative;
    display: inline-block;
}

.flower-text::after {
    content: "🌸";
    margin-left: 0.5rem;
    font-size: 1rem;
}

/* Section Message de la Famille - Mobile First */
.family-message-section {
    background-color: var(--color-ivory);
    padding: 3rem 0;
}

.family-message-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.family-text {
    padding: 0 1rem;
}

.family-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.family-signature {
    margin-top: 2rem;
    text-align: center;
    padding: 0;
}

.family-signature p {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.family-signature h4 {
    font-family: var(--font-serif);
    color: var(--color-earth);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
}

.family-photo-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.family-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.family-photo:hover {
    transform: scale(1.03);
}

.photo-caption-main {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    padding: 1.2rem;
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
}

/* Section Message ovale - Mobile First */
.oval-message-section {
    padding: 4rem 1rem;
    margin-bottom: 3rem;
}

.oval-container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--oval-bg);
    border-radius: 25px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 2px solid var(--oval-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.oval-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.oval-content {
    position: relative;
    z-index: 1;
}

.oval-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--oval-text);
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.oval-content p {
    font-size: 1rem;
    color: var(--oval-text);
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.oval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-earth), var(--color-indigo));
    color: var(--color-white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(160, 139, 107, 0.3);
    border: 2px solid var(--color-gold);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.oval-btn:hover {
    background: linear-gradient(135deg, var(--color-gold), var(--color-earth));
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(160, 139, 107, 0.4);
}

.oval-btn i {
    font-size: 1rem;
}

/* Footer - Mobile First */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--footer-link);
    line-height: 1.3;
}

.footer-logo p {
    margin-bottom: 0.25rem;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-navigation h4,
.footer-tradition h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--footer-link);
    line-height: 1.3;
}

.footer-navigation ul {
    list-style: none;
}

.footer-navigation li {
    margin-bottom: 0.6rem;
}

.footer-navigation a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition-smooth);
    opacity: 0.9;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.2rem 0;
    line-height: 1.5;
}

.footer-navigation a:hover {
    color: var(--footer-link);
    padding-left: 0.5rem;
    opacity: 1;
}

.footer-tradition p {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.traditional-symbols {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    font-size: 1.8rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* =========================================== */
/* RESPONSIVE DESIGN - TABLET (768px et plus) */
/* =========================================== */
@media (min-width: 768px) {
    /* Navigation Tablet */
    .nav-container {
        max-width: 720px;
        padding: 0 2rem;
    }
    
    .nav-logo .logo-text {
        font-size: 1.7rem;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        width: auto;
    }
    
    .hamburger {
        display: none;
    }
    
    /* Hero Section Tablet */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-name {
        font-size: 3.2rem;
    }
    
    .hero-dates {
        flex-direction: row;
        gap: 2rem;
    }
    
    .date-separator {
        display: inline;
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-translation {
        font-size: 1.1rem;
    }
    
    /* Sections générales Tablet */
    .section-container {
        max-width: 720px;
        padding: 4rem 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Biographie Tablet */
    .bio-content {
        flex-direction: row;
        gap: 3rem;
    }
    
    .bio-text {
        flex: 2;
    }
    
    .bio-image {
        flex: 1;
        margin-top: 0;
    }
    
    .portrait-no-frame {
        max-width: 320px;
    }
    
    /* Témoignages Tablet */
    .testimonial-grid-page {
        flex-direction: row;
        gap: 2rem;
    }
    
    /* Cérémonie Tablet */
    .ceremony-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1;
        min-width: 300px;
    }
    
    .map-container {
        height: 450px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    /* Instructions et Protocole Tablet */
    .instructions-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .instructions-list li {
        flex: 1;
        min-width: 250px;
    }
    
    /* Message famille Tablet */
    .family-message-content {
        flex-direction: row;
        gap: 3rem;
    }
    
    .family-text {
        flex: 2;
        padding: 0;
    }
    
    .family-photo-container {
        flex: 1;
        max-width: 400px;
    }
    
    .family-photo {
        height: 350px;
    }
    
    /* Message ovale Tablet */
    .oval-container {
        max-width: 600px;
        border-radius: 40% / 25%;
        padding: 3rem 2rem;
    }
    
    .oval-content h3 {
        font-size: 2rem;
    }
    
    .oval-content p {
        font-size: 1.1rem;
    }
    
    .oval-btn {
        width: auto;
        padding: 1rem 2.5rem;
    }
    
    /* Footer Tablet */
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .footer-content > div {
        flex: 1;
        min-width: 200px;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN - DESKTOP (1024px et plus) */
/* ============================================ */
@media (min-width: 1024px) {
    /* Navigation Desktop */
    .nav-container {
        max-width: 1200px;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    /* Hero Section Desktop */
    .hero-content {
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-name {
        font-size: 3.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    /* Sections générales Desktop */
    .section-container {
        max-width: 1200px;
        padding: 5rem 2rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    /* Biographie Desktop */
    .bio-content {
        gap: 4rem;
    }
    
    .bio-text h3 {
        font-size: 2rem;
    }
    
    .bio-text h4 {
        font-size: 1.5rem;
    }
    
    .portrait-no-frame {
        max-width: 380px;
    }
    
    /* Témoignages Desktop */
    .testimonials-page h3 {
        font-size: 2rem;
    }
    
    /* Cérémonie Desktop */
    .info-card {
        padding: 2.5rem;
    }
    
    .info-card h3 {
        font-size: 1.8rem;
    }
    
    .map-container {
        height: 500px;
        max-width: 900px;
    }
    
    /* Instructions et Protocole Desktop */
    .instructions-list li {
        padding: 2rem;
    }
    
    /* Message ovale Desktop */
    .oval-container {
        max-width: 700px;
        padding: 3.5rem 3rem;
    }
    
    .oval-content h3 {
        font-size: 2.2rem;
    }
    
    /* Footer Desktop */
    .footer-content {
        gap: 3rem;
    }
}

/* =============================================== */
/* RESPONSIVE DESIGN - GRAND ECRAN (1440px et plus) */
/* =============================================== */
@media (min-width: 1440px) {
    .nav-container {
        max-width: 1400px;
    }
    
    .section-container {
        max-width: 1400px;
    }
    
    .hero-name {
        font-size: 4.2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .portrait-no-frame {
        max-width: 420px;
    }
    
    .map-container {
        height: 550px;
        max-width: 1000px;
    }
}

/* ===================================== */
/* RESPONSIVE DESIGN - TRÈS PETIT ÉCRAN */
/* ===================================== */
@media (max-width: 360px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .portrait-no-frame {
        max-width: 250px;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .oval-btn {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
    }
    
    .instructions-list li {
        padding: 1.2rem;
    }
}

/* Support pour l'orientation paysage sur mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 4rem 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

/* Animation au défilement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Optimisation pour le mode sombre du système */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .navbar {
        background-color: rgba(30, 30, 30, 0.98);
    }
    
    .hero-section {
        background-blend-mode: overlay;
    }
}

/* Support pour les appareils à toucher */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 0;
    }
    
    .info-card:hover {
        transform: none;
    }
    
    .quality-tag:hover {
        transform: none;
    }
    
    .oval-btn:hover {
        transform: none;
    }
    
    .instructions-list li:hover {
        transform: none;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    }
}

/* Impression */
@media print {
    .navbar,
    .hero-scroll,
    .oval-message-section,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .section-container {
        padding: 1rem 0;
        max-width: 100%;
    }
    
    .hero-section {
        height: auto;
        background: none;
        color: black;
    }
    
    .hero-overlay {
        display: none;
    }
}