/* =====================================================================
   CARTE-CADEAU.CSS — pages de vente des cartes cadeaux
   ---------------------------------------------------------------------
   Chargé par head.php seulement sur les pages de type carte_cadeau,
   moteur_cartecadeau et moteur_cartecadeau2. Le HTML vient des gabarits
   du cœur (template1/include/carte_cadeau_moteur2.php, carte_cadeau.php,
   carte_cadeau/ajax/*.php) et du JS du cœur (js_carte_template1.js,
   js_resa_template1_v1.js) : rien n'est à modifier côté gabarit.

   Neutre : toutes les couleurs viennent des variables du back-office
   (variable_css.php). Réglages communs ci-dessous (--cc-*).

   Parcours : 1. haut de page (photo + participants)  2. cartes à offrir
   3. coordonnées  5. récapitulatif et paiement ; colonne « récap » à
   droite sur ordinateur (sous la liste sur mobile).
   ===================================================================== */

.static-slider10,
#liste_etape,
#etape5 {
    --cc-primaire:        var(--color-success, #198754);
    --cc-primaire-texte:  var(--color-text-bt-succes, #fff);
    --cc-primaire-survol: var(--bg-hover-succes, #146c43);
    --cc-titre:           var(--color-h1, #222);
    --cc-accent:          var(--color-h2, #666);
    --cc-texte:           var(--color-texte-site, #333);
    --cc-fond-doux:       var(--bg-zone-impaire, #f6f4f0);
    --cc-ligne:           rgba(0, 0, 0, .12);
    --cc-rayon:           20px;
    --cc-ombre:           0 12px 32px -20px rgba(0, 0, 0, .35);
    --cc-ombre-haute:     0 24px 60px -30px rgba(0, 0, 0, .5);
    --cc-gouttiere:       16px;
    --cc-largeur:         1200px;
    --cc-espace:          clamp(40px, 6vw, 72px);
}
@media (min-width: 768px) {
    .static-slider10, #liste_etape, #etape5 { --cc-gouttiere: 24px; }
}

/* ---------- États d'origine du moteur (ancienne feuille du template1) ----------
   Le JS du cœur affiche ces blocs au fil du parcours (.show() / display:block). */
#etape3, #etape4,
#recap #produit, #recap #compte_client, #recap #option { display: none; }
.contenu_heure_session { display: none; }
.contenu_heure_session.active, .contenu_heure_session.visible { display: block; }
.clear { clear: both; }

/* Voile pendant les appels AJAX (s'il est présent dans la page) */
#loading { position: fixed; inset: 0; z-index: 2000; display: none; background: rgba(0, 0, 0, .55); }


/* ============ SÉLECTEUR « Carte excursion » / « Carte montant » ============
   Créé par js/carte-cadeau.js en haut de la carte blanche du haut de page,
   seulement si le moteur renvoie des cartes cadeaux montant.
   Mode montant (.cc-mode-montant sur la carte) : le formulaire participants
   est masqué, la liste des cartes montant s'affiche en dessous (#etape2). */
.cc-choix {
    display: flex;
    gap: 4px;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 4px;
    border-radius: 50rem;
    background: var(--bg-zone-impaire, #f6f4f0);
}
.cc-choix__btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    margin: 0;
    padding: .5rem .9rem;
    border: 0;
    border-radius: 50rem;
    background: transparent;
    color: var(--color-h1, #313c54);
    font-family: var(--font-texte);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.cc-choix__btn:hover { background: rgba(255, 255, 255, .7); }
.cc-choix__btn:focus-visible { outline: 2px solid var(--color-h1, #313c54); outline-offset: 2px; }
.cc-choix__btn[aria-pressed="true"],
.cc-choix__btn[aria-pressed="true"]:hover {
    background: var(--color-h1, #313c54);
    color: #fff;
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .6);
}
.cc-choix__aide { display: none; }
.static-slider10 .card.cc-mode-montant .cc-choix__aide {
    display: block;
    margin: 0 0 .25rem;
    color: var(--color-h1, #313c54) !important;
    font-size: 1.05rem;
    font-weight: 500;
    opacity: 1 !important;
}
.cc-mode-montant .text-box > .title,
.cc-mode-montant #form-etape-1 { display: none !important; }
/* Produit sans photo : logo du site sur fond de couleur (js/carte-cadeau.js) */
.cc-visuel,
.card.promenade .card-img-top.cc-visuel {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    width: 100%;
    background: linear-gradient(135deg, var(--color-h1, #313c54), color-mix(in srgb, var(--color-h1, #313c54) 70%, #000));
}
.cc-visuel img,
.card.promenade .cc-visuel img {
    width: auto !important;
    max-width: 62%;
    max-height: 46%;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
    opacity: 1 !important;
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
}
@media (max-width: 400px) {
    .cc-choix__btn { flex-direction: column; gap: .15rem; font-size: .85rem; }
}

/* =========================== 1. HAUT DE PAGE ===========================
   Photo de la page (chargée en fond par charger_photo()), voile sombre,
   titre + chapeau, carte blanche « Participants ». */
.static-slider10 {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: clamp(40px, 7vw, 96px) var(--cc-gouttiere);
    background-color: var(--cc-titre);
    background-size: cover;
    background-position: center;
    opacity: 1 !important;
}
.static-slider10 .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .65));
}
.static-slider10 > .row {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: clamp(20px, 3vw, 28px);
    width: min(100%, 60rem);
    margin: 0;
    padding: 0;
}
.static-slider10 > .row > div { width: 100%; max-width: none; flex: none; margin: 0 !important; padding: 0; }
.static-slider10 h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-titre);
    font-size: clamp(1.9rem, 5vw, 3.25rem);
    line-height: 1.1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.static-slider10 h5,
.static-slider10 h5 p {
    max-width: 42rem;
    margin: 12px auto 0;
    color: #fff;
    font-family: var(--font-texte);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 500;
    line-height: 1.5;
}
.static-slider10 h5 p:last-child { margin-bottom: 0; }

/* Carte « Participants » */
.static-slider10 .card,
#etape3 form,
#etape5 .card {
    border: 0;
    border-radius: calc(var(--cc-rayon) + 4px);
    background: #fff;
    box-shadow: var(--cc-ombre-haute);
    text-align: left;
}
.static-slider10 .card { width: 100%; margin: 0; }
.static-slider10 .card-body { padding: clamp(20px, 3vw, 34px); }
.static-slider10 .card form,
.static-slider10 .text-box { margin: 0 !important; padding: 0 !important; }
.static-slider10 .card .row { gap: 14px 20px; margin: 0; }
.static-slider10 .card .row > [class*="col-"] { flex: 1 1 13rem; max-width: none; width: auto; padding: 0; }
.static-slider10 .card .row > .col-lg-12 { flex-basis: 100%; margin-top: 6px !important; }
.static-slider10 .card .form-group { margin: 0; }


/* =========================== TITRES & CHAMPS =========================== */
.static-slider10 h2.title,
#liste_etape h2.title,
#etape5 h2.title {
    margin: 0 0 10px;
    color: var(--cc-titre);
    font-family: var(--font-titre);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.15;
    text-align: left;
}
#etape3 h2.title { width: 100%; margin-bottom: 20px; padding: 0; text-align: center; }

.static-slider10 label,
#liste_etape label {
    margin-bottom: 6px;
    color: var(--cc-titre);
    font-family: var(--font-texte);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.static-slider10 label + br,
#liste_etape label + br { display: none; }

.static-slider10 .form-control,
#liste_etape .form-control {
    width: 100%;
    min-height: 50px;
    padding: 11px 16px;
    border: 2px solid var(--cc-ligne);
    border-radius: 14px;
    background-color: #fff;
    color: var(--cc-texte);
    font-family: var(--font-texte);
    font-size: 1rem;
    line-height: 1.3;
    box-shadow: none;
}
/* Listes déroulantes (classe Bootstrap 4 .custom-select) : flèche dessinée */
.static-slider10 .custom-select,
#liste_etape .custom-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}
.static-slider10 .form-control:focus,
#liste_etape .form-control:focus {
    border-color: var(--cc-primaire);
    outline: 3px solid color-mix(in srgb, var(--cc-primaire) 35%, transparent);
    outline-offset: 1px;
}
#liste_etape textarea.form-control { min-height: 8rem; }

/* Cases à cocher (données personnelles, CGV) : encadré doux */
#etape3 .form-control:has(.custom-checkbox) {
    min-height: 0;
    padding: 16px 18px;
    border-color: transparent;
    background: var(--cc-fond-doux);
}
#liste_etape .custom-control { display: flex; align-items: flex-start; gap: .6rem; margin-top: .6rem; padding: 0; }
#liste_etape .custom-control-input {
    position: static;
    flex: none;
    width: 1.2rem;
    height: 1.2rem;
    margin: .15rem 0 0;
    opacity: 1;
    z-index: auto;
    accent-color: var(--cc-primaire);
}
#liste_etape .custom-control-label {
    margin: 0;
    color: var(--cc-texte);
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.45;
}
#liste_etape .custom-control-label::before,
#liste_etape .custom-control-label::after { display: none; }
#etape3 a.text-danger { color: var(--cc-primaire) !important; font-weight: 600; text-decoration: underline; }

/* Messages d'erreur du moteur (mettre_form_en_erreur) */
#liste_etape .has-danger .form-control,
#liste_etape .form-control.is-invalid { border-color: #dc3545; }


/* =============================== BOUTONS ===============================
   Ceux du site (couleurs du BO) ; flèche dessinée en CSS à la place de
   l'icône Themify (police non chargée par ce template). */
.static-slider10 .btn,
#liste_etape .btn,
#etape5 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .75rem 1.5rem;
    border-radius: 50rem;
    font-weight: 600;
    white-space: normal;
}
.static-slider10 .btn-block,
#liste_etape .btn-block,
#etape5 .btn-block { display: flex; width: 100%; }
#liste_etape .btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-arrow span { display: inline-flex; align-items: center; gap: .5em; }
.btn-arrow .ti-arrow-right { display: none; }
.btn-arrow span::after { content: "\2192"; font-weight: 700; transition: transform .2s ease; }
.btn-arrow:hover span::after { transform: translateX(3px); }


/* ======================== 2. CARTES À OFFRIR ======================== */
#liste_etape {
    display: flex;
    flex-direction: column;
    gap: var(--cc-espace);
    width: min(100% - 2 * var(--cc-gouttiere), var(--cc-largeur));
    max-width: none;
    margin: var(--cc-espace) auto;
    padding: 0;
}
#liste_etape > #etapes,
#liste_etape > #recap { float: none; width: auto; max-width: none; margin: 0; }
#liste_etape > #etapes { display: contents; }
#liste_etape > #etapes > *,
#liste_etape > .clear { order: 3; }
#liste_etape > #etapes > #etape2 { order: 1; }
#liste_etape > #etapes > *:empty { display: none; }

.feature2 { margin: 0 !important; }
.feature2 .container { max-width: none; padding: 0; }
.feature2 .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: 24px;
    margin: 0 !important;
}
.feature2 .row > .wrap-feature2-box { width: auto; max-width: none; padding: 0; }


.card.promenade {
    position: relative;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--cc-rayon);
    background: #fff;
    box-shadow: var(--cc-ombre);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card.promenade:hover { transform: translateY(-3px); box-shadow: var(--cc-ombre-haute); }
.card.promenade .card-img-top {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0;
    opacity: 1 !important;
    background: var(--cc-fond-doux);
}
.card.promenade .card-body { display: flex; flex-direction: column; padding: 18px 20px 22px; }
.card.promenade .contenu_session { display: flex; flex: 1; flex-direction: column; margin: 0 !important; }
.card.promenade h4 {
    margin: 0;
    color: var(--cc-titre) !important;
    font-family: var(--font-titre);
    font-size: 1.25rem;
    line-height: 1.2;
}
.card.promenade h4 .small:empty { display: none; }
.card.promenade .contenu_heure_session { display: flex !important; flex: 1; flex-direction: column; padding: 0; background: none; }
.card.promenade .contenu_heure_session > div { margin: 12px 0 18px !important; }
.card.promenade .text_tarif { color: var(--cc-primaire) !important; font-size: 1.1rem; font-weight: 700 !important; }
.card.promenade .contenu_heure_session > a,
.card.promenade .contenu_heure_session > form { margin-top: auto; }
/* « Plus d'infos » : pastille sur la photo */
.card.promenade .bt_detail {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2 !important;
    margin: 0;
    padding: .45rem .9rem;
    font-size: .85rem;
    cursor: pointer;
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5);
}
/* Carte choisie : liseré et coche */
.card.promenade.active { outline: 3px solid var(--cc-primaire); outline-offset: -3px; }
.card.promenade.active::after {
    content: "\f00c";
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cc-primaire);
    color: var(--cc-primaire-texte);
    font: 900 1rem/1 "Font Awesome 6 Free";
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4);
}


/* ================== RÉCAPITULATIF (carte, options, client) ==================
   Sous la liste des cartes sur mobile ; colonne de droite qui suit le
   défilement sur ordinateur, dès qu'une carte est choisie. */
#recap { order: 2; display: flex; flex-direction: column; gap: 16px; position: static; inset: auto; padding: 0; }
#recap:not(:has(> .card[style*="block"])) { display: none; }
#recap > .card { margin: 0; }
@media (min-width: 992px) {
    #liste_etape:has(#recap > .card[style*="block"]) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 19rem;
        column-gap: 32px;
        row-gap: var(--cc-espace);
        align-items: start;
    }
    #liste_etape:has(#recap > .card[style*="block"]) > #etapes > *,
    #liste_etape:has(#recap > .card[style*="block"]) > .clear { grid-column: 1; }
    #liste_etape:has(#recap > .card[style*="block"]) > #recap {
        grid-column: 2;
        grid-row: 1 / span 4;
        position: sticky;
        top: 24px;
    }
}
#recap .card {
    overflow: hidden;
    border: 2px solid var(--cc-primaire);
    border-radius: var(--cc-rayon);
    background: #fff;
    box-shadow: var(--cc-ombre);
}
#recap .card-header { padding: 12px 18px; border: 0; border-radius: 0; background: var(--cc-primaire); }
#recap .card-header h4 {
    margin: 0 !important;
    color: var(--cc-primaire-texte) !important;
    font-family: var(--font-texte);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: left !important;
    text-transform: uppercase;
}
#recap .card-header h4::before { content: "\f00c"; margin-right: 8px; font: 900 .9em/1 "Font Awesome 6 Free"; }
#recap .card-body { padding: 16px 18px 18px; text-align: left !important; }
#recap .card-text,
#recap .card-text p { margin: 0 0 14px; color: var(--cc-texte); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
#recap .card-text hr { display: none; }
/* « Modifier » : bouton secondaire */
#recap .btn-success {
    --bs-btn-bg: #fff;
    --bs-btn-color: var(--cc-titre);
    --bs-btn-border-color: var(--cc-ligne);
    --bs-btn-hover-bg: var(--cc-fond-doux);
    --bs-btn-hover-color: var(--cc-titre);
    --bs-btn-hover-border-color: var(--cc-titre);
    border-width: 2px;
}


/* ======================== 3. COORDONNÉES ======================== */
#etape3 { background: none; }
#etape3 > #ajax-etape3 > .container { max-width: none; padding: 0; }
#etape3 > #ajax-etape3 > .container > .row { margin: 0; }
#etape3 .participant { padding-top: 0; background: none; }
#etape3 form { margin: 0; padding: clamp(20px, 3vw, 32px) clamp(8px, 2vw, 20px); }
#etape3 form > [class*="col-"] { margin-bottom: 18px !important; }


/* ================== FENÊTRES (plus d'infos, CGV, RGPD) ==================
   Balisage Bootstrap 4 du cœur, affiché avec le CSS Bootstrap 5 du site. */
#liste_etape .modal-dialog { width: auto; max-width: min(100% - 24px, 60rem); margin: 12px auto; }
@media (min-width: 768px) { #liste_etape .modal-dialog { max-width: min(100% - 64px, 60rem); margin-block: 32px; } }
#liste_etape .modal-content { position: relative; overflow: hidden; border: 0; border-radius: calc(var(--cc-rayon) + 4px); box-shadow: var(--cc-ombre-haute); }
#liste_etape .modal-header { align-items: center; gap: 12px; border-bottom: 1px solid var(--cc-ligne); }
#liste_etape .modal-title,
#liste_etape .modal-bg h2 {
    margin: 0;
    color: var(--cc-titre);
    font-family: var(--font-titre);
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.2;
    text-align: left !important;
}
#liste_etape .modal-body { color: var(--cc-texte); overflow-wrap: anywhere; }
#liste_etape .modal-header .close {
    margin: 0 0 0 auto;
    padding: 0 .25rem;
    border: 0;
    background: none;
    color: var(--cc-titre);
    font-size: 2rem;
    line-height: 1;
    opacity: .7;
}
#liste_etape .modal-header .close:hover { opacity: 1; }
#liste_etape .modal-footer { border-top: 1px solid var(--cc-ligne); }
#liste_etape .custom-modal .carousel-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 1 !important; }
#liste_etape .custom-modal .slider-control.hide { display: none; }
#liste_etape .custom-modal .carousel-indicators { margin-bottom: .75rem; padding: 0; list-style: none; }
#liste_etape .custom-modal .carousel-indicators li {
    width: 26px;
    height: 4px;
    margin: 0 3px;
    border-radius: 2px;
    background: #fff;
    opacity: .5;
    cursor: pointer;
}
#liste_etape .custom-modal .carousel-indicators li.active { opacity: 1; }
#liste_etape .custom-modal .carousel-indicators li:only-child { display: none; }
#liste_etape .modal-bg { padding: clamp(20px, 3vw, 34px); background: #fff; color: var(--cc-texte); line-height: 1.6; }
#liste_etape .modal-bg > div { margin-top: 14px !important; }
#liste_etape .custom-modal .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--cc-titre);
    font-size: 1.75rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5);
}


/* ================== 5. RÉCAPITULATIF ET PAIEMENT ==================
   Gabarit du cœur carte_cadeau/ajax/generer_recapitulatif_carte.php :
   deux cartes (carte cadeau, tarifs), encadrés doux, total en évidence,
   bouton de paiement pleine largeur. */
#etape5 { width: min(100% - 2 * var(--cc-gouttiere), var(--cc-largeur)); margin: var(--cc-espace) auto !important; }
#etape5 > #ajax-etape5 > .container { max-width: none; padding: 0; }
#etape5 .row { margin: 0; }
#etape5 .row > .col-md-12 { padding: 0; text-align: left; }
#etape5 h3.subtitle {
    display: inline-flex;
    margin: 10px 0 0;
    padding: 6px 14px;
    border-radius: 50rem;
    background: var(--cc-fond-doux);
    color: var(--cc-titre);
    font-family: var(--font-texte);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
#etape5 #recapitulatif {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 24px;
    margin-top: 28px;
}
#etape5 #recapitulatif > .wrap-feature3-box { width: auto; max-width: none; padding: 0; }
#etape5 #recapitulatif > form { display: none; }   /* champs cachés du dossier */
#etape5 .card { height: 100%; margin: 0; border: 2px solid var(--cc-ligne); box-shadow: var(--cc-ombre); }
#etape5 .card-body { display: block; padding: clamp(20px, 3vw, 32px); }
#etape5 .icon-space,
#etape5 h5 .ti-arrow-right { display: none; }
#etape5 .card-body > .align-self-center { width: 100%; }
#etape5 h5 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--cc-titre);
    font-family: var(--font-titre);
    font-size: 1.35rem;
    line-height: 1.2;
}
#etape5 h5::before {
    content: "\f06b";
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--cc-primaire);
    color: var(--cc-primaire-texte);
    font: 900 1.1rem/1 "Font Awesome 6 Free";
}
#etape5 .card:has(.btn-total) h5::before { content: "\f153"; }
#etape5 .card p { margin: 0; color: var(--cc-texte); line-height: 1.55; overflow-wrap: anywhere; }
#etape5 .card p > br:first-child { display: none; }
#etape5 [style*="color"],
#etape5 [style*="text-align"] { color: var(--cc-titre) !important; text-align: left !important; }
#etape5 .fieldset,
#etape5 fieldset {
    margin: 18px 0 0;
    padding: 14px 18px 16px;
    border: 0;
    border-radius: 16px;
    background: var(--cc-fond-doux);
    color: var(--cc-texte);
}
#etape5 .fieldset legend,
#etape5 fieldset legend {
    float: none;
    width: auto;
    margin: 0 0 4px;
    padding: 0;
    background: none;
    color: var(--cc-titre);
    font-family: var(--font-texte);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
#etape5 .btn-total {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 22px;
    padding-top: 16px;
    border-top: 2px solid var(--cc-ligne);
    color: var(--cc-titre);
    font-family: var(--font-titre);
    font-size: 1.3rem;
    font-weight: 700;
}
#etape5 .btn-total * { color: inherit !important; }


/* ============================ PETITS ÉCRANS ============================ */
@media (max-width: 575.98px) {
    .static-slider10 .card .row > [class*="col-"] { flex-basis: 100%; }
    .card.promenade .card-body { padding: 16px 16px 18px; }
    #etape3 form { padding-inline: 4px; }
    #liste_etape .modal-dialog { max-width: calc(100% - 16px); margin: 8px auto; }
}
/* Pas de barre « Réservation en ligne » fixe en bas sur mobile : elle
   détournerait de l'achat en cours et masquerait le bouton de paiement. */
@media (max-width: 991.98px) {
    #bt_resa_mobile { display: none !important; }
    #main-wrapper { padding-bottom: 0; }
}


/* ====================== OPTIONS DE LA CARTE (#etape_option) ======================
   HTML du cœur (/carte_cadeau/ajax/afficher_option_carte.php) : tableau
   avec styles en ligne. Mis en forme ici en encadré blanc : groupe
   d'options en bandeau doux, une ligne par choix (nom · prix · quantité),
   total en pied. js/carte-cadeau.js retire les « (Pour ) » vides. */
#etape_option .feature2 {
    margin-top: 32px !important;
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--cc-rayon);
    background: #fff;
    box-shadow: var(--cc-ombre);
}
#etape_option .feature2 .row { display: block; margin: 0 0 18px !important; }
#etape_option .feature2 .row > [class*="col-"] { width: auto; max-width: none; padding: 0; text-align: left !important; }
#etape_option .label {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--cc-accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
#etape_option h2.title { margin: 0; color: var(--cc-titre); }

#etape_option .table_formulaire {
    width: 100%;
    margin: 0 0 22px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--cc-texte);
}
#etape_option .table_formulaire td,
#etape_option .table_formulaire th {
    padding: 14px 10px;
    border-bottom: 1px solid var(--cc-ligne);
    vertical-align: middle;
}
#etape_option .table_formulaire td > span[style],
#etape_option .table_formulaire td > span { margin: 0 !important; }
/* Bandeau du groupe d'options (« Nos menus ») */
#etape_option .table_formulaire td[colspan] {
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--cc-fond-doux) !important;
    font-size: 1rem !important;
}
#etape_option .table_formulaire tbody tr:has(td[colspan]) + tr td { border-top: 0; }
#etape_option .info_option { color: var(--cc-titre); font-size: 1.05rem; }
#etape_option .lib_info_part {
    display: block;
    margin-top: 2px;
    color: var(--cc-accent) !important;
    font-size: .9rem;
}
#etape_option .lib_info_part:empty { display: none; }
#etape_option .table_formulaire td > br { display: none; }
#etape_option .table_formulaire td > span + span[style*="font-size"] {
    display: block;
    margin-top: 2px !important;
    color: var(--cc-accent);
}
/* Colonne prix, colonne quantité */
#etape_option .table_formulaire td:nth-child(2):not([colspan]) { text-align: right; white-space: nowrap; color: var(--cc-titre); }
#etape_option .table_formulaire td:nth-child(3) { width: 1%; padding-right: 0; text-align: right; }
#etape_option select.spinner {
    appearance: none;
    -webkit-appearance: none;
    min-width: 84px;
    height: 44px;
    padding: 0 36px 0 14px;
    border: 2px solid var(--cc-ligne);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 11px 7px;
    color: var(--cc-texte);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
#etape_option select.spinner:focus {
    border-color: var(--cc-primaire);
    outline: 3px solid color-mix(in srgb, var(--cc-primaire) 35%, transparent);
    outline-offset: 1px;
}
/* Bouton « i » (plus d'infos sur l'option) */
#etape_option .table_formulaire .btn-info.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 0 0 8px !important;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cc-primaire);
    color: var(--cc-primaire-texte);
    font-size: .85rem;
    vertical-align: middle;
}
/* Encadré « Options sélectionnées » : total séparé des quantités */
#option .cc-total-option {
    display: block;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--cc-ligne);
    color: var(--cc-titre);
}
#option .cc-total-option:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* Prix compris (0 €) : « Inclus dans le prix » */
#etape_option .cc-inclus {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50rem;
    background: var(--cc-fond-doux);
    color: var(--cc-accent);
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}
#etape_option tfoot .cc-inclus,
#etape_option tfoot th.cc-zero .cc-prix { display: none; }
#etape_option tfoot th.cc-zero .cc-inclus { display: inline-block; }
/* Total : séparé des quantités par un trait et de l'air */
#etape_option .table_formulaire tbody tr:last-child td { border-bottom: 0; padding-bottom: 22px; }
#etape_option .table_formulaire tfoot th {
    padding-top: 22px;
    border-top: 2px solid var(--cc-ligne);
    border-bottom: 0;
    color: var(--cc-titre);
    font-size: 1.05rem;
    font-weight: 700;
}
#etape_option .table_formulaire tfoot th:nth-child(2) { text-align: right; white-space: nowrap; }
#etape_option .table_formulaire tfoot th:nth-child(3) { text-align: right; color: var(--cc-accent); font-weight: 600; }
#etape_option .btn-block { margin: 0 !important; }
@media (max-width: 575.98px) {
    #etape_option .table_formulaire td,
    #etape_option .table_formulaire th { padding: 12px 6px; }
    #etape_option select.spinner { min-width: 72px; }
}
