/* =========================================================
   PREMIUM.CSS
   Site : Daniel - Private Aquatic Coach
   Rôle : surcharge du thème PluXml + styles premium
   ========================================================= */


/* =========================================================
   1. VARIABLES / BASE
   ========================================================= */

:root {
    --color-bg-dark: #071526;
    --color-bg-dark-soft: #0f1e3a;
    --color-text-light: rgba(255,255,255,0.92);
    --color-text-light-soft: rgba(255,255,255,0.72);
    --color-text-dark: #071526;
    --color-gold: rgb(232,158,55);
    --color-gold-dark: rgb(180,110,30);
    --color-border-light: rgba(255,255,255,0.16);
    --color-border-strong: rgba(255,255,255,0.92);
    --shadow-soft: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-strong: 0 14px 35px rgba(0,0,0,0.45);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
}

body,
.main,
.footer,
.header,
.header a {
    color: var(--color-text-light);
    clear: both;
}

body,
.main,
.footer,
.header {
    background-color: var(--color-bg-dark);
}

body {
    background-color: var(--color-bg-dark);
}

h1,
h2,
h3 {
    font-family: "Libre Baskerville", serif;
}

.article header {
    margin-top: 0;
}

.article header h2,
.article header h2 a,
h2 {
    color: var(--color-text-light);
}


/* =========================================================
   2. HEADER / IDENTITÉ / NAVIGATION
   Nécessite le header.php restructuré
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 21, 38, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255,255,255,0.12);
    padding: 0;
    height: auto;
}

.site-header .container {
    background: transparent;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 82px;
    padding: 1.2rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    min-width: 0;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    display: block;
    height: clamp(44px, 5vw, 68px);
    width: auto;
}

.site-branding-text {
    min-width: 0;
}

.site-title,
.site-title a {
    margin: 0;
    font-family: "Libre Baskerville", serif;
    font-size: clamp(1.8rem, 2.3vw, 2.8rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    text-decoration: none;
}

.site-subtitle {
    margin: 0.45rem 0 0;
    font-size: clamp(1.1rem, 1.2vw, 1.45rem);
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: var(--color-text-light-soft);
}

.header .grid,
.header .col {
    overflow: visible;
}

.header h1,
.header h2 {
    margin: 0;
}

.header .h5 {
    font-size: inherit;
}

.logo {
    background: none !important;
    height: auto !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}


ul.menu li span, ul.menu li a {
    background-color: transparent;
}

ul.menu .noactive:hover,
ul.menu .active span, 
ul.menu span.active,
ul.menu li.active a,
ul.menu a.active,
ul.menu li span:hover,
ul.menu li a:hover,
ul.menu li.noactive a,
ul.menu a.noactive {
    color: rgba(255,255,255,0.92) !important;
}


ul.menu li.active a,
ul.menu a.active,
ul.menu li span:hover,
ul.menu li a:hover {
    border-bottom: 2px solid rgba(255,255,255,0.92);
}

@media (max-width: 767px){
    body{
        --header-height: 7rem;
    }
    .responsive-menu label:after{
        color: rgba(255,255,255,0.92);
    }
    .nav,
    .menu li,
    ul.menu li.active a,
    ul.menu li.active:hover,
    ul.menu li,
    ul.menu li:hover{
        background-color: #071526;
    }
    .nav{
        border: 1px solid rgba(255,255,255,0.92);
        top: 1rem;
        right: 1rem;
    }
}


@media (max-width: 463px) {
    header ul.menu {
        border: none;
    }
}

/* =========================================================
   FIX MENU MOBILE : le panneau sort du header
   ========================================================= */

.site-header,
.site-header .container,
.site-header-inner,
.nav,
.responsive-menu {
    overflow: visible;
}

@media (max-width: 767px) {

    .nav {
        position: static;
        top: auto;
        right: auto;
        max-height: none;
        overflow: visible;
        border: none;
        background: transparent;
        text-align: right;
        z-index: auto;
    }

    .responsive-menu {
        position: relative;
        overflow: visible;
    }

    .responsive-menu > ul.menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: min(280px, calc(100vw - 2rem));
        margin: 0;
        padding: 0.75rem;
        border: 1px solid rgba(255,255,255,0.92);
        border-radius: 10px;
        background: #071526;
        box-shadow: 0 18px 40px rgba(0,0,0,0.35);
        z-index: 1100;
    }

    .responsive-menu ul.menu li {
        display: block;
        margin: 0;
    }

    .responsive-menu ul.menu li a,
    .responsive-menu ul.menu li span {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    .responsive-menu ul.menu li a:hover,
    .responsive-menu ul.menu li.active a {
        background: rgba(255,255,255,0.06);
    }
}

/* =========================================================
   3. STRUCTURE HOME / SECTIONS
   ========================================================= */

body.mode-home .main {
    padding-top: 0;
}

body.mode-home .grid {
    margin: 0;
}

body.mode-home .article {
    padding: 2rem;
    border-image: linear-gradient(
        to right,
        transparent,
        rgba(232, 158, 55, 0.8),
        transparent
    ) 1;
    border-top: 1px solid;
}

body.mode-home .content.col {
    padding: 0;
}

@media (min-width: 64rem) {
    body.mode-home .article {
        padding: 3rem;
    }
}

@media (min-width: 128rem) {
    body.mode-home .article {
        padding: 5rem;
    }
}


/* =========================================================
   4. FONDS DE SECTIONS / POSTS
   ========================================================= */

body.mode-home #post-1 {
    background: url("../img/bg_hero.png") no-repeat center;
    background-size: cover;
}

body.mode-home #post-2 {
    background: linear-gradient(
        90deg,
        #F3F3F3 0%,
        #FFFFFF 20%,
        #FFFFFF 80%,
        #F3F3F3 100%
    );
    color: var(--color-text-dark);
}

body.mode-home #post-2 h2 {
    display: none;
}

body.mode-home #post-4 {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url("../img/bg_methode.png");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
}

body.mode-home #post-5 {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url("../img/bg_methode.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
}

body.mode-home #post-8 {
    background: url("../img/bg_experience.png") no-repeat bottom center;
    background-size: cover;
    color: var(--color-text-dark);
}

body.mode-home #post-10,
body.mode-home #post-12 {
    background: url("../img/bg_light.png") no-repeat bottom center;
    background-size: cover;
    color: var(--color-text-dark);
}

body.mode-home #post-8 h2,
body.mode-home #post-10 h2,
body.mode-home #post-12 h2 {
    color: var(--color-text-dark);
}


/* =========================================================
   5. TITRES / SOUS-LIGNES / ORNEMENTS
   ========================================================= */

h3 {
    font-weight: bold;
    font-size: larger;
    position: relative;
    padding-bottom: .6rem;
    display: inline-block;
}

h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-gold);
    margin: 8px auto 0;
    border-radius: 2px;
}

.section-subline {
    opacity: 0.8;
    margin-top: 0;
    margin-bottom: 2rem;
}


/* =========================================================
   6. BORDURES / SÉPARATEURS
   ========================================================= */

.border-gradient {
    border-image: linear-gradient(
        to right,
        transparent,
        rgba(232, 158, 55, 0.8),
        transparent
    ) 1;
}

.border-top {
    border-top: 1px solid;
}

.border-bottom {
    border-bottom: 1px solid;
}


/* =========================================================
   7. CARDS
   ========================================================= */

.cards {
    clear: both;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    margin: 1rem auto 3rem auto;
    border-radius: 5px;
}

.card h3 {
    margin: 0;
}

.card .button {
    display: block;
    line-height: 1.5rem;
}

.card.featured {
    transform: scale(1.05);
    z-index: 2;
    box-shadow:
        0 14px 35px rgba(0,0,0,0.45),
        0 6px 12px rgba(0,0,0,0.35);
}

.card.featured .card-header {
    margin-top: 2rem;
}

.card.featured .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: var(--color-text-light);
    padding: 4px 10px;
    font-size: 1rem;
    border-radius: 20px;
    margin: 0;
}

.card-blue {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url("../img/bg_methode.png");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
    text-align: center;
    border: 1px solid var(--color-border-strong);
}

.card-white {
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)),
                url("../img/bg_experience.png");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    color: var(--color-text-dark);
    text-align: center;
    border: 1px solid var(--color-text-dark);
}

.card-footer {
    padding-top: 1.5rem;
}

.shadow {
    --shadow-color: rgba(0,0,0,0.45);
    box-shadow:
        0 2px 4px var(--shadow-color),
        0 8px 16px rgba(0,0,0,0.08);
}


/* =========================================================
   8. LISTES / CHECK LIST
   ========================================================= */

.card-check-list {
    list-style: none;
    padding-left: 0;
}

.card-check-list li {
    margin: 0.8rem 0 0.8rem 2rem;
}

.card-check-list li::before {
    content: "✔";
    color: var(--color-gold);
    font-weight: bold;
    margin-right: 0.6rem;
}


/* =========================================================
   9. ÉTAPES / MÉTHODE
   ========================================================= */

#post-2 .card-header h3::before {
    content: "";
    display: block;
    height: 60px;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 1rem;
}

#post-2 #step-1 .card-header h3::before {
    background-image: url("../img/step-1.png");
}

#post-2 #step-2 .card-header h3::before {
    background-image: url("../img/step-2.png");
}

#post-2 #step-3 .card-header h3::before {
    background-image: url("../img/step-3.png");
}


/* =========================================================
   10. IMAGES / PORTRAIT / MEDIA FLOTTANTS
   ========================================================= */

.coach-photo {
    max-width: 220px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.img-section {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .img-section-right {
        float: right;
        width: 50%;
        margin-left: 2rem;
        margin-bottom: 1rem;
    }

    .img-section-left {
        float: left;
        width: 50%;
        margin-right: 2rem;
        margin-bottom: 1rem;
    }
}


/* =========================================================
   11. BOUTONS
   ========================================================= */

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input.gold,
.button.gold {
    display: inline-block;
    background: linear-gradient(
        rgba(255,255,255,0.18),
        rgba(255,255,255,0)
    ), var(--color-gold);
    border-radius: 4px;
    color: var(--color-text-light);
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 3px 0 var(--color-gold-dark),
        0 8px 16px rgba(0,0,0,0.25);
    transition:
        transform .12s ease,
        box-shadow .12s ease,
        background .2s ease;
}

input.gold:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button.gold:hover {
    transform: translateY(-2px);
    box-shadow:
        0 5px 0 var(--color-gold-dark),
        0 12px 22px rgba(0,0,0,0.28);
}

input.gold:active,
.button.gold:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 var(--color-gold-dark),
        0 3px 6px rgba(0,0,0,0.25);
}

input[type="reset"],
input.empty,
.button.empty {
    display: inline-block;
    background: rgba(255,255,255,0.5);
    color: var(--color-bg-dark-soft);
    border: 1px solid var(--color-border-strong);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease,
        transform .1s ease,
        box-shadow .1s ease;
}

input[type="reset"]:hover,
input.empty:hover,
.button.empty:hover {
    background: rgba(255,255,255,0.92);
    color: var(--color-bg-dark-soft);
}

input.empty:active,
.button.empty:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}


/* =========================================================
   12. FAQ
   ========================================================= */

.faq details {
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-gold);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 3rem 1rem 1.2rem;
    background: var(--color-gold);
    color: var(--color-text-light);
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "−";
}

.faq p {
    margin: 0;
    padding: 1rem 1.2rem 1.2rem;
    line-height: 1.6;
}

/* =========================================================
   13. AVIS / COMMENTAIRES
   Base commune + variantes carrousel / page
   ========================================================= */

/* ---------- Base commune : cartes commentaires ---------- */

.lastcom-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lastcom-list li {
    margin: 0;
    padding: 0;
}

.lastcom-list blockquote {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 2rem 1.8rem 1.6rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(232,158,55,0.35);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: background .2s ease, border-color .2s ease;
}

.lastcom-list blockquote:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(232,158,55,0.5);
}

.lastcom-list blockquote::before {
    content: "“";
    position: absolute;
    top: 0.6rem;
    left: 1rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(232,158,55,1);
    font-family: serif;
}

.lastcom-list .content_com {
    margin: 0 0 1.25rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    color: var(--color-text-light);
}

.lastcom-list cite {
    display: block;
    font-style: normal;
    font-weight: 700;
    color: var(--color-gold);
}

.lastcom-list .type-admin {
    background: transparent;
    padding: 0;
}

/* ---------- Variante home : carrousel ---------- */

.reviews-carousel {
    position: relative;
    margin-top: 2rem;
}

.reviews-carousel-top {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reviews-nav {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-gold);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7,21,38,0.15);
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.reviews-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(7,21,38,0.2);
}

.reviews-nav:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
    box-shadow: 0 4px 12px rgba(7,21,38,0.1);
}

.reviews-viewport {
    overflow: hidden;
    width: 100%;
}

.reviews-viewport .lastcom-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0 0 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-viewport .lastcom-list::-webkit-scrollbar {
    display: none;
}

.reviews-viewport .lastcom-list li {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    scroll-snap-align: start;
}

/* ---------- Variante page commentaires : grille ---------- */

.reviews-page {
    margin-top: 2rem;
}

.reviews-page .lastcom-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    .reviews-viewport .lastcom-list li {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }

    .reviews-page .lastcom-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .reviews-carousel-top {
        justify-content: center;
    }

    .reviews-viewport .lastcom-list {
        gap: 1rem;
    }

    .reviews-viewport .lastcom-list li {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .reviews-page .lastcom-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lastcom-list blockquote {
        padding: 1.7rem 1.4rem 1.4rem;
    }
}


/* =========================================================
   14. WHATSAPP FLOATING BUTTON
   Correction des classes incohérentes
   ========================================================= */

.whatsapp-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem .6rem 1rem;
    background: #25D366;
    color: #fff;
    border-radius: 30px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    transition: all .25s ease;
    z-index: 1000;
}

.whatsapp-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.3);
    text-decoration: none;
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1ebe5d;
    border-radius: 50%;
}

.whatsapp-text {
    display: inline;
}


/* =========================================================
   15. RESPONSIVE TABLET / MOBILE
   ========================================================= */

@media (max-width: 767px) {
    body {
        --header-height: auto;
    }

    .site-header-inner {
        min-height: 72px;
        padding: 1rem 0;
        gap: 1rem;
    }

    .site-branding {
        gap: 1rem;
        min-width: 0;
        flex: 1 1 auto;
    }

    .site-logo {
        height: 44px;
    }

    .site-title,
    .site-title a {
        font-size: 1.5rem;
    }

    .site-subtitle {
        font-size: 1.05rem;
        margin-top: 0.3rem;
    }
}