
/* ==========================================
   SUBTOMEK — SECTION CARNET CLUBS
   PHOTO MARINE + PANNEAU VERRE DÉPOLI
========================================== */

.section-carnet-clubs {
    position: relative;
    isolation: isolate;
    background: var(--navy);
    padding: 45px 0 75px;
    overflow: hidden;
}

/* PHOTO EN ARRIÈRE-PLAN */

.carnet-clubs-background {
    position: absolute;
    z-index: -2;
    top: 45px;
    bottom: 75px;
    left: max(22px, calc((100% - 1140px) / 2));
    right: max(22px, calc((100% - 1140px) / 2));
    border-radius: 30px;
    overflow: hidden;
    background-image:
        linear-gradient(
            rgba(3, 35, 52, 0.25),
            rgba(3, 35, 52, 0.40)
        ),
        url("/LogicielElements/BkgPhotos/PhotoBkgIndex.jpg");
    background-size: cover;
    background-position: center;
    background-size: 106% auto;
    background-position: 50% 40%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.section-carnet-clubs::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 28, 44, 0.15),
        rgba(3, 28, 44, 0.35)
    );
    pointer-events: none;
}

/* CONTENEUR ET PANNEAU PRINCIPAL */

.carnet-clubs-container {
    position: relative;
    z-index: 1;
}

.carnet-clubs-panel {
    padding: clamp(26px, 5vw, 60px);
    border-radius: 28px;
    background: rgba(237, 220, 188, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.48);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);
    color: #193b43;
}

/* TITRE ET INTRODUCTION */

.carnet-clubs-intro {
    max-width: 740px;
    margin: 0 auto 35px;
    text-align: center;
}

.carnet-clubs-eyebrow {
    display: block;
    margin-bottom: 15px;
    color: #146f83;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.carnet-clubs-intro h2 {
    margin: 0 0 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: #193b43;
}

.carnet-clubs-intro p {
    margin: 0;
    color: #3c5356;
    font-size: 0.96rem;
    line-height: 1.75;
}

/* LES DEUX CARTES */

.carnet-clubs-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.carnet-clubs-option {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 250, 239, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 25px rgba(35, 65, 70, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.carnet-clubs-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(35, 65, 70, 0.16);
}

.carnet-clubs-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.carnet-clubs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(10, 103, 126, 0.12);
    color: #146f83;
    font-size: 1.65rem;
}

/* ÉTIQUETTES */

.carnet-clubs-tag {
    padding: 7px 12px;
    border-radius: 30px;
    background: #d5eee5;
    color: #246b54;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.carnet-clubs-tag-progress {
    background: #eee1c9;
    color: #79603b;
}

/* TEXTES */

.carnet-clubs-option h3 {
    margin: 0 0 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.35;
    color: #193b43;
}

.carnet-clubs-option p {
    margin-bottom: 14px;
    color: #3c5356;
    font-size: 0.88rem;
    line-height: 1.7;
}

.carnet-clubs-detail {
    flex: 1;
}

/* BOUTONS */

.carnet-clubs-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 49px;
    margin-top: 16px;
    padding: 12px 15px;
    border-radius: 12px;
    background: #073b4e;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.carnet-clubs-button:hover {
    background: #0d617a;
    transform: translateY(-2px);
}

.carnet-clubs-button span {
    font-size: 1.15rem;
}

.carnet-clubs-button-outline {
    background: transparent;
    color: #073b4e;
    border: 1px solid #073b4e;
}

.carnet-clubs-button-outline:hover {
    background: rgba(7, 59, 78, 0.08);
}

/* NOTE EN BAS */

.carnet-clubs-footnote {
    margin: 25px auto 0;
    max-width: 680px;
    color: #4b6264;
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .section-carnet-clubs {
        padding: 55px 0;
    }
    .carnet-clubs-background {
        background-position: center center;
    }
    .carnet-clubs-panel {
        padding: 25px 18px;
        border-radius: 22px;
        background: rgba(237, 220, 188, 0.83);
    }
    .carnet-clubs-intro {
        margin-bottom: 25px;
    }
    .carnet-clubs-intro h2 {
        font-size: clamp(1.65rem, 6vw, 2.15rem);
    }
    .carnet-clubs-intro p {
        font-size: 0.88rem;
    }
    .carnet-clubs-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .carnet-clubs-option {
        padding: 23px;
    }
    .carnet-clubs-footnote {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carnet-clubs-option,
    .carnet-clubs-button {
        transition: none;
    }
}

@media (max-width: 760px) {
    .section-carnet-clubs {
        padding: 35px 0 55px;
    }
    .carnet-clubs-background {
        top: 35px;
        bottom: 55px;
        left: 12px;
        right: 12px;
        border-radius: 22px;
        background-position: center;
    }
    .carnet-clubs-panel {
        padding: 25px 18px;
        border-radius: 20px;
        background: rgba(237, 220, 188, 0.80);
    }
}

/* ==========================================
   EFFET VERRE DÉPOLI
========================================== */

.carnet-clubs-panel {
    position: relative;
    padding: clamp(26px, 5vw, 60px);
    border-radius: 28px;
    background: rgba(5, 34, 49, 0.68);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.carnet-clubs-eyebrow {
    color: #9fe6e7;
}

.carnet-clubs-intro h2 {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}

.carnet-clubs-intro p {
    color: #d8e9eb;
}

/* LES DEUX CARTES SABLE */

.carnet-clubs-option {
    background: rgba(245, 236, 217, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.carnet-clubs-option h3 {
    color: #193b43;
}

.carnet-clubs-option p {
    color: #3c5356;
}

.carnet-clubs-footnote {
    color: #d8e9eb;
}

@media (max-width: 760px) {
    .carnet-clubs-panel {
        padding: 26px 18px;
        border-radius: 22px;
        background: rgba(5, 34, 49, 0.76);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    .carnet-clubs-option {
        background: rgba(245, 236, 217, 0.92);
    }
}

/* LISIBILITÉ DU PANNEAU MARIN */

.carnet-clubs-eyebrow {
    color: #aaf3f1;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.carnet-clubs-intro h2 {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.carnet-clubs-intro p {
    color: #f0f7f8;
    font-weight: 500;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.35);
}

.carnet-clubs-footnote {
    color: #f0f7f8;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.35);
}

/* ==========================================
   CARTE PARTENAIRE PRO CLUB
========================================== */

.carnet-clubs-partenaire .partenaire-logo {
    display: block;
    width: 175px;
    max-width: 58%;
    height: auto;
    object-fit: contain;
}

.carnet-clubs-partenaire .partenaire-gratuit {
    background: #246b54;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

.carnet-clubs-partenaire .carnet-clubs-option-top {
    align-items: center;
    margin-bottom: 15px;
}

.partenaire-presentation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.partenaire-texte {
    min-width: 0;
}

.partenaire-texte p {
    margin-bottom: 13px;
}

.partenaire-telephone {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partenaire-telephone img {
    display: block;
    width: 100%;
    max-width: 125px;
    height: auto;
    object-fit: contain;
    transform: rotate(0deg);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.20));
}

@media (max-width: 760px) {
    .carnet-clubs-partenaire .partenaire-logo {
        width: 145px;
    }
    .partenaire-presentation {
        grid-template-columns: minmax(0, 1fr) 95px;
        gap: 10px;
    }
    .partenaire-telephone img {
        max-width: 95px;
    }
    .carnet-clubs-partenaire .partenaire-gratuit {
        font-size: 0.68rem;
        padding: 9px 11px;
    }
}

/* PARTENAIRE PRO CLUB — AFFICHAGE MOBILE */

@media (max-width: 760px) {
    .partenaire-presentation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .partenaire-telephone {
        justify-content: center;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    .partenaire-telephone img {
        width: 145px;
        max-width: 100%;
        transform: rotate(0deg);
    }
}

/* ==========================================
   CARTE LOGICIEL CARNET CLUB
========================================== */

.carnet-clubs-logiciel .logiciel-carnet-logo {
    display: block;
    width: 155px;
    max-width: 55%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.carnet-clubs-logiciel .carnet-clubs-option-top {
    align-items: center;
    margin-bottom: 15px;
}

.carnet-clubs-logiciel .carnet-clubs-tag-progress {
    background: #eee1c9;
    color: #79603b;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: center;
}

.logiciel-carnet-presentation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logiciel-carnet-texte {
    min-width: 0;
}

.logiciel-carnet-texte p {
    margin-bottom: 13px;
}

.logiciel-carnet-telephone {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logiciel-carnet-telephone img {
    display: block;
    width: 100%;
    max-width: 125px;
    height: auto;
    object-fit: contain;
    transform: rotate(0deg);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.20));
}

/* VERSION MOBILE */

@media (max-width: 760px) {
    .carnet-clubs-logiciel .logiciel-carnet-logo {
        width: 130px;
    }
    .logiciel-carnet-presentation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .logiciel-carnet-telephone {
        justify-content: center;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    .logiciel-carnet-telephone img {
        width: 145px;
        max-width: 100%;
        transform: rotate(0deg);
    }
    .carnet-clubs-logiciel .carnet-clubs-tag-progress {
        font-size: 0.68rem;
        padding: 9px 11px;
    }
}
