/* =========================================
   DESIGN SYSTEM — ORIA "ARC-EN-CIEL DOUX"
   Fond clair pastel, palette vive façon bannière/chouette.
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Baloo+2:wght@500;600;700;800&display=swap');

:root {
    /* Fond clair premium — lavande très pâle */
    --bg-base:       #F7F4FC;

    /* Couleurs principales — reprises de la bannière & du logo chouette */
    --primary:       #457B9D;   
    --primary-light: #5A9EC0;
    --primary-dark:  #2E5F7A;
    --secondary:     #F2994A;   
    --accent-teal:   #16A085;   
    --accent-lavender: #8B5CF6; 
    --accent-pink:   #EC6FA0;   
    --accent-sky:    #3AB0E0;   
    --accent-gold:   #F4B740;  

    /* Palette Oria — halos de fond façon bannière (rose→lavande→bleu→menthe) */
    --oria-pink:    rgba(244, 166, 200, 0.42);
    --oria-peach:   rgba(247, 190, 140, 0.32);
    --oria-blue:    rgba(69, 123, 157, 0.26);
    --oria-mint:    rgba(22, 160, 133, 0.24);
    --oria-lavender: rgba(139, 92, 246, 0.26);
    --oria-yellow:  rgba(244, 183, 64, 0.22);

    /* Glassmorphism clair */
    --glass-bg:      rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.88);
    --glass-border:  rgba(255, 255, 255, 0.95);
    --glass-border-subtle: rgba(69, 123, 157, 0.14);
    --glass-blur:    20px;

    /* Textes */
    --text-main:     #1A2E45;
    --text-muted:    #5D738E;
    --text-faint:    #9DB4C8;

    /* Ombres premium */
    --shadow-soft:   0 8px 32px rgba(29, 53, 87, 0.07), 0 2px 8px rgba(29, 53, 87, 0.05);
    --shadow-hover:  0 20px 60px rgba(29, 53, 87, 0.15), 0 8px 20px rgba(139, 92, 246, 0.12);
    --shadow-card:   0 4px 24px rgba(29, 53, 87, 0.08);
    --shadow-glow:   0 0 40px rgba(139, 92, 246, 0.25);

    /* Structure */
    --r-card:        28px;
    --r-pill:        999px;
    --ease:          cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typo — ronde et chaleureuse, comme le logo */
    --font-display:  'Baloo 2', 'Nunito', sans-serif;
    --font-body:     'Nunito', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* =========================================
   ARRIÈRE-PLAN — LAVAGE ARC-EN-CIEL (façon bannière)
   ========================================= */
.oria-container {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    overflow: hidden;
    background: var(--bg-base);
}

.oria-container::before {
    content: "";
    position: absolute; inset: -20%;
    background:
        radial-gradient(ellipse 65% 55% at 6% 10%, var(--oria-pink) 0%, transparent 58%),
        radial-gradient(ellipse 55% 65% at 94% 6%, var(--oria-peach) 0%, transparent 55%),
        radial-gradient(ellipse 75% 55% at 90% 88%, var(--oria-blue) 0%, transparent 55%),
        radial-gradient(ellipse 55% 65% at 8% 90%, var(--oria-mint) 0%, transparent 55%),
        radial-gradient(ellipse 65% 45% at 50% 48%, var(--oria-lavender) 0%, transparent 62%),
        radial-gradient(ellipse 45% 45% at 72% 42%, var(--oria-yellow) 0%, transparent 50%);
    animation: oriaShift 20s ease-in-out infinite alternate;
}

.oria-container::after {
    content: "";
    position: absolute; inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

@keyframes oriaShift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(2%, -2%) scale(1.04); }
    66%  { transform: translate(-2%, 2%) scale(0.97); }
    100% { transform: translate(1%, 1%) scale(1.03); }
}

/* =========================================
   BOUTONS
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 15px 30px;
    border-radius: 16px; font-weight: 800; font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer; border: none;
    transition: all 0.35s var(--ease);
    position: relative; overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
    background: linear-gradient(120deg, var(--accent-pink) 0%, var(--primary) 55%, var(--accent-lavender) 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35), 0 2px 8px rgba(236, 111, 160, 0.25);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(139, 92, 246, 0.45), 0 4px 12px rgba(236, 111, 160, 0.3);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-outline {
    background: var(--glass-bg);
    color: var(--primary);
    border: 2px solid rgba(69, 123, 157, 0.28);
    backdrop-filter: blur(var(--glass-blur));
}
.btn-outline:hover {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(69, 123, 157, 0.4);
}

.btn-sm { padding: 11px 22px; font-size: 13px; }
.btn-full { width: 100%; }

/* =========================================
   NAVIGATION — GLASSMORPHISM PREMIUM
   ========================================= */
.navbar {
    height: 76px; display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(247, 244, 252, 0.82);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(29, 53, 87, 0.07), 0 1px 0 rgba(255,255,255,0.8) inset;
    height: 68px;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 800; font-size: 23px; color: var(--primary);
    letter-spacing: -0.02em;
}
.logo img {
    width: 34px; height: 34px;
    border-radius: 10px;
    filter: drop-shadow(0 2px 8px rgba(139,92,246,0.35));
    transition: transform 0.3s var(--ease-bounce);
}
.logo:hover img { transform: rotate(-8deg) scale(1.1); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.link {
    font-weight: 700; color: var(--text-muted); font-size: 14px;
    transition: color 0.2s;
    position: relative;
}
.nav-links a.link::after {
    content: "";
    position: absolute; bottom: -3px; left: 0; right: 0;
    height: 2px; background: linear-gradient(90deg, var(--accent-pink), var(--primary));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}
.nav-links a.link:hover { color: var(--primary); }
.nav-links a.link:hover::after { transform: scaleX(1); }

.burger-menu { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.burger-menu span { display: block; width: 22px; height: 2.5px; background: var(--text-main); border-radius: 3px; transition: all 0.35s var(--ease); }
.burger-menu.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-menu.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-menu.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================
   BANNIÈRE TOP
   ========================================= */
.top-banner-section {
    width: 100%;
    padding-top: 24px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.top-banner-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 28px;
}

.top-banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 32px;
    box-shadow:
        0 30px 80px rgba(29, 53, 87, 0.13),
        0 10px 30px rgba(139, 92, 246, 0.12),
        0 0 0 1px rgba(255,255,255,0.6) inset;
    display: block;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.top-banner-img:hover {
    transform: translateY(-4px);
    box-shadow:
        0 40px 100px rgba(29, 53, 87, 0.17),
        0 20px 40px rgba(139, 92, 246, 0.16),
        0 0 0 1px rgba(255,255,255,0.6) inset;
}

/* =========================================
   HERO — PRÉSENTATION VIDÉO
   ========================================= */
.presentation-video-section {
    padding: 64px 0 100px; /* Restauré version Bureau */
}

.video-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
}

.video-text h1 {
    font-size: clamp(38px, 4.5vw, 62px);
    margin-bottom: 24px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.video-text h1 span {
    background: linear-gradient(100deg, var(--accent-pink) 0%, var(--primary) 55%, var(--accent-lavender) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139,92,246,0.10);
    border: 1px solid rgba(139,92,246,0.22);
    color: var(--accent-lavender);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 20px;
}
.hero-tag .dot {
    width: 6px; height: 6px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

/* Mockup 3D */
.video-container-3d {
    position: relative;
    perspective: 1200px;
    max-width: 300px;
    margin: 0 auto; /* Restauré version Bureau */
}

.mockup-3d-wrapper {
    position: relative;
    transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
    transition: transform 0.7s var(--ease);
    border-radius: 44px;
    padding: 11px;
    background: linear-gradient(155deg, #2a2a2e, #0e0e12, #1a1a22);
    box-shadow:
        -24px 30px 70px rgba(29, 53, 87, 0.25),
        -8px 10px 20px rgba(0,0,0,0.15),
        inset 0 0 0 1.5px rgba(255,255,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.15);
    will-change: transform;
    z-index: 2;
}
.mockup-3d-wrapper:hover {
    transform: rotateY(-2deg) rotateX(2deg) rotateZ(0deg);
}

.mockup-3d-wrapper::before {
    content: "";
    position: absolute;
    top: 10%; right: -4px; bottom: 10%;
    width: 4px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.15) 60%, transparent);
    border-radius: 0 3px 3px 0;
}

.screen-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 135%;
    height: 135%;
    background: radial-gradient(ellipse, rgba(236,111,160,0.45) 0%, rgba(139,92,246,0.3) 40%, transparent 72%);
    transform: translate(-50%, -50%);
    opacity: 0.45;
    filter: blur(42px);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.08); }
}

.dynamic-video {
    width: 100%;
    border-radius: 32px;
    display: block;
    background: #0e0e12;
}

/* =========================================
   BADGES ORBITAUX — VERRE CLAIR VITAMINÉ
   ========================================= */
.video-container-3d {
    overflow: visible !important;
}

.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 9px 16px 9px 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    box-shadow:
        0 10px 26px rgba(29, 53, 87, 0.12),
        0 2px 8px rgba(29, 53, 87, 0.07),
        inset 0 1px 0 rgba(255,255,255,1);
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.92);
}

.float-badge .badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.float-badge .badge-label {
    line-height: 1.2;
}

.fb-sommeil    { top: 5%;   left: -130px; }
.fb-journal    { top: 28%;  left: -140px; }
.fb-douleur    { top: 52%;  left: -130px; }
.fb-bilan      { top: 76%;  left: -120px; }
.fb-cycle      { top: 3%;   right: -138px; }
.fb-coherence  { top: 26%;  right: -148px; }
.fb-symptothermie { top: 50%; right: -152px; }
.fb-bulle      { top: 74%;  right: -138px; }
.fb-humeur     { top: -52px; left: 50%; transform: translateX(-50%) translateY(6px) scale(0.92); }
.fb-poids      { bottom: -52px; left: 30%; }
.fb-aac        { bottom: -52px; right: 10%; }
.fb-grossesse  { top: -52px; left: 5%; }

@keyframes floatBadge {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-7px); }
    100% { transform: translateY(0px); }
}

@keyframes floatBadgeCenter {
    0%   { transform: translateX(-50%) translateY(0px); }
    50%  { transform: translateX(-50%) translateY(-7px); }
    100% { transform: translateX(-50%) translateY(0px); }
}

.float-badge.badge-visible {
    opacity: 1;
    transform: translateY(0px) scale(1);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-bounce);
    animation: floatBadge 4s ease-in-out infinite;
}
.float-badge.badge-visible.badge-center {
    transform: translateX(-50%) scale(1);
    animation: floatBadgeCenter 4s ease-in-out infinite;
}

.float-badge.badge-hiding {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* =========================================
   HERO PROOF STATS
   ========================================= */
.hero-proof {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.proof-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(69,123,157,0.16);
    padding: 8px 14px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease);
}
.proof-chip:hover {
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139,92,246,0.18);
}

/* =========================================
   FONCTIONNALITÉS — PILIERS (BENTO ORGANIQUE)
   ========================================= */
.features-section { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header h2 {
    font-size: clamp(32px, 3.5vw, 48px);
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}
.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}
.section-line {
    width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-lavender));
    border-radius: var(--r-pill);
    margin: 20px auto 0;
}

.pillars-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
    margin-bottom: 100px; /* Restauré version Bureau (3 colonnes) */
}

.pillar-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    padding: 36px 32px;
    border-radius: var(--r-card);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease);
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

/* Zigzag organique : la carte du milieu respire différemment */
.pillars-grid .pillar-card:nth-child(2) { transform: translateY(-20px); }
.pillars-grid .pillar-card:nth-child(2):hover { transform: translateY(-30px) scale(1.01); }

.pillar-card::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 130px; height: 130px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s;
}
.pillar-card:nth-child(1)::before { background: radial-gradient(circle, rgba(69,123,157,0.22), transparent 70%); }
.pillar-card:nth-child(2)::before { background: radial-gradient(circle, rgba(139,92,246,0.24), transparent 70%); }
.pillar-card:nth-child(3)::before { background: radial-gradient(circle, rgba(22,160,133,0.22), transparent 70%); }
.pillar-card:hover::before { opacity: 1; }

.pillar-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255,255,255,0.95);
}

.icon-box {
    font-size: 34px;
    margin-bottom: 18px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.6));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(29,53,87,0.09);
    border: 1px solid rgba(255,255,255,0.85);
    transition: transform 0.3s var(--ease-bounce);
}
.pillar-card:hover .icon-box { transform: rotate(-6deg) scale(1.1); }

.pillar-card h3 { margin-bottom: 12px; font-size: 20px; }
.pillar-card p { font-size: 15px; color: var(--text-muted); line-height: 1.75; }

/* =========================================
   APP SECTION — FEATURES LIST
   ========================================= */
.app-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }

.section-label {
    font-size: 12px; font-weight: 800; color: var(--secondary);
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 12px; display: block;
}

.app-features-list { list-style: none; margin-top: 24px; }
.app-features-list li {
    margin-bottom: 22px;
    padding-left: 36px;
    position: relative;
    font-size: 15.5px;
    color: var(--text-muted);
    transition: color 0.2s;
}
.app-features-list li::before {
    content: "✦";
    position: absolute; left: 0;
    color: var(--accent-pink);
    font-size: 14px;
    top: 3px;
}
.app-features-list li:hover { color: var(--text-main); }
.app-features-list li strong { color: var(--text-main); display: block; margin-bottom: 2px; font-size: 15px; }

.app-visual .ethics-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(247,244,252,0.75) 100%);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-hover);
}

/* =========================================
   BLOG GRID
   ========================================= */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 100px; }

.blog-card {
    display: flex; flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255,255,255,0.9);
    padding: 40px;
    border-radius: var(--r-card);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease);
    text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
}
.blog-card::after {
    content: "→";
    position: absolute;
    bottom: 30px; right: 30px;
    font-size: 20px; font-weight: 900;
    color: var(--primary);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.3s var(--ease);
}
.blog-card:hover::after { opacity: 1; transform: translate(0, 0); }
.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(255,255,255,0.95); }

.ethics-label { display: inline-block; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em; margin-bottom: 14px; }
.blog-card h3 { font-size: 21px; margin: 0 0 14px 0; color: var(--text-main); line-height: 1.3; }
.blog-card p { font-size: 15px; color: var(--text-muted); flex-grow: 1; line-height: 1.7; }
.article-meta { margin-top: 24px; font-size: 12px; font-weight: 800; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.08em; }

/* Articles */
.article-body { max-width: 800px; margin: 0 auto; padding: 80px 24px 100px; }
.article-body h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.2; margin-bottom: 24px; text-align: center; }
.article-body p { font-size: 18px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.8; }
.article-body h3 { font-size: 26px; color: var(--primary); margin: 40px 0 20px; }
.sources-box { background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.9); border-radius: 20px; padding: 30px; margin-top: 50px; box-shadow: var(--shadow-soft); }
.sources-box h4 { margin-bottom: 20px; font-size: 18px; }
.sources-box ul { list-style: none; }
.sources-box li { margin-bottom: 20px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.source-link { color: var(--primary); font-weight: 700; display: inline-block; margin-top: 8px; text-decoration: underline; }

/* =========================================
   ÉTHIQUE — SECTION SIGNATURE
   ========================================= */
.ethics-section { padding: 80px 0; }

.ethics-card {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.88) 0%,
        rgba(247,244,252,0.80) 100%);
    backdrop-filter: blur(var(--glass-blur));
    padding: 80px 64px;
    border-radius: 48px;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow:
        0 30px 80px rgba(29,53,87,0.09),
        0 10px 30px rgba(139,92,246,0.08),
        inset 0 1px 0 rgba(255,255,255,0.85);
    position: relative; overflow: hidden;
}

.ethics-card::before {
    content: "";
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(236,111,160,0.16), transparent 70%);
    pointer-events: none;
}

.ethics-card h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 24px; }
.ethics-card p { color: var(--text-muted); font-size: 18px; margin-bottom: 20px; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.75; }
.ethics-highlight {
    margin-top: 36px; padding: 26px 32px;
    background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(236,111,160,0.08));
    border-radius: 20px;
    color: var(--primary-dark); font-weight: 700; font-size: 16px;
    max-width: 680px; margin-left: auto; margin-right: auto;
    border: 1px solid rgba(139,92,246,0.18);
    line-height: 1.7;
}

/* =========================================
   TARIFS — PRICING PREMIUM
   ========================================= */
.pricing-section { padding: 100px 0; }

.pricing-header { text-align: center; margin-bottom: 70px; }
.pricing-header h2 { font-size: clamp(32px, 3.5vw, 46px); margin-bottom: 14px; }
.pricing-header p { color: var(--text-muted); font-size: 18px; }

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 20px;
}

.price-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    padding: 40px 32px;
    border-radius: var(--r-card);
    border: 1px solid rgba(255,255,255,0.9);
    position: relative;
    overflow: visible;
    transition: all 0.4s var(--ease);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-soft);
}
.price-card::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: var(--r-card);
    background: linear-gradient(135deg, transparent 60%, rgba(139,92,246,0.04) 100%);
    pointer-events: none;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.price-card.popular {
    background: linear-gradient(155deg,
        rgba(255,255,255,0.96) 0%,
        rgba(240,232,252,0.90) 100%);
    border: 2px solid rgba(139,92,246,0.32);
    transform: scale(1.04);
    box-shadow: 0 20px 60px rgba(139,92,246,0.20), var(--shadow-card);
}
.price-card.popular:hover { transform: scale(1.04) translateY(-6px); }

.price-badge {
    position: absolute; top: -14px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(120deg, var(--accent-pink), var(--accent-lavender));
    color: #fff;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 7px 18px; border-radius: var(--r-pill);
    box-shadow: 0 4px 14px rgba(139,92,246,0.4);
    white-space: nowrap;
    z-index: 2;
}

.price-card h4 {
    font-size: 13px; text-transform: uppercase; color: var(--secondary);
    margin-bottom: 16px; letter-spacing: 0.12em;
}
.price-card .amt { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; line-height: 1; letter-spacing: -0.03em; }
.price-card .period { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-bottom: 28px; }

.price-card ul { list-style: none; font-size: 14px; color: var(--text-muted); margin-bottom: 32px; flex-grow: 1; }
.price-card ul li { margin-bottom: 12px; padding-left: 22px; position: relative; line-height: 1.5; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-teal); font-weight: 900; }
.price-card ul li strong { color: var(--text-main); }

.price-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(69,123,157,0.16), transparent);
    margin: 24px 0;
}

/* =========================================
   MODALE — BIENTÔT SUR L'APP STORE
   ========================================= */
.ios-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(26, 46, 69, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.ios-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ios-modal {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 28px;
    padding: 44px 36px 36px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-hover);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.35s var(--ease-bounce);
}
.ios-modal-overlay.active .ios-modal {
    transform: translateY(0) scale(1);
}

.ios-modal-icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-lavender));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(139,92,246,0.35);
}
.ios-modal-icon::before {
    content: "";
}
.ios-modal-icon::after {
    content: "\1F34E";
    font-size: 26px;
}

.ios-modal h3 { font-size: 22px; margin-bottom: 12px; }
.ios-modal p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }

.ios-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(69,123,157,0.08);
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s var(--ease);
}
.ios-modal-close:hover {
    background: rgba(69,123,157,0.16);
    color: var(--primary);
    transform: rotate(90deg);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 64px 0;
    border-top: 1px solid rgba(29,53,87,0.08);
    text-align: center; color: var(--text-muted); font-size: 14px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--primary); }
.footer p { margin-top: 10px; line-height: 1.7; }

/* =========================================
   SCROLL REVEAL & ANIMATIONS
   ========================================= */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: transform, opacity; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-left.visible { opacity: 1; transform: none; }

/* =========================================
   HERO SECTION (RESSOURCES)
   ========================================= */
.hero { padding: 100px 0 60px; }
.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.hero h1 span {
    background: linear-gradient(100deg, var(--accent-pink), var(--primary), var(--accent-lavender));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .subtitle {
    font-size: 18px; color: var(--text-muted);
    max-width: 620px; line-height: 1.7; margin-top: 20px;
}

/* =========================================
   RESPONSIVE — TABLETTE (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .video-grid { display: flex; flex-direction: column; text-align: center; gap: 40px; }
    .mockup-3d-wrapper { transform: rotateY(-5deg) rotateX(2deg); }
    .mockup-3d-wrapper:hover { transform: rotateY(0deg) rotateX(0deg); }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .pillars-grid .pillar-card:nth-child(2) { transform: none; }
    .pillars-grid .pillar-card:nth-child(2):hover { transform: translateY(-10px) scale(1.01); }
    .price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; padding-top: 20px; gap: 36px; }
    .price-card.popular { transform: none; }
    .price-card.popular:hover { transform: translateY(-6px); }
    .app-section { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .app-features-list li { text-align: left; }
    .blog-grid { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto 80px; }
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
    /* --- CORRECTIONS ANTI-CHEVAUCHEMENT TEXTE --- */
    h1, h2, h3, .video-text h1, .section-header h2 {
        line-height: 1.25 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    p, .app-features-list li, .price-card ul li {
        word-break: break-word;
        line-height: 1.5;
    }
    .price-card .amt {
        line-height: 1.1;
    }

    .nav-links { display: none; }
    .burger-menu { display: flex; }
    .nav-links.active {
        display: flex; flex-direction: column; position: fixed;
        top: 76px; left: 0; right: 0;
        background: rgba(247, 244, 252, 0.97);
        backdrop-filter: blur(20px);
        padding: 30px 28px;
        border-bottom: 1px solid rgba(139,92,246,0.12);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        gap: 20px;
        z-index: 999;
    }

    .video-text .hero-tag { 
        order: 0; 
        margin-bottom: 16px; 
        font-size: 10.5px; /* Typo légèrement plus fine pour éviter le retour à la ligne */
        padding: 6px 14px;
        line-height: 1.4;
        text-align: center;
    }
    
    .hero-tag .dot {
        flex-shrink: 0; /* SÉCURITÉ : Empêche le point de s'écraser en ovale */
        width: 8px; /* Un poil plus grand pour être bien lisible sur petit écran tactile */
        height: 8px;
    }

   .top-banner-section { padding-top: 16px; } /* Un tout petit peu plus d'air sous la barre de navigation */
    .top-banner-container { padding: 0 20px; } /* Aligné avec l'espacement standard des petits écrans */
    .top-banner-img {
        border-radius: 16px; /* Un arrondi légèrement plus doux, mieux adapté aux petits écrans */
        width: 100%;
        height: auto; /* On supprime la hauteur rigide de 180px */
        aspect-ratio: 16 / 9; /* Le secret : on force un format panoramique parfait peu importe la largeur */
        object-fit: cover;
        object-position: center; /* On recentre l'image pour un rendu équilibré */
    }

    /* Corrections espacement hero/vidéo mobile */
   .presentation-video-section { padding: 80px 0 64px; overflow: hidden; }
    .video-grid { gap: 30px; }

    .video-text { display: flex; flex-direction: column; align-items: center; }
    .video-text h1 { font-size: clamp(32px, 8vw, 42px); order: 1; margin-bottom: 16px; }
    .video-text .subtitle { order: 2; font-size: 15px; margin-bottom: 24px; }

    .hero-cta { order: 4; flex-direction: column; gap: 12px; width: 100%; margin-top: 30px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-proof { order: 5; gap: 10px; justify-content: center; margin-top: 20px; }
    .proof-chip { font-size: 12px; padding: 7px 12px; }

    /* Correction espace sous le téléphone */
    .video-container-3d { order: 3; margin-top: 10px; margin-bottom: 60px; max-width: 260px; }

    .float-badge {
        display: flex !important;
        padding: 6px 12px 6px 6px;
        font-size: 10px;
        transform: scale(0.85);
        white-space: normal !important; /* Autorise le retour à la ligne */
        max-width: 110px; /* Limite la largeur sur mobile */
        text-align: center;
        line-height: 1.2;
    }
    .float-badge .badge-icon { width: 22px; height: 22px; font-size: 11px; }

    .fb-sommeil    { top: 10%;  left: -40px; }
    .fb-douleur    { top: 60%;  left: -50px; }
    .fb-cycle      { top: 15%;  right: -40px; }
    .fb-symptothermie { top: 65%; right: -50px; }
    .fb-humeur     { top: -25px; left: 50%; }

    .fb-journal, .fb-bilan, .fb-coherence, .fb-bulle, .fb-poids, .fb-aac, .fb-grossesse {
        display: none !important;
    }

    /* Correction espace sous les piliers */
    .pillars-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 80px !important; }
    .pricing-section { padding: 60px 0 80px; }
    .price-grid { max-width: 100%; padding: 20px 4px 0; gap: 40px; }
    .price-card { padding: 36px 24px; }
    .ethics-section { padding: 60px 0; }
    .ethics-card { padding: 44px 24px; border-radius: 28px; }
    /* Correction marge au-dessus des fonctionnalités */
    .app-section { gap: 36px; margin-top: 40px !important; }
    .footer { padding: 48px 0; }
    .footer div { flex-direction: column; align-items: center; gap: 14px !important; }
}

/* =========================================
   RESPONSIVE — PETIT MOBILE (≤ 420px)
   ========================================= */
@media (max-width: 420px) {
    .container { padding: 0 20px; }
    .top-banner-img { border-radius: 16px; height: 150px; }
    .pillar-card { padding: 28px 22px; }
    .price-card { padding: 32px 18px; }
    .ethics-card { padding: 36px 18px; }
}

/* =========================================
   RESPONSIVE — TRÈS PETIT MOBILE (≤ 360px)
   Évite que les badges flottants ne soient
   coupés sur les écrans très étroits (ex: iPhone SE).
   ========================================= */
@media (max-width: 360px) {
    .video-container-3d { max-width: 220px; }

    .fb-sommeil    { left: -22px; }
    .fb-douleur    { left: -30px; }
    .fb-cycle      { right: -22px; }
    .fb-symptothermie { right: -30px; }
}