/* Global Styles */
:root {
    --primary-color: #FF003A;
    --secondary-color: #FF7566;
    --text-color: #333;
    --light-gray: #ffedf0;
    --dark-gray: #4a4a4a;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(226, 223, 223, 0.2);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Paytone+One&family=Montserrat:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Paytone One', sans-serif;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

p {
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-weight: 500;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 80px 0;
}

.btn-primary, .btn-dark {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

.btn-dark {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover, .btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--white);
}

a.btn-dark:hover {
    color: var(--white); /* Keep text color white on hover */
}

.steps-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.presentation-image {
    max-width: 45%;
}

/* Navigation */
nav {
    background-color: #222;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    font-family: 'Paytone One', sans-serif;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.7rem;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white); /* Change icon color to white */
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #222;
    padding: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 99;
    border-radius: 0 0 10px 10px;
}

.mobile-menu a, .mobile-menu button {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-weight: 600;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
}

.mobile-menu a:last-of-type, .mobile-menu button {
    border-bottom: none;
    margin-bottom: 0;
}

.nav-items a {
    color: var(--white);
    font-weight: 600;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
}

.nav-items a:not(.btn-dark):hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 1%, var(--secondary-color) 90%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.floating-avatars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.avatar {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
}

.avatar:nth-child(1) {
    top: 10%;
    left: 0;
}

.avatar:nth-child(2) {
    top: 20%;
    right: 10%;
}

.avatar:nth-child(3) {
    bottom: 15%;
    left: 5%;
}

.avatar:nth-child(4) {
    bottom: 30%;
    right: 0;
}

.app-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.app-buttons.centered {
    justify-content: center;
}

.app-logo {
    text-align: center;
    margin: 20px 0;
}

.app-logo .logo-img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.highlight-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 15px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: #222;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative; /* Added for badge positioning */
}

.app-btn:hover {
    background-color: #222;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.badge-soon {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #FFA500;
    color: var(--white);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

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

.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-number {
    background-color: #222;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-family: 'Paytone One', sans-serif;
}

.feature-item h3 {
    margin: 15px 0;
    color: #222;
    font-weight: 700;
}

.phone-screen {
    background-color: var(--primary-color);
}

/* Privacy & Terms Page Styles */
.privacy-policy-content .container,
.terms-content .container {
    max-width: 800px; /* Constrain width for better readability of long text */
    margin: 0 auto;
}

.privacy-policy-content h2,
.terms-content h2 {
    text-align: left; /* Align headings to the left */
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.privacy-policy-content h3,
.terms-content h3 {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.privacy-policy-content p,
.terms-content p {
    line-height: 1.8; /* Increase line height for readability */
    margin-bottom: 15px;
}

.privacy-policy-content ul,
.privacy-policy-content ol,
.terms-content ul,
.terms-content ol {
    margin-left: 20px; /* Indent lists */
    padding-left: 20px;
    margin-bottom: 20px;
}

.privacy-policy-content li,
.terms-content li {
    margin-bottom: 10px; /* Space out list items */
    line-height: 1.7;
}

.privacy-policy-content a,
.terms-content a {
    text-decoration: underline; /* Underline links in text for clarity */
}

.privacy-policy-content a:hover,
.terms-content a:hover {
    text-decoration: none;
}

.privacy-policy-content #table-of-contents + ol {
    list-style-type: decimal;
    background-color: #fdf6f8;
    padding: 20px;
    padding-left: 35px; /* Increased padding to prevent number overflow */
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}

.privacy-policy-content #table-of-contents + ol li a {
    font-weight: 600;
    text-decoration: none;
}

.privacy-policy-content em {
    font-style: italic;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

.feature-item img {
    margin-top: 20px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    max-width: 30%; /* Taille réduite pour les images des modes */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* How to Use Section */
.how-to {
    background-color: var(--light-gray);
}

.steps-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.steps-content {
    flex: 1;
}

.steps-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
    font-family: 'Paytone One', sans-serif;
}

.step-info h3 {
    margin-bottom: 5px;
}

.how-to .btn-primary {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Reviews Section */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.stars {
    color: #ffc107;
    margin-top: 5px;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 1%, var(--secondary-color) 100%);
    color: var(--white);
}

.download .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-content {
    max-width: 600px;
    text-align: center;
}

.download-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.download h2 {
    color: var(--white);
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.download p {
    color: var(--white);
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.download .app-btn {
    background-color: var(--white);
    color: #222;
}

.download .app-btn:hover {
    background-color: #222;
    color: var(--white);
}

/* Footer */
footer {
    background-color: #222;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container, 
    .steps-container, 
    .download .container {
        flex-direction: column;
    }
    
    .hero-image, 
    .steps-image, 
    .download-image {
        margin-top: 40px;
    }
    
    .nav-items {
        display: none;
    }
    
    /* Affichage du menu hamburger */
    .menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    /* Centrer le contenu en mode mobile */
    .hero-content, .features-content, .how-to-content {
        text-align: left;
    }
    
    .hero-content h1, .hero-content p,
    .features-content h2, .features-content p,
    .how-to-content h2, .how-to-content p {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-content h1,
    .hero-content p,
    .download-content p {
        text-align: center;
    }

    .privacy-policy-content .container,
    .terms-content .container {
        text-align: left;
    }

    .privacy-policy-content .container h2,
    .terms-content .container h2,
    .privacy-policy-content .container h3,
    .terms-content .container h3 {
        text-align: left;
    }

    section {
        padding: 60px 0;
    }
    
    .features .container, 
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    /* Amélioration du centrage pour les écrans moyens */
    .feature-card, .review-card {
        text-align: center;
    }
    
    .feature-card h3, .feature-card p,
    .review-card p {
        text-align: center;
    }
    
    .download-content {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .app-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center; /* Center app buttons horizontally */
    }
    
    .app-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Amélioration du centrage pour les très petits écrans */
    p, h3, h4 {
        text-align: left;
    }

    .how-to .step-info h3,
    .how-to .step-info p {
        text-align: left;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .download h2 {
        margin-bottom: 20px;
    }
    
    .app-logo .logo-img {
        width: 120px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}
