/* ============================================
   PAGES SECONDAIRES - STYLES PARTAGÉS
   Qui suis-je / Prestations / Accompagnement /
   Bien-être / Témoignages / Mentions légales
   (réutilise les utilitaires de components.css)
   ============================================ */

/* ============================================
   HÉRO GÉNÉRIQUE
   ============================================ */
.page-hero {
    width: 100%;
    padding: 90px 0 80px;
    background: linear-gradient(135deg, var(--beige-clair) 0%, var(--beige-moyen) 100%);
    text-align: center;
}

.page-hero .badge {
    margin-bottom: 24px;
}

.page-hero h1 {
    max-width: 760px;
    margin: 0 auto 20px;
    font-size: 42px;
    color: var(--gris-sombre);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-hero .hero-subtitle {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    color: var(--gris-moyen);
    line-height: 1.7;
}

/* Héro simple (mentions légales) */
.legal-hero {
    width: 100%;
    padding: 70px 0 50px;
    background: var(--beige-clair);
    text-align: center;
}

.legal-hero h1 {
    font-size: 36px;
    color: var(--gris-sombre);
    margin-bottom: 12px;
}

.legal-hero p {
    color: var(--gris-clair);
    font-size: 15px;
}

/* ============================================
   PANEL (bloc blanc générique)
   ============================================ */
.panel {
    background: var(--blanc);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(36, 51, 49, 0.06);
}

.panel h2 {
    font-size: 26px;
    color: var(--gris-sombre);
    margin-bottom: 20px;
    font-weight: 400;
}

.panel p {
    font-size: 15px;
    color: var(--gris-clair);
    line-height: 1.8;
    margin-bottom: 15px;
}

.panel p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SECTION TITLE GÉNÉRIQUE
   ============================================ */
.section-title {
    font-size: 32px;
    color: var(--gris-sombre);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.section-intro {
    font-size: 16px;
    color: var(--gris-clair);
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* ============================================
   VALUE CARD (Qui suis-je : valeurs)
   ============================================ */
.value-card {
    text-align: center;
    padding: 40px 30px;
}

.value-card .icon-circle {
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--vert-khaki) 0%, var(--vert-khaki-fonce) 100%);
}

.value-card .icon-circle svg {
    stroke: var(--blanc);
}

.value-card h3 {
    font-size: 19px;
    color: var(--gris-sombre);
    margin-bottom: 12px;
    font-weight: 500;
}

.value-card p {
    font-size: 14px;
    color: var(--gris-clair);
    line-height: 1.7;
}

/* ============================================
   TIMELINE (Qui suis-je : parcours)
   ============================================ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 25px;
    padding-bottom: 35px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 45px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--beige-fonce);
}

.timeline-year {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--vert-khaki);
    color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 17px;
    color: var(--gris-sombre);
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 14px;
    color: var(--gris-clair);
    line-height: 1.6;
}

/* ============================================
   STEP CARD (Accompagnement : étapes)
   ============================================ */
.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: var(--beige-clair);
    border: 2px solid var(--vert-khaki);
    color: var(--vert-khaki);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.step-card h3 {
    font-size: 16px;
    color: var(--gris-sombre);
    margin-bottom: 10px;
    font-weight: 500;
}

.step-card p {
    font-size: 13px;
    color: var(--gris-clair);
    line-height: 1.6;
}

/* ============================================
   PROGRAM / SERVICE CARD
   ============================================ */
.service-card,
.program-card {
    display: flex;
    flex-direction: column;
}

.service-card .image-placeholder,
.program-card .image-placeholder {
    height: 160px;
}

.service-card-content,
.program-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.service-card-content h3,
.program-card-content h3 {
    font-size: 18px;
    color: var(--gris-sombre);
    font-weight: 500;
}

.program-duree {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    color: var(--vert-khaki);
    background: var(--beige-clair);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.service-card-content p,
.program-card-content p {
    font-size: 14px;
    color: var(--gris-clair);
    line-height: 1.7;
    flex: 1;
}

/* ============================================
   ARTICLE CARD (Bien-être)
   ============================================ */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-card .image-placeholder {
    height: 180px;
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    color: var(--vert-khaki);
    background: var(--beige-clair);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content h3 {
    font-size: 18px;
    color: var(--gris-sombre);
    font-weight: 500;
}

.article-content p {
    font-size: 14px;
    color: var(--gris-clair);
    line-height: 1.7;
    flex: 1;
}

.article-link {
    font-size: 13px;
    color: var(--vert-khaki);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.article-link:hover {
    gap: 10px;
}

/* ============================================
   STATS (Témoignages)
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 42px;
    color: var(--vert-khaki);
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: var(--gris-clair);
}

/* ============================================
   TESTIMONIAL CARD
   ============================================ */
.testimonial-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.testimonial-stars {
    color: var(--vert-khaki);
    font-size: 16px;
    letter-spacing: 3px;
}

.testimonial-quote {
    font-size: 14px;
    color: var(--gris-moyen);
    line-height: 1.8;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--beige-moyen);
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--beige-moyen) 0%, var(--beige-fonce) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--beige-ombre);
    font-size: 11px;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 14px;
    color: var(--gris-sombre);
    font-weight: 600;
}

.testimonial-role {
    font-size: 12px;
    color: var(--gris-clair);
}

/* ============================================
   CTA BAND GÉNÉRIQUE (bas de page)
   ============================================ */
.cta-band {
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--vert-khaki) 0%, var(--vert-khaki-fonce) 100%);
    text-align: center;
}

.cta-band h2 {
    font-size: 28px;
    color: var(--blanc);
    margin-bottom: 15px;
    font-weight: 400;
}

.cta-band p {
    font-size: 16px;
    color: var(--beige-clair);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.cta-band-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-band .btn-secondary {
    background: var(--blanc);
    border-color: var(--blanc);
}

.cta-band .btn-secondary:hover {
    background: transparent;
    color: var(--blanc);
    border-color: var(--blanc);
}

/* ============================================
   MENTIONS LÉGALES
   ============================================ */
.legal-content {
    background: var(--blanc);
}

.legal-section {
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--beige-moyen);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 20px;
    color: var(--gris-sombre);
    margin-bottom: 15px;
    font-weight: 500;
}

.legal-section p {
    font-size: 14px;
    color: var(--gris-clair);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 0 0 12px 20px;
    color: var(--gris-clair);
    font-size: 14px;
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 30px;
    }

    .page-hero .hero-subtitle {
        font-size: 15px;
    }

    .panel {
        padding: 28px;
    }

    .cta-band h2 {
        font-size: 24px;
    }

    .legal-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        gap: 15px;
    }
}

/* ============================================
   FENÊTRE DE DÉTAIL (overlay) - BIEN-ÊTRE
   ============================================ */
.be-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.be-modal[hidden] {
    display: none;
}

.be-modal.is-open {
    opacity: 1;
}

body.be-lock {
    overflow: hidden;
}

.be-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 51, 49, 0.62);
    backdrop-filter: blur(4px);
}

.be-dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: var(--blanc);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    outline: none;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.3s ease;
}

.be-modal.is-open .be-dialog {
    transform: none;
}

.be-media {
    position: relative;
    flex-shrink: 0;
    height: 220px;
    overflow: hidden;
}

.be-media img,
.be-media .image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.be-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gris-sombre);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.be-close:hover {
    background: var(--vert-khaki);
    color: var(--blanc);
}

.be-close:focus-visible {
    outline: 3px solid var(--vert-khaki);
    outline-offset: 2px;
}

.be-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px 36px 14px;
}

.be-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.be-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--beige-moyen);
    color: var(--vert-khaki-fonce);
}

.be-icon svg {
    width: 24px;
    height: 24px;
}

.be-head h3 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--gris-sombre);
}

.be-description {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--gris-clair);
}

.be-cta {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--beige-fonce);
    text-align: center;
}

.be-cta-text {
    font-size: 15px;
    color: var(--gris-clair);
    margin-bottom: 18px;
    line-height: 1.7;
}

.be-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--gris-moyen);
    text-align: center;
}

/* Responsive modal bien-être */
@media (max-width: 768px) {
    .be-modal {
        padding: 12px;
    }

    .be-dialog {
        max-height: calc(100vh - 24px);
    }

    .be-media {
        height: 160px;
    }

    .be-body {
        padding: 24px 22px 10px;
    }

    .be-cta {
        padding-top: 22px;
        margin-top: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .be-modal,
    .be-dialog {
        transition: none;
    }
}

/* ============================================
   CONTENU DE LA FENÊTRE BIEN-ÊTRE (intro, étapes, puces, conclusion)
   ============================================ */
.be-description p {
    margin-bottom: 16px;
}

.be-description .be-intro {
    color: var(--gris-moyen);
}

.be-steps,
.be-points {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.be-steps {
    counter-reset: be-step;
}

.be-steps li,
.be-points li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 14px;
}

.be-steps li::before {
    counter-increment: be-step;
    content: counter(be-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--beige-moyen);
    color: var(--vert-khaki-fonce);
    font-size: 13px;
    font-weight: 600;
}

.be-points li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vert-khaki);
}

.be-description strong {
    color: var(--gris-sombre);
    font-weight: 600;
}

.be-description .be-outro {
    margin-bottom: 0;
    font-style: italic;
}

/* ============================================
   BANNIÈRE IMAGE - PAGE BIEN-ÊTRE
   Texte à gauche, image à droite, fondu clair à gauche
   (n'affecte pas les autres pages qui utilisent .page-hero)
   ============================================ */
.page-hero--bienetre {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    padding: 70px 0;
    background: var(--beige-clair) url("../assets/bien-etre/banniere.avif") right center / cover no-repeat;
    text-align: left;
    overflow: hidden;
}

/* Fondu clair : opaque à gauche (texte), transparent à droite (image) */
.page-hero--bienetre::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(244, 245, 244, 0.95) 0%,
        rgba(244, 245, 244, 0.8) 40%,
        rgba(244, 245, 244, 0) 68%);
}

.page-hero--bienetre .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Le texte reste dans la moitié gauche */
.page-hero--bienetre .badge,
.page-hero--bienetre h1,
.page-hero--bienetre .hero-subtitle {
    max-width: 560px;
}

.page-hero--bienetre h1 {
    margin: 0 0 20px;
    font-size: 48px;
}

.page-hero--bienetre .hero-subtitle {
    margin: 0;
}

@media (max-width: 768px) {
    .page-hero--bienetre {
        min-height: 380px;
        padding: 60px 0;
    }

    .page-hero--bienetre::before {
        background: rgba(244, 245, 244, 0.88);
    }

    .page-hero--bienetre h1 {
        font-size: 34px;
    }
}

/* ============================================
   CARTES BIEN-ÊTRE : MÊME TAILLE POUR TOUTES
   (image, titre, résumé et bouton alignés)
   ============================================ */
.article-card {
    height: 100%;
}

/* Image : hauteur fixe, recadrée sans déformation */
.article-card .image-placeholder,
.article-card > img {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
}

/* Titre : toujours 2 lignes de hauteur */
.article-card .article-content h3 {
    line-height: 1.35;
    min-height: calc(2 * 1.35em);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Résumé : toujours 4 lignes de hauteur (coupé par « … » si plus long) */
.article-card .article-content p {
    flex: none;
    line-height: 1.7;
    min-height: calc(4 * 1.7em);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bouton toujours en bas de la carte */
.article-card .article-content .be-read-more {
    margin-top: auto;
    align-self: flex-start;
}