/* Root variables for easy theming */
:root {
    --primary-color: #5A2EA6; /* Primary dark purple used in the app */
    --secondary-color: #ffffff; /* Base white */
    --light-purple: #f6f3fd; /* Very light purple for panels */
    --accent-green: #78C045; /* Bright green from the logo */
    --accent-blue: #2CB7DD; /* Cyan blue from the logo */
    --accent-yellow: #F5C10E; /* Yellow from the logo */
    --accent-pink: #E41D72; /* Pink from the logo */
    --text-color: #2E1A47; /* Darker purple for text on light backgrounds */
}

/* Global reset and typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: bold;
    line-height: 1.3;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Site header and navigation styling */
.site-header {
    /* Barre de navigation de style clair inspirée du site d'exemple */
    background-color: #ffffff !important;
    color: var(--primary-color);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.logo-wrapper {
    display: flex;
    align-items: center;
}
.logo-small {
    height: 60px;
    width: auto;
}
.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.navbar li {
    margin-left: 20px;
}
/* Navigation links stylées pour la barre claire */
.navbar a {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}
.navbar a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Hero section styling */
#hero {
    background: linear-gradient(180deg, var(--primary-color) 0%, #331056 50%, #25093f 100%);
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
}
#hero .logo-main {
    /* Réduit la taille du logo principal pour harmoniser avec la barre de navigation */
    max-width: 240px;
    width: 60%;
    height: auto;
    margin-bottom: 30px;
}
#hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}
#hero .tagline {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
/* Style pour les liens de téléchargement des stores */
.store-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}
.store-links img {
    height: 50px;
    width: auto;
    display: block;
}
/* Police ludique pour le slogan */
#hero h1, #hero .tagline {
    font-family: 'Fredoka One', cursive;
}

/* Features section styling */
#features {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 60px 20px;
}
#features h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.feature {
    flex: 1 1 220px;
    max-width: 280px;
    background-color: var(--light-purple);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}
.feature:hover {
    transform: translateY(-5px);
}
.feature .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Ajustement de la taille des images d'icônes dans les fonctionnalités */
.feature .icon img {
    width: 64px;
    height: 64px;
}
.feature h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.feature p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Presentation section styling */
#presentation {
    background-color: #f9f9ff;
    color: var(--text-color);
    padding: 60px 20px;
}
#presentation h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}
#presentation p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1rem;
    text-align: center;
}
.reasons-list {
    list-style-type: disc;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}
.reasons-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Banners section styling */
#banners {
    background-color: #f9f9ff;
    color: var(--text-color);
    padding: 60px 20px;
}
#banners h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.banner-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.banner-item:hover {
    transform: translateY(-5px);
}
.banner-item:hover img {
    transform: scale(1.05);
}
.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(90, 46, 166, 0.8);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Screenshots section styling */
#screenshots {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 60px 20px;
}
#screenshots h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.screenshot-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.screenshot-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Illustrations section styling */
#illustrations {
    background-color: #f9f9ff;
    color: var(--text-color);
    padding: 60px 20px;
}
#illustrations h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.illustration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.illustration-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.illustration-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
/* Footer styling */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 30px 20px;
}
footer nav {
    margin-top: 10px;
}
footer nav a {
    color: var(--secondary-color);
    margin: 0 12px;
    font-size: 0.9rem;
}
footer nav a:hover {
    text-decoration: underline;
}

/* Legal pages styling */
.legal {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
}
.legal h1 {
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}
.legal-content {
    font-size: 0.95rem;
    line-height: 1.5;
}
.legal-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}
.legal a {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-blue);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #hero h1 {
        font-size: 1.6rem;
    }
    #features h2, #presentation h2, #screenshots h2 {
        font-size: 1.5rem;
    }
    .feature-grid {
        flex-direction: column;
        align-items: center;
    }
    .feature {
        max-width: 90%;
        margin-bottom: 20px;
    }
}