/* ============================================
   HOME.CSS - Version nettoyée
   La typographie est gérée par app.css
   ============================================ */

/* Variables spécifiques à la page home */
:root {
    --primary-color: #1b4b58;
    --primary-light: #2c6a7a;
    --primary-dark: #0c3540;
    --secondary-color: #2db896;
    --secondary-light: #4fd2b0;
    --secondary-dark: #1e9b7d;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #e1e5eb;
    --dark-gray: #a0a8b3;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --background-color: #F5F7FA;
    --transition: all 0.3s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.btn i {
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(27, 75, 88, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 75, 88, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(45, 184, 150, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 184, 150, 0.3);
}

.btn-tertiary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-simulate {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(45, 184, 150, 0.2);
}

.btn-simulate:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 184, 150, 0.3);
}

.btn-cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 32px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(27, 75, 88, 0.2);
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 75, 88, 0.3);
}

.btn-cta-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-cta-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 5% 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.jpg');
    background-size: cover;
    opacity: 0.05;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BENEFIT CARDS
   ============================================ */

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -50px;
    margin-bottom: 60px;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    background-color: rgba(27, 75, 88, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.benefit-card h3 {
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ============================================
   PORTAGE EXPLANATION
   ============================================ */

.portage-explanation {
    width: 100%;
    padding: 120px 5% 100px;
    background-color: var(--light-gray);
}

.explanation-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.explanation-text {
    flex: 1;
    min-width: 300px;
}

.explanation-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    margin: 25px 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.benefits-list i {
    color: var(--secondary-color);
}

.explanation-image {
    flex: 1;
    min-width: 300px;
}

.explanation-image img {
    width: 100%;
}

/* ============================================
   REVENUE SIMULATION
   ============================================ */

.revenue-simulation {
    width: 100%;
    padding: 120px 5% 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    color: var(--white);
}

.revenue-simulation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.jpg');
    background-size: cover;
    opacity: 0.05;
}

.revenue-simulation h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--white);
    position: relative;
}

.simulation-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    position: relative;
}

.simulation-text {
    flex: 1;
    min-width: 300px;
}

.simulation-text h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.simulation-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.simulation-form {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(5px);
}

/* ============================================
   FORMULAIRES
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--white);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
    padding: 50px 5% 50px;
    background-color: var(--white);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    min-width: 350px;
    background-color: var(--light-gray);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    padding: 0 15px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0;
    color: var(--primary-color);
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   SERVICES
   ============================================ */

.our-services {
    width: 100%;
    padding: 50px 0 50px;
    background-color: var(--light-gray);
}

.our-services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: rgba(45, 184, 150, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.service-icon i {
    font-size: 32px;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
    padding: 50px 5% 50px;
    background-color: var(--white);
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: var(--light-gray);
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* ============================================
   CALL TO ACTION
   ============================================ */

.call-to-action {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 50px 5% 50px;
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.jpg');
    background-size: cover;
    opacity: 0.05;
}

.call-to-action h2 {
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================
   BACKGROUND
   ============================================ */

.main {
    background-color: #F5F7FA;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 1024px) {
    .benefit-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 80px 5% 70px;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .benefit-cards {
        margin-top: -30px;
    }
    
    .explanation-content,
    .simulation-wrapper {
        flex-direction: column;
    }
    
    .explanation-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        min-width: 280px;
    }
}

@media screen and (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary, 
    .btn-secondary,
    .btn-tertiary,
    .btn-cta,
    .btn-cta-secondary {
        width: 100%;
    }
    
    .benefit-cards {
        margin-top: -20px;
    }
    
    .testimonial {
        min-width: 100%;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .form-group label,
    .form-group input {
        font-size: 0.95rem;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
}