/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
    --primary-pink: #e91e63;
    --accent-pink: #ff4081;
    --soft-pink: #fff8f7;
    --bg-white: #ffffff;
    --text-main: #2d2d2d;
    --text-light: #636e72;

    --primary: #FF4D8D;
    --primary-light: #fce4ec;
    --text-dark: #2d3436;
    --bg-creme: #fff8f7;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--text-main);
    height: auto;
    overflow-x: hidden;
}

body {
    background-color: var(--soft-pink);
    padding: 0;
}

.container {
    background-color: var(--soft-pink);
    min-height: 100vh;
}

.index-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-creme);
    color: var(--text-dark);
    margin: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    min-height: 84px;
    padding: 20px 12px 12px;
    background: var(--soft-pink);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: block;
    width: clamp(150px, 45vw, 210px);
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.language-picker {
    position: absolute;
    top: 18px;
    right: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(233, 30, 99, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
}

.language-picker button {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #ccc;
    transition: 0.3s;
    min-width: 27px;
    height: 27px;
    padding: 0 5px;
    border-radius: 7px;
    font-size: 0.72rem;
}

.language-picker button.active {
    color: var(--primary-pink) !important;
    font-weight: 800;
    background: var(--primary-light);
}

.separator {
    display: none;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .language-picker {
    right: auto;
    left: 10px;
}

@media (max-width: 380px) {
    .logo {
        width: min(44vw, 165px);
    }
}

/* ==========================================================================
   PRODUIT VISUEL (page produit)
   ========================================================================== */
.product-image-container {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
}

#product-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 20px;
}

.product-info {
    padding: 20px 25px 150px 25px; /* Large padding en bas pour le bouton fixe */
    flex-grow: 1;
}

.brand-name {
    color: var(--primary-pink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.price-tag {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-pink);
    margin-bottom: 15px;
    display: block;
}

#product-desc {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

#product-desc p { margin-bottom: 12px; }
#product-desc p:last-child { margin-bottom: 0; }

/* ==========================================================================
   BLOC CONFIANCE / ANALYSE
   ========================================================================== */
#trust-section {
    margin-top: 25px;
    padding: 30px 20px;
    background-color: #fcfcfc;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

#trust-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

.store-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.store-img {
    width: auto;
    transition: transform 0.2s;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.store-img.product-apple-badge {
    height: 42px;
}

.store-img.product-google-badge {
    height: 52px;
}

.store-img:active {
    transform: scale(0.95);
}

/* ==========================================================================
   FOOTER FIXE (bouton d'action sticky)
   ========================================================================== */
.footer-action {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    padding: 15px 20px 25px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid #f5f5f5;
    z-index: 100;
}

.btn-download {
    background: linear-gradient(45deg, var(--primary-pink), var(--accent-pink));
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

/* ==========================================================================
   SECTION CATALOGUE
   ========================================================================== */
.catalog-container {
    padding: 10px 15px;
    background-color: #fff;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 15px 120px 15px;
}

.catalog-message {
    grid-column: 1 / -1;
    margin: 40px 15px;
    color: var(--text-light);
    text-align: center;
}

.loader {
    padding: 30px 20px;
    color: var(--text-light);
    text-align: center;
}

.retry-button {
    margin-inline-start: 8px;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    background: var(--primary);
    cursor: pointer;
    font-weight: 700;
}

.product-card {
    background: var(--primary-light);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}

.product-card:active {
    transform: scale(0.96);
}

.card-img-wrapper {
    padding: 10px;
    position: relative;
    background: transparent;
}

.card-img-bg {
    background: #ffffff;
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.card-img-bg img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.card-details {
    padding: 8px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-text {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    height: 32px; /* Exactement 2 lignes (13px * 1.2 * 2) */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-brand-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    margin: 2px 0 6px 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
    min-height: 18px;
}

.tag-pill {
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
}

.card-price-text {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: auto; /* Pousse le prix en bas de la carte */
    padding-top: 5px;
}

.section-title {
    text-align: center;
    width: 100%;
    margin: 20px 0 30px 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION (page d'accueil)
   ========================================================================== */
.hero {
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
}

.hero-container {
    display: flex;
    flex-direction: column;
}

.badge-new {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 20px 0;
}

.text-gradient {
    color: var(--primary);
    background: linear-gradient(90deg, #FF4D8D, #ff8fa3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-light);
    max-width: 500px;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.hero-mockup {
    margin-bottom: -70px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 18px 30px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 77, 141, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 16px 30px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================================================
   PROBLEM / FEATURES SECTION
   ========================================================================== */
.problem-section {
    padding: 40px 24px 0 24px;
    text-align: center;
    width: 100%;
}

.problem-section p {
    margin-bottom: 0;
    padding-bottom: 0;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 24px 60px 24px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

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

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
    padding: 60px 20px;
}

.cta-box {
    background: var(--text-dark);
    color: white;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
}

.btn-large {
    background: var(--primary);
    color: white;
    display: block;
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    margin-top: 25px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.floating {
    animation: float 4s ease-in-out infinite;
    max-width: 420px;
    margin-top: 40px;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE (TABLETTE / DESKTOP)
   ========================================================================== */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        max-width: 1000px;
        margin: 0 auto;
        justify-content: space-between;
    }
    .hero-mockup {
        margin-bottom: 0;
    }
    .hero-container {
        align-items: flex-start;
    }
    .hero-btns {
        flex-direction: row;
    }
    .features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        margin: 0 auto;
    }
} /* <-- L'accolade manquante qui bloquait tout est ici ! */

/* ==========================================================================
   PRELOAD LANGUAGE EFFECT
   ========================================================================== */
.preload-lang {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.lang-ready {
    opacity: 1;
}

/* ==========================================================================
   FOOTER ACUEIL & LINK SUPPORT (Fonctionne sur tous les écrans)
   ========================================================================== */
.index-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-creme);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.support-link {
    color: var(--primary); /* Utilise ton rose Veloria global */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.support-link:hover {
    text-decoration: underline;
    color: var(--primary-pink);
}
