/* ==========================================================================
   ASSETS/CSS/NOTRE-OFFRE.CSS
   Styles spécifiques pour la page "Notre Offre"
   ========================================================================== */

/* ==========================================================================
   SECTION HÉROS 
   ========================================================================== */
.offre-hero {
    /* Styles de base */
    padding-top: 18rem;
    padding-bottom: 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    
    /* Styles pour le fond dynamique */
    background-color: var(--white-rock); /* Couleur par défaut si pas d'image */
    background-size: cover;
    background-position: center center;
    transition: background-image 0.5s ease-in-out, color 0.5s ease-in-out;
}

/* Le contenu doit être au-dessus des overlays */
.offre-hero .container {
    position: relative;
    z-index: 2;
}

/* La décoration animée est maintenant gérée par ::before et le thème par ::after */
.offre-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.10); /* Overlay de base */
    z-index: 1;
    pointer-events: none;
    transition: background-color 0.5s ease;
}

.offre-hero .title {
    font-size: clamp(4rem, 6vw, 5.5rem);
}

.offre-hero .subtitle {
    max-width: 65ch;
    margin-left: auto;  /* AJOUT : Marge automatique à gauche */
    margin-right: auto; /* AJOUT : Marge automatique à droite */
}

.offre-hero-titles {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%; /* On s'assure qu'il prend toute la largeur du container parent */
}

/* On s'assure aussi que le .overline n'a pas de style conflictuel résiduel */
.offre-hero .overline {
    width: auto; /* Annule toute largeur forcée */
    display: block; /* S'assure qu'il est bien un élément de bloc dans le flux flex */
}

/* Thème BRIGHT (par défaut ou si la classe est présente) */
.offre-hero:not(.hero-theme-dark) .title,
.offre-hero.hero-theme-bright .title {
    color: var(--black-pearl);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}
.offre-hero:not(.hero-theme-dark) .subtitle,
.offre-hero.hero-theme-bright .subtitle {
    color: var(--black-pearl-light);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
.offre-hero:not(.hero-theme-dark) .overline {
    color: var(--walnut);
}

/* Thème DARK */
.offre-hero.hero-theme-dark .title {
    color: var(--white-rock);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.offre-hero.hero-theme-dark .subtitle {
    color: var(--white-rock-medium);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.offre-hero.hero-theme-dark .overline {
    color: var(--quicksand-light);
}
.offre-hero.hero-theme-dark::before { /* On fonce l'overlay pour le thème sombre */
    background-color: rgba(0, 0, 0, 0.30);
}
/* ==========================================================================
   SECTION DÉTAILS DE L'OFFRE
   ========================================================================== */
.offre-details-section {
    padding: calc(var(--section-spacing) / 2) 0 var(--section-spacing); /* MODIFIÉ */
    background-color: var(--white-rock-light);
}

.offre-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    align-items: center; /* AJOUT : C'est la ligne qui va tout centrer */
}

/* Titre commun pour les sections de l'offre */
.offre-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.2rem, 5vw, 4.2rem);
    color: var(--black-pearl);
    margin-bottom: 4rem; /* MODIFIÉ : Ajout d'une marge inférieure significative */
    text-align: center;
}

/* ==========================================================================
   SECTION DÉTAILS DE L'OFFRE - 1. BLOC "VALEUR" (DESIGN "PROCESSUS GUIDÉ")
   ========================================================================== */

.value-process-list {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    max-width: 780px; 
    width: 100%; /* AJOUT : S'assure qu'il prend la largeur disponible */
}

.process-item {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; /* MODIFIÉ : Aligne les éléments à gauche */
    gap: 0;
    position: relative; /* AJOUT : Essentiel pour le positionnement du numéro */
}

.process-number {
    font-family: 'Playfair Display', serif;
    font-size: 14rem; /* MODIFIÉ : Taille de police encore augmentée */
    font-weight: 500;
    color: var(--white-rock);
    line-height: 1; /* MODIFIÉ : Réajusté pour la position absolue */
    
    /* NOUVELLE MÉTHODE DE POSITIONNEMENT */
    position: absolute;
    left: -4rem; /* Dépassement à gauche */
    top: 50%; /* Centre verticalement par rapport à l'item */
    transform: translateY(-50%); /* Ajustement fin du centrage vertical */
    z-index: 1; /* Reste en arrière-plan */

    /* On retire les anciennes marges */
    margin-top: 0;
}

.value-process-list {
    margin-left: 2rem; /* AJOUT : Crée de l'espace sur la gauche pour les numéros */
}

.value-card {
    background-color: white; /* MODIFIÉ : Rend la carte transparente */
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: none; /* MODIFIÉ : Retire l'ombre individuelle */
    transition: all var(--transition-fast);
    flex-grow: 1;
    border: 1px solid var(--white-rock-medium); /* AJOUT : Ajoute une bordure fine */
    border-top-width: 4px; /* AJOUT : Garde une bordure supérieure plus épaisse */
    z-index: 2;
}

.value-card.is-open {
    border-top-color: var(--walnut);
    box-shadow: var(--box-shadow-md);
}

.value-card-header {
    /* Reset du style de bouton */
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.value-card-icon {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--walnut-light), var(--walnut));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card-icon i {
    width: 2.4rem;
    height: 2.4rem;
}

.value-card-header h3 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--black-pearl);
}

.toggle-icon {
    color: var(--quicksand);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card.is-open .toggle-icon {
    transform: rotate(180deg);
}

.value-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out; /* MODIFIÉ : On retire la transition sur padding-top */
}

.value-card.is-open .value-card-content {
    max-height: var(--content-height, 800px);
    padding-top: 2.5rem;
    border-top: 1px solid var(--white-rock-medium);
    margin-top: 2.5rem;
}

.value-card-content p {
    font-size: 1.6rem;
    color: var(--black-pearl-light);
    margin-bottom: 1.5rem;
}

.card-takeaway {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--white-rock-light);
    border-left: 3px solid var(--walnut-light);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.card-takeaway p {
    margin-bottom: 0.8rem !important;
    font-size: 1.5rem !important;
}

.card-takeaway p:last-child {
    margin-bottom: 0 !important;
}

.offre-value-block {
    background-color: white; /* AJOUT : Crée le fond blanc */
    padding: 4rem; /* AJOUT : Ajoute un espacement intérieur */
    border-radius: var(--border-radius-lg); /* AJOUT : Arrondit les coins du cadre */
    box-shadow: var(--box-shadow-md); /* AJOUT : Ajoute une ombre subtile */
}

@media (max-width: 768px) {
    .process-number {
        font-size: 4rem;
        margin-right: -1rem;
    }
    .header-content {
        gap: 1.5rem;
    }
    .value-card-header h3 {
        font-size: 1.8rem;
    }
}

/* --- 2. Bloc "Prix" (NOUVEAU DESIGN) --- */
.pricing-card {
    background-color: white;
    border-radius: var(--border-radius-lg); /* Coins plus arrondis */
    box-shadow: var(--box-shadow-md);
    padding: 4rem;
    text-align: center;
    border: 1px solid var(--white-rock-medium);
}

.pricing-card .offre-section-title {
    margin-bottom: 3rem; /* Espace sous le titre */
}

.pricing-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid var(--white-rock-medium);
    padding-top: 3rem;
}

.price-main {
    display: flex;
    flex-direction: column;
    padding-right: 4rem;
    border-right: 1px solid var(--white-rock-medium);
}

.price-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 8vw, 7rem);
    color: var(--walnut);
    line-height: 1;
}

.price-details {
    font-size: 1.4rem;
    color: var(--black-pearl-light);
    opacity: 0.8;
}

.price-facilities {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne le texte à gauche */
    text-align: left;
}

.facilities-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black-pearl);
    margin-bottom: 0.5rem;
}

.facilities-details {
    font-size: 1.8rem;
    color: var(--black-pearl-light);
}

.facilities-details strong {
    font-weight: 600;
    color: var(--black-pearl);
}

.payment-methods {
    font-size: 1.4rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Responsive pour la carte de prix */
@media (max-width: 768px) {
    .pricing-grid {
        flex-direction: column; /* Empile les colonnes sur mobile */
        gap: 2.5rem;
        padding-top: 2.5rem;
    }
    .price-main {
        padding-right: 0;
        border-right: none; /* Retire la bordure verticale */
        padding-bottom: 2.5rem;
        border-bottom: 1px solid var(--white-rock-medium); /* Ajoute une bordure horizontale */
        width: 100%;
        align-items: center; /* Centre le contenu */
    }
    .price-facilities {
        align-items: center; /* Centre le contenu */
        text-align: center;
    }
}

/* --- 3. Bloc "Appel à l'Action" --- */
.offre-cta-block {
    text-align: center;
}

.offre-cta-block p {
    font-size: 1.8rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    color: var(--black-pearl-light);
}

.offre-cta-block .offre-section-title {
    margin-bottom: 2rem; /* Réduit la marge inférieure (valeur originale: 4rem) */
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .offre-hero {
        padding-top: 14rem;
        padding-bottom: 5rem;
    }

    .offre-details-section {
        padding-top: calc(var(--section-spacing) * 0.7);
        padding-bottom: calc(var(--section-spacing) * 0.7);
    }
    
    .offre-container {
        gap: 5rem;
    }

    .pricing-card {
        padding: 3rem 2rem;
    }

    .offre-features-list li,
    .offre-cta-block p,
    .pricing-card > p {
        font-size: 1.6rem;
    }
    .offre-section-title {
        font-family: 'Bebas Neue', sans-serif;
        font-size: clamp(3.4rem, 5.5vw, 4.5rem); /* MODIFIÉ : Les valeurs ont été légèrement augmentées */
        line-height: 1.1; /* AJOUT : Réduit l'espacement entre les lignes du titre */
        color: var(--black-pearl);
        margin-bottom: 4rem;
        text-align: center;
}
}