:root {
    --primary-color: #2f0047; /* Violet profond */
    --secondary-color: #4b0082; /* Violet moyen */
    --accent-color: #8a2be2; /* Bleu-violet plus clair */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --bg-light: #f8f9fa; /* Presque blanc */
    --bg-medium: #e9ecef; /* Gris très clair */
    --bg-dark: #2f0047; /* Utilisé pour les sections sombres */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color); /* Couleur de texte par défaut pour les sections claires */
    line-height: 1.7;
    background-color: var(--bg-light); /* Fond général de la page */
    overflow-x: hidden;
}

/* Hamburger Menu & Navigation */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px; /* Increased size slightly for the circle */
    height: 44px; /* Increased size slightly for the circle */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(47, 0, 71, 0.6); /* Semi-transparent dark violet background */
    border-radius: 50%; /* Makes it a circle */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Halo effect */
    border: none;
    cursor: pointer;
    z-index: 1100; /* Higher than nav panel */
    padding: 0;
    transition: background-color var(--transition-speed);
}
.hamburger-menu:hover {
    background-color: rgba(47, 0, 71, 0.8); /* Darker on hover */
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--light-text-color);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19) 0s, background-color 0.3s;
}
.hamburger-inner {
    top: 50%;
    margin-top: -1px;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: '';
}
.hamburger-inner::before {
    top: -10px;
    transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}
.hamburger-inner::after {
    bottom: -10px;
    transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19) 0s;
}
/* Active state for hamburger (X) */
.hamburger-menu.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hamburger-menu.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}
.hamburger-menu.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

/* Nav Panel */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: var(--primary-color);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050; /* Below hamburger button */
    padding-top: 100px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}
.main-nav.is-active {
    transform: translateX(0);
}
.main-nav ul {
    list-style: none;
}
.main-nav ul li a {
    display: block;
    padding: 15px 30px;
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}
.main-nav ul li a:hover {
    background-color: var(--accent-color);
}


/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 80px; /* Adjusted for hamburger menu */
    z-index: 1001;
}
.language-selector select {
    padding: 10px 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    font-size: 0.9em;
    cursor: pointer;
    outline: none;
    transition: var(--transition-speed);
}
.language-selector select:hover {
    background: white;
    border-color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color); /* Texte clair sur fond hero */
    padding: 20px;
    background: url('../images/p_back.webp') no-repeat center center/cover;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(47, 0, 71, 0.75), rgba(75, 0, 130, 0.55));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.app-logo { width: 100px; height: 100px; margin-bottom: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.7); box-shadow: 0 0 15px rgba(255,255,255,0.5); }
.hero h1 { font-family: var(--font-secondary); font-size: 3.5em; font-weight: 700; margin-bottom: 20px; text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5); line-height: 1.2; }
.hero p { font-size: 1.3em; max-width: 650px; margin-bottom: 30px; font-weight: 300; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4); }
.cta-button { 
    display: none; /* Old button is now hidden */
}
.scroll-down { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); cursor: pointer; z-index: 2; animation: bounce 2s infinite; }
.scroll-down svg { width: 35px; height: 35px; fill: var(--light-text-color); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }

/* Section Styles Base */
.section {
    padding: 80px 20px;
    text-align: center;
}
.section-title {
    font-family: var(--font-secondary);
    font-size: 2.8em;
    color: var(--primary-color); /* Couleur par défaut pour fond clair */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color); /* Couleur par défaut pour fond clair */
    margin: 10px auto 0;
}
.section-subtitle {
    font-size: 1.2em;
    color: var(--secondary-color); /* Couleur par défaut pour fond clair */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Styles pour sections avec fond sombre explicite (.dark-bg) */
.section.dark-bg {
    background-color: var(--bg-dark); /* Violet profond */
    color: var(--light-text-color); /* Texte général de la section clair */
}
.section.dark-bg .section-title,
.section.dark-bg .section-subtitle {
    color: var(--light-text-color); /* Titre et sous-titre clairs */
}
.section.dark-bg .section-title::after {
    background: var(--light-text-color); /* Ligne sous le titre claire */
}
/* Cartes dans une section .dark-bg */
.section.dark-bg .philosophy-card, /* Si #philosophy avait .dark-bg */
.section.dark-bg .approach-item,   /* Pour #unique-approach */
.section.dark-bg .why-item,       /* Si #why-piknowkyo avait .dark-bg */
.section.dark-bg .feature-card,    /* Si #features avait .dark-bg */
.section.dark-bg .functionalities-list li, /* Si #app-functionalities avait .dark-bg */
.section.dark-bg .plan-card {     /* Si #plans avait .dark-bg */
    background-color: var(--secondary-color); /* Fond violet moyen pour les cartes */
    color: var(--light-text-color); /* Texte des cartes clair */
    box-shadow: 0 5px 15px rgba(0,0,0,0.25); /* Ombre plus visible */
}
.section.dark-bg .philosophy-card h3,
.section.dark-bg .approach-item h3,
.section.dark-bg .why-item h3,
.section.dark-bg .feature-card h3,
.section.dark-bg .plan-card h3 {
    color: var(--light-text-color); /* Titres de cartes clairs */
}
.section.dark-bg .philosophy-card h3 .symbol,
.section.dark-bg .feature-card .benefit,
.section.dark-bg .feature-card .inspirations,
.section.dark-bg .plan-card .price small {
    color: var(--bg-medium); /* Textes secondaires dans les cartes claires */
}
.section.dark-bg .plan-card .price {
    color: var(--light-text-color); /* Le prix principal reste clair, la sous-note est bg-medium */
}
.section.dark-bg .approach-item i,
.section.dark-bg .why-item i,
.section.dark-bg .functionalities-list li i {
    color: var(--bg-light); /* Icônes claires */
}

/* Définition des fonds de section spécifiques */
#philosophy { background-color: var(--bg-medium); } /* Gris clair */
#holistic-experience { background-color: var(--bg-light); } /* Presque blanc */
#features { background-color: var(--bg-medium); } /* Gris clair */
/* #unique-approach est .dark-bg dans HTML -> violet profond */
#why-piknowkyo { background-color: var(--bg-light); } /* Presque blanc */
#app-functionalities { background-color: var(--bg-medium); } /* Gris clair - PAS .dark-bg dans HTML */
/* #download-app a un fond violet foncé direct dans ses styles ci-dessous */
#plans { background-color: var(--bg-light); } /* Presque blanc */
#about-lab { background-color: var(--bg-medium); } /* Gris clair */


/* Styles spécifiques pour les cartes sur fonds clairs/moyens (pas .dark-bg) */
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; margin: 40px auto; text-align: left; }
.philosophy-card { background: white; padding: 30px 25px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.07); transition: var(--transition-speed); }
.philosophy-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.philosophy-card h3 { font-family: var(--font-secondary); color: var(--primary-color); font-size: 1.8em; margin-bottom: 10px; }
.philosophy-card h3 .symbol { font-family: var(--font-primary); color: var(--accent-color); }
.philosophy-summary { margin-top: 30px; font-size: 1.1em; font-style: italic; color: var(--secondary-color); max-width: 800px; margin-left: auto; margin-right: auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; text-align: left; }
.feature-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); transition: var(--transition-speed), transform 0.2s ease-out; border-left: 5px solid var(--accent-color); color: var(--text-color); }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }
.feature-card h3 { font-size: 1.6em; font-weight: 600; color: var(--primary-color); margin-bottom: 10px; }
.feature-card p { font-size: 1em; margin-bottom: 10px; } /* color: var(--text-color) hérité */
.feature-card .benefit { font-style: italic; color: var(--secondary-color); font-weight: 500; }
.feature-card .inspirations { font-size: 0.9em; color: #777; margin-top:10px; }

.approach-grid, .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 30px auto; text-align: left; }
.approach-item, .why-item { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: var(--transition-speed); color: var(--text-color); }
.approach-item:hover, .why-item:hover { transform: translateY(-5px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.approach-item h3, .why-item h3 { color: var(--primary-color); font-family: var(--font-secondary); font-size: 1.7em; margin-bottom: 10px; }
.approach-item i, .why-item i { font-size: 2em; color: var(--accent-color); margin-bottom: 15px; display: block; text-align: center; }

#app-functionalities .section-subtitle { font-size: 1.3em; line-height: 1.8; max-width: 750px; }
.functionalities-list { list-style: none; padding: 0; max-width: 1000px; margin: 40px auto; text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.functionalities-list li { background-color: white; padding: 20px 18px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); display: flex; align-items: center; transition: var(--transition-speed); font-size: 0.95em; line-height: 1.5; color: var(--text-color); }
.functionalities-list li:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 15px rgba(0,0,0,0.12); }
.functionalities-list li i { color: var(--accent-color); font-size: 1.4em; margin-right: 15px; width: 30px; text-align: center; flex-shrink: 0; }

/* Download Section & Store Buttons */
#download-app { 
    background-color: var(--primary-color); 
    color: var(--light-text-color); 
}
#download-app .section-title, #download-app .section-subtitle { color: var(--light-text-color); }
#download-app .section-title::after { background: var(--light-text-color); }
.store-links-container { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
/* General Store Button Style */
.store-button { display: inline-flex; align-items: center; padding: 12px 25px; background: rgba(255, 255, 255, 0.9); color: var(--primary-color); text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 1.1em; transition: var(--transition-speed), transform 0.2s ease-out; border: 1px solid transparent; min-width: 200px; }
.store-button i { font-size: 1.8em; margin-right: 10px; }
.store-button .store-text { display: flex; flex-direction: column; align-items: flex-start; }
.store-button .store-text small{ font-size: 0.7em; font-weight: 400; line-height: 1; }
.store-button .store-text span{ font-size: 1.1em; line-height: 1.2; }
.store-button:hover { background: white; color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
/* Specific style for buttons in the Hero section */
.hero .store-links-container { margin-top: 30px; }


.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.plan-card { background: white; padding: 35px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); transition: var(--transition-speed), transform 0.2s ease-out; border-top: 5px solid var(--secondary-color); color: var(--text-color); }
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }
.plan-card.highlight { border-top-color: var(--accent-color); transform: scale(1.05); }
.plan-card.highlight:hover { transform: scale(1.08) translateY(-5px); }
.plan-card h3 { font-family: var(--font-secondary); font-size: 1.8em; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; }
.plan-card p { font-size: 1em; margin-bottom: 20px; } /* color: var(--text-color) hérité */
.plan-card .price { font-size: 1.5em; font-weight: 700; color: var(--accent-color); margin-bottom: 20px; }
.plan-card .price small { font-size: 0.7em; font-weight: 400; color: var(--text-color); } /* S'assurer que small a la bonne couleur */

/* Footer */
footer { text-align: center; padding: 50px 20px; background: var(--primary-color); color: var(--bg-medium); }
footer p { font-size: 1em; margin-bottom: 15px; max-width: 600px; margin-left: auto; margin-right: auto; }
footer a { color: var(--accent-color); text-decoration: none; margin: 0 10px; font-weight: 500; transition: var(--transition-speed); }
footer a:hover { color: var(--light-text-color); text-decoration: underline; }
.footer-logo { width: 60px; height: 60px; margin-bottom: 15px; opacity: 0.8; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero h1 { font-size: 3em; } .hero p { font-size: 1.2em; } .section-title { font-size: 2.4em; }
}
@media (max-width: 768px) {
    .language-selector { top: 15px; right: 75px; } /* Adjusted for circular hamburger */
    .language-selector select { padding: 8px 12px; font-size: 0.8em; }
    .hamburger-menu { top: 15px; right: 15px; width: 40px; height: 40px; }
    .hero { padding: 15px; min-height: 100vh; } .hero h1 { font-size: 2.5em; } .hero p { font-size: 1.1em; max-width: 90%; }
    .hero .store-links-container { flex-direction: column; gap: 10px; }
    .hero .store-button { width: 100%; max-width: 280px; }

    .scroll-down svg { width: 30px; height: 30px; }
    .section { padding: 60px 15px; } .section-title { font-size: 2em; }
    .section-subtitle { font-size: 1.1em; margin-bottom: 30px; }
    #app-functionalities .section-subtitle { font-size: 1.1em; } /* Spécifique pour mobile */
    
    .features-grid, .plans-grid, .philosophy-grid, .approach-grid, .why-grid, .functionalities-list {
        grid-template-columns: 1fr; gap: 20px;
    }
    .functionalities-list { gap: 15px; max-width: 100%; }
    .functionalities-list li { font-size: 0.9em; padding: 15px; }
    .functionalities-list li i { font-size: 1.2em; margin-right: 10px; }

    .plan-card.highlight { transform: scale(1); }
    .plan-card.highlight:hover { transform: translateY(-5px); }
    .store-links-container { flex-direction: column; }
    .store-button { width: 100%; max-width: 280px; justify-content: center; }
}