/* --- Charte Graphique & Variables CSS --- */
:root {
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;
    
    /* Couleurs de marque */
    --primary: #10B981;       /* Vert émeraude */
    --primary-dark: #098640;  /* Vert foncé */
    --primary-light: #E6F7F0; /* Vert très clair */
    --secondary: #8B5CF6;     /* Violet */
    --yellow-badge: #FECA15;  /* Jaune doré */
    --orange-brand: #EA580C;  /* Orange */
    --orange-light: #FFF7ED;  /* Orange très clair */
    
    /* Couleurs du texte (Contrastes augmentés +10%) */
    --text-main: #1E293B;     /* Slate-800 au lieu de Slate-700 */
    --text-muted: #475569;    /* Slate-600 au lieu de Slate-500 */
    --text-bright: #0F172A;   /* Slate-900 */
    
    /* Bordures & Espacements (Contours renforcés +10%) */
    --border-color: #CBD5E1;   /* Slate-300 au lieu de Slate-200 */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Ombres renforcées (+10%) */
    --shadow-sm: 0 3px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.1);
}

/* --- Reset global & Configuration Mobile --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

/* --- Conteneur principal de l'application --- */
.app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 12px 30px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* --- En-tête (Header) --- */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85); /* Correspond à --bg-body avec transparence */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0; /* Pas de padding global pour que la tagline touche les bords */
    margin: 0 -12px 0 -12px; /* Pour s'étendre bord à bord du conteneur parent */
    border-bottom: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.header-tagline-row {
    background: #E6F7F0; /* Fond vert très clair et frais */
    color: #098640;      /* Texte vert foncé contrasté */
    text-align: center;
    font-size: 0.64rem;  /* Ajusté pour tenir sur une seule ligne */
    font-weight: 700;
    padding: 5px 8px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    white-space: nowrap;
    letter-spacing: -0.015em;
}

@media (max-width: 375px) {
    .header-tagline-row {
        font-size: 0.56rem;
        letter-spacing: -0.025em;
    }
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 36px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0BB167;
    letter-spacing: -0.03em;
    line-height: 1;
    font-family: var(--font-family);
    transition: var(--transition-smooth);
}

.brand-text:hover {
    color: var(--primary-dark);
}

.brand-text-sub {
    color: #94A3B8;
    font-weight: 500;
}


.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.btn-circle i {
    width: 18px;
    height: 18px;
}

.btn-circle:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--text-bright);
    transform: scale(1.05);
}
.btn-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    outline: none;
}

.btn-account:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--primary-dark);
    transform: scale(1.03);
}

.btn-account i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}


/* --- Section d'accroche (Hero) --- */
.hero-section {
    display: contents; /* Permet d'ordonner ses enfants directement dans le conteneur flex mobile */
}

/* Configuration de l'ordre d'affichage flexible sur mobile */
.app-header { order: 1; }
.hero-content { order: 2; width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.dashboard-grid { order: 3; }
.hero-image-container { order: 4; }
.secondary-row { order: 5; }
.card-featured-banner { order: 6; }
.reviews-section { order: 7; }
.app-footer { order: 8; }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Badge de confiance (Hero) */
.trust-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.trust-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.trust-stars i {
    width: 12px;
    height: 12px;
}

.trust-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-bright);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.highlight-green {
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

@media (max-width: 375px) {
    .hero-subtitle {
        font-size: 0.74rem;
        letter-spacing: -0.02em;
    }
}


.promo-badge-splash {
    background: #FECA15;
    border: 2.5px solid #0F172A;
    border-radius: 16px;
    box-shadow: 4px 4px 0px #0F172A;
    padding: 10px 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-3deg);
    user-select: none;
    z-index: 10;
    width: fit-content;
    height: auto;
    margin: 12px 0 4px 0;
    transition: var(--transition-bounce);
}

.promo-badge-splash:hover {
    transform: rotate(-1deg) scale(1.05);
    box-shadow: 5px 5px 0px #0F172A;
}

.splash-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.splash-line-1 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.splash-line-2 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #EA580C;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.splash-line-3 {
    font-size: 0.6rem;
    font-weight: 700;
    color: #0F172A;
    margin-top: 3px;
    line-height: 1.1;
}

.hero-image-container {
    display: none; /* Masqué sur mobile pour un focus conversion maximum */
}

.hero-illustration-img {
    width: 100%;
    height: auto;
    max-width: 280px;
    max-height: 180px;
    margin: 0 auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.05));
}

/* --- Barre des Fonctionnalités (Features Bar) --- */
.features-bar {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    margin: 12px 0 16px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.feature-icon-wrapper {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper i {
    width: 16px;
    height: 16px;
}

.feature-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    text-align: left;
}

.feature-divider {
    display: block;
    width: 1px;
    height: 20px;
    background: var(--border-color);
    align-self: center;
}

/* --- Grille des Actions Principales (Dashboard Grid) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.grid-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #94A3B8;
}

.card-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
}

.card-image-top {
    width: 100%;
    aspect-ratio: 478 / 492;
    background: #FAFAFA;
    overflow: hidden;
}

.card-image-top img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.card-content-bottom {
    padding: 16px 14px 20px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    flex-grow: 1;
}

.card-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 3px;
}

.card-pre-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.2;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 2px 0;
}

.card-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748B;
    line-height: 1.3;
    margin-top: 1px;
}

.text-green {
    color: #0BB167;
}

.text-orange {
    color: var(--orange-brand);
}

.btn-arrow-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-arrow-circle i {
    width: 20px;
    height: 20px;
}

.btn-arrow-green {
    background: #0BB167;
}

.btn-arrow-orange {
    background: var(--orange-brand);
}

.grid-card:hover .btn-arrow-circle {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}


/* --- Cartes Secondaires (Secondary Row) --- */
.secondary-row {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.card-secondary-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 10px;
    gap: 8px;
    width: 100%;
    transition: var(--transition-bounce);
}

.card-sec-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.sec-card-img {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.sec-card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sec-card-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.2;
}

.sec-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.2;
    margin-top: 2px;
}

.card-sec-arrow-green {
    display: none;
}


/* --- Bannière Tante Fernande (Featured Banner) --- */
.card-featured-banner {
    display: block;
    background-color: #FCBA5D;
    border: 3px dashed #EA580C;
    border-radius: var(--radius-lg);
    position: relative;
    text-decoration: none;
    overflow: hidden;
    width: 100%;
    min-height: 120px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.1);
    transition: var(--transition-bounce);
    box-sizing: border-box;
}

.card-featured-banner:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.18);
}

.banner-overlay-content {
    position: relative;
    width: 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 16px 0 16px 6%;
    box-sizing: border-box;
    z-index: 2;
}

.card-featured-banner .banner-character-img {
    position: absolute;
    right: -25px;
    bottom: -3px;
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.badge-special-b {
    background: #C2410C;
    color: #FFFFFF;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(194, 65, 12, 0.2);
}

.banner-overlay-content h2 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.35;
    margin: 0;
}

@media (max-width: 360px) {
    .banner-overlay-content h2 {
        font-size: 0.74rem;
    }
}

.text-banner-green {
    color: #065F46;
    font-weight: 800;
}

.text-banner-orange {
    color: #C2410C;
    font-weight: 800;
}


/* --- Section Témoignages (Avis Clients) --- */
.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.reviews-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-star-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

.reviews-header-left h2 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0;
    text-transform: none;
}

.reviews-header-right {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.reviews-header-right .trust-count {
    color: var(--primary);
    font-weight: 800;
}

.reviews-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 14px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.reviews-list::-webkit-scrollbar {
    display: none;
}

.review-card-new {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.review-card-new:hover {
    border-color: #94A3B8;
    box-shadow: var(--shadow-md);
}

.review-card-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.review-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.review-top-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.review-quote {
    font-size: 0.72rem;
    color: var(--text-main);
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
    font-style: italic;
}

.review-stars-row {
    display: flex;
    gap: 2px;
}

.review-stars-row i {
    width: 11px;
    height: 11px;
}

.star-filled {
    color: #FBBF24;
    fill: #FBBF24;
}

.review-card-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #F1F5F9;
    padding-top: 8px;
}

.checkmark-icon-wrapper {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.checkmark-icon-wrapper i {
    width: 8px;
    height: 8px;
    stroke-width: 3;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-align: left;
}

.review-username {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-bright);
}

.review-success-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (min-width: 481px) {
    .reviews-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-x: visible;
        padding: 0;
    }
    
    .review-card-new {
        flex: 1 1 auto;
    }
}

/* --- Pied de Page & Caractéristiques (Footer) --- */
.footer-features-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 4px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.footer-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-align: left;
}

.footer-feat-item i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-feat-item span {
    font-size: 0.72rem;
    font-weight: 700;
}

@media (min-width: 440px) {
    .footer-features-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.app-footer p {
    font-size: 0.72rem;
    color: #94A3B8;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- Responsivité Desktop (Conteneur façon Smartphone) --- */
@media (min-width: 481px) {
    body {
        background-color: #F1F5F9;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 0;
    }
    
    .app-container {
        background-color: #FFFFFF;
        border-radius: 32px;
        border: 1px solid var(--border-color);
        box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.05);
        min-height: auto;
        height: 840px;
        overflow-y: auto;
        position: relative;
    }
    
    .app-container::-webkit-scrollbar {
        width: 6px;
    }
    
    .app-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .app-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.08);
        border-radius: 3px;
    }
    
    .app-container::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.15);
    }
}

/* Effets tactiles interactifs (gérés par app.js) */
.active-tap {
    transform: scale(0.98) !important;
    background-color: #F8FAFC !important;
}

/* Hide CookieYes floating consent revisit button to avoid overlapping content */
.cky-btn-revisit-wrapper {
    display: none !important;
}





