/* ============================================
   Harmonie & Souffle — Styles personnalisés
   ============================================ */

/* --- Animations personnalisées --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Navbar : logo débordant --- */
#navbar {
    overflow: visible !important;
}

/* --- Contenu riche (rich text) : restaurer listes, styles inline --- */
section ul:not([class]),
section ol:not([class]),
footer ul:not([class]),
footer ol:not([class]),
header ul:not([class]),
header ol:not([class]) {
    margin: 8px 0;
    padding-left: 24px;
}

section ul:not([class]),
footer ul:not([class]),
header ul:not([class]) {
    list-style-type: disc;
}

section ol:not([class]),
footer ol:not([class]),
header ol:not([class]) {
    list-style-type: decimal;
}

section ul:not([class]) li,
section ol:not([class]) li,
footer ul:not([class]) li,
footer ol:not([class]) li,
header ul:not([class]) li,
header ol:not([class]) li {
    margin-bottom: 4px;
}

/* Sous-listes */
section ul:not([class]) ul,
footer ul:not([class]) ul,
header ul:not([class]) ul {
    list-style-type: circle;
    margin-top: 4px;
}

/* --- Style de la scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FCF9EC;
}

::-webkit-scrollbar-thumb {
    background: #DB977A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C07A58;
}

/* --- Onglets "À propos" --- */
.about-tab-btn {
    position: relative;
    padding: 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7a6e5f;
    transition: color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    white-space: nowrap;
}
.about-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage-600, #C07A58);
    transition: width 0.3s ease;
}
.about-tab-btn:hover { color: #514538; }
.about-tab-btn.active { color: #514538; }
.about-tab-btn.active::after { width: 100%; }

.about-tab-content {
    display: none;
    animation: aboutFadeUp 0.4s ease;
}
.about-tab-content.active { display: block; }

@keyframes aboutFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive : onglets en scroll horizontal sur mobile */
@media (max-width: 640px) {
    .about-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .about-tabs-nav::-webkit-scrollbar { display: none; }
    .about-tab-btn { font-size: 0.78rem; }
}

/* --- Onglets "La Méthode" --- */
.method-tab-btn {
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7a6e5f;
    background: #FCF9EC;
    border: 1px solid #e7e5e4;
    cursor: pointer;
    transition: all 0.3s ease;
}
.method-tab-btn:hover {
    background: #FCF9EC;
    color: #514538;
    border-color: #d6d3d1;
}
.method-tab-btn.active {
    background: #514538;
    color: #fff;
    border-color: #514538;
    box-shadow: 0 4px 12px rgba(78,69,57,0.25);
}
.method-tab-content {
    display: none;
    animation: methodFadeIn 0.4s ease;
}
.method-tab-content.active { display: block; }

@keyframes methodFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-step {
    position: relative;
    padding-left: 50px;
}
.timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 40px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(to bottom, #d6d3d1, #e7e5e4);
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C07A58, #514538);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(78,69,57,0.3);
}

.pillar-card {
    background: linear-gradient(135deg, #FCF9EC, #FCF9EC);
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.pillar-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #DB977A, #C07A58);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
    font-size: 1.1rem;
}

.benefit-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #DB977A;
}

@media (max-width: 640px) {
    .method-tab-btn { font-size: 0.75rem; padding: 8px 14px; }
    .timeline-step { padding-left: 42px; }
    .timeline-dot { width: 32px; height: 32px; font-size: 0.75rem; }
}

/* --- Modals Séances --- */
.session-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,12,8,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}
.session-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.session-modal {
    background: #fff;
    border-radius: 28px;
    max-width: 520px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 30px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.1);
}
.session-modal-overlay.active .session-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.session-modal-top {
    position: relative;
    background: linear-gradient(135deg, #F0E8CE 0%, #e4bfaa 50%, #e4bfaa 100%);
    padding: 36px 32px 28px;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
}
.session-modal-top::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(154,130,104,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.session-modal-top::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(154,130,104,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.session-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a6e5f;
    transition: all 0.25s ease;
    z-index: 2;
    font-size: 15px;
}
.session-modal-close:hover {
    background: rgba(255,255,255,0.95);
    color: #514538;
    transform: rotate(90deg);
}
.session-modal-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #DB977A;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.session-modal-title {
    font-size: 1.4rem;
    color: #292524;
    margin: 0 0 4px;
    position: relative;
    z-index: 1;
}
.session-modal-subtitle {
    font-size: 0.82rem;
    color: #7a6e5f;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.session-modal-badges {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.session-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    color: #6b5e50;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.session-modal-badge i {
    color: #DB977A;
    font-size: 0.75rem;
}
.session-modal-body {
    padding: 28px 32px 12px;
    position: relative;
}
.session-modal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(154,130,104,0.15), transparent);
}
.session-modal-body p {
    color: #6b5e50;
    line-height: 1.85;
    margin-bottom: 14px;
    font-size: 0.92rem;
}
.session-modal-body p:last-child {
    margin-bottom: 0;
}
.session-modal-body strong {
    color: #514538;
    font-weight: 600;
}
.session-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.session-modal-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #6b5e50;
    font-size: 0.92rem;
    line-height: 1.7;
}
.session-modal-body ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 1px;
    color: #DB977A;
    font-size: 0.7rem;
}
.session-modal-footer {
    padding: 16px 32px 28px;
    display: flex;
    gap: 12px;
}
.session-modal-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #DB977A, #C07A58);
    color: white;
    padding: 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124,109,91,0.25);
}
.session-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,109,91,0.35);
    background: linear-gradient(135deg, #C07A58, #A66545);
}
.session-modal-cta i {
    font-size: 0.85rem;
}
.session-modal-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #FCF9EC;
    color: #7a6e5f;
    padding: 14px 20px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #F0E8CE;
    cursor: pointer;
}
.session-modal-close-btn:hover {
    background: #F0E8CE;
    color: #6b5e50;
    border-color: #e4bfaa;
}
.session-modal::-webkit-scrollbar { width: 6px; }
.session-modal::-webkit-scrollbar-track { background: transparent; }
.session-modal::-webkit-scrollbar-thumb { background: rgba(154,130,104,0.2); border-radius: 3px; }
.session-modal::-webkit-scrollbar-thumb:hover { background: rgba(154,130,104,0.35); }
@media (max-width: 640px) {
    .session-modal { width: 96%; border-radius: 20px; max-height: 90vh; }
    .session-modal-top { padding: 28px 20px 22px; border-radius: 20px 20px 0 0; }
    .session-modal-body { padding: 22px 20px 10px; }
    .session-modal-footer { padding: 12px 20px 22px; flex-direction: column; }
    .session-modal-icon { width: 48px; height: 48px; font-size: 18px; border-radius: 14px; }
    .session-modal-title { font-size: 1.2rem; }
    .session-modal-badges { gap: 8px; }
    .session-modal-badge { padding: 6px 12px; font-size: 0.78rem; }
}
