/* ================================
   YHELLOW TARIFS - CSS REFONTE
   Police primaire: Alata
   Police secondaire: Secular One
   Couleur principale: #F1C639
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Alata&family=Secular+One&display=swap');

:root {
    --yhellow-yellow: #F1C639;
    --yhellow-yellow-light: #ffd858;
    --yhellow-black: #000000;
    --yhellow-white: #FFFFFF;
    --yhellow-gray-light: #F5F5F5;
    --yhellow-gray-medium: #E0E0E0;
    --yhellow-gray-dark: #666666;
    --yhellow-discover-bg: #FFF9E6;
    --yhellow-switch-hover-bg: #FFF9E6;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Alata', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Secular One', sans-serif;
}

p {
    font-family: 'Alata', sans-serif;
}

/* ================================
   CONTENEUR PRINCIPAL
   ================================ */
.yhellow-tarifs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    background: var(--yhellow-white);
}

.yhellow-tarifs h1 {
    font-family: 'Secular One', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin: 40px 0;
    color: var(--yhellow-black);
    letter-spacing: 2px;
}

/* ================================
   SWITCHES (Onglets)
   ================================ */
.tarifs-switch {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 30px auto;
    max-width: 600px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--yhellow-gray-light);
}

.tarifs-switch button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    background: transparent;
    color: var(--yhellow-gray-dark);
    font-family: 'Alata', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    white-space: nowrap;
}

.tarifs-switch button:hover {
    /*background: rgba(241, 198, 57, 0.1);*/
    background: var(--yhellow-switch-hover-bg);
}

.tarifs-switch button.is-active {
    background: var(--yhellow-yellow);
    color: var(--yhellow-black);
    font-weight: 700;
}

.tarifs-switch-sub {
    max-width: 500px;
}

/* ================================
   GRILLE DE CARTES
   ================================ */
.tarifs-group {
    display: none;
}

.tarifs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* ================================
   CARTES - STYLE DE BASE
   ================================ */
.tarif-card {
    background: var(--yhellow-white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.tarif-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--yhellow-yellow);
}

/* ================================
   BADGE TOP VENTE
   ================================ */
.tarif-card .badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--yhellow-yellow);
    color: var(--yhellow-black);
    font-family: 'Secular One', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(241, 198, 57, 0.4);
}

/* ================================
   CARTE ABONNEMENT
   ================================ */
.tarif-card-subscription {
    /*background: linear-gradient(135deg, var(--yhellow-white) 0%, var(--yhellow-gray-light) 100%);*/
    background: linear-gradient(135deg, var(--yhellow-white) 0%, var(--yhellow-gray-medium) 100%);
}

.tarif-card-subscription.best-seller {
    border-color: var(--yhellow-yellow);
    /*background: linear-gradient(135deg, #FFFBF0 0%, #FFF5D6 100%);*/
    background: linear-gradient(135deg, #FFFBF0 0%, var(--yhellow-yellow-light) 100%);
}

.tarif-card-subscription h3 {
    font-family: 'Secular One', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 12px 0;
    color: var(--yhellow-black);
    text-transform: uppercase;
}

.tarif-card-subscription p {
    font-family: 'Alata', sans-serif;
    font-size: 1rem;
    margin: 8px 0;
    color: var(--yhellow-gray-dark);
    line-height: 1.6;
}

/*.tarif-card-subscription p:last-of-type {
    font-family: 'Secular One', sans-serif;
    font-size: 2rem;
    color: var(--yhellow-black);
    margin-top: auto;
    padding-top: 20px;
}*/

.tarif-card-subscription .subscription-price {
    font-family: 'Secular One', sans-serif;
    font-size: 2rem;
    color: var(--yhellow-yellow);
    margin-top: auto;
    padding-top: 20px;
}

.tarif-card-subscription .subscription-infos {
    font-family: 'Alata', sans-serif;
    font-size: 1rem;
    /*margin: 8px 0;*/
    color: var(--yhellow-gray-dark);
    line-height: 1.6;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--yhellow-gray-medium);
}

.tarif-card-subscription .notice {
    font-family: 'Alata', sans-serif;
    font-size: 0.85rem;
    text-align: center;
    color: var(--yhellow-gray-dark);
    font-style: italic;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--yhellow-gray-medium);
}

/* ================================
   CARTE PACK
   ================================ */
.tarif-card-pack {
    /*background: var(--yhellow-gray-light);*/
    background: linear-gradient(135deg, var(--yhellow-white) 0%, var(--yhellow-gray-medium) 100%);
}

.tarif-card-pack.discover-pack {
    /*background: var(--yhellow-discover-bg);*/
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF5D6 100%);
    border-color: var(--yhellow-yellow);
}

.tarif-card-pack.not_shoppable-pack {
    /*background: var(--yhellow-gray-medium);*/
    background: var(--yhellow-gray-white);
    /*border-color: var(--yhellow-gray-dark);*/
    border-color: var(--yhellow-gray-light);
}

.tarif-card-pack.best-seller {
    border-color: var(--yhellow-yellow);
    /*background: linear-gradient(135deg, #FFFBF0 0%, #FFF5D6 100%);*/
    background: linear-gradient(135deg, #FFFBF0 0%, var(--yhellow-yellow-light) 100%);
}

.tarif-card-pack h3 {
    font-family: 'Secular One', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 16px 0;
    color: var(--yhellow-black);
    text-transform: uppercase;
}

.tarif-card-pack .pack-price {
    font-family: 'Secular One', sans-serif;
    font-size: 2.5rem;
    color: var(--yhellow-black);
    margin: 16px 0;
}

.tarif-card-pack .pack-description {
    font-family: 'Alata', sans-serif;
    font-size: 0.95rem;
    color: var(--yhellow-gray-dark);
    margin: 12px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.tarif-card-pack .pack-info {
    font-family: 'Alata', sans-serif;
    font-size: 0.9rem;
    color: var(--yhellow-black);
    margin: 8px 0;
    font-weight: 600;
}

.tarif-card-pack .pack-discover-notice {
    font-family: 'Alata', sans-serif;
    font-size: 0.85rem;
    color: var(--yhellow-gray-dark);
    font-style: italic;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--yhellow-gray-medium);
}

.tarif-card-pack .pack-not_shoppable-notice {
    font-family: 'Alata', sans-serif;
    font-size: 0.85rem;
    text-align: center;
    color: var(--yhellow-gray-dark);
    font-style: italic;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--yhellow-gray-dark);
}

/* ================================
   LISTE ACTIVITÉS SESSION
   ================================ */
.yhellow-activity-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
}

.yhellow-activity-list li {
    position: relative;
    padding-left: 18px;
    font-family: 'Alata', sans-serif;
    font-size: 1rem;
    color: var(--yhellow-gray-dark);
    line-height: 1.6;
}

/* Puce personnalisée */
.yhellow-activity-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--yhellow-yellow);
    border-radius: 50%;
}

.yhellow-activity-list.is-compact li {
    font-size: 0.85rem;
}

/* ================================
   MODALE
   ================================ */
.yhellow-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.yhellow-modal[aria-hidden="false"] {
    display: flex;
}

.yhellow-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.yhellow-modal-content {
    position: relative;
    background: var(--yhellow-white);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
    max-height: 90vh;
    overflow-y: auto;
}

.yhellow-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--yhellow-gray-light);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--yhellow-black);
}

.yhellow-modal-close:hover {
    background: var(--yhellow-yellow);
    transform: rotate(90deg);
}

.yhellow-modal h2.modal-title {
    font-family: 'Secular One', sans-serif;
    font-size: 2rem;
    margin: 0 0 20px 0;
    color: var(--yhellow-black);
    text-transform: uppercase;
}

.yhellow-modal .modal-price {
    font-family: 'Secular One', sans-serif;
    font-size: 2.5rem;
    color: var(--yhellow-yellow);
    margin: 16px 0;
}

.yhellow-modal .modal-description,
.yhellow-modal .modal-tokens,
.yhellow-modal .modal-validity,
.yhellow-modal .modal-discover-notice {
    font-family: 'Alata', sans-serif;
    font-size: 1rem;
    margin: 12px 0;
    line-height: 1.6;
    color: var(--yhellow-gray-dark);
}

.yhellow-modal .modal-discover-notice,
.yhellow-modal .modal-studio-only {
    font-style: italic;
    color: #B8860B;
    background: var(--yhellow-discover-bg);
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
}

.yhellow-modal .modal-buy-btn,
.yhellow-modal .modal-contact-btn {
    display: inline-block;
    width: 100%;
    padding: 16px 32px;
    background: var(--yhellow-yellow);
    color: var(--yhellow-black);
    border: none;
    border-radius: 50px;
    font-family: 'Secular One', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 24px;
    letter-spacing: 1px;
}

.yhellow-modal .modal-buy-btn:hover,
.yhellow-modal .modal-contact-btn:hover {
    background: var(--yhellow-black);
    color: var(--yhellow-yellow);
    transform: scale(1.02);
}

/*.yhellow-modal .modal-studio-only {
    display: none;
    font-family: 'Alata', sans-serif;
    text-align: center;
    margin-top: 16px;
    color: var(--yhellow-gray-dark);
    font-style: italic;
}*/

.yhellow-modal .modal-contact-info {
    font-family: 'Alata', sans-serif;
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--yhellow-gray-dark);
}

.yhellow-modal .modal-contact-info strong {
    color: var(--yhellow-black);
    font-size: 1.1rem;
}

/* ================================
   RESPONSIVE MOBILE
   ================================ */
@media (max-width: 768px) {
    .yhellow-tarifs h1 {
        font-size: 1.8rem;
        margin: 20px 0;
    }

    .tarifs-switch {
        flex-direction: column;
        border-radius: 12px;
        max-width: 100%;
    }

    .tarifs-switch button {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Carrousel mobile avec scroll horizontal */
    .tarifs-cards {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 16px;
        margin-top: 24px;
        padding: 16px 20px 20px; /* Padding-top augmenté pour le badge */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .tarifs-cards::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .tarif-card {
        min-width: 85%;
        max-width: 85%;
        flex-shrink: 0;
        scroll-snap-align: center;
        min-height: auto;
    }

    .yhellow-modal-content {
        padding: 30px 20px;
        max-width: 100%;
        border-radius: 16px;
    }

    .yhellow-modal h2.modal-title {
        font-size: 1.6rem;
    }

    .yhellow-modal .modal-price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .yhellow-tarifs {
        padding: 0 12px 40px;
    }

    .yhellow-tarifs h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .tarifs-switch button {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    .tarif-card {
        padding: 24px 20px;
    }

    .tarif-card-subscription h3,
    .tarif-card-pack h3 {
        font-size: 1.3rem;
    }
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarifs-group[style*="block"] .tarif-card {
    animation: fadeIn 0.4s ease-out backwards;
}

.tarifs-group[style*="block"] .tarif-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tarifs-group[style*="block"] .tarif-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tarifs-group[style*="block"] .tarif-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tarifs-group[style*="block"] .tarif-card:nth-child(4) {
    animation-delay: 0.4s;
}

.yhellow-modal[aria-hidden="false"] .yhellow-modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}