/* ============================================
   SMS Phone Locator - Shared Stylesheet
   Palette "Green Nature" cohérente avec l'appli
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --green-900: #1B5E20;
    --green-800: #2E7D32;
    --green-700: #388E3C;
    --green-600: #43A047;
    --green-500: #4CAF50;
    --green-400: #66BB6A;
    --green-300: #81C784;
    --green-200: #A5D6A7;
    --green-100: #C8E6C9;
    --green-50: #E8F5E9;
    --green-25: #F1F8E9;

    --text-dark: #1a2e1a;
    --text-mid: #3d5a3d;
    --text-light: #5f7a5f;
    --white: #ffffff;

    --shadow-sm: 0 2px 8px rgba(27, 94, 32, 0.08);
    --shadow-md: 0 4px 20px rgba(27, 94, 32, 0.12);
    --shadow-lg: 0 8px 40px rgba(27, 94, 32, 0.15);
    --shadow-xl: 0 16px 60px rgba(27, 94, 32, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--green-25);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- LANGUAGE BAR ---- */
.lang-bar {
    background: var(--green-900);
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 100;
}

.lang-bar a {
    color: var(--green-200);
    text-decoration: none;
    font-size: 0.82em;
    margin: 0 8px;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.lang-bar a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.lang-bar a.active {
    color: var(--white);
    background: var(--green-700);
    font-weight: 600;
}

/* ---- LOGOS BAR ---- */
.logos-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 18px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--green-100);
    box-shadow: var(--shadow-sm);
}

.logos-bar .logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green-900);
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}

.logos-bar .logo-item img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
}

.logos-bar .logo-item svg {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .logos-bar {
        gap: 24px;
        padding: 14px 16px;
    }
    .logos-bar .logo-item {
        font-size: 0.85em;
        gap: 8px;
    }
    .logos-bar .logo-item img {
        width: 52px;
        height: 52px;
    }
    .logos-bar .logo-item svg {
        width: 52px;
        height: 52px;
    }
}

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(102, 187, 106, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(56, 142, 60, 0.08) 0%, transparent 50%),
        var(--green-25);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-100) 0%, transparent 70%);
    opacity: 0.5;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-800);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2em;
    font-weight: 800;
    line-height: 1.15;
    color: var(--green-900);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--green-600);
}

.hero-description {
    font-size: 1.15em;
    color: var(--text-mid);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(67, 160, 71, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(67, 160, 71, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--green-800);
    border: 2px solid var(--green-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--green-400);
    background: var(--green-50);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 0 0 320px;
    position: relative;
}

.phone-mockup {
    width: 280px;
    height: 520px;
    background: linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 100%);
    border-radius: 36px;
    padding: 16px;
    box-shadow: var(--shadow-xl);
    position: relative;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--green-50);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px 20px;
    text-align: center;
    overflow: hidden;
}

.phone-screen .phone-icon {
    font-size: 3em;
    margin-bottom: 6px;
}

.phone-screen .phone-title {
    font-weight: 700;
    color: var(--green-800);
    font-size: 1em;
}

.phone-screen .phone-status {
    font-size: 0.82em;
    color: var(--green-600);
    background: var(--green-100);
    padding: 6px 14px;
    border-radius: 12px;
}

.sms-bubble {
    background: var(--white);
    border: 1px solid var(--green-200);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.85em;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    width: 90%;
    text-align: left;
}

.sms-bubble strong {
    color: var(--green-700);
}

.sms-bubble.reply {
    background: var(--green-100);
    border-color: var(--green-300);
    margin-left: auto;
}

/* ---- SECTIONS COMMON ---- */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--white);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--green-900);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05em;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- FEATURES ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--green-25);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--green-400), var(--green-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.15em;
    color: var(--green-900);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.92em;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ---- HOW IT WORKS ---- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--green-300), var(--green-500));
    border-radius: 3px;
}

.step {
    display: flex;
    gap: 28px;
    padding: 28px 0;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
}

.step-content h3 {
    font-size: 1.15em;
    color: var(--green-900);
    margin-bottom: 6px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-mid);
    font-size: 0.95em;
}

/* ---- SMS COMMANDS ---- */
.commands-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.command-card {
    background: var(--white);
    border: 2px solid var(--green-100);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: all 0.3s;
}

.command-card:hover {
    border-color: var(--green-400);
    box-shadow: var(--shadow-md);
}

.command-emoji {
    font-size: 2.8em;
    margin-bottom: 16px;
}

.command-card h3 {
    font-size: 1.2em;
    color: var(--green-800);
    margin-bottom: 10px;
}

.command-code {
    display: inline-block;
    background: var(--green-900);
    color: var(--green-300);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 1.15em;
    font-weight: 700;
    margin: 14px 0;
    letter-spacing: 0.05em;
}

.command-card p {
    color: var(--text-mid);
    font-size: 0.92em;
}

/* ---- PLAYSTORE NOTICE ---- */
.notice {
    background: linear-gradient(135deg, #1B5E20 0%, #0a3d0f 100%) !important;
    color: var(--white);
    padding: 70px 0;
}

.notice-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.notice-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.notice h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--white) !important;
}

.notice p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #ffffff !important;
    margin-bottom: 16px;
}

.notice-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    font-weight: 600;
    color: #ffffff !important;
    font-size: 0.95em;
}

/* ---- INSTALLATION ---- */
.install-steps {
    max-width: 700px;
    margin: 0 auto;
}

.install-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--green-100);
}

.install-step:last-child {
    border-bottom: none;
}

.install-num {
    width: 36px;
    height: 36px;
    background: var(--green-100);
    color: var(--green-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    flex-shrink: 0;
}

.install-step p {
    color: var(--text-mid);
    font-size: 0.95em;
    padding-top: 6px;
}

.install-step strong {
    color: var(--green-800);
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--green-100);
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: var(--green-900);
    font-size: 1.05em;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question::before {
    content: '▸';
    color: var(--green-500);
    font-size: 1.2em;
    transition: transform 0.2s;
}

.faq-answer {
    color: var(--text-mid);
    font-size: 0.95em;
    line-height: 1.8;
    padding-left: 24px;
}

/* ---- SECURITY ---- */
.security-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.security-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.security-icon {
    width: 44px;
    height: 44px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
}

.security-point h4 {
    color: var(--green-800);
    font-size: 0.95em;
    margin-bottom: 4px;
}

.security-point p {
    color: var(--text-mid);
    font-size: 0.88em;
}

/* ---- FOOTER ---- */
footer {
    background: var(--green-900);
    color: var(--green-200);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

footer a {
    color: var(--green-300);
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        flex: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .commands-showcase {
        grid-template-columns: 1fr;
    }

    .security-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .section-title {
        font-size: 1.7em;
    }

    .lang-bar {
        padding: 8px 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .lang-bar a {
        font-size: 0.75em;
        margin: 0 2px;
        padding: 4px 6px;
    }

    .phone-mockup {
        width: 220px;
        height: 420px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.92em;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 50px 0;
    }

    .section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .command-card {
        padding: 24px;
    }

    .command-code {
        font-size: 1em;
        padding: 8px 18px;
    }

    .steps::before {
        left: 20px;
    }

    .step {
        gap: 18px;
    }

    .step-number {
        width: 42px;
        height: 42px;
        font-size: 1em;
    }

    .notice {
        padding: 50px 0;
    }

    .notice h2 {
        font-size: 1.5em;
    }

    .notice-highlight {
        font-size: 0.85em;
        padding: 12px 18px;
    }

    .install-step {
        gap: 14px;
    }

    .faq-question {
        font-size: 0.95em;
    }

    .faq-answer {
        font-size: 0.88em;
    }

    footer {
        padding: 28px 16px;
    }

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

/* ---- QR CODE & BUTTONS LAYOUT ---- */
.hero-buttons-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-buttons-row .btn-primary {
    margin: 0;
}

.qr-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--white);
    border: 2px solid var(--green-200);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.qr-download:hover {
    border-color: var(--green-400);
    box-shadow: var(--shadow-sm);
}

.qr-download .qr-code {
    width: 100px;
    height: 100px;
    border-radius: 4px;
}

.qr-download span {
    color: var(--green-800);
    font-size: 0.85em;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .hero-buttons-row {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-buttons-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons-row .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .qr-download {
        justify-content: center;
        width: 100%;
    }
    
    .qr-download .qr-code {
        width: 60px;
        height: 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
