/*
Theme Name: Amanus Child
Theme URI: https://amanus.templaza.net/
Description: A child theme of Amanus
Author: TemPlaza Team
Author URI: https://www.templaza.com
Version: 1.0.6
Text Domain: amanus
Template: amanus
*/
.su-u-responsive-media-yes {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.su-u-responsive-media-yes .fluid-width-video-wrapper,
.su-u-responsive-media-yes .video-holder {
    position: static !important;
}

.su-u-responsive-media-yes embed,
.su-u-responsive-media-yes iframe,
.su-u-responsive-media-yes object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.optionLists,
.totalPrice {
    display: none;
    margin-top: 2rem;
    border-top: 1px solid #ffffff30;
    padding-top: 1rem;
}

.optionLists > p {
    margin-bottom: 0.5rem;
}

.optionListsItems .optionItem {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-top: 1px solid #ffffff1a;
    padding: 5px 0;
}

.optionListsItems .optionItem label {
    color: #fff;
    display: flex;
    align-items: flex-start;
}

.optionListsItems .optionItem label input {
    display: none;
    opacity: 0;
}

.optionListsItems .optionItem label input + span {
    display: block;
    width: 17px;
    height: 17px;
    background: #fff;
    border-radius: 30px;
    border: 2px solid #fff;
    margin-right: 0.5rem;
    min-width: 17px;
    position: relative;
    top: 4px;
}

.optionListsItems .optionItem label input:checked + span {
    background: #0897b2;
}

.optionListsItems .optionItem > span {
    color: #fff;
    display: block;
    min-width: 50px;
    text-align: right;
    font-weight: 600;
}

.totalPrice.show {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff30;
    padding-bottom: 1rem;
}

.totalPrice > p,
.totalPrice > div.uk-h3 {
    margin: 0;
}

.custom-header-content {
    margin: 0;
}

.submitBooking {
    display: none !important;
}

.submitBooking.active {
    display: flex !important;
    width: 100% !important;
}

.iconEspaceProprio img, .conciergerie-icon img {
    height: 80px !important;
    width: auto !important;
}

.conciergerie-icon figcaption.wp-caption-text {
    font-size: 14px;
    line-height: 18px;
    margin-top: 20px;
}

.customHidden {
    opacity: 0;
}

/*Sous Menu*/
body .templaza-header .navbar-nav .menu-item > .sub-menu {
    border-radius: 10px;
    padding: 0 !important;
    margin-left: 20px;
}

body .templaza-header .navbar-nav .menu-item > .sub-menu li.menu-item {
    padding: 10px 20px !important;
    border-bottom: #F4F4F4 1px solid;
}

body .templaza-header .navbar-nav .menu-item > .sub-menu li.menu-item:last-child {
    border: none;
}

body .templaza-header .navbar-nav .menu-item > .sub-menu li.menu-item > a {
    line-height: 16px;
}

/*Sous Menu*/

.CustomBlogList img.attachment-amanus-750-540 {
    height: 300px;
}

.TopBlogSearch .wp-block-search__inside-wrapper {
    display: flex;
}

.TopBlogSearch .wp-block-search__inside-wrapper {
    border: 1px solid #ebebeb !important;
    padding-left: 20px !important;
}

.TopBlogSearch .wp-block-search__label {
    display: none !important;
}

.SidebarBlog .widget_block {
    border: 1px solid #ebebeb;
    padding: 30px;
    margin-bottom: 30px;
}

.SidebarBlog .wp-block-latest-posts > li {
    list-style: none;
}

.SidebarBlog .wp-block-latest-comments {
    padding-left: 20px;
}

.SingleBreadCrumb .bread-current {
    color: #fff !important;
}

.HomeProductList .ap-item .ap-inner img, .HomePostList .ui-post-thumbnail img {
    height: 300px !important;
}

#TestimonialSlider .tz-testimonial-inner {
    min-height: 365px;
}

.ThankYou-Page-img img {
    width: 600px;
}

.ap-item.ap-item-style5 .ap-inner .ap-info-inner {
    padding: 20px 0 40px 0;
}

.HomeServices .st0 {
    fill: #D7B084 !important;
}

.elementor-shortcode .fbc-page .fbc-wrap .fbc-items {
    background-color: transparent !important;
    text-align: center;
}

.elementor-shortcode .fbc-page .fbc-wrap .fbc-items li {
    padding: 5px 2px !important;
}

.elementor-shortcode .fbc-page .fbc-wrap .fbc-items li.active span {
    color: #fff !important;
}

.elementor-shortcode .fbc-page .fbc-wrap .fbc-items li a, .amanus-breadcrumb ul li a {
    color: #D7B084 !important;
}

.elementor-shortcode .fbc-page .fbc-wrap .fbc-items li a i.fa-home:before {
    content: none !important;
}

.old-price {
    text-decoration: line-through;
}

.discount-percentage {
    position: relative;
    left: 10px;
    top: -2px;
}

/* Breakdown des remises Nausys sous le prix dans la fiche bateau */
.price-breakdown {
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85em;
    line-height: 1.6;
}

.price-breakdown .pb-row {
    display: flex;
    justify-content: space-between;
}

.price-breakdown .pb-discount .pb-value {
    color: #D7B084;
}

/* Lignes de remise dans la modale de confirmation */
.bd-discounts:empty {
    display: none;
}

.bd-discount-row {
    color: #D7B084;
}

/* Badge "Jusqu'à -X%" sur les cards de la page liste */
.ap-discount-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #D7B084;
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

/* Variante overlay : posée en haut à gauche de la photo du bateau */
.ap-discount-badge--overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 12px;
    font-size: 0.82em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@media (max-width: 959px) {
    .footer-2.templaza-footer .templaza-uiimage {
        padding-right: 0 !important;
        text-align: center;
    }

    .footer-2.templaza-footer .templaza-uiimage img {
        width: 50% !important;
    }

    .footer-2.templaza-footer .uk-text-left {
        text-align: center !important;
    }

    .footer-2.templaza-footer .templaza-social {
        justify-content: center;
    }

    .PagesFooter, .ContactFooter {
        display: none;
    }

    .footer-2.templaza-footer .templaza-row {
        justify-content: center;
    }

    .ImgHeightResponsive {
        margin-bottom: 50px;
    }

    .ImgHeightResponsive img {
        max-height: 240px;
        width: 100vh;
        object-fit: cover;
    }
}

.ap-item.ap-item-style5 .ap-inner .ap-title {
    min-height: 60px;
}

.lang-flag {
    display: inline-block;
    width: 18px;
    height: 16px;
    background-image: url('assets/icons/fr.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* -----------------------------------------------------------------------
 * Bouton « Accès Client » injecté dans ul.templaza-social
 * (voir functions.php → add_action('wp_footer', …)).
 *
 * Posé en premier <li> de la liste, donc à gauche des flags. On force
 * l'affichage sur mobile car certains parents .templaza-row du header
 * top-bar sont masqués par défaut sur petits écrans.
 * --------------------------------------------------------------------- */
.setsail-client-access {
    /* Sépare visuellement le bouton du groupe flags + réseaux sociaux. */
    margin-right: 12px;
}

/* Couleur de marque : utilisée pour border + texte + icône au repos, et en
   remplissage au hover. Centralisée ici pour pouvoir l'ajuster d'un endroit. */
.setsail-client-access__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid #bf9550;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #bf9550;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.setsail-client-access__link:hover,
.setsail-client-access__link:focus {
    background-color: #bf9550;
    border-color: #bf9550;
    /* !important : le sélecteur global `:root :where(a:where(:not(.wp-element-button)))`
       force `color: inherit !important` sur tous les <a> du site. Sans
       !important ici, le texte resterait doré sur fond doré au hover. */
    color: #ffffff !important;
    text-decoration: none;
}

.setsail-client-access__link:hover .setsail-client-access__icon,
.setsail-client-access__link:focus .setsail-client-access__icon {
    color: #ffffff;
}

.setsail-client-access__icon {
    /* Align optique de l'icône UIkit avec la baseline du texte. */
    display: inline-flex;
    align-items: center;
    color: #bf9550;
    transition: color 0.2s ease;
}

.setsail-client-access__icon svg {
    display: block;
}

/* -----------------------------------------------------------------------
 * Variante mobile : bouton « Accès Client » dans le burger menu Templaza
 * (#templaza-mobilemenu .templaza-mobile-menu).
 *
 * On casse volontairement le style natif des menu-items (pleine largeur,
 * séparateur, padding latéral) pour traiter cet item comme un CTA :
 * pastille dorée pleine, centrée, marge autour pour le détacher des items
 * de nav. Cohérent avec les CTA dorés des cards (« Choisissez votre... »).
 * --------------------------------------------------------------------- */
.templaza-mobilemenu .setsail-client-access-mobile {
    /* Détache le bouton du flux de menu : pas de séparateur visible, marge
       autour, pas de background héritage de .menu-item. */
    background: transparent !important;
    border: none !important;
    padding: 16px 20px !important;
    text-align: center;
}

.templaza-mobilemenu .setsail-client-access-mobile > a,
.templaza-mobilemenu .setsail-client-access-mobile > a:hover,
.templaza-mobilemenu .setsail-client-access-mobile > a:focus {
    display: inline-block;
    padding: 12px 28px;
    background-color: #bf9550;
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.templaza-mobilemenu .setsail-client-access-mobile > a:hover,
.templaza-mobilemenu .setsail-client-access-mobile > a:focus {
    background-color: #a67e3f;
    transform: translateY(-1px);
}

table.uk-table-borderless, .uk-table-borderless td, .uk-table-borderless th {
    border: none !important;
}

.payment-method-card, .payment-method-transfer {
    cursor: pointer; transition: all 0.3s ease-in-out;
}

.payment-method-card:hover, .payment-method-transfer:hover {
    background-color: #bf9550;
    color: #ffffff;
}

/* -----------------------------------------------------------------------
 * Page Formation croisière voile embarquée
 *
 * Les cards utilisent le même partial que la croisière privée
 * (content-item-style5.php) + le flag $pageIsFormation. On force toutes
 * les cards à remplir la même hauteur (uk-grid-match sur le parent) et
 * on pousse la dernière rangée (prix + bouton "Voir le bateau") vers le
 * bas même quand certains bateaux n'ont pas de créneau.
 * --------------------------------------------------------------------- */

.boats-list--formation .ap-item,
.boats-list--formation .ap-inner {
    height: 100%;
}

.boats-list--formation .ap-inner {
    display: flex;
    flex-direction: column;
}

/* La zone "bottom" (specs + controls + prix) prend tout l'espace restant
   et devient un flex vertical, ce qui permet au dernier enfant — la ligne
   prix/bouton — d'être collé en bas de la card via margin-top: auto. */
.boats-list--formation .ap-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.boats-list--formation .formation-price-row {
    margin-top: auto;
}

/* Le bloc "contrôles" (select + toggle privatisation) a une hauteur minimale
   fixe. Ça garantit que les cards sans créneau disponible — qui n'affichent
   qu'un court message — occupent la même hauteur que les cards remplies
   (label + select + checkbox = ~140px). Résultat : le prix et le bouton
   "Voir le bateau" restent alignés horizontalement sur toute la rangée. */
.boats-list--formation .formation-controls {
    min-height: 144px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Petit espacement interne du bloc sélecteur/toggle */
.boats-list--formation .formation-controls .uk-select {
    margin-top: 4px;
}

/* Quand il n'y a pas de slot, on centre le message verticalement dans
   la zone réservée pour un meilleur rendu. */
.boats-list--formation .formation-controls > p.uk-text-muted {
    text-align: center;
}

/* Le thème parent / UIkit peut masquer les checkbox natifs sans fournir
   de remplaçant visuel clair dans ce contexte. On force un rendu natif
   visible pour le toggle "Privatiser le bateau". */
.boats-list--formation .js-formation-privatize {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    opacity: 1;
    display: inline-block;
}

/* Label "Privatiser" : on garde le texte aligné au checkbox */
.boats-list--formation .formation-privatize-label {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

.boats-list--formation .js-formation-privatize:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/*
 * Page "Formation croisière voile embarquée" : on masque entièrement le
 * formulaire de filtres Advanced Product. Les formations s'appuient sur une
 * sélection manuelle de bateaux + créneaux fixes — les filtres libres
 * (dates, cabines, base, etc.) n'ont pas de sens sur ce template.
 */
body.is-formation-template .advanced-product-search-form {
    display: none !important;
}

/* =========================================================================
 * Modal « Réserver ma place » — Formation croisière voile embarquée
 * UIkit gère l'essentiel (overlay, animation). Quelques ajustements visuels.
 * ========================================================================= */

#formation-reservation-modal .uk-modal-dialog {
    max-width: 600px;
}

#formation-reservation-modal .uk-modal-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

#reservation-summary {
    border-left: 3px solid #c9a568;
    padding-left: 12px !important;
    line-height: 1.6;
}

#reservation-error {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Bouton "Réserver" identique au bouton "Voir le bateau" */
.ap-readmore-box .js-formation-reserve {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* =========================================================================
 * Avis clients — shortcode [setsail_reviews]
 * Reprend le style visuel du widget Templaza: Testimonial (carte blanche,
 * guillemet doré, typo serif pour le corps).
 * ========================================================================= */

.setsail-reviews {
    position: relative;
}

.setsail-review-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 48px 40px 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.setsail-review-card__quote {
    color: #c9a568;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 80px;
    line-height: 1;
    height: 40px;
    margin-bottom: 12px;
    font-weight: bold;
}

.setsail-review-card__rating {
    margin-bottom: 12px;
    line-height: 1;
}

.setsail-review-card__star {
    color: #ddd;
    font-size: 16px;
    letter-spacing: 2px;
}

.setsail-review-card__star.is-filled {
    color: #f0b90b;
}

.setsail-review-card__text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2a2a2a;
    margin-bottom: 24px;
    flex: 1 1 auto;
}

.setsail-review-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.setsail-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.setsail-review-card__author {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.setsail-review-card__author-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    color: #2a2a2a;
    font-weight: 500;
}

.setsail-review-card__source {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.setsail-review-card__source--google {
    color: #4285f4;
}

/* Slider UIkit : centrer les dots, adoucir les flèches de nav */
.setsail-reviews--slider .uk-slider-items {
    padding-bottom: 8px; /* laisse respirer les ombres des cards */
}

.setsail-reviews__dots .uk-active > * {
    background: #c9a568;
    border-color: #c9a568;
}

.setsail-reviews__nav {
    color: #c9a568 !important;
}

@media (max-width: 640px) {
    .setsail-review-card {
        padding: 36px 24px 24px;
    }

    .setsail-review-card__quote {
        font-size: 60px;
        height: 30px;
    }
}

/* =========================================================================
 * Niveaux FFV — section "Programme de progression"
 *
 * Layout timeline full-bleed : section pleine largeur sur fond crème,
 * cards blanches alignées en colonne avec gros numéro serif à gauche
 * (eyebrow doré + chiffre 01/02/03…), corps de texte à droite.
 * Cohérent avec la palette Set Sail (#0d2235 navy / #c9a568 or).
 * ========================================================================= */

.ffv-levels-section {
    /* Full-bleed même quand la section est dans un container parent. */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #f8f6f1;
    padding: 80px 0;
}

.ffv-levels-section__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.ffv-levels-section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.ffv-levels-section__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a568;
    font-weight: 600;
    margin-bottom: 14px;
}

.ffv-levels-section__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    line-height: 1.2;
    color: #0d2235;
    font-weight: 400;
    margin: 0 0 16px;
}

.ffv-levels-section__lead {
    font-size: 16px;
    line-height: 1.6;
    color: #5a6573;
    margin: 0;
}

/* Liste des niveaux ----------------------------------------------------- */

.ffv-levels {
    list-style: none;
    margin: 0 0 80px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.ffv-level {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #ece7df;
    border-radius: 10px;
    padding: 44px 56px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ffv-level::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c9a568;
}

.ffv-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(13, 34, 53, 0.08);
    border-color: #e2dccf;
}

/* Bloc numéro ----------------------------------------------------------- */

.ffv-level__number {
    position: relative;
    padding-right: 40px;
}

.ffv-level__number::after {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 0;
    width: 1px;
    background: #ece7df;
}

.ffv-level__number-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a568;
    font-weight: 600;
    margin-bottom: 10px;
}

.ffv-level__number-value {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 96px;
    line-height: 1;
    color: #0d2235;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Bloc contenu ---------------------------------------------------------- */

.ffv-level__body {
    min-width: 0; /* évite les débordements quand le contenu est long */
}

.ffv-level__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.3;
    color: #0d2235;
    font-weight: 400;
    margin: 0 0 8px;
}

.ffv-level__subtitle {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a568;
    font-weight: 600;
    margin: 0 0 20px;
}

.ffv-level__content {
    font-size: 15.5px;
    line-height: 1.75;
    color: #4a5563;
}

.ffv-level__content p {
    margin: 0 0 14px;
}

.ffv-level__content p:last-child {
    margin-bottom: 0;
}

/* Class util pour le titre accessible (lecteurs d'écran uniquement) */
.ffv-level__title .uk-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 960px) {
    .ffv-levels-section {
        padding: 56px 0;
    }

    .ffv-levels-section__title {
        font-size: 32px;
    }

    .ffv-level {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 28px;
    }

    .ffv-level__number {
        padding-right: 0;
        padding-bottom: 18px;
        border-bottom: 1px solid #ece7df;
        display: flex;
        align-items: baseline;
        gap: 16px;
    }

    .ffv-level__number::after {
        display: none;
    }

    .ffv-level__number-label {
        margin-bottom: 0;
    }

    .ffv-level__number-value {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .ffv-levels-section__header {
        margin-bottom: 36px;
    }

    .ffv-level {
        padding: 26px 22px;
    }

    .ffv-level__title {
        font-size: 22px;
    }

    .ffv-level__number-value {
        font-size: 44px;
    }
}

/* =========================================================================
 * Template "Page Liste de Stages" — wrapper plein largeur
 * ========================================================================= */

.page-stages-list {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Annule un éventuel container Templaza/parent theme qui contraindrait
 * la largeur (Elementor gère ses propres conteneurs en interne). */
body.page-template-page-stages-list .templaza-content,
body.page-template-page-stages-list .uk-container,
body.page-template-page-stages-list main {
    max-width: none !important;
}

/* =========================================================================
 * Listing des stages (shortcode [stages]) — v3, grille de cartes verticales
 *
 * Photo 4:3 avec étiquette d'accroche dorée + durée, titre serif, méta,
 * description courte, prochaine session, footer prix + « Voir le programme ».
 * Toute la carte est cliquable (::after du lien du titre).
 * Grille : cartes de 340px min, nombre de colonnes selon la place.
 *
 * Tokens (cohérents avec single-stage) :
 *   navy        #0d2235  (titre, CTA, prix)
 *   navy-soft   #1c4ea4  (hover)
 *   gold        #c9a568  (étiquette, libellés)
 *   gold-dark   #a78539
 *   border      #ece7df
 *   bg-soft     #fafaf7
 * ========================================================================= */

.stages-list {
    width: 100%;
    margin: 0;
}

.stages-list__count {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    color: #0d2235;
    margin: 0 0 32px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.stages-list__items {
    display: grid;
    /* Colonnes selon la largeur du conteneur (pas de l'écran) : 3 dans le
       contenu pleine largeur du site, 2 si une sidebar le réduit, 1 sur
       mobile. auto-fill garde les cartes à largeur fixe même s'il y en a
       moins que de colonnes. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 32px 28px;
}

.stage-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ece7df;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(13, 34, 53, 0.05);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.stage-card:hover,
.stage-card:focus-within {
    box-shadow: 0 18px 44px rgba(13, 34, 53, 0.14);
    border-color: #e2d6bd;
    transform: translateY(-4px);
}

/* Media (photo + étiquettes) */

.stage-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e8f3fa;
    overflow: hidden;
}

.stage-card__media .stage-card__img,
.stage-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.stage-card:hover .stage-card__media img {
    transform: scale(1.06);
}

.stage-card__media-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e8f3fa 0%, #c5dfee 100%);
}

/* Dégradé bas pour la lisibilité de la durée sur photo claire */
.stage-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 34, 53, 0.55) 100%);
    pointer-events: none;
}

.stage-card__tagline {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    max-width: calc(100% - 32px);
    background: #c9a568;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.3;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(13, 34, 53, 0.18);
}

.stage-card__duration {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Body */

.stage-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
    min-width: 0;
}

.stage-card__head {
    margin-bottom: 10px;
}

.stage-card .stage-card__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px !important;
    line-height: 1.25;
    margin: 0;
    font-weight: 700;
    color: #0d2235 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stage-card .stage-card__title a {
    color: #0d2235 !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.stage-card .stage-card__title a:hover,
.stage-card:hover .stage-card__title a {
    color: #1c4ea4 !important;
}

/* Carte entièrement cliquable via le lien du titre */
.stage-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.stage-card__link:focus-visible {
    outline: none;
}

.stage-card:has(.stage-card__link:focus-visible) {
    outline: 2px solid #1c4ea4;
    outline-offset: 3px;
}

/* Méta inline — les icônes servent de séparateurs (pas de « · » qui
   resterait orphelin en bout de ligne quand la liste passe à la ligne). */

.stage-card__meta {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
    color: #5a6a7a;
    font-size: 13px;
}

.stage-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stage-card__meta-icon {
    color: #a78539;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Description courte */

.stage-card__excerpt {
    margin: 0 0 18px;
    color: #4a5867;
    font-size: 14.5px;
    line-height: 1.6;
}

/* Prochaine session */

.stage-card__next {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #fafaf7;
    border: 1px solid #ece7df;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 13.5px;
}

.stage-card__next-label {
    flex-basis: 100%;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a78539;
    font-weight: 700;
}

.stage-card__next-dates {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #0d2235;
}

.stage-card__next-dates--none {
    font-weight: 500;
    font-style: italic;
    color: #5a6a7a;
}

.stage-card__next-more {
    color: #5a6a7a;
    font-size: 12.5px;
}

/* Footer prix + CTA */

.stage-card__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #ece7df;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.stage-card__price {
    line-height: 1.2;
}

.stage-card__price-from {
    display: block;
    font-size: 12px;
    color: #5a6a7a;
    margin-bottom: 2px;
}

.stage-card__price-amount {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
    color: #0d2235;
    letter-spacing: -0.01em;
}

.stage-card__price-amount small {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #5a6a7a;
    margin-left: 2px;
}

.stage-card__price-empty {
    font-size: 15px;
    color: #5a6a7a;
    font-style: italic;
}

.stage-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d2235;
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.stage-card:hover .stage-card__cta {
    background: #1c4ea4;
}

.stage-card__cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.stage-card:hover .stage-card__cta-arrow {
    transform: translateX(4px);
}

.stages-list--empty {
    text-align: center;
    padding: 40px 20px;
    color: #5a6a7a;
}

@media (prefers-reduced-motion: reduce) {
    .stage-card,
    .stage-card__media img,
    .stage-card__cta-arrow {
        transition: none;
    }

    .stage-card:hover,
    .stage-card:focus-within {
        transform: none;
    }

    .stage-card:hover .stage-card__media img {
        transform: none;
    }
}

/* =========================================================================
 * Page détail d'un stage (single-stage.php) — refonte v2
 *
 * Layout :
 *   .single-stage              wrapper article (full-bleed via le template)
 *   .single-stage__hero        bandeau image + overlay + breadcrumb + titre
 *   .single-stage__facts       bande key-facts horizontale (lieu/durée/etc.)
 *   .single-stage__body        grille 2 colonnes : contenu principal | aside
 *   .single-stage__section     bloc thématique (programme / niveaux)
 *   .booking-card              card sidebar premium (prix, sessions, CTA)
 *   .single-stage__mobile-bar  barre fixe bas de page mobile (Airbnb-like)
 * ========================================================================= */

/* On masque le bandeau de titre/breadcrumb par défaut du thème (Templaza)
 * sur les fiches stage : le hero ci-dessous fait déjà office d'en-tête
 * complet (fil d'Ariane Accueil / Formations thématiques / Titre + image),
 * donc le bandeau Templaza ferait doublon avec un breadcrumb incomplet. */
body.single-stage .templaza-basic-single-heading,
body.single-stage .templaza-page-heading,
body.single-stage .templaza-breadcrumb-wrapper {
    display: none !important;
}

.single-stage {
    --ss-navy: #0d2235;
    --ss-navy-soft: #1c4ea4;
    --ss-gold: #c9a568;
    --ss-bg-soft: #fafaf7;
    --ss-border: #ece7df;
    --ss-text: #2c3e50;
    --ss-muted: #5a6a7a;

    color: var(--ss-text);
}

/* HERO -------------------------------------------------------------------- */

.single-stage__hero {
    position: relative;
    min-height: 460px;
    background-size: cover;
    background-position: center;
    background-color: var(--ss-navy);
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.single-stage__hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 34, 53, 0.25) 0%, rgba(13, 34, 53, 0.85) 100%);
}

.single-stage__hero-inner {
    position: relative;
    padding: 80px 32px 64px;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.single-stage__breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.single-stage__breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s ease;
}

.single-stage__breadcrumb a:hover { color: #fff; }

.single-stage__breadcrumb-current {
    color: #fff;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-stage__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ss-gold);
    font-weight: 600;
    margin-bottom: 14px;
    padding-left: 36px;
    position: relative;
}

.single-stage__eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 26px;
    height: 1px;
    background: var(--ss-gold);
}

.single-stage__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
    line-height: 1.1;
    margin: 0;
    color: #fff;
    font-weight: 700;
    max-width: 900px;
}

/* Chapeau = description courte du stage (champ ACF short_description) */
.single-stage__lead {
    margin: 18px 0 0;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* KEY FACTS BAND ---------------------------------------------------------- */

.single-stage__facts {
    background: #fff;
    border-bottom: 1px solid var(--ss-border);
}

.single-stage__facts-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.single-stage__fact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.single-stage__fact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ss-bg-soft);
    color: var(--ss-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-stage__fact-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ss-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.single-stage__fact-value {
    display: block;
    font-size: 15px;
    color: var(--ss-navy);
    font-weight: 600;
    line-height: 1.3;
}

.single-stage__fact-value small {
    color: var(--ss-muted);
    font-weight: 500;
    margin-left: 4px;
}

.single-stage__fact-sub {
    display: block;
    font-size: 13px;
    color: var(--ss-muted);
    font-weight: 500;
    line-height: 1.3;
    margin-top: 2px;
}

a.single-stage__fact-link {
    text-decoration: none;
    transition: color 0.15s ease;
}

a.single-stage__fact-link:hover {
    color: var(--ss-navy-soft);
}

/* BODY (grille 2 colonnes) ------------------------------------------------ */

.single-stage__body {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 32px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 64px;
    align-items: start;
}

.single-stage__main > .single-stage__section + .single-stage__section {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--ss-border);
}

.single-stage__section--alt {
    /* placeholder pour rythme visuel — pas d'override pour l'instant */
}

.single-stage__section-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ss-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.single-stage__section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.2;
    color: var(--ss-navy);
    margin: 0 0 28px;
    font-weight: 700;
}

/* Section "contenu libre" — le post_content du stage rendu par Elementor.
 * Olivier compose ce bloc à sa main (titre, programme, paragraphes, etc.).
 * On laisse Elementor gérer son propre layout sans surcharge ; les quelques
 * règles ci-dessous ne sont qu'un fallback si le contenu est saisi via
 * l'éditeur Gutenberg classique (sans Elementor). */

.single-stage__section--content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ss-text);
}

.single-stage__section--content p {
    margin: 0 0 14px;
}

.single-stage__section--content ul,
.single-stage__section--content ol {
    padding-left: 22px;
}

/* Niveaux FFV — accordion -------------------------------------------------- */

.single-stage__levels-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.single-stage__levels-accordion > li {
    background: #fff;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-stage__levels-accordion > li:hover {
    border-color: #d8d0bf;
}

.single-stage__levels-accordion > li.uk-open {
    border-color: var(--ss-navy);
    box-shadow: 0 8px 28px rgba(13, 34, 53, 0.08);
}

.single-stage__level-head.uk-accordion-title {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    color: var(--ss-navy);
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s ease;
}

.single-stage__level-head.uk-accordion-title::before {
    /* Override du chevron UIkit pour le placer à droite et garder la couleur navy */
    content: "";
    margin-left: auto;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d2235' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 6 8 10 12 6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s ease;
    order: 99;
}

.single-stage__levels-accordion > li.uk-open .single-stage__level-head::before {
    transform: rotate(180deg);
}

.single-stage__level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ss-navy);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.single-stage__level-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--ss-navy);
}

.single-stage__level-content {
    padding: 0 26px 26px 26px;
    color: var(--ss-text);
    font-size: 15px;
    line-height: 1.7;
}

.single-stage__level-sub {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ss-gold);
    font-weight: 600;
    margin: 0 0 14px;
}

.single-stage__level-rich p {
    margin: 0 0 12px;
}

.single-stage__level-rich p:last-child {
    margin-bottom: 0;
}

/* SIDEBAR — booking-card --------------------------------------------------- */

.single-stage__sidebar {
    position: sticky;
    top: 24px;
}

.booking-card {
    background: #fff;
    border: 1px solid var(--ss-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(13, 34, 53, 0.08);
}

.booking-card__price-header {
    background: linear-gradient(135deg, var(--ss-navy) 0%, #14304a 100%);
    color: #fff;
    padding: 22px 26px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.booking-card__price-from {
    font-size: 13px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
}

.booking-card__price-amount {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.booking-card__price-amount small {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-left: 4px;
}

.booking-card__body {
    padding: 24px 26px 26px;
}

.booking-card__sessions-title {
    font-size: 14px;
    color: var(--ss-navy);
    margin: 0 0 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.booking-card__sessions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.booking-card__session {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1.5px solid var(--ss-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.booking-card__session input[type="radio"] {
    margin-top: 2px;
}

.booking-card__session:hover {
    border-color: var(--ss-navy-soft);
    background: #fafcfe;
}

.booking-card__session input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--ss-navy);
    width: 16px;
    height: 16px;
}

.booking-card__session:has(input:checked) {
    border-color: var(--ss-navy);
    background: #f5f9fc;
}

.booking-card__session-info {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.booking-card__session-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.booking-card__session-dates {
    font-size: 14px;
    color: var(--ss-navy);
    font-weight: 600;
    white-space: nowrap;
}

.booking-card__session-boat {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ss-muted);
    font-weight: 500;
    line-height: 1.35;
}

.booking-card__session-boat [data-uk-icon],
.booking-card__session-boat [uk-icon] {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--ss-gold);
}

/* Places restantes (rempli par stage.js) */
.booking-card__session-places {
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
}

.booking-card__session.is-full {
    cursor: not-allowed;
    opacity: 0.55;
    background: #f7f8fa;
}

.booking-card__session.is-full:hover {
    border-color: var(--ss-border);
}

.booking-card__session.is-full .booking-card__session-places {
    color: #b42318;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-card__cta:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.booking-card__session-dates span[aria-hidden="true"] {
    margin: 0 4px;
    color: var(--ss-muted);
    font-weight: 400;
}

.booking-card__session-price {
    color: var(--ss-navy);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.booking-card__session-price small {
    font-weight: 500;
    font-size: 11px;
    color: var(--ss-muted);
}

.booking-card__cta {
    width: 100%;
    background: var(--ss-navy);
    color: #fff;
    border: none;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.booking-card__cta:hover,
.booking-card__cta:focus {
    background: var(--ss-navy-soft);
    transform: translateY(-1px);
}

.booking-card__trust {
    list-style: none;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--ss-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-card__trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ss-muted);
}

.booking-card__trust li span[data-uk-icon] {
    color: var(--ss-gold);
}

.booking-card__no-sessions {
    color: var(--ss-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* MOBILE BAR (Airbnb-like) ------------------------------------------------- */

.single-stage__mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid var(--ss-border);
    padding: 12px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(13, 34, 53, 0.08);
}

.single-stage__mobile-bar-price span {
    display: block;
    font-size: 11px;
    color: var(--ss-muted);
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.single-stage__mobile-bar-price strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    color: var(--ss-navy);
    font-weight: 700;
}

.single-stage__mobile-bar-price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--ss-muted);
}

.single-stage__mobile-bar-cta {
    background: var(--ss-navy);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.single-stage__mobile-bar-cta:hover,
.single-stage__mobile-bar-cta:focus {
    background: var(--ss-navy-soft);
}

/* MODAL RÉSERVATION — aligné sur le design des formulaires du site
 * (titre serif, inputs bordés clairs, bouton principal doré). ------------- */

#stage-reservation-modal.uk-modal,
#stage-reservation-modal {
    /* Le conteneur centre le dialog réduit */
}

#stage-reservation-modal .uk-modal-dialog {
    border-radius: 0;
    padding: 26px 30px !important;
    width: 540px !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    /* Hauteur ajustée au contenu (fini le grand vide), scroll interne
     * si ça dépasse l'écran. */
    height: auto !important;
    min-height: 0 !important;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Boutons Annuler / Envoyer : toujours visibles, collés en bas du modal */
#stage-reservation-modal .stage-resa-actions {
    position: sticky;
    bottom: 0;
    margin-top: 20px;
    padding-top: 16px;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 12px;
}

/* Bouton de fermeture (X) bien visible (l'icône UIkit était trop pâle) */
#stage-reservation-modal .uk-modal-close-default {
    color: #0d2235;
    background: #f4f4f2;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    right: 20px;
    transition: background 0.15s ease, color 0.15s ease;
}

#stage-reservation-modal .uk-modal-close-default:hover {
    background: #c9a568;
    color: #fff;
}

#stage-reservation-modal .uk-modal-close-default svg {
    width: 16px;
    height: 16px;
}

#stage-reservation-modal .uk-modal-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    color: #0d2235;
    font-size: 24px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
}

/* Labels masqués visuellement (conservés pour l'accessibilité) — la
 * maquette WPForms du site n'utilise que des placeholders. */
#stage-reservation-modal .uk-form-label {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Champs : grille 2 colonnes propre (Prénom|Nom, Téléphone|Nombre de
 * places), les champs "full" prennent toute la largeur. */
#stage-reservation-modal .stage-resa-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

#stage-reservation-modal .stage-resa-field--full {
    grid-column: 1 / -1;
}

#stage-reservation-modal .uk-select:focus {
    border-color: #c9a568;
    outline: none;
}

@media (max-width: 560px) {
    #stage-reservation-modal .stage-resa-fields {
        grid-template-columns: 1fr;
    }
}

/* Option déjeuner : ligne cliquable sobre, encadrée pour émerger
 * visuellement entre les champs texte sans faire doublon avec les
 * uk-input environnants. */
#stage-reservation-modal .stage-resa-option__label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color .15s, background .15s;
}
#stage-reservation-modal .stage-resa-option__label:hover {
    border-color: #c9a568;
    background: #fff;
}
#stage-reservation-modal .stage-resa-option__text {
    flex: 1;
    font-size: 14px;
}
#stage-reservation-modal .stage-resa-option__price {
    font-weight: 600;
    color: #1F3A5F;
    white-space: nowrap;
}

/* Pages de retour Stripe (confirmé / annulé) — même structure visuelle. */
.page-paiement-stage {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #fafafa;
}
.page-paiement-stage__inner {
    max-width: 560px;
    text-align: center;
}
.page-paiement-stage__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.page-paiement-stage--ok .page-paiement-stage__icon {
    background: #2ea764;
}
.page-paiement-stage--cancel .page-paiement-stage__icon {
    background: #c9a568;
}
.page-paiement-stage__title {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #1F3A5F;
}
.page-paiement-stage__amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F3A5F;
    margin-bottom: 8px;
}
.page-paiement-stage__lead {
    font-size: 1rem;
    color: #444;
    line-height: 1.55;
    margin-bottom: 28px;
}
.page-paiement-stage__cta a {
    min-width: 200px;
}

/* Champs sur une seule ligne : hauteur fixe identique (input texte,
 * email, tel, number, select) pour un alignement parfait quel que soit
 * le type — le champ number ajoutait de la hauteur via son spinner. */
#stage-reservation-modal .uk-input,
#stage-reservation-modal .uk-select {
    box-sizing: border-box !important;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background-color: #fff;
    color: #0d2235;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px;
    line-height: normal;
    padding: 0 16px;
    margin: 0;
    font-size: 15px;
    box-shadow: none;
    vertical-align: top;
    transition: border-color 0.15s ease;
}

/* Neutralise le spinner natif du champ number qui décalait sa hauteur */
#stage-reservation-modal input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

#stage-reservation-modal input[type="number"]::-webkit-outer-spin-button,
#stage-reservation-modal input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#stage-reservation-modal .uk-textarea {
    box-sizing: border-box !important;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #fff;
    color: #0d2235;
    min-height: 130px;
    padding: 12px 16px;
    line-height: 1.4;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.15s ease;
}

#stage-reservation-modal .uk-input::placeholder,
#stage-reservation-modal .uk-textarea::placeholder {
    color: #9aa0a6;
    opacity: 1;
}

#stage-reservation-modal .uk-input:focus,
#stage-reservation-modal .uk-textarea:focus {
    border-color: #c9a568;
    outline: none;
}

#stage-reservation-modal #stage-reservation-summary {
    border-left: 3px solid #c9a568;
    border-radius: 0 !important;
    padding: 14px 16px !important;
    font-size: 13px;
    margin-bottom: 18px !important;
}

/* Bouton principal : doré façon "ENVOYER LE MESSAGE" du site */
#stage-reservation-modal .uk-button-primary,
#stage-reservation-modal #stage-res-submit {
    background: #c9a568;
    color: #fff;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    font-size: 13.5px;
    height: auto;
    min-height: 48px;
    line-height: 1.2;
    padding: 13px 32px;
    transition: background 0.2s ease;
}

#stage-reservation-modal .uk-button-default {
    height: auto;
    min-height: 48px;
    padding: 13px 26px;
    line-height: 1.2;
    font-size: 13.5px;
}

#stage-reservation-modal .uk-button-primary:hover,
#stage-reservation-modal .uk-button-primary:focus,
#stage-reservation-modal #stage-res-submit:hover,
#stage-reservation-modal #stage-res-submit:focus {
    background: #b88f47;
    color: #fff;
}

/* Bouton secondaire (Annuler / Fermer) : sobre, navy outline */
#stage-reservation-modal .uk-button-default {
    background: transparent;
    color: #0d2235;
    border: 1px solid #d8dde2;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

#stage-reservation-modal .uk-button-default:hover {
    border-color: #0d2235;
    color: #0d2235;
}

/* RESPONSIVE -------------------------------------------------------------- */

/* Une colonne selon la largeur réelle de la fiche, pas de l'écran : le
 * conteneur Templaza est étroit (609px pour un écran de 1009px), et la carte
 * de 400px n'y laissait que ~80px au programme.
 * minmax(0, 1fr) et non 1fr : sinon la colonne s'élargit à la largeur
 * minimale de son contenu et le texte sort de l'écran à droite. */
article.single-stage {
    container: stage / inline-size;
}

@container stage (max-width: 1000px) {
    .single-stage__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    /* Prix + choix de session avant le programme. */
    .single-stage__sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 1024px) {
    .single-stage__facts-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .single-stage__title {
        font-size: 40px;
    }
}

@media (max-width: 960px) {
    /* Bandeau d'en-tête Templaza : on ne garde que la hauteur du header
     * (topbar 73px + header 104px) — son fil d'Ariane double celui du hero
     * et son padding desktop (250px) laissait une grande bande vide. */
    body.single-stage section.section_heading {
        padding: 177px 0 0 !important;
    }

    body.single-stage section.section_heading .templaza-breadcrumb {
        display: none !important;
    }

    body.single-stage .templaza-section:has(article.single-stage) {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Hero pleine largeur. `body` porte aussi la classe single-stage (classe
     * WP du CPT) : toujours cibler `article.single-stage`. */
    article.single-stage {
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    body.single-stage {
        padding-bottom: 76px; /* hauteur de la barre fixe « Réserver » */
    }

    .single-stage__body {
        gap: 32px;
        padding: 28px 20px 40px;
    }

    .single-stage__hero-inner {
        padding: 60px 24px 48px;
    }

    .single-stage__hero {
        min-height: 380px;
    }

    .single-stage__title {
        font-size: 34px;
    }

    .single-stage__section-title {
        font-size: 26px;
    }

    .single-stage__mobile-bar {
        display: flex;
    }

    /* Sur mobile la sidebar redevient inline — on cache le bouton CTA
     * de la card pour éviter le doublon avec la barre fixe en bas. */
    .booking-card__cta {
        display: none;
    }
}

@media (max-width: 600px) {
    .single-stage__facts-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px 20px;
    }

    /* Dates puis prix l'un sous l'autre : côte à côte ils se chevauchaient. */
    .booking-card__session-info {
        flex-direction: column;
        gap: 8px;
    }

    .booking-card__session-dates {
        white-space: normal;
    }

    /* Le titre est juste en dessous : inutile de le répéter tronqué
     * (on masque aussi le « / » qui le précède). */
    .single-stage__breadcrumb-current,
    .single-stage__breadcrumb > span[aria-hidden="true"]:has(+ .single-stage__breadcrumb-current) {
        display: none;
    }

    .single-stage__title {
        font-size: 28px;
    }

    .single-stage__lead {
        font-size: 15.5px;
        margin-top: 12px;
    }

    .single-stage__breadcrumb {
        font-size: 12px;
    }

    .single-stage__level-head.uk-accordion-title {
        padding: 18px 18px;
        gap: 14px;
        font-size: 16px;
    }

    .single-stage__level-name {
        font-size: 16px;
    }
}

/* Sous 480px la topbar Templaza est masquée (.hideonxs) : header seul. */
@media (max-width: 479.98px) {
    body.single-stage section.section_heading {
        padding-top: 104px !important;
    }
}

@media (max-width: 639.98px) {
    .stages-list__items {
        gap: 20px;
    }

    .stage-card__body {
        padding: 20px 20px 22px;
    }

    .stage-card .stage-card__title {
        font-size: 21px !important;
    }

    .stages-list__count {
        font-size: 19px;
    }
}

/* ------------------------------------------------------------------
 * Calendrier du filtre — page croisière
 * ------------------------------------------------------------------
 * Vanilla-calendar-pro 2.9.10 par défaut :
 *  - `.vanilla-calendar` est en `display:flex; flex-direction:column;
 *    width: fit-content`,
 *  - `.vanilla-calendar-grid` est en `display:flex; flex-wrap:wrap`.
 *
 * Le markup imprimé par Templaza (gutenberg-blocks/advanced-products-filter)
 * pose un `style="width: 100%;"` inline sur `#calendar-filter-view`, qui
 * étire le calendrier sur toute la largeur du modal (~600-1200px selon
 * l'écran). Cette largeur extra-large, combinée au flex-wrap par défaut,
 * provoque deux choses :
 *  1. les 2 mois s'empilent verticalement au lieu de rester côte-à-côte,
 *  2. la grille s'étale dans le modal et laisse de larges marges blanches
 *     à gauche/droite du calendrier (fond modal qui transparaît).
 *
 * On rétablit le rendu naturel de la lib en :
 *  - neutralisant le `width: 100%` inline (→ `fit-content`),
 *  - centrant le calendrier dans le modal,
 *  - forçant `nowrap` sur la grille pour garantir 2 mois côte-à-côte.
 */
#calendar-filter-modal #calendar-filter-view {
    width: -moz-fit-content !important;
    width: fit-content !important;
    margin-left: auto;
    margin-right: auto;
    /* Cohérence dark navy : le thème dark est forcé côté JS via
     * `settings.visibility.theme = 'dark'` (custom.js). La lib applique
     * alors nativement son fond rgb(15,23,42), ses flèches blanches et
     * ses couleurs de texte/hover. Plus rien à overrider ici côté CSS. */
}

#calendar-filter-modal .vanilla-calendar-grid {
    flex-wrap: nowrap;
}

/* Mobile : 2 mois côte-à-côte ne tiennent pas → on autorise le wrap pour
 * retomber sur un mois par ligne. Seuil ~640px = largeur naturelle du
 * `.vanilla-calendar_multiple` (550px) + marges du modal. */
@media (max-width: 640px) {
    #calendar-filter-modal .vanilla-calendar-grid {
        flex-wrap: wrap;
    }
}

/* ------------------------------------------------------------------
 * Reset des styles Elementor Kit sur les <button> du calendrier
 * ------------------------------------------------------------------
 * La page croisière est construite avec Elementor, qui charge un CSS
 * « kit » (post-18333.css) avec une règle qui style TOUS les <button>
 * de la page :
 *
 *   .elementor-kit-18333 button { padding:18px 30px; font:14px Manrope
 *   bold uppercase; background-color:#D7B084 (beige); border-radius:0 }
 *
 * Vanilla-calendar-pro utilise des <button> pour chaque date et pour
 * les flèches de navigation. Ces boutons héritent silencieusement de :
 *  - `padding: 18px 30px`     → cellules énormes, espacement aberrant
 *  - `background-color: beige` → masqué seulement sur les dates (la lib
 *    a la spécificité pour gagner), mais visible sur les en-têtes
 *    « MAI 2026 » / « JUIN 2026 » dans les screenshots.
 *  - `font-family/transform/size` → polices et tailles incohérentes.
 *
 * Sur `single-boat.php`, Elementor n'est pas chargé → calendrier OK.
 * Sur la page croisière, c'est cassé. Le fix : neutraliser ces
 * propriétés sur tous les boutons du calendrier et redonner à
 * vanilla-calendar-pro son rendu natif.
 */
#calendar-filter-view button,
#calendar-modal button,
#calendar-view button,
#calendar-view2 button {
    padding: 0;
    background-color: transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    border-radius: 0;
    letter-spacing: normal;
    line-height: normal;
    min-width: 0;
    min-height: 0;
}

/* Boutons des jours : on les laisse transparents (le fond dark navy du
 * calendrier root transparaît dessous) et on les fait remplir leur
 * cellule de grille. C'est le rendu natif de vanilla-calendar-pro —
 * les numéros apparaissent sur le fond uniforme du calendrier, sans
 * « pilule » visible autour de chaque date. Seuls les états hover /
 * selected dessinent un fond, géré nativement par la lib.
 *
 * `!important` est nécessaire pour battre les règles de la lib v2.9.10
 * (par ex. `[data-calendar-theme=dark] .vanilla-calendar-day__btn`,
 * spécificité 0,2,0) sur certaines pages où Elementor ou un autre
 * plugin ajoute encore d'autres couches. */
#calendar-filter-view .vanilla-calendar-day__btn,
#calendar-modal .vanilla-calendar-day__btn,
#calendar-view .vanilla-calendar-day__btn,
#calendar-view2 .vanilla-calendar-day__btn {
    width: 100% !important;
    min-height: 1.875rem;
    border-radius: 0.5rem;
    background-color: transparent !important;
}

/* Les flèches de navigation gardent leur fond transparent (la lib les
 * dessine via background-image, pas via texte). */
#calendar-filter-view .vanilla-calendar-arrow,
#calendar-modal .vanilla-calendar-arrow,
#calendar-view .vanilla-calendar-arrow,
#calendar-view2 .vanilla-calendar-arrow {
    background-color: transparent;
}

/* Header mois/année : on restaure le rendu natif de vanilla-calendar-pro
 * (que le reset générique des <button> ci-dessus écrase via `font-*: inherit`
 * et `padding: 0`). Valeurs reprises de la lib v2.9.10 :
 *   .vanilla-calendar-month, .vanilla-calendar-year {
 *       padding: .25rem; font-size: 1rem; line-height: 1.5rem; font-weight: 700;
 *   }
 * Le `padding: .25rem` est important : il dessine l'espace visuel entre
 * « Mai » et « 2026 » (sans lui, les deux mots se collent). La couleur du
 * texte est gérée nativement par la lib via le thème dark (forcé côté JS). */
#calendar-filter-view .vanilla-calendar-month,
#calendar-filter-view .vanilla-calendar-year,
#calendar-modal .vanilla-calendar-month,
#calendar-modal .vanilla-calendar-year,
#calendar-view .vanilla-calendar-month,
#calendar-view .vanilla-calendar-year,
#calendar-view2 .vanilla-calendar-month,
#calendar-view2 .vanilla-calendar-year {
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
}

@media (max-width: 639px) {
    .ap-btn.ap-register-form {
        width: 100%;
        margin-left: 0; /* annule le uk-margin-small-left sur mobile */
    }
}