/* CALENDRIER DE RESERVATION — FEUILLE PARTAGEE
   ===========================================================================
   Le module sert deux pages : la croisiere promenade (croisieres/) et les
   fiches produit du nouveau gabarit. Sa mise en forme vivait dans la feuille
   de la premiere, ou elle est nee, et ses reglages dans celle des secondes —
   chacune prefixee par l'identifiant de sa page. Un meme composant habille a
   deux endroits, et injoignable depuis un troisieme.

   Tout est ici desormais, sans prefixe de page : les classes du module
   suffisent a le designer ou qu'il soit rendu.

   DEUX COUCHES, DANS CET ORDRE : la mise en forme de base (ex-
   croisiere_promenade.css), puis les reglages (ex-produit_v2.css) qui la
   corrigent. Ils se departageaient par un identifiant de plus ; ils se
   departagent maintenant par l'ordre, a poids egal. NE PAS REORDONNER.

   La feuille se charge APRES les deux autres (voir includes_header.php).
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. MISE EN FORME DE BASE
   --------------------------------------------------------------------------- */
/* module de reservation (remplace les iframes Beenbiz) */
.bloc_resa_promenade .module_resa {
    max-width: 440px;
    margin: 0 auto;
}
.bloc_resa_promenade .resa_indisponible {
    text-align: center;
    color: #c0392b;
    font-size: 13px;
    margin: 20px 0;
}

/* date + horaire */
.bloc_resa_promenade .module_resa .bloc-date {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
       -ms-flex-pack: center;
     justify-content: center;
    -webkit-box-align: center;
       -ms-flex-align: center;
          align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e3de;
}
.bloc_resa_promenade .module_resa .libelle-date-depart {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 125px;
            flex: 0 0 125px;
    text-align: right;
    color: #666;
}
.bloc_resa_promenade .module_resa .libelle-date-depart:after { content: ' :'; }
.bloc_resa_promenade .module_resa .select-date-depart {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    text-align: left;
}
.bloc_resa_promenade .module_resa .bt-date {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
       -ms-flex-align: center;
          align-items: center;
    gap: 7px;
    background: #f65e46;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
.bloc_resa_promenade .module_resa .bt-date:hover { background: #e04628; }
.bloc_resa_promenade .module_resa .bt-date:before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Crect x='2' y='4' width='16' height='14' rx='2' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M2 8h16' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M6 2v4M14 2v4' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}
.bloc_resa_promenade .module_resa .choix-heure {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
       -ms-flex-align: center;
          align-items: center;
    gap: 8px;
    width: 100%;
    color: #666;
}
.bloc_resa_promenade .module_resa .libelle-horaire {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 125px;
            flex: 0 0 125px;
    text-align: right;
    font-size: 12px;
}
.bloc_resa_promenade .module_resa .select-horaire {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
}
.bloc_resa_promenade .module_resa .aucun-depart {
    font-size: 12px;
    font-style: italic;
    color: #c0392b;
}
.bloc_resa_promenade .module_resa .croisiere-nuit {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
}
.bloc_resa_promenade .module_resa .croisiere-nuit p {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M17 12A7 7 0 1 1 8 3a5.5 5.5 0 0 0 9 9z' fill='%23888780'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: left center;
    padding-left: 18px;
    margin: 0;
    font-size: 11px;
    font-style: italic;
    color: #999;
    line-height: 1.3;
}

/* quantites et total */
.bloc_resa_promenade .module_resa .bloc-prix { margin-top: 14px; }
.bloc_resa_promenade .module_resa .lignes {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 5px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e3de;
}
.bloc_resa_promenade .module_resa .ligne {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
       -ms-flex-align: center;
          align-items: center;
    gap: 5px;
    background: #f5f4f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #666;
}
.bloc_resa_promenade .module_resa .ligne .tarif {
    font-weight: 600;
    color: #283c51;
}
.bloc_resa_promenade .module_resa .ligne .qte {
    margin-left: auto;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
}
.bloc_resa_promenade .module_resa .ligne .qte:focus {
    outline: 2px solid #f65e46;
    outline-offset: 1px;
}
/* OPTIONS PAYANTES — « Planche de charcuteries », etc.

   Memes lignes que les quantites de places, sous un intitule discret : ce sont
   des suppléments facultatifs, ils ne doivent pas se lire comme un tarif de
   plus. Le conteneur reste dans le DOM meme vide (le JS le regarnit au
   changement de prestation) d ou le :not(:empty) sur la gouttiere. */
.bloc_resa_promenade .module_resa .options {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 5px;
}
.bloc_resa_promenade .module_resa .options:not(:empty) { margin-top: 9px; }
.bloc_resa_promenade .module_resa .titre-options {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #86929e;
}
.bloc_resa_promenade .module_resa .ligne-option .qte-option {
    margin-left: auto;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
}
.bloc_resa_promenade .module_resa .ligne-option .qte-option:focus {
    outline: 2px solid #f65e46;
    outline-offset: 1px;
}
.bloc_resa_promenade .module_resa .total-facture {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
       -ms-flex-align: center;
          align-items: center;
    -webkit-box-pack: justify;
       -ms-flex-pack: justify;
     justify-content: space-between;
    padding: 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #283c51;
}
.bloc_resa_promenade .module_resa .total-a-payer {
    font-size: 15px;
    font-weight: 400;
    color: #666;
}
.bloc_resa_promenade .module_resa .bt-reserver {
    width: 100%;
    background: #f65e46;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 15px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: background .15s;
    -o-transition: background .15s;
    transition: background .15s;
}
.bloc_resa_promenade .module_resa .bt-reserver:hover { background: #e04628; }
.bloc_resa_promenade .module_resa .bt-reserver:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* calendrier */
/* ---- Calendrier (fenetre) -------------------------------------------------
   Reprend le vocabulaire visuel du module de reservation : fond creme #f5f4f0,
   filets #e5e3de, accent #f65e46, coins a 8px, texte #283c51 et libelles #666.
   Les jours ne sont plus une grille a filets gris mais des pastilles separees,
   comme les lignes de tarifs du module. */
.modale_calendrier {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10; /* sous le header fixe (12) et le bouton de resa fixe (11) */
    background: rgba(255, 255, 255, .92);
}
.modale_calendrier[hidden] { display: none; }
.modale_calendrier .contenu_calendrier {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    width: 92%;
    max-width: 360px;
    background: #fff;
    border: 1px solid #cacbcd;
    border-radius: 8px;
    padding: 14px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    -webkit-box-shadow: 0 6px 24px rgba(40, 60, 81, .14);
            box-shadow: 0 6px 24px rgba(40, 60, 81, .14);
}
/* Le bouton se pose juste au-dessus du coin de la carte : a l'interieur, il
   tomberait sur la fleche de mois suivant qui occupe deja ce coin. */
.modale_calendrier .fermer_calendrier {
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 1;
    width: 26px;
    height: 26px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 8px;
    color: #666;
    font-size: 17px;
    font-weight: bold;
    line-height: 26px;
    cursor: pointer;
}
.modale_calendrier .fermer_calendrier:hover { background: #f5f4f0; color: #f65e46; }
.modale_calendrier .bloc-calendrier {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.modale_calendrier .bloc-calendrier * {
    font-size: 14px;
    line-height: 1.4;
}
/* barre du mois : une ligne creme arrondie, comme .ligne dans le module */
.modale_calendrier .nav_mois td {
    background: #f5f4f0;
    color: #283c51;
    font-weight: 600;
    vertical-align: middle;
    text-align: center;
    padding: 7px 0;
}
.modale_calendrier .nav_mois td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.modale_calendrier .nav_mois td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.modale_calendrier .nav_mois .nav { padding: 7px 5px; }
.modale_calendrier .nav-bt { width: 44px; }
.modale_calendrier .bt-nav {
    background: none;
    border: none;
    border-radius: 8px;
    color: #283c51;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    width: 26px;
    height: 26px;
    padding: 0;
    cursor: pointer;
}
.modale_calendrier .bt-nav:hover { background: #f65e46; color: #fff; }
.modale_calendrier .bt-nav[disabled] { visibility: hidden; }
/* la cellule qui porte la grille ne garde pas le padding par defaut de td */
.modale_calendrier .bloc-calendrier > tbody > tr:not(.nav_mois) > td { padding: 0; }
.modale_calendrier .contour-calendrier > table {
    width: 100%;
    background: none;
    border-spacing: 4px;
    border-collapse: separate;
    margin-top: 6px;
}
.modale_calendrier td.jour,
.modale_calendrier td.ds,
.modale_calendrier td.dw,
.modale_calendrier td.dn,
.modale_calendrier td.dok {
    border: none;
    border-radius: 8px;
    padding: 0;
}
.modale_calendrier td.jour {
    background: none;
    color: #999;
    font-size: 12px;
    text-align: center;
    padding-bottom: 2px;
}
.modale_calendrier td.dn { background: none; color: #ccc; }
.modale_calendrier td.ds,
.modale_calendrier td.dw {
    background: #f5f4f0;
    color: #283c51;
    cursor: pointer;
}
.modale_calendrier td.ds:hover,
.modale_calendrier td.dw:hover { background: #fcded7; color: #e04628; }
.modale_calendrier td.dok {
    background: #f65e46;
    color: #fff;
    font-weight: 600;
    cursor: default;
}
.modale_calendrier td.soldout {
    background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0%, transparent), color-stop(47%, transparent), color-stop(50%, #e5e3de), color-stop(51%, #e5e3de), color-stop(51.1%, transparent), color-stop(100%, transparent));
    background-image: -o-linear-gradient(left top, transparent 0%, transparent 47%, #e5e3de 50%, #e5e3de 51%, transparent 51.1%, transparent 100%);
    background-image: linear-gradient(to right bottom, transparent 0%, transparent 47%, #e5e3de 50%, #e5e3de 51%, transparent 51.1%, transparent 100%);
}
/* les numeros de jour sont centres dans la pastille (plus de prix en vis-a-vis) */
.modale_calendrier td.jc {
    height: 38px;
    vertical-align: middle;
    text-align: center;
    line-height: 20px;
}
.modale_calendrier td.jc * { line-height: 20px; }
.modale_calendrier td.jc .num {
    display: block;
    text-align: center;
    font-size: 14px;
}

@media only screen and (max-width: 560px) {
    .bloc_resa_promenade .module_resa .libelle-date-depart,
    .bloc_resa_promenade .module_resa .libelle-horaire {
        -ms-flex-preferred-size: 90px;
            flex-basis: 90px;
    }
    .bloc_resa_promenade .module_resa .total-facture { font-size: 18px; }
    .bloc_resa_promenade .module_resa .bt-reserver { font-size: 18px; }
    .modale_calendrier td.jour,
    .modale_calendrier td.ds,
    .modale_calendrier td.dw,
    .modale_calendrier td.dn,
    .modale_calendrier td.dok { padding: 4px 3px; }}

/* ---------------------------------------------------------------------------
   2. REGLAGES
   --------------------------------------------------------------------------- */
/* --- CALENDRIER MAISON ----------------------------------------------------

   Colonnes egales. croisiere_promenade.css donne une hauteur aux cases mais
   aucune largeur : avec border-collapse: separate, le navigateur les calait
   sur leur contenu et les sept colonnes sortaient inegales. table-layout:
   fixed les repartit a parts egales, ce que la feuille de Beenbiz obtenait
   avec width: 14% sur chaque cellule. */
.modale_calendrier .contour-calendrier > table {
	table-layout: fixed;
}

/* Attente pendant un appel au serveur : sans signe, un clic sur une date
   semblait n'avoir aucun effet. On estompe la zone concernee et on neutralise
   les clics, le temps de la reponse. */
.modale_calendrier.chargement .corps_calendrier,
.bloc_resa_promenade .module_resa.chargement .bloc-date,
.bloc_resa_promenade .module_resa.chargement .bloc-prix,
.bloc_resa_promenade .module_resa.chargement .total-facture,
.bloc_resa_promenade .module_resa.chargement .submit {
	opacity: .45;
	pointer-events: none;
	-webkit-transition: opacity 120ms ease-in;
	-o-transition: opacity 120ms ease-in;
	transition: opacity 120ms ease-in;
}
.modale_calendrier.chargement,
.bloc_resa_promenade .module_resa.chargement {
	cursor: progress;
}

/* --- CHOIX DE LA PRESTATION ----------------------------------------------

   Un produit du site peut pointer sur plusieurs catalogues Beenbiz. Quand
   plusieurs sont vendables a la date choisie, la liste s'affiche sous le
   calendrier, dans la modale ; avec un seul, rien de tout cela n'apparait. */
.modale_calendrier .choix_offres:empty { display: none; }
.modale_calendrier .liste-produit {
	list-style: none;
	margin: 14px 0 0 0;
	padding: 14px 0 0 0;
	border-top: 1px solid #e5e3de;
}
.modale_calendrier .liste-produit li { margin-top: 6px; }
.modale_calendrier .liste-produit li:first-child { margin-top: 0; }

/* chaque prestation est un bouton pleine largeur : la cible du clic est
   toute la ligne, pas seulement le texte */
.modale_calendrier .offre {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: baseline;
	    -ms-flex-align: baseline;
	        align-items: baseline;
	gap: 8px;
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #e5e3de;
	border-radius: 8px;
	background: #fff;
	font-family: 'Open Sans','Open Sans secours',sans-serif;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	-webkit-transition: border-color 150ms ease-in, background 150ms ease-in;
	-o-transition: border-color 150ms ease-in, background 150ms ease-in;
	transition: border-color 150ms ease-in, background 150ms ease-in;
}
.modale_calendrier .offre:hover {
	border-color: #f65e46;
	background: #fff6f4;
}
.modale_calendrier .offre .nom {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
	font-weight: 600;
	color: #283c51;
}
.modale_calendrier .offre .horaires {
	color: #86929e;
	white-space: nowrap;
}
.modale_calendrier .offre .prix {
	font-weight: 700;
	color: #f65e46;
	white-space: nowrap;
}
/* LES JOURS OUVERTS ---------------------------------------------------------

   Fond sable et chiffre bleu, orange au survol : les memes teintes que .ds et
   .dw, pour que toutes les cases cliquables se ressemblent. Elles etaient
   orange plein, et le mois entier virait au rouge des que tous les jours
   etaient vendables.

   Rappel hors bundle : la regle d'origine vit dans croisiere_promenade.css,
   que style.min.css ne reconstruit pas. Le :not(.choisi) laisse au jour
   retenu sa mise en avant, ci-dessous, que le survol ne doit pas effacer. */
.modale_calendrier td.dok:not(.choisi) {
	background: #f5f4f0;
	color: #283c51;
	font-weight: 400;
}
.modale_calendrier td.dok:not(.choisi):hover {
	background: #fcded7;
	color: #e04628;
}

/* Le jour retenu est la seule pastille orange du mois : il se detache donc
   sans contour. Celui-ci — une ombre interieure — n'avait de raison d'etre
   que lorsque tous les jours ouverts etaient orange eux aussi et qu'il
   fallait evider celui-la pour l'en distinguer.
   Le chiffre n'a pas sa propre regle : il herite de la cellule. */
.modale_calendrier td.dok.choisi {
	background: #f65e46;
	color: #fff;
	font-weight: 600;
	-webkit-box-shadow: none;
	        box-shadow: none;
}

/* Hauteur des cases du mois. Elle porte aussi bien sur le vrai mois que sur
   la grille d'attente : les deux rendent des <td class="jc">, et c'est ce
   qui garantit que la modale ne change pas de taille quand le mois arrive.
   Rappel hors bundle : la regle d'origine vit dans croisiere_promenade.css. */
.modale_calendrier td.jc { height: 34px; }

/* CALENDRIER EN ATTENTE ----------------------------------------------------

   Meme grille que le vrai mois, aux memes dimensions : la modale s ouvre a sa
   taille definitive au lieu de s afficher plate puis de se deplier quand la
   reponse arrive. Les pastilles respirent doucement — de quoi faire comprendre
   qu on attend, sans que cela s agite. */
.modale_calendrier .squelette .pastille {
	display: block;
	width: 26px;
	height: 26px;
	margin: 0 auto;
	border-radius: 8px;
	background: #ebe9e4;
	-webkit-animation: respiration_calendrier 1.4s ease-in-out infinite;
	        animation: respiration_calendrier 1.4s ease-in-out infinite;
}

/* Les fleches ne menent nulle part tant qu il n y a pas de mois : visibles
   pour tenir la hauteur de la ligne, mais eteintes. */
.modale_calendrier .squelette .bt-nav {
	opacity: .25;
	cursor: default;
}

/* Une animation qui pulse peut gener : on la coupe pour qui l a demande au
   niveau du systeme. La grille reste, elle ne bouge simplement plus. */
@media (prefers-reduced-motion: reduce) {
	.modale_calendrier .squelette .pastille {
		-webkit-animation: none;
		        animation: none;
	}}

/* LE BON CADEAU MASQUE LA DATE ET L'HORAIRE
   ---------------------------------------------------------------------------
   L'attribut hidden ne pese rien tout seul : la regle qui le rend display:none
   vient du navigateur et n'a aucune specificite, tandis que .bloc-date et
   .choix-heure sont poses en flex par croisiere_promenade.css. Coche, la case
   posait donc bien l'attribut sans que rien ne disparaisse a l'ecran.
   Trois identifiants pour repasser devant cette regle-la. */
#resa_horodate [hidden] {
	display: none;
}

/* LE BON CADEAU, AU-DESSUS DES TARIFS
   Les blocs du module n'ont aucune marge : l'espace vient de ce qu'ils
   contiennent. Pose entre l'horaire et les lignes de tarif, celui-ci serait
   donc colle aux deux. On lui donne le pas de 9px deja tenu par les options,
   et seulement quand le catalogue vend un bon cadeau : vide, le conteneur ne
   doit rien occuper. */
#resa_horodate .bon-cadeau:not(:empty) {
	margin: 9px 0;
}
/* La mention de validite se lit, elle n'est pas decorative : 14px et la
   couleur du texte courant, et non le gris des titres d'options. */
#resa_horodate .mention-cadeau {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: #283c51;
}

/* LA CASE ET SON INTITULE SUR LA MEME LIGNE OPTIQUE
   Centrer les deux boites ne suffit pas : dans une ligne de 19px, les lettres
   de 14px reposent plus bas que le milieu de leur boite, et la case, elle,
   est centree sur cette boite — elle parait donc trop haute. D'ou le decalage
   de 2px, et la mise a zero des marges que le navigateur pose de lui-meme et
   qui s'ajoutaient a l'ecart de la ligne. */
#resa_horodate .ligne-cadeau {
	cursor: pointer;
}
#resa_horodate .ligne-cadeau .choix-cadeau {
	flex: none;
	margin: 0;
	position: relative;
	top: 2px;
}

/* LE MOTIF D'UN TARIF EXCEPTIONNEL
   La phrase que Beenbiz attache a une periode de tarif — « Tarif 2027 ».
   Au-dessus des montants, puisqu'elle les explique. */
.motif-tarif-exceptionnel {
	margin-bottom: 5px;
	color: #f65e46;
	font-style: italic;
}
