/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Charte graphique SafeMeal (voir frontend/constants/theme.ts) - Ink Navy / Paper / Sano Teal */
:root {
    --primary-color: #2C6E6B;
    --primary-dark: #1F4F4D;
    --bg-light: #F7F5F0;
    --bg-soft: #EFEAE0;
    --bg-accent: #EFEAE0;
    --text-dark: #16233D;
    --text-gray: #6B7280;
    --white: #ffffff;
    --border-light: #DAD5C9;
}

body {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Formes decoratives en arriere-plan (organique, cf. reference Yuka) -
   jamais interactives, purement visuelles. */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px 20px;
}

.logo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(22, 35, 61, 0.15);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 40px 20px 20px;
    overflow: hidden;
}

.hero .blob-1 {
    width: 420px;
    height: 420px;
    background: #2C6E6B;
    top: -180px;
    left: -140px;
}

.hero .blob-2 {
    width: 360px;
    height: 360px;
    background: #A8C24A;
    top: 60px;
    right: -160px;
    opacity: 0.25;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 22px;
    max-width: 460px;
}

.medical-disclaimer {
    font-size: 0.8rem;
    color: var(--text-gray);
    max-width: 420px;
    margin: 0 0 28px;
    padding-left: 14px;
    border-left: 2px solid var(--border-light);
}

.hero-text .store-buttons {
    justify-content: flex-start;
}

/* Phone mockup + score dial */
.phone-mockup {
    position: relative;
    margin: 0 auto;
    width: 260px;
    height: 530px;
    background: var(--text-dark);
    border-radius: 42px;
    padding: 14px;
    box-shadow: 0 30px 60px rgba(22, 35, 61, 0.25), 0 0 0 2px rgba(22, 35, 61, 0.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: var(--text-dark);
    border-radius: 0 0 14px 14px;
}

.score-dial-wrap {
    position: relative;
    width: 170px;
    height: 170px;
}

.score-dial-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 12;
}

.score-dial-arc {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 12;
    stroke-linecap: round;
}

.score-dial-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-dial-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.6rem;
    color: var(--text-dark);
}

.score-dial-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.phone-product-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.phone-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.phone-tag {
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.phone-tag.good {
    background: #E3EEE2;
    color: #2F6B3A;
}

.phone-tag.warn {
    background: #FBF0DD;
    color: #D9932E;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--text-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 35, 61, 0.25);
}

.store-btn.disabled {
    background-color: var(--border-light);
    color: var(--text-gray);
    pointer-events: none;
}

.store-btn .store-text {
    text-align: left;
}

.store-btn .store-text small {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
}

.store-btn .store-text span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Content Section */
.content-section {
    padding: 60px 20px;
    text-align: center;
}

.content-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 15px;
}

/* Comparison section (exemple concret, cf. reference Yuka) */
.comparison-section {
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.comparison-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 40px auto 0;
}

.comparison-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(22, 35, 61, 0.08);
    text-align: left;
    border-top: 4px solid var(--border-light);
}

.comparison-card.bad {
    border-top-color: #C6402F;
}

.comparison-card.good {
    border-top-color: #2F6B3A;
}

.comparison-card .comparison-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.comparison-card.bad .comparison-score {
    background: #FAE3DF;
    color: #C6402F;
}

.comparison-card.good .comparison-score {
    background: #E3EEE2;
    color: #2F6B3A;
}

.comparison-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.comparison-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comparison-card ul li {
    font-size: 0.85rem;
    color: var(--text-gray);
    padding-left: 18px;
    position: relative;
}

.comparison-card.bad ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #C6402F;
}

.comparison-card.good ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2F6B3A;
}

/* Features */
.features {
    padding: 70px 20px;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: 20px;
    text-align: left;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(22, 35, 61, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(22, 35, 61, 0.1);
    border-color: transparent;
}

.feature-card .icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(44, 110, 107, 0.1);
    color: var(--primary-color);
    border-radius: 14px;
}

.feature-card .icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

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

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

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

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Legal Pages Styles */
.legal-page {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.legal-page .effective-date {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legal-page p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

.legal-page ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-page .highlight-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-text .hero-subtitle,
    .hero-text .medical-disclaimer {
        margin-left: auto;
        margin-right: auto;
    }

    .medical-disclaimer {
        border-left: none;
        padding-left: 0;
    }

    .hero-text .store-buttons {
        justify-content: center;
    }

    .phone-mockup {
        order: 1;
        width: 220px;
        height: 450px;
    }

    .score-dial-wrap {
        width: 140px;
        height: 140px;
    }

    .score-dial-value {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .comparison-cards {
        gap: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 12px;
    border: 2px solid var(--text-dark);
    background: transparent;
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

.lang-btn.active {
    background: var(--text-dark);
    color: var(--white);
}

header {
    position: relative;
}

/* Page de confirmation d'adresse e-mail (lien recu par mail apres creation de compte, voir email-confirmed.html) */
.confirm-page {
    text-align: center;
}

.confirm-check {
    width: 72px;
    height: 72px;
    margin: 20px auto 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-page h1 {
    margin-bottom: 16px;
}

.confirm-page .confirm-hint {
    color: var(--text-gray);
    margin-top: 24px;
}

.confirm-page .store-buttons {
    margin: 20px 0 30px;
}
