/* ==================================================================== */
/* === MODERN EXOTIC FRUITS THEME (APPLIED TO FRUIT-COULEUR.CSS) === */
/* ==================================================================== */

/* --- ROOT VARIABLES & MODERN BASE --- */
:root {
    /* Palette inspirée des fruits exotiques */
    --mango-orange: #ff8c42;
    --passion-purple: #6f2da8;
    --kiwi-green: #8fbc8f;
    --dragon-pink: #ff69b4;
    --coconut-white: #fff8dc;
    --papaya-coral: #ff7f7f;
    --avocado-green: #568203;
    
    /* Couleurs principales */
    --primary-gradient: linear-gradient(135deg, var(--mango-orange) 0%, var(--papaya-coral) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--passion-purple) 0%, var(--dragon-pink) 100%);
    --accent-gradient: linear-gradient(135deg, var(--kiwi-green) 0%, var(--avocado-green) 100%);
    
    /* Couleurs de base */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-primary: #fdfdfd;
    --bg-secondary: #f8f9fa;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.15);
    
    /* Typography moderne */
    --font-primary: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    
    /* Animations */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* Reset moderne et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: 2px solid var(--mango-orange);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- HEADER & NAVIGATION PRINCIPALE --- */
header {
    background: rgba(255, 140, 66, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 1rem;
    color: white;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-light);
}

.site-branding h1 {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #fff, #ffe4b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

nav.main-navigation {
    background: var(--secondary-gradient);
    padding: 1rem;
    box-shadow: var(--shadow-light);
}

nav.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    display: block;
    position: relative;
    overflow: hidden;
}

nav.main-navigation a:hover, nav.main-navigation a:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: transparent; /* Override old style */
}

/* --- CONTENEURS & SECTIONS MODERNISÉES --- */
.container, .main-content-area {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, h2 {
    font-family: var(--font-secondary);
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin: 3rem 0 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--passion-purple);
    margin: 2rem 0 1rem;
    font-weight: 600;
    font-family: var(--font-secondary);
}

.intro-text-box, .faq-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 1000px;
    margin: 2rem auto;
    box-shadow: var(--shadow-medium);
}

/* Élargissement spécifique pour les sections FAQ & Découvrir sur PC */
.faq-section, .discover-also-section {
    max-width: 1100px;
}

/* === RÈGLE AJOUTÉE POUR CORRIGER L'ALIGNEMENT CÔTE-À-CÔTE === */
.container-wrapper {
    display: block; /* Annule le comportement flexbox de l'ancien thème */
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    gap: 0;
}


/* --- MISE EN PAGE D'INTRODUCTION --- */
.intro-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 900px;
}

.intro-image-container {
    width: 100%;
    max-width: 500px;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.intro-image-container:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: var(--shadow-strong);
}

.intro-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-ad-slot {
    width: 336px;
    height: 280px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px dashed var(--border-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.intro-ad-slot:hover {
    border-color: var(--mango-orange);
}

/* --- NAVIGATION RAPIDE (STICKY) --- */
nav.quick-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.8rem 1rem;
    text-align: center;
    position: sticky;
    top: 95px; /* Adjust based on main header height */
    z-index: 99;
    box-shadow: var(--shadow-light);
    border-radius: 50px;
    max-width: fit-content;
    margin: 1rem auto;
    display: flex; /* Added for better control */
    justify-content: center;
}

nav.quick-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap; /* Allow wrapping on all screen sizes */
}

nav.quick-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

nav.quick-nav a:hover, nav.quick-nav a:focus, nav.quick-nav a.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-medium);
}

/* --- GRILLES & CARTES DE FRUITS --- */
.fruits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.fruit-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fruit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.fruit-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.fruit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.fruit-card:hover .fruit-image img {
    transform: scale(1.1);
}

.fruit-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fruit-name {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--mango-orange);
    margin-bottom: 0.5rem;
}

.fruit-origin {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- LISTES DE FRUITS (PAGES D'INDEX) --- */
.fruit-list-section {
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
}

.fruit-list-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.fruit-list-section a {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    text-decoration: none;
    display: inline-block;
}

.fruit-list-section a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--secondary-gradient);
}


/* --- BOUTONS MODERNES --- */
.read-more-toggle, .read-more {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    align-self: flex-start;
}

.read-more-toggle:hover, .read-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--secondary-gradient);
}


.button-main-text, .button-sub-text {
    color: white !important;
    transition: var(--transition-fast);
}

.button-main-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.button-sub-text {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

/* --- SECTION "À DÉCOUVRIR AUSSI" --- */
.discover-also-section {
    background: linear-gradient(135deg, rgba(111, 45, 168, 0.1) 0%, rgba(255, 105, 180, 0.05) 100%);
    border-left: 4px solid var(--dragon-pink);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    border-radius: 24px;
    margin: 2rem auto;
}

.discover-also-section h2 {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--passion-purple);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.discover-also-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.discover-also-section li {
    margin: 0;
    transition: var(--transition-fast);
}

.discover-also-section li:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.discover-also-section a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 1.25rem 1rem;
    transition: var(--transition-smooth);
    position: relative;
    border-radius: 12px;
}

.discover-also-section a:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--passion-purple);
    transform: translateX(10px);
}

.discover-also-section a::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--dragon-pink);
    opacity: 0;
    transition: var(--transition-smooth);
}

.discover-also-section a:hover::after {
    opacity: 1;
}

/* --- FOOTER MODERNE --- */
footer {
    background: var(--secondary-gradient);
    color: white;
    text-align: center;
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover, .footer-section a:focus {
    color: white;
    transform: translateX(5px);
}

.copyright {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    grid-column: 1 / -1;
}

/* --- BOUTON RETOUR EN HAUT --- */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1001;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#backToTopBtn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-strong);
}

/* --- ANIMATIONS & DIVERS --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.interactive-element {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 0;
    transform: translateY(20px);
}
.interactive-element.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Masquer le bouton burger sur PC */
.mobile-menu-button {
    display: none;
}

/* Hide unused elements from old theme */
.fruit-details, .details-section, .toggle-details { display: none; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .mobile-menu-button { 
        display: block; 
        background: transparent;
        border: 2px solid white;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 8px;
        position: absolute;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
        z-index: 10;
    }

    nav.main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-gradient);
        padding: 1rem;
    }
    nav.main-navigation.nav-active ul { display: flex; }
    
    .intro-layout { flex-direction: column; }
    
    nav.quick-nav {
        border-radius: 20px;
        width: 95%;
        top: 90px;
    }

    nav.quick-nav ul {
        justify-content: center;
    }

    .intro-text-box, .faq-section, .discover-also-section {
        width: 90%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .fruits-grid { grid-template-columns: 1fr; }
    
    .intro-ad-slot {
        width: 300px;
        height: 250px;
    }

    /* Ajustement pour que la largeur sur très petits écrans ne soit pas trop petite */
    .intro-text-box, .faq-section, .discover-also-section {
        width: 95%;
        padding: 1.5rem 1rem;
    }
}



/* --- SCROLLBAR & SELECTION --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary-gradient); border-radius: 4px; }
::selection { background: var(--mango-orange); color: white; }