/**
 * offre.css
 *
 * Description : Styles pour les pages d'offres individuelles (/offres/*) ET les tuiles d'offres (/tarifs/).
 *
 * STRUCTURE :
 *   1. PAGE OFFRE (.fh5co-offre) — Layout 2 colonnes, hero plein écran
 *   2. TUILES OFFRES (.offres-tiles-wrapper) — Grille de tuiles sur la page /tarifs/
 *
 * Dépendances : variables CSS globales (--skribi-orange, --fs-*, etc.), bootstrap.css
 */


/* ============================================================================
   1. PAGE OFFRE — Layout hero 2 colonnes
   Même structure que quest-ce-que-skribi : flex-start, padding-top 12rem,
   carrousel à hauteur fixe, colonne droite détermine la hauteur du layout.
   ============================================================================ */

.fh5co-offre {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding-top: 12rem;
    padding-bottom: 3rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Conteneur principal : align-items: flex-start comme quest-ce-que-skribi
   (pas stretch — c'est le swiper avec height fixe qui aligne visuellement) */
.offre-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 4rem;
    width: 90%;
    max-width: 1400px;
}


/* --- Colonne gauche : carrousel + logos presse --- */

.offre-col-left {
    flex: 1 1 45%;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Carrousel dans un container carte — même style que reportage-card-slide sur quest */
.offre-swiper {
    width: 100%;
    height: 480px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(84, 46, 42, 0.10);
    flex-shrink: 0;
}

.offre-swiper .swiper-slide {
    height: 100%;
}

.offre-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.offre-swiper .swiper-button-prev,
.offre-swiper .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
}

.offre-swiper .swiper-button-prev:hover,
.offre-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.55);
}

.offre-swiper .swiper-button-prev::after,
.offre-swiper .swiper-button-next::after {
    font-size: 13px;
    font-weight: 700;
}

.offre-swiper .swiper-pagination-bullet-active {
    background: var(--skribi-orange);
}

/* Logos presse */
.offre-press {
    margin-top: 20px;
    text-align: center;
    flex-shrink: 0;
}

.offre-press-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 10px;
}

.offre-press-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.offre-press-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.offre-press-logo-link:hover {
    border-color: var(--skribi-orange);
    box-shadow: 0 2px 8px rgba(231, 86, 35, 0.12);
}

.offre-press-logo-link img {
    height: 34px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}


/* --- Colonne droite : info, prix, CTAs --- */

.offre-col-right {
    flex: 1 1 45%;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Phrase Skribi commune aux 3 pages */
.offre-tagline {
    font-size: 1.4rem;
    color: #6b6b6b;
    margin: 0;
    font-style: italic;
    line-height: 1.45;
}

/* Badges de réassurance */
.offre-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.offre-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    background: #fff8f3;
    border: 1px solid rgba(231, 86, 35, 0.25);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #542e2a;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: border-color 0.2s ease;
}

.offre-badge--highlight {
    background: linear-gradient(135deg, #fff4ee 0%, #fff8f3 100%);
    border-color: var(--skribi-orange);
    color: var(--skribi-orange);
    box-shadow: 0 1px 6px rgba(231, 86, 35, 0.15);
}

.offre-badge--highlight .badge-icon {
    color: var(--skribi-orange);
}

.badge-icon {
    flex-shrink: 0;
    color: #a0685a;
    vertical-align: middle;
}

/* Titre et sous-titre */
.offre-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offre-title {
    font-size: var(--fs-h1);
    color: #542e2a;
    margin: 0;
    line-height: 1.15;
}

.offre-subtitle {
    font-size: var(--fs-body);
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Bloc prix */
.offre-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.offre-old-price {
    font-size: var(--fs-body);
    color: #bbb;
    text-decoration: line-through;
}

.offre-price-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.offre-price-main {
    font-size: 4rem;
    font-weight: 700;
    color: var(--skribi-orange);
    line-height: 1;
}

.offre-period {
    font-size: 1.6rem;
    font-weight: 400;
    color: #888;
}

/* Liste des features */
.offre-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.offre-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--fs-body);
    color: #542e2a;
    line-height: 1.4;
}

.offre-features li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Boutons CTA */
.offre-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-offre-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    background: var(--skribi-orange);
    color: #fff;
    border: 2px solid var(--skribi-orange);
    border-radius: var(--skribi-btn-radius);
    font-size: var(--fs-btn);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.btn-offre-primary:hover {
    background: var(--skribi-orange-strong);
    border-color: var(--skribi-orange-strong);
    color: #fff;
    transform: translateY(-1px);
}

.btn-offre-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 20px;
    background: transparent;
    color: var(--skribi-orange);
    border: 2px solid var(--skribi-orange);
    border-radius: var(--skribi-btn-radius);
    font-size: var(--fs-btn);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.15s ease;
}

.btn-offre-secondary:hover {
    background: #fff8f3;
    color: var(--skribi-orange);
    transform: translateY(-1px);
}

/* Textes de réassurance sous les boutons */
.offre-reassurance {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offre-guarantee {
    text-align: center;
    font-size: 1.2rem;
    color: #6b6b6b;
    margin: 0;
}

.offre-savings-note {
    text-align: center;
    font-size: 1.3rem;
    color: #542e2a;
    font-style: italic;
    margin: 0;
}


/* --- Responsive --- */

@media (max-width: 1260px) {
    .offre-layout {
        width: 92%;
        gap: 2.5rem;
    }

    .offre-col-left,
    .offre-col-right {
        flex: 1 1 45%;
        max-width: 48%;
    }
}

@media (max-width: 1024px) {
    .fh5co-offre {
        min-height: auto;
        max-height: none;
        padding: 10rem 0 5rem;
    }

    .offre-swiper {
        height: 320px;
    }

    .offre-price-main {
        font-size: 3.4rem;
    }
}

@media (max-width: 900px) {
    .fh5co-offre {
        min-height: auto;
        padding: 8rem 0 4rem;
        justify-content: flex-start;
    }

    .offre-layout {
        flex-direction: column;
        width: 92%;
        gap: 2.4rem;
    }

    .offre-col-left,
    .offre-col-right {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .offre-swiper {
        height: 260px;
    }

    .offre-price-main {
        font-size: 3.2rem;
    }
}

@media (max-width: 480px) {
    .fh5co-offre {
        padding: 7rem 0 3rem;
    }

    .offre-layout {
        width: 95%;
    }

    .offre-swiper {
        height: 200px;
    }

    .offre-price-main {
        font-size: 2.8rem;
    }
}


/* ============================================================================
   2. TUILES OFFRES — Grille sur la page /tarifs/ (ne pas modifier)
   ============================================================================ */

.offres-tiles-wrapper {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin: 4rem 0;
    flex-wrap: nowrap;
}

.offre-tile {
    background: #fff8f3;
    border-radius: 2.5rem;
    box-shadow: 0 12px 48px rgba(84, 46, 42, 0.15);
    padding: 4.5rem 3.5rem;
    flex: 1 1 600px;
    min-width: 400px;
    max-width: 650px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.offre-tile:hover {
    transform: translateY(-14px) scale(1.05);
    box-shadow: 0 24px 64px rgba(84, 46, 42, 0.22);
}

.offre-tile h3 {
    color: #e75623;
    font-size: var(--fs-h3);
    margin-bottom: 2.2rem;
    text-align: center;
    width: 100%;
}

.offre-tile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offre-tile li {
    font-size: var(--fs-body);
    margin-bottom: 1.6rem;
    color: #542e2a;
    line-height: 1.7;
}

@media (max-width: 1200px) {
    .offres-tiles-wrapper {
        gap: 2rem;
    }

    .offre-tile {
        padding: 3rem 1.5rem;
        min-width: 320px;
        max-width: 480px;
        min-height: 400px;
    }

    .offre-tile h3 {
        font-size: var(--fs-h3);
    }

    .offre-tile li {
        font-size: var(--fs-small);
    }
}

@media (max-width: 700px) {
    .offres-tiles-wrapper {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .offre-tile {
        max-width: 100%;
        width: 100%;
        min-width: unset;
        min-height: 320px;
        padding: 1.2rem 0.7rem;
    }

    .offre-tile h3 {
        font-size: var(--fs-small);
    }

    .offre-tile li {
        font-size: var(--fs-small);
    }
}
