/*===============================================================================================*/
/*==========================================      Color section      ============================*/
/*===============================================================================================*/
/*
couleur de base
var(--blanc)            rgba(255, 255, 255)
var(--transparent)      rgba(255, 255, 255, 0)
var(--beige)            rgba(255, 237, 191)     #FFEDBF
var(--fond)             rgba(255, 244, 211)     #FFF4D3
var(--gris-pale)        rgba(249, 249, 249)     #f9f9f9
var(--gris-fonce)       rgba(66, 66, 66);       #424242  
var(--back-disable)     rgba(235, 235, 235)
var(--fore-disable)     rgba(176, 176, 176)
var(--or-pale)          rgba(238, 208, 132)     #EDD084
var(--or-fonce)         rgba(227, 179, 49)      #E3B331
var(--noir)             rgba(0, 0, 0)
var(--noir-trans)       rgba(0, 0, 0, 0.7)
var(--ombre)            5px 5px 8px 0px rgba(60, 60, 60, 0.4)
var(--ombre-arrow)      0 2px 4px rgba(0,0,0,0.2)
var(--cards)            rgba(255, 248, 241)

box shadow				5px 5px 8px 0px rgba(60, 60, 60, 0.4)   #3C3C3C
*/
body 
{
    font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
    background-color: var(--fond);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}
html, body
{
  height: 100%;
  overflow: hidden; /* IMPORTANT: empêche le scroll "global" qui cause les effets bizarres */
}
.widget 
{
    background: var(--fond);
    border-radius: 5px;
    box-shadow: var(--ombre);
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}
.step 
{
    display: none;
    padding: 10px;
    text-align: center;
    animation: fadeIn 0.4s ease-in-out forwards;
}
.step.active 
{
    display: block;
}
@keyframes fadeIn 
{
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
h2 
{
    color: var(--or-fonce);
}
input[type="text"],
input[type="email"]
{
    width: 95%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.service-list 
{
    max-height: 725px;
    /*overflow-y: auto;*/
    margin: 30px 0;
    padding: 5px 10px 5px 10px ;
    text-align: left;
}
.service 
{
    background: var(--blanc);
    border: 1px solid rgba(199, 199, 199);
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: var(--ombre);
}
.service:hover 
{
    transform: scale(1.02);
}
/* ===================== SECTION QUESTIONS AVANT RÉSERVATION ===================== */

.questions-wrapper {
    max-width: 750px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    padding: 20px 22px;
    text-align: left;
}

.questions-header h2 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
}

.questions-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--fore-soft, #555);
    line-height: 1.4;
}

.questions-header {
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.question-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--blanc);
    border: 1px solid var(--fore-disable);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.question-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1c568, #f7e0a3);
    color: #403018;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-body {
    flex: 1;
}

.prequestion-text {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
}

.prequestion-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 0.9rem;
    background: #fff;
    user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.choice-pill input[type="radio"] {
    accent-color: #c59b2f; /* doré-ish, optionnel selon support */
}

.choice-pill:hover {
    background: #fff6dd;
    border-color: #c59b2f;
    transform: translateY(-0.5px);
}

.choice-pill-no:hover {
    background: #ffe5e5;
    border-color: #d33;
}

.questions-footer {
    margin-top: 12px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.questions-cta {
    min-width: 160px;
}

.questions-error {
    margin: 0;
    font-size: 0.9rem;
    color: #b00020;
    text-align: center;
}

.questions-empty {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}
.questions-footer-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.questions-cta-secondary {
    min-width: 120px;
}
/* Mobile */
@media (max-width: 600px) {
    .questions-wrapper {
        padding: 15px 14px;
    }

    .question-card {
        flex-direction: row;
    }

    .question-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.8rem;
    }

    .prequestion-choices {
        gap: 6px;
    }

    .choice-pill {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
}

.calendar-nav 
{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}
.calendar-nav button 
{
    width: 40px;
    padding: 8px;
}
.calendar-week 
{
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.calendar-week div 
{
    flex: 1;
    border: 1px solid rgba(199, 199, 199);
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    background: var(--blanc);;
    cursor: pointer;
    margin: 10px;
    box-shadow: var(--ombre);
    transition: transform 0.2s;
}
.calendar-week div:hover
{
    transform: scale(1.09);
}
.calendar-week div.selected 
{
    background: var(--or-pale);
}
.calendar-week div.disabled 
{
    background-color: var(--back-disable);
    cursor: not-allowed;
    color: var(--fore-disable);
    pointer-events: none; /* Désactive le clic */
    box-shadow: none;
}
.slots 
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.slots button:hover
{
    transform: scale(1.09);
}
.slots button 
{
    padding: 8px 12px;
    background: var(--blanc);
    border: 1px solid rgba(199, 199, 199);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    box-shadow: var(--ombre);
    transition: transform 0.2s;
    margin: 10px;
}
.slots button.current-slot 
{
    background: var(--or-fonce);
    color: var(--noir);
}
.confirmation-message 
{
    color: green;
    font-weight: bold;
    font-size: 1.1em;
    padding: 20px;
}
.vertical-center 
{
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.center 
{
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.flex-container 
{
	display: flex;
	flex-direction: row;
}
.banner 
{
    display: flex;
    justify-content: center;  /* centre horizontalement */
    align-items: center;      /* centre verticalement si plusieurs lignes */
    gap: 15px;                /* espace entre texte et bouton */
    background: var(--blanc);
    border: 1px solid rgba(199, 199, 199);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px auto 5px auto;
    text-align: center;
    box-shadow: var(--ombre);
    width: fit-content;       /* s’ajuste au contenu */
    max-width: 90%;           /* évite que ça dépasse sur petits écrans */
}
.flash 
{
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:#eef9f0; border:1px solid #b6e0c2; color:#2e7d32;
  border-radius:8px; padding:10px 14px; margin:10px auto; max-width:900px;
  text-align:center;
}
.flash .actions { display:flex; gap:8px; flex-wrap:wrap; }


button 
{
    padding: 12px 20px;
    background: var(--or-pale);
    border: none;
    border-radius: 5px;
    color: rgba(0, 0, 0);
    cursor: pointer;
    margin-top: 10px;
    width: 120px;
    transition: background-color 0.3s;
}
button.primary 
{
    background: rgba(0, 0, 0, 0.7);
    color: var(--or-pale);
}
button.primary:hover 
{
    background: rgba(0, 0, 0, 1);
    color: var(--or-pale);
}
/*============================ Metal Section ===============================*/
.metallic-gold,
.modal__btn 
{
	text-decoration: none;
	font-size: 15px;
	border-radius:5px;
	border: none;
	cursor: pointer;
	padding:10px 12px;
	transition: 0.6s ease;
	width: auto;

    background: linear-gradient(
        135deg,
        #fff8dc 0%,
        var(--or-pale) 20%,
        var(--or-fonce) 40%,
        #fff8dc 60%,
        var(--or-fonce) 80%,
        #fff8dc 100%
    );
    background-size: 200% 200%;
    color: var(--noir);
    box-shadow: inset 0 1px 0 #ffffff90, inset 0 -1px 0 #00000040, 0 6px 18px rgba(0,0,0,0.25);
    transition: background-position 0.6s ease, box-shadow 0.08s ease, transform 0.08s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.metallic-gold:active,
.metallic-gold.is-pressed 
{
    transform: translateY(2px) scale(0.99);
    box-shadow: inset 0 2px 3px #00000040, inset 0 -1px 0 #ffffff30, 0 2px 6px rgba(0,0,0,0.25);
    background-position: 120% 30%;
}
.metallic-gold:focus-visible 
{
    outline: 2px solid #fff8dc80;
    outline-offset: 2px;
}
.metallic-gold:hover,
.custom-file-upload:hover,
.modal__btn 
{
    background-position: 100% 0;
}
.metallic-black 
{
	text-decoration: none;
	font-size: 15px;
	border-radius:5px;
	border: none;
	cursor: pointer;
	padding:10px 12px;
	transition: 0.6s ease;
	width: auto;

    background: linear-gradient(
        135deg,
        #A8A8A8 0%,
        #6e6e6e 20%,
        #000000 40%,
        #A8A8A8 60%,
        #000000 80%,
        #A8A8A8 100%
    );
    background-size: 200% 200%;
    color: var(--or-pale); /* ton or existant pour bien contraster */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9),inset 0 -1px 0 rgba(0,0,0,0.4), 0 6px 18px rgba(0,0,0,0.25);
    transition: background-position 0.6s ease, box-shadow 0.08s ease, transform 0.08s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.metallic-black:hover 
{
    background-position: 100% 0;
}
.metallic-black:active,
.metallic-black.is-pressed 
{
    transform: translateY(2px) scale(0.99);
    box-shadow: inset 0 2px 3px #00000040, inset 0 -1px 0 #ffffff30, 0 2px 6px rgba(0,0,0,0.25);
    background-position: 120% 30%;
}
.metallic-black:focus-visible 
{
    outline: 2px solid #A8A8A880;
    outline-offset: 2px;
}
.metallic-red 
{
	text-decoration: none;
	font-size: 15px;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	padding: 10px 12px;
	transition: 0.6s ease;
	width: auto;
	
	background: linear-gradient(
		135deg,
    	var(--rouge-pale) 0%,
    	var(--rouge-vif) 20%,
    	var(--rouge-fonce) 40%,
    	var(--rouge-pale) 60%,
    	var(--rouge-fonce) 80%,
    	var(--rouge-pale) 100%
	);
	background-size: 200% 200%;
	color: var(--noir);
	box-shadow: inset 0 1px 0 #ffffff90, inset 0 -1px 0 #00000040, 0 6px 18px rgba(0,0,0,0.25);
	transition: background-position 0.6s ease, box-shadow 0.08s ease, transform 0.08s ease;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.metallic-red:active,
.metallic-red.is-pressed 
{
	transform: translateY(2px) scale(0.99);
	box-shadow: inset 0 2px 3px #00000040, inset 0 -1px 0 #ffffff30, 0 2px 6px rgba(0,0,0,0.25);
	background-position: 120% 30%;
}
.metallic-red:focus-visible 
{
	outline: 2px solid #FFD6D680;
	outline-offset: 2px;
}
.metallic-red:hover 
{
	background-position: 100% 0;
}

/* --- IFRAME: on fixe le viewport du widget et on scrolle seulement le contenu --- */

.slots button.current-slot 
{ 
    background: var(--or-fonce); 
    color: var(--blanc);
    font-weight: bold;
}
.banner
{
    display:flex;
    justify-content:center;
    align-items:center; 
    gap:15px;
    background: var(--blanc);
    border:1px solid rgba(199,199,199);
    border-radius:5px;
    padding:12px 20px;
    margin:15px auto;
    text-align:center;
    box-shadow: var(--ombre);
    width:fit-content;
    max-width:90%;
}
.slots button[disabled]
{
    opacity:.6;
    cursor:not-allowed;
}

/* === Patch responsive pour section calendrier/semaine === */
.calendar-nav 
{
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}
.calendar-week 
{
    gap: 8px;
    padding-bottom: 8px;
}

/* === Variante responsive: dates qui se répartissent sur plusieurs lignes === */
.calendar-week 
{
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    padding-bottom: 8px;
}
.calendar-week .date 
{
    min-width: 0 !important;
}
/* À partir de 992px: garder un alignement hebdo en 7 colonnes */
@media (min-width: 992px) 
{
    .calendar-week 
    {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}
/* Mobile: défilement horizontal, cartes fixes */
@media (max-width: 767.98px) 
{
    .calendar-week 
    {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .calendar-week .date 
    {
        flex: 0 0 auto;
        min-width: 110px; /* tombe bien sur petits écrans */
        scroll-snap-align: start;
    }
    #week-label 
    { 
        font-size: 14px;
    }
}
/* Tablette & +: grille 7 colonnes adaptable */
@media (min-width: 768px) 
{
    .calendar-week 
    {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
    .calendar-week .date 
    {
        min-width: 0;
    }
}
/* Slots: conserver l'ergonomie mobile */
@media (max-width: 480px) 
{
    .slots 
    {
        display: grid; 
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }
    .slots button 
    { 
        width: 90%;
    }
}
/* === Format compact: jour au-dessus de la date (même noeud texte) === */
.calendar-week .date 
{
    white-space: pre-line;
    line-height:1.15;
    text-transform: capitalize;
}
.calendar-week .date::first-line 
{
    font-size: 0.85em;
    color: #666;
}
/* === Fin format compact === */
    
    

/* Le conteneur principal du widget doit être en colonne */
.widget, .widget-container, .reservation-widget, .wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chaque étape doit pouvoir scroller */
.step, .step-content, .section-content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* La barre d'actions reste visible */
.actions-bar, .buttons-bar, .step-actions, .footer-actions {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: var(--fond, #fff);
  padding-bottom: 10px; /* petit confort */
}
*::-webkit-scrollbar {
    width: 12px;
    background: var(--or-pale);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb {

    background: var(--or-fonce);
    border-radius: 4px;
}
/* =========================================================
   TYPOGRAPHIE — Source Sans 3 (douce & très lisible)
   ========================================================= */

/* Texte courant */
body,
p,
span,
li,
label,
input,
textarea,
select,
button {
  font-family: 'Source Sans 3', sans-serif;
}

/* Paragraphes */
p {
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Listes */
ul,
ol,
li {
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.6;
}

/* Collapsible : bouton + contenu */
.collapsible,
.collapsible *,
.content,
.content * {
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.6;
}

/* Tables / cartes / contenus explicatifs */
.table,
.table td,
.table th,
.carte,
.carte p,
.titleExplained {
  font-family: 'Source Sans 3', sans-serif;
}

/* Formulaires */
input,
textarea,
select,
option {
  font-family: 'Source Sans 3', sans-serif;
}


