/*
 * Styles spécifiques à la page d'accueil (index.html)
 * Partagé entre FR et EN
 */

/* Hero section */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero-logo {
    max-width: 400px;
    height: auto;
}

.hero-title {
    font-size: 2.5rem;
    margin: 30px 0 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Stats section */
.stats-section {
    background: #f8f9fa;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* Features section */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-section {
    background: #f9f9f9;
    padding: 80px 20px;
}

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

.how-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin: -20px 0 60px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Horizontal connector line through step numbers */
.how-grid::before {
    content: '';
    position: absolute;
    top: 23px; /* vertically centered on the 48px circles */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.how-step {
    text-align: center;
    padding: 0 8px;
}

.how-step-num {
    width: 48px;
    height: 48px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.how-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px;
    line-height: 1.3;
}

.how-step-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive how-section — tablette (2 colonnes) */
@media (max-width: 1024px) and (min-width: 601px) {
    .how-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .how-grid::before {
        display: none;
    }
}

/* Responsive how-section — mobile (liste verticale) */
@media (max-width: 600px) {
    .how-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .how-grid::before {
        top: 0;
        bottom: 0;
        left: 23px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .how-step {
        text-align: left;
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        column-gap: 20px;
        padding: 0 0 32px 0;
        align-items: start;
    }

    .how-step-num {
        margin: 0;
        grid-row: 1 / 3;
    }

    .how-step-title {
        align-self: end;
        margin-bottom: 6px;
    }

    .how-step-desc {
        font-size: 0.9rem;
    }

    .how-subtitle {
        margin-bottom: 40px;
    }
}

/* Stats — tablette (ligne) */
@media (max-width: 1024px) and (min-width: 601px) {
    .stats-container {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 160px;
    }
}

/* Offer card — mobile plein largeur */
@media (max-width: 600px) {
    .offer-grid--single {
        margin-top: 30px;
    }

    .offer-grid--single .offer-card {
        max-width: 100%;
    }
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-section {
    background: #fff;
    padding: 80px 20px;
}

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

.pricing-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin: -20px 0 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

/* Base card */
.pricing-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 36px 28px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

/* Featured card */
.pricing-card--featured {
    background: #fff;
    border-color: #000;
    padding-top: 54px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.pricing-card--featured:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

/* "Recommended" badge */
.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 0 0 10px 10px;
    white-space: nowrap;
}

/* Card inner */
.pricing-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 18px 0;
    line-height: 1.35;
    min-height: 2.7em;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 700;
    color: #000;
    letter-spacing: -1.5px;
    line-height: 1;
}

.price-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}

.pricing-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Feature list */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.pricing-features li {
    font-size: 0.92rem;
    color: #333;
    padding: 9px 0 9px 24px;
    border-bottom: 1px solid #efefef;
    position: relative;
    line-height: 1.5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
}

/* CTA buttons */
.btn-pricing {
    display: block;
    text-align: center;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #000;
    color: #000;
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-pricing:hover {
    background: #000;
    color: #fff;
}

.btn-pricing--featured {
    background: #000;
    color: #fff;
}

.btn-pricing--featured:hover {
    background: #222;
    border-color: #222;
}

/* Legal disclaimer */
.pricing-disclaimer {
    margin-top: 48px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #000;
    border-radius: 4px;
    padding: 18px 22px;
}

.pricing-disclaimer p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* Responsive pricing */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 24px;
    }

    .pricing-card--featured {
        order: -1;
    }

    .pricing-name {
        min-height: unset;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 50px 16px;
    }

    .pricing-subtitle {
        font-size: 1rem;
        margin-bottom: 36px;
    }

    .price-amount {
        font-size: 2.25rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .stats-container {
        flex-direction: column;
    }
}

/* PSP Compliance additions */
.pricing-delivery {
    color: #555;
    font-size: 0.82rem;
    font-style: italic;
    border-top: 1px solid #e8e8e8;
    margin-top: 8px;
    padding-top: 8px;
    list-style: none;
}

.pricing-delivery::before {
    content: "⏱ ";
}

.pricing-refund-note {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
    line-height: 1.6;
}

.pricing-refund-note a {
    color: #000;
    text-decoration: underline;
}

/* Single-column offer grid */
.offer-grid--single {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.offer-grid--single .offer-card {
    width: 100%;
    max-width: 600px;
    text-align: left;
}

/* Two-column offer grid */
.offer-grid--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
}

@media (max-width: 700px) {
    .offer-grid--two {
        grid-template-columns: 1fr;
    }
}
