/* =======================================================
   1. VARIABLES GLOBALES & RESET
   ======================================================= */
:root {
    --bg: #fbf9f8;
    --card: #ffffff;
    --muted: #6b6f76;
    --text: #102027;
    --accent: #d9bfb6;
    --accent-600: #b8978f;
    --radius: 14px;
    --container: 1200px;
    --shadow: 0 10px 30px rgba(16, 32, 39, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    scroll-margin-top: 5rem;
}

/* =======================================================
   2. TYPOGRAPHIE & MISE EN PAGE DE BASE
   ======================================================= */

.section-title {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    margin: 10px auto 0;
}

.eyebrow {
    color: var(--muted);
    font-weight: 600;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    margin: .25rem 0 1rem;
    font-size: 2rem;
}

.lead {
    color: var(--muted);
}


/* =======================================================
   3. UTILS & ACCESSIBILITÉ
   ======================================================= */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid rgba(185, 151, 143, 0.18);
    outline-offset: 3px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: .9rem;
}

/* =======================================================
   4. BUTTONS & ACTIONS
   ======================================================= */
.btn {
    padding: .55rem .9rem;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    font-weight: 700;
}

.btn.primary {
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: black;
    box-shadow: var(--shadow);
    transition: opacity 0.2s;
}

.btn.primary:hover {
    opacity: 0.9;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--muted);
    border-radius: 10px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-600);
    color: var(--accent-600);
    padding: .45rem .6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    background-color: var(--accent-600);
    color: white;
}

.avis-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

#btn_avis {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
    height: 5rem;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: black;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

#btn_avis:hover {
    transform: scale(1.02);
}


/* =======================================================
   5. HEADER & NAVIGATION
   ======================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2200;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.7));
    padding: .75rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.logo {
    height: 44px;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--text);
}

.nav-list {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    margin-left: 1rem;
    padding: 0;
}

.nav-list a,
.dropdown-toggle {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: var(--accent-600);
}

.actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.dropdown {
    position: relative;
    margin-bottom: -5px;
}

.dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: var(--card);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-content,
.dropdown-content.is-open {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: var(--text);
    text-align: left;
    white-space: nowrap;
    font-weight: 500;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg);
    color: var(--accent-600);
}


/* =======================================================
   6. MOBILE MENU (BURGER)
   ======================================================= */

.modern-burger {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(184, 151, 143, 0.3);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2300;
    transition: all 0.3s ease;
    padding: 0;
}

.modern-burger:hover {
    border-color: var(--accent-600);
    background: rgba(217, 191, 182, 0.1);
}

.burger-lines {
    position: relative;
    width: 24px;
    height: 14px;
}

.burger-lines span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.2s;
}

.burger-lines span:nth-child(1) {
    top: 0;
}

.burger-lines span:nth-child(2) {
    bottom: 0;
}

.modern-burger.active {
    border-color: transparent;
}

.modern-burger.active .burger-lines span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.modern-burger.active .burger-lines span:nth-child(2) {
    bottom: 6px;
    transform: rotate(-45deg);
}

.modern-overlay {
    position: fixed;
    inset: 0;
    background: rgba(251, 249, 248, 0.98);
    backdrop-filter: blur(12px);
    z-index: 2100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.overlay-nav {
    text-align: center;
    width: 100%;
    margin-top: 3rem;
}

.overlay-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.overlay-nav a {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease;
}

.modern-overlay.open .overlay-nav a,
.modern-overlay.open .overlay-footer {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay);
}

.overlay-nav a:hover {
    color: var(--accent-600);
}

.overlay-footer {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =======================================================
   7. SECTIONS GÉNÉRALES
   ======================================================= */

.hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    padding: 4.5rem 0;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 95%;
    margin-left: 0.65rem;
}

.hero-left {
    width: 95%;
    margin-left: 0.65rem;
}

.socials {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.social-icon img {
    width: 40px;
    height: 40px;
    display: block;
    filter: grayscale(40%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icon:hover img {
    transform: scale(1.12);
    filter: grayscale(0%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .28s cubic-bezier(.2, .9, .3, 1), box-shadow .28s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(16, 32, 39, 0.12);
}

.card-media {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    height: 50%;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.service-card:hover .card-media img {
    transform: scale(1.06);
}

.card-body {
    padding: 1rem 1.1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    height: 50%;
}

.card-body h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.card-body .desc {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    padding-top: .5rem;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.card-actions .price-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-actions .card-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.video-wrap {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.media-hero {
    background-color: var(--card);
    padding: 4.5rem 0 3rem;
    text-align: center;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 3rem 0;
}

.media-item {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 180px;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 32, 39, 0.15);
}

.media-item a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--text);
}

.media-logo {
    max-width: 80%;
    max-height: 120px;
    height: auto;
    width: auto;
    filter: grayscale(70%);
    transition: filter 0.3s ease, transform 0.3s ease;
    object-fit: contain;
    margin: auto;
    display: block;
    flex-grow: 1;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.media-item:hover .media-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.media-caption {
    margin-top: auto;
    font-size: 0.9em;
    color: var(--muted);
    width: 100%;
    text-align: center;
    padding-top: 5px;
}

.program-section {
    padding: 0;
}

#formation-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

#btn-pdf {
    padding: .55rem .9rem;
    cursor: pointer;
    border: none;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: black;
    box-shadow: var(--shadow);
    transition: opacity 0.2s;
    margin-bottom: 1rem;
    width: 70%;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 400;
    color: black;
    text-align: center;
}

#btn-amazon {
    padding: .55rem .9rem;
    cursor: pointer;
    border: none;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: black;
    box-shadow: var(--shadow);
    transition: opacity 0.2s;
    margin-top: 1rem;
    width: 70%;
    border-radius: 5px;
    font-size: 18px;
    color: black;
    font-weight: 400;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.livre-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.livre-buttons-top,
.livre-buttons-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
}

#btn-amazon,
#btn-pdf {
    margin-left: auto;
    margin-right: auto;
}

#img-livre {
    height: 356px;
    width: 256px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#pack-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    row-gap: 4rem;
    column-gap: 2rem;
}

.pack_livre {
    text-align: center;
}

#livres-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    row-gap: 4rem;
    column-gap: 2rem;
}

.program-content {
    flex: 2;
}

.program-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 250px;
    order: -1;
}

.program-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.program-image:hover {
    transform: scale(1.01);
}

.program-card h3 {
    color: var(--text);
    margin-top: 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.program-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-600);
    margin-bottom: 1.5rem;
    display: block;
}

.program-body ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.program-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.program-body ul li::before {
    content: "✅";
    position: absolute;
    left: 0;
    color: var(--accent-600);
}

.program-cta {
    margin-top: 2rem;
}


/* =======================================================
   8. PAGE SPÉCIFIQUE : COMPLÉMENTS ALIMENTAIRES
   ======================================================= */

.page-hero {
    background-color: var(--card);
    padding: 4.5rem 0 3rem;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.page-hero .subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 2rem;
    display: block;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 30px;
    padding-bottom: 3rem;
}

.pillar-item {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--accent-600);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.pillar-item:hover {
    background: #dfdddc;
    transform: translateY(-5px);
}

.pillar-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 10px;
}

.pillar-item span {
    font-size: 2em;
    color: var(--accent);
}

.video-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-bottom: 3rem;
}

.video-embed {
    max-width: 500px;
    width: 100%;
    padding: 10px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.video-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 8px;
    display: block;
}

.video-caption {
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9em;
}

.accordion-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.accordion-item {
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    margin: 20px auto;
    max-width: 900px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    background-color: var(--accent);
    color: var(--text);
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.accordion-header:hover {
    background-color: var(--accent-600);
    color: white;
}

.accordion-header.active {
    background-color: var(--accent-600);
    color: white;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    background-color: #fff;
}

.accordion-content.active {
    max-height: 600px;
    padding: 20px;
}

.accordion-icon {
    transition: transform 0.4s;
    font-size: 1.5em;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* =======================================================
   9. MODALES (Contact & Compléments)
   ======================================================= */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 12, 0.45);
    z-index: 3000;
}

.modal.open {
    display: flex;
}

.modal-card {
    width: 92%;
    max-width: 520px;
    background: var(--card);
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 20px 50px rgba(2, 6, 10, 0.4);
}

.modal-card h3 {
    margin: 0 0 .6rem;
}

.modal-card input,
.modal-card textarea,
.modal-card select {
    width: 100%;
    padding: .7rem;
    border-radius: 10px;
    border: 1px solid #ececec;
    margin-bottom: .5rem;
}

.modal-actions {
    gap: .5rem;
    justify-content: flex-end;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card);
    color: var(--text);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;

    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.is-visible .modal-content {
    transform: scale(1);
}

.modal-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--accent-600);
}

.modal-body p {
    line-height: 1.6;
    margin: 8px 0;
}

.modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.reference-box {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 0.9em;
}


.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}


/* =======================================================
   10. FOOTER & CONTACT
   ======================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-card {
    background: var(--card);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 220px;
    border: 0;
    border-radius: 10px;
}

.contact-links-group {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin: 1rem 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.contact-link-greg {
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.contact-link-greg img {
    margin-top: 1rem;
    width: 30px;
    height: 30px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    margin-left: 1rem;
}

.contact-link img {
    width: 22px;
    height: 22px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.contact-link-greg:hover,
.contact-link:hover {
    color: var(--accent-600);
}

.contact-link-greg:hover img,
.contact-link:hover img {
    transform: scale(1.12);
    opacity: 1;
}

.site-footer {
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: black;
    padding: 2rem 0;
    border-radius: 14px 14px 0 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tabs-container,
.btn-toggle-details {
    display: none;
}

/* =======================================================
   11. MOBILE
   ======================================================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
    }

    .nav-list {
        display: none;
    }

    .actions .dropdown {
        display: none;
    }

    .modern-burger {
        display: flex;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: repeat(1, minmax(180px, 1fr));
    }

    .program-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .program-image-container {
        min-width: auto;
        width: 100%;
        order: -1;
    }

    #btn_avis {
        width: 80%;
    }

    #livres-card {
        grid-template-columns: 1fr;
    }

    .tabs-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
        position: sticky;
        top: 70px;
        z-index: 100;
        background: var(--bg);
        padding: 10px 0;
    }

    .tab-btn {
        padding: 12px 25px;
        border: 1px solid var(--accent);
        background: white;
        border-radius: 30px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s;
    }

    .tab-btn.active {
        background: var(--accent-600);
        color: white;
        border-color: var(--accent-600);
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

    @media (max-width: 900px) {
        .livres-scroller {
            display: flex !important;
            overflow-x: auto;
            gap: 20px;
            padding: 20px 10px;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }

        .livre-item {
            flex: 0 0 280px;
            scroll-snap-align: center;
            background: white;
            padding: 15px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }

        #img-livre {
            width: 250px !important;
            height: 345px !important;
            margin: 15px 0;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .btn-pdf-link,
    .btn-amazon-link {
        display: block;
        text-align: center;
        padding: 8px;
        background: var(--accent);
        color: black;
        text-decoration: none;
        border-radius: 5px;
        font-size: 14px;
        margin: 5px 0;
    }

    .program-details-mobile {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        margin-bottom: 0;
    }

    .program-details-mobile.open {
        max-height: 1000px;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .btn-toggle-details {
        display: inline-block;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .program-cta-group {
        margin-top: 10px;
    }

    .program-card h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    #btn-amazon,
    #btn-pdf {
        max-width: 100%;
    }
}