h1 {
    display: none;
}

body {
    background-image: url('../images/allover-plain.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: #FFEFE6;
}

/* ─── PAGES ─────────────────────────────────────────────── */
.services-page {
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    background-color: #FFD3EA;
}

.tarif-page {
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

/* ─── TITRES PRINCIPAUX ──────────────────────────────────── */
.services-main-title {
    font-family: 'GillSans-UltraBold', sans-serif;
    text-transform: uppercase;
    font-size: 2.2rem;
    color: #FF1D0F;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tarif-main-title {
    font-family: 'GillSans-UltraBold', sans-serif;
    text-transform: uppercase;
    font-size: 2.2rem;
    color: #6EA14F;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.services-main-title::before,
.services-main-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #FF1D0F;
}

.tarif-main-title::before,
.tarif-main-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #6EA14F;
}

/* ─── LAYOUT GLOBAL ──────────────────────────────────────── */
.services-layout {
    display: flex;
    flex-direction: column;
}

/* ─── LIGNE DU HAUT : panneau actif + grille ─────────────── */
.services-top-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

/* ─── PANNEAU CARTE ACTIVE ───────────────────────────────── */
.active-card-panel {
    display: none;
    flex: 0 0 200px;
    min-height: 220px;
    background-color: #FFEFE6;
    color: #FF1D0F;
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    order: 0;
}

.active-card-panel.is-visible {
    display: flex;
}

.active-card-name {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0 0 0.8rem 0;
}

.active-card-short {
    display: none;
}

/* ─── GRILLE DES CARTES ──────────────────────────────────── */
.services-grid {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

/* ─── CARTE ──────────────────────────────────────────────── */
.service-card {
    flex: 1;
    min-height: 250px;
    background-color: #FFA3C8;
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: background-color 0.3s ease, transform 0.25s ease;
    order: 0;
}

/* ─── CARTE ACTIVE ───────────────────────────────────────── */

.service-card.is-active {
    background-color: #FFEFE6;
    transform: none;
    border-radius: 1.5rem 1.5rem -1.5rem -1.5rem;
    margin-bottom: -2rem;
    padding-bottom: calc(2.5rem + 1.5rem);
    z-index: 2;
    position: relative;
    margin-top: 15px;
}


.service-card.is-active .service-card-title {
    color: #FF1D0F;
}
/* ─── TITRE CARTE ────────────────────────────────────────── */
.service-card-title {
    font-family: 'Blisstwin', sans-serif;
    font-size: 1.3rem;
    text-transform: lowercase;
    color: #FF1D0F;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* ─── SHORT DESC ─────────────────────────────────────────── */
.service-card-short {
    font-family: 'Blisstwin', cursive;
    font-size: 1rem;
    line-height: 1.5;
    color: #FFEFE6;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

/* ─── ÉTOILE ─────────────────────────────────────────────── */
.service-card-star {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
    transition: opacity 0.25s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

/* ─── HOVER CARTE ────────────────────────────────────────── */
.service-card:hover {
    background-color: #FF1D0F;
    transform: translateY(-6px);
}

.service-card:hover .service-card-title {
    color: #FFEFE6;
    transform: translateY(-30px);
}

.service-card:hover .service-card-short {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .service-card-star {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ─── BLOC DÉTAIL ────────────────────────────────────────── */
.service-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.45s ease, padding 0.35s ease;
    background-color: #FFEFE6;
    border-radius: 0 1.5rem 1.5rem 1.5rem;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.service-detail.is-visible {
    max-height: 1200px;
    margin-top: 1rem;
    opacity: 1;
    padding: 3rem;
}

/* ─── PARTIE HAUTE DU DÉTAIL ─────────────────────────────── */
.service-detail-top {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.service-detail-top .service-detail-block {
    flex: 1;
}

.service-detail-top .service-detail-gif {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    align-self: center;
    margin-right: 150px;
    margin-left: 50px;
}

/* ─── PARTIE BASSE DU DÉTAIL ─────────────────────────────── */
.service-detail-bottom {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.service-detail-bottom .service-detail-gif {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    align-self: center;
}

.service-detail-bottom .service-detail-block {
    flex: 1;
}

/* ─── TEXTES DU DÉTAIL ───────────────────────────────────── */
.service-detail-section-title {
    font-family: 'Blisstwin', cursive;
    font-size: 1.6rem;
    color: #2A5842;
    margin-bottom: 1rem;
}

.service-detail-text {
    font-family: 'Americane', sans-serif;
    font-size: 1rem;
    color: #2A5842;
    line-height: 1.7;
}

/* ─── CTA DÉTAIL ─────────────────────────────────────────── */
.service-detail-cta {
    text-align: center;
    margin-top: 1rem;
}

.btn-discover {
    display: inline-block;
    background-color: #FFD3EA;
    color: #2A5842;
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.btn-discover:hover {
    background-color: #6EA14F;
    color: #FFD3EA;
    transform: scale(1.04);
}

/* ─── CTA CONTACT ────────────────────────────────────────── */
.contact-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 3rem 0 4rem;
}

.contact-btn {
    background-color: #FFA3C8;
    color: #2A5842;
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 7rem;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.03);
    color: #FF1D0F;
}

/* ─── FORFAITS ───────────────────────────────────────────── */
.tarif-forfaits {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tarif-card {
    flex: 1;
    min-width: 220px;
    background-color: #FFD3EA;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    position: relative;
    overflow: visible;
    transition: background-color 0.3s ease;
}

.tarif-card:hover {
    background-color: #FFA3C8;
}

.tarif-card-star {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
    transition: opacity 0.25s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.tarif-card:hover .tarif-card-star {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.tarif-card-title {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: #FFA3C8;
    margin: 0;
    transition: color 0.3s ease;
}

.tarif-card:hover .tarif-card-title {
    color: #FFD3EA;
}

.tarif-card-desc {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 0.85rem;
    color: #2A5842;
    line-height: 1.6;
    text-align: left;
    flex: 1;
}

.tarif-price-amount {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 2.5rem;
    color: #FFEFE6;
}

.tarif-price-custom {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 2.5rem;
    color: #FFEFE6;
}

.tarif-card-shortdesc {
    font-family: 'Blisstwin', cursive;
    font-style: italic;
    font-size: 0.9rem;
    color: #6EA14F;
    margin: 0;
    transition: color 0.3s ease;
}

.tarif-card:hover .tarif-card-shortdesc {
    color: #FFD3EA;
}

.tarif-card-desc-label {
    font-family: 'Americane-Regular', sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: 1rem;
    color: #6EA14F;
    margin: 0 0 0.25rem;
    text-align: left;
    transition: color 0.3s ease;
}

.tarif-card:hover .tarif-card-desc-label {
    color: #FFD3EA;
}

/* ─── ACCORDÉONS ─────────────────────────────────────────── */
.tarif-accordion {
    margin-bottom: 1rem;
}

.tarif-accordion-btn {
    width: 100%;
    background-color: #FFD3EA;
    border: none;
    border-radius: 999px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #2A5842;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tarif-accordion-btn:hover {
    background-color: #FFA3C8;
}

.tarif-accordion-btn.is-open {
    border-radius: 1.5rem 1.5rem 0 0;
    background-color: #FFA3C8;
}

.tarif-accordion-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.4rem;
}

.tarif-accordion-btn.is-open .tarif-accordion-arrow {
    transform: rotate(180deg);
}

.tarif-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background-color: #FFEFE6;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 0 2rem;
}

.tarif-accordion-panel.is-open {
    max-height: 1200px;
    padding: 2rem;
}

/* ─── LISTE OPTIONS / ABONNEMENTS ────────────────────────── */
.tarif-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tarif-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #FFD3EA;
    gap: 1rem;
}

.tarif-list-item:last-child {
    border-bottom: none;
}

.tarif-list-title {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1rem;
    color: #2A5842;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.tarif-list-desc {
    font-family: 'Americane', sans-serif;
    font-size: 0.85rem;
    color: #2A5842;
    margin: 0;
    line-height: 1.5;
}

.tarif-list-price {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #6EA14F;
    white-space: nowrap;
    margin: 0;
}

.tarif-badge {
    display: inline-block;
    background-color: #FFD3EA;
    color: #2A5842;
    font-family: 'Americane', sans-serif;
    font-size: 0.75rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    margin-top: 0.4rem;
}

.tarif-abo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0.75rem;
    border-bottom: 2px solid #FFD3EA;
}

.tarif-abo-header-name {
    flex: 1;
}

.tarif-abo-cycles {
    display: flex;
    gap: 1rem;
    min-width: 300px;
    justify-content: flex-end;
}

.tarif-abo-cycles span {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6EA14F;
    width: 90px;
    text-align: center;
}

.tarif-abo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarif-abo-info {
    flex: 1;
}

.tarif-abo-prices {
    display: flex;
    gap: 1rem;
    min-width: 300px;
    justify-content: flex-end;
}

.tarif-abo-prices .tarif-list-price {
    width: 90px;
    text-align: center;
}

/* MEDIA QUERY */
@media (max-width: 1023px) {
    .services-page {
        overflow: visible; /* ← si c'était hidden ça bloquait */
    }

    .services-layout,
    .services-top-row {
        overflow: visible;
    }

    .services-grid {
        overflow-x: scroll; /* ← scroll au lieu de auto, plus fiable */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        width: 100%;
    }
     /* Image 1 - plus d'écrasement en haut */
    .service-card.is-active {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    /* Image 2 - forfaits en colonne */
    .tarif-forfaits {
        flex-direction: column;
        gap: 1rem;
    }

    .tarif-card {
        width: 100%;
        min-width: 0;
        flex: none;
    }
}
/* =============================
   TABLETTE 768px – 1023px
   ============================= */
@media (max-width: 1023px) {
    .services-page,
    .tarif-page {
        padding: 2.5rem 1.5rem;
    }

    .services-main-title,
    .tarif-main-title {
        font-size: 1.8rem;
    }

    /* Cartes en scroll horizontal */
    .services-top-row {
        flex-direction: column;
        gap: 1rem;
    }

    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;  /* ← force le scroll horizontal uniquement */
        gap: 0.8rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar { display: none; }

    .service-card {
        flex: 0 0 38vw;
        scroll-snap-align: center;
        min-height: 200px;
        /* Annuler les effets desktop de la carte active */
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    /* Détail sous les cartes */
    .service-detail.is-visible {
        padding: 2rem;
        border-radius: 1.5rem;
        margin-top: 1rem;
    }

    .service-detail-top,
    .service-detail-bottom {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-detail-top .service-detail-gif,
    .service-detail-bottom .service-detail-gif {
        width: 140px;
        margin: 0 auto;
    }

    /* Tarifs */
    .tarif-forfaits {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .tarif-card {
        flex: 1 1 calc(50% - 1rem);
        min-width: 0;
    }

    /* Abonnements */
    .tarif-abo-header {
        flex-direction: column;
        gap: 0.4rem;
    }

    .tarif-abo-cycles {
        min-width: 0;
        width: 100%;
        justify-content: space-around;
    }

    .tarif-abo-cycles span {
        width: auto;
        flex: 1;
        text-align: center;
        font-size: 0.8rem;
    }

    .tarif-abo-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tarif-abo-prices {
        min-width: 0;
        width: 100%;
        justify-content: space-around;
    }

    .tarif-abo-prices .tarif-list-price {
        flex: 1;
        width: auto;
        text-align: center;
    }
}

/* =============================
   MOBILE ≤767px
   ============================= */
@media (max-width: 767px) {

    .services-page,
    .tarif-page {
        padding: 2rem 1rem;
    }

    .services-main-title,
    .tarif-main-title {
        font-size: 1.5rem;
        gap: 0.8rem;
    }

    .services-top-row {
        flex-direction: column;
        gap: 1rem;
    }

    /* Cartes scroll horizontal */
    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;  
        gap: 0.8rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar { display: none; }

    .service-card {
        flex: 0 0 70vw;
        scroll-snap-align: center;
        min-height: 160px;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 1.5rem !important;
        border-radius: 1.2rem !important;
    }

    /* Détail */
    .service-detail.is-visible {
        padding: 1.5rem;
        border-radius: 1.2rem;
        margin-top: 1rem;
    }

    .service-detail-top,
    .service-detail-bottom {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }

    .service-detail-top .service-detail-gif,
    .service-detail-bottom .service-detail-gif {
        width: 110px;
        margin: 0 auto;
    }

    .service-detail-section-title { font-size: 1.2rem; }
    .service-detail-text { font-size: 0.9rem; }

    /* Tarifs */
    .tarif-forfaits {
        flex-direction: column;
        gap: 1rem;
    }

    .tarif-card {
        width: 100%;
        min-width: 0;
    }

    .tarif-price-amount,
    .tarif-price-custom { font-size: 1.8rem; }

    .tarif-accordion-btn {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }

    /* Abonnements */
    .tarif-abo-header {
        flex-direction: column;
        gap: 0.4rem;
    }

    .tarif-abo-cycles {
        min-width: 0;
        width: 100%;
        justify-content: space-around;
    }

    .tarif-abo-cycles span {
        flex: 1;
        width: auto;
        font-size: 0.75rem;
        text-align: center;
    }

    .tarif-abo-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tarif-abo-prices {
        min-width: 0;
        width: 100%;
        justify-content: space-around;
    }

    .tarif-abo-prices .tarif-list-price {
        flex: 1;
        width: auto;
        font-size: 1rem;
        text-align: center;
    }

    .tarif-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .contact-btn {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}