/* style.css - Version 5.0 (Apple Carousel Style) */
:root {
    --bg-color: #050505;
    --card-bg: #0F0F0F; /* Fond des cartes légèrement plus clair */
    --border-color: rgba(255, 255, 255, 0.08);
    --text-color: #EEEEEE; 
    --text-muted: #888888;
    --font-main: 'Avenir Next', 'Segoe UI', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(20px);
    z-index: 1000; border-bottom: 1px solid var(--border-color);
}
.logo a { font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
nav ul { display: flex; gap: 25px; }
nav a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
nav a:hover, nav a.active { color: #fff; }

main { flex: 1; padding-top: 80px; }

/* --- HERO COMMUN --- */
.landing-hero {
    min-height: 50vh; /* Réduit pour être plus compact */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 40px 20px;
    position: relative;
}
.hero-glow, .circa-hero-glow {
    position: absolute; width: 600px; height: 600px;
    top: -250px; left: 50%; transform: translateX(-50%);
    z-index: -1; pointer-events: none; opacity: 0.6;
}
/* Glow gris par défaut pour l'index */
.hero-glow { background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); }

h1.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800; letter-spacing: -2px; margin-bottom: 10px;
    background: linear-gradient(180deg, #FFFFFF 0%, #AAAAAA 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 30px; }

/* --- CARROUSEL HORIZONTAL (NOUVEAU) --- */
.gallery-section {
    padding: 0 0 80px 0; /* Pas de padding sur les côtés pour laisser filer le scroll */
    max-width: 1400px; margin: 0 auto;
}
.gallery-label {
    text-align: center; text-transform: uppercase; letter-spacing: 2px; 
    font-size: 0.8rem; color: #555; margin-bottom: 30px;
}

.app-gallery {
    display: flex;
    overflow-x: auto; /* Active le scroll horizontal */
    gap: 30px;
    padding: 20px 5%; /* Marge sur les côtés pour le début/fin */
    scroll-snap-type: x mandatory; /* Magnétisme au scroll */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Cache la barre Firefox */
}
.app-gallery::-webkit-scrollbar { display: none; } /* Cache la barre Chrome/Safari */

.gallery-card {
    flex: 0 0 320px; /* Largeur FIXE des cartes : ni trop gros, ni trop petit */
    scroll-snap-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: transform 0.3s ease;
}
.gallery-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }

.screenshot-frame {
    width: 100%; aspect-ratio: 9/19; /* Ratio iPhone */
    background: #000; border-radius: 16px; 
    overflow: hidden; margin-bottom: 20px;
    border: 4px solid #222; /* Faux cadre iPhone */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; }

.gallery-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.gallery-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }


/* --- BENTO GRID (Pour index.html) --- */
.bento-section { padding: 0 5% 100px; max-width: 1100px; margin: 0 auto; }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    border-radius: 24px; overflow: hidden; position: relative;
    display: flex; flex-direction: column; text-decoration: none;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.bento-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.col-large { grid-column: span 8; } 
.col-small { grid-column: span 4; }
.card-content { padding: 30px; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.card-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 10px; }
.card-title { font-size: 2rem; color: #fff; margin-bottom: 8px; font-weight: 700; }
.card-desc { color: var(--text-muted); font-size: 1rem; }
.card-visual { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; z-index: 1; mask-image: linear-gradient(to bottom, black 50%, transparent 100%); }
.badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; background: rgba(255,255,255,0.1); color: #fff; margin-bottom: 15px; width: fit-content; }

/* --- APP STORE BADGE --- */
.app-store-btn {
    display: inline-block;
    width: 160px; /* Taille standard Apple */
    height: auto;
    border-radius: 8px; /* Arrondi officiel du badge */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Bordure fine pour le contraste sur fond noir */
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    border-color: #fff; /* La bordure devient blanche au survol */
    opacity: 0.9;
    cursor: pointer;
}

.app-store-btn img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- FOOTER & PAGES --- */
.page-container { max-width: 800px; margin: 60px auto; padding: 0 5%; }
.page-header { margin-bottom: 50px; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; }
.cta-button { background: #fff; color: #000; padding: 12px 25px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; display: inline-block; }
.cta-button:hover { background: #ddd; }
footer { text-align: center; padding: 60px 20px; font-size: 0.85rem; color: #555; margin-top: auto; border-top: 1px solid var(--border-color); }
.footer-legal { font-size: 0.75rem; margin-top: 12px; opacity: 0.5; }

@media (max-width: 900px) {
    .bento-grid { display: flex; flex-direction: column; }
    .hero-title { font-size: 3.5rem; }
    nav { display: none; }
}