/* ============================================
   FAMILOO WEBSITE - EAD Studio
   9 Languages Version
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #8B5CF6;
    --turquoise: #14B8A6;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --gradient: linear-gradient(135deg, #8B5CF6 0%, #14B8A6 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* ============================================
   HEADER
   ============================================ */

header {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* ============================================
   LANGUAGE DROPDOWN
   ============================================ */

.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-dropdown-btn:hover {
    background: rgba(255,255,255,0.25);
}

.lang-dropdown-btn img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-dropdown-btn::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.25rem;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 5px;
    z-index: 1000;
}

.lang-dropdown:hover .lang-dropdown-content {
    display: block;
}

.lang-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
    background: white;
    min-width: 220px;
}

.lang-dropdown-content a:first-child {
    border-radius: 12px 12px 0 0;
    padding-top: 1rem;
}

.lang-dropdown-content a:last-child {
    border-radius: 0 0 12px 12px;
}

.lang-dropdown-content a:hover {
    background: var(--light);
}

.lang-dropdown-content a.active {
    background: #f0ebff;
    font-weight: 600;
}

.lang-dropdown-content img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: var(--gradient);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.store-badge img {
    height: 50px;
    transition: transform 0.3s;
}

.store-badge:hover img {
    transform: scale(1.05);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.qualities {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.quality-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quality-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quality-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo .conceived-by {
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: italic;
}

.footer-logo img {
    height: 150px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-info {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-info p {
    margin: 0.25rem 0;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-content .last-update {
    color: var(--gray);
    margin-bottom: 2rem;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    text-align: left;
}

.privacy-content p {
    margin-bottom: 1rem;
    color: var(--dark);
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.privacy-content a {
    color: var(--purple);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }
    
    .logo span {
        font-size: 1.25rem;
    }
    
    nav ul {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .lang-dropdown-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .lang-dropdown-btn span {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .qualities {
        padding: 2rem 1rem;
    }
    
    .store-badges {
        gap: 1rem;
    }
    
    .store-badge img {
        height: 40px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 0.5rem 0.75rem;
    }
    
    .logo img {
        height: 32px;
        width: 32px;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    nav ul {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .hero-icon {
        width: 100px;
        height: 100px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .footer-logo img {
        height: 120px;
        padding: 15px;
    }
}

@media (max-width: 400px) {
    nav ul {
        display: none;
    }
}

/* ============================================
   SCREENSHOTS GALLERY
   ============================================ */
#screenshots {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--light);
}
#screenshots h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.screenshots-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 1rem 1rem 2rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--purple) transparent;
    max-width: 1200px;
    margin: 0 auto;
}
.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
.screenshots-scroll img {
    height: 320px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    display: block;
    cursor: zoom-in;
}
.screenshots-scroll img:hover { transform: scale(1.03); }
@media (max-width: 768px) {
    .screenshots-scroll img { height: 220px; }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
#video {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
}
#video h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.video-wrapper {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Accessibilité + SEO : texte visible uniquement pour les lecteurs d'écran et les moteurs */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
