
@media only screen and (max-width: 800px)  {
    #header-logo
	{
		height: 150px;
		background-size: auto 110px, 100% 100%;
	}

	.newsletter-left-body-panel {
		width: 90vw;
	}

	.newsletter-right-body-panel {
		width: 90vw;
		height: fit-content;
		margin: 0;
	}

	.newsletter-right-body-panel img
	{
		width: 90vw;
		min-width: 320px;
		height: auto;
	}
}

body
{
	background-color: #fff;
}

/* En-tete dans le style du guichet RDDM : logo centre dans un bandeau clair
   qui se fond vers le blanc, filet brun du theme en bas et ombre douce. Le
   selecteur de langue passe sous le bandeau, sur le fond brun du contenu. */
#header-logo
{
	background-color: #ffffff;
	background-image:
		url('/images/paysenhaut/logo.png'),
		linear-gradient(to bottom, #f5ebe7, #ffffff);
	background-size: auto 150px, 100% 100%;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
	height: 200px;
	margin: 0;
	border-bottom: 3px solid var(--color-second-light);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 1;
}

/* Sous le bandeau : le fil d'etapes, sur le brun du contenu. Sur grand ecran,
   le selecteur de langue remonte en haut a droite du bandeau, aligne sur le
   contenu ; sur petit ecran il reste sous le fil, pour ne pas chevaucher le
   logo. */
#breadcrumb-lang-wrapper
{
	background-color: var(--color-second-light);
	padding-top: 16px;
}

@media (min-width: 801px)
{
	#breadcrumb-lang-wrapper .header-body
	{
		position: absolute;
		top: 24px;
		left: 0;
		right: 0;
		z-index: 2;
	}
}

/* ══════════════════════════════════════════
   Fil d'etapes, dans le style du guichet RDDM : numero dans un cercle, libelle
   en capitales, trait entre les etapes. Couleurs inversees pour le fond brun :
   etape courante cerclee de blanc, etapes passees en pastille blanche.
   ══════════════════════════════════════════ */
#breadcrumb
{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 60vw;
	min-width: 0;
	/* Le global plafonne a 800 px : le fil ne s'alignait plus sur le contenu. */
	max-width: none;
	margin: 24px auto 0;
	padding: 0;
	box-sizing: border-box;
}

.breadcrumb_step
{
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.breadcrumb_img_wrap,
.breadcrumb_dot,
.breadcrumb_text_mobile
{
	display: none;
}

.breadcrumb_step p
{
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
}

.breadcrumb_number
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	box-sizing: border-box;
	font-size: var(--font-size-14);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	color: rgba(255, 255, 255, 0.85);
}

.breadcrumb_text
{
	font-size: 0.78rem;
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.6px;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.7);
}

.breadcrumb_separator
{
	flex: 1;
	min-width: 16px;
	width: auto;
	height: 2px;
	margin: 0 12px;
	align-self: center;
	background: rgba(255, 255, 255, 0.3);
}

.breadcrumb_separator img,
.breadcrumb_separator_fill
{
	display: none;
}

.breadcrumb_separator.breadcrumb_separator_active
{
	background: var(--color-main);
}

.breadcrumb_active .breadcrumb_number
{
	border-color: var(--color-main);
	color: var(--color-main);
}

.breadcrumb_active .breadcrumb_text
{
	color: var(--color-main);
}

.breadcrumb_prev_active .breadcrumb_number
{
	border-color: var(--color-main);
	background: var(--color-main);
	color: var(--color-second-light);
}

.breadcrumb_prev_active .breadcrumb_text
{
	color: var(--color-main);
}

@media (max-width: 800px)
{
	#breadcrumb
	{
		width: 90vw;
		margin-top: 8px;
	}

	/* Faute de place, seul le libelle de l'etape courante reste affiche. */
	.breadcrumb_step:not(.breadcrumb_active) .breadcrumb_text
	{
		display: none;
	}
}

#translation_title_home_page,
#translation_title_home_page_,
#translation_title_payment_page
{
	font-size: 36px;
	font-weight: var(--font-weight-medium);
	line-height: 1.15;
	margin-bottom: 25px;
}

@media (max-width: 800px)
{
	#translation_title_home_page,
	#translation_title_home_page_,
	#translation_title_payment_page
	{
		font-size: 28px;
	}
}

#translation_payment_error
{
	color: var(--color-red);
}

#translation_start_comment,
#translation_discover,
#translation_payment_info,
#add-more-card-button,
#footer-links
{
	color: var(--color-second);
}

#footer-links  a
{
	color: var(--color-second);
	text-decoration: none;
	margin-left: 10px;
}

#footer
{
	display:flex;
	justify-content: space-between;
}


#reservation h2
{
	color: var(--color-darker-grey);
}

.card-guest-header
{
	color: var(--color-second-light);
	font-weight: bold;
	margin-bottom: 5px;
}

.card-guest-body
{
	padding-top: 10px;
}

.card-name:focus,
.card-firstname:focus,
.card-birthdate:focus
{
	outline-style: solid;
	outline-color: var(--color-button-primary);
	outline-width: 2px;
}

#download_cards,
#translation_processing_cards_info,
#translation_fail_processing_cards_info,
#translation_fail_processing_cards_info_bold
{
	background-color : var(--color-main);
	color: var(--color-second-light);
}


#card-and-discount
{	
	display: inline;
	background-repeat: no-repeat;
	background-size:  contain;
	background-position: center;
	margin: auto;
	width: 100%;
	height: 200px;
}

.reservation-element
{
	display: flex;
}

.reservation-left
{
	width: 100%;
}

/* "Cartes disponibles" comme sur le guichet RDDM : libelle et chiffre alignes,
   le chiffre sur une pastille claire, et de l'air avant le bouton. */
#available-card-management
{
	border-bottom: 0px solid var(--color-light-blue);
	align-items: center;
	gap: 16px;
	/* Meme largeur que le bouton du dessous (360 px), pour que la pastille
	   s'arrete au meme bord. */
	max-width: 360px;
	margin-bottom: 20px;
}

#available-card-text
{
	margin: 0;
	font-size: 22px;
}

#available-card-quantity
{
	margin: 0;
	min-width: 72px;
	width: auto;
	padding: 6px 16px;
	border-radius: 10px;
	background-color: rgba(255, 255, 255, 0.18);
	font-size: 22px;
	font-weight: var(--font-weight-bold);
}

.action-button, #discover-resort-pass-button
{
	background-color:  var(--color-button-primary);
	border: 0px;
	border-radius: 22px;
	color: white ;
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-20);
	line-height: var(--line-spacing-24);
	text-align: center;
	width: 360px;
	height: 45px;
}

.action-button:hover, #discover-resort-pass-button:hover
{
	background-color:  var(--color-button-hover) !important;
}

#current-lang
{
  color: var(--color-dark-grey);
  font-size: 20px;
  text-transform: uppercase;
  margin-right: 2px;
}


#footer-note
{
	color: red;
	font-family: var(--font-family-roboto);
	font-weight: normal;
}


.content-deliverycards-body #right-panel
{
	background-color: transparent;
}

#translation_discover_region, #footer p
{
	color : #ffffff;
}

#subscribeNews, #subscribeSpecialOffer{
background-color: transparent;
}

/* Fiches des personnes : passage en grille, comme RDDM. Le global met
   .card-guest-content en flex avec .card-guest en `flex: 0 1 29%` ET
   `min-width: 350px` : les fiches ne peuvent pas descendre sous 350 px, donc
   elles debordent de leur colonne et se chevauchent des la deuxieme. La grille
   traite la cause : autant de colonnes que la largeur en autorise, jamais
   moins de 300 px, et une gouttiere reelle au lieu de marges. */
.card-guest-content
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	margin-top: 20px;
	margin-bottom: 20px;
}

.card-guest
{
	min-width: 0;
	margin: 0;
	flex: none;
}

/* Ajout d'une personne : cadre traitille occupant toute la largeur, sous les
   fiches (`grid-column: 1 / -1`, ce qui suppose la grille ci-dessus). Le fond
   de cette section est le brun du theme, donc le cadre est clair et non brun
   comme chez RDDM -- un traitille brun sur brun serait invisible. Le "+" vient
   du CSS : le libelle card_add_person est surcharge sans lui pour ce theme. */
.add-card-plus
{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	grid-column: 1 / -1;
	min-height: 72px;
	padding: 20px;
	border: 2px dashed rgba(255, 255, 255, 0.6);
	border-radius: 8px;
	background: transparent;
	color: var(--color-main);
	font-family: var(--theme-font-family-medium);
	font-size: var(--font-size-16);
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.add-card-plus::before
{
	content: "+";
	font-size: var(--font-size-25);
	line-height: 1;
	flex: 0 0 auto;
}

.add-card-plus:hover
{
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--color-main);
}

/* Etat desactive du bouton d'action. La regle .action-button plus haut est
   chargee apres styles.css : sans ces deux regles elle recouvre le fond gris
   du global, et un bouton desactive est indiscernable d'un bouton actif. */
.disabled-action-button
{
	background-color: var(--color-disable-button);
	cursor: not-allowed;
}

.disabled-action-button:hover
{
	background-color: var(--color-disable-button) !important;
}

/* Coupon introuvable : #noReservation n'a aucune regle, ni ici ni dans le
   global. Le message tombait donc en noir sur le brun, cale a gauche et au ras
   du pied de page. */
#noReservation
{
	max-width: 640px;
	margin: 0 auto;
	padding: 60px 20px 80px;
	text-align: center;
}

#noReservation p
{
	margin: 0;
	color: var(--color-main);
	font-family: var(--theme-font-family-medium);
	font-size: var(--font-size-20);
	line-height: var(--line-spacing-28);
}

@media (max-width: 800px)
{
	.card-guest-content
	{
		grid-template-columns: 1fr;
	}

	.card-guest
	{
		min-width: 0;
		width: 100%;
	}

	/* Le global plafonne .body-panel a 400 px sur telephone : accueil, saisie
	   et chaque fiche (enveloppee dans un .body-panel) restaient plus etroits
	   que l'ecran et que le cadre d'ajout. */
	.body-panel
	{
		width: 100%;
		max-width: none;
	}

	/* Saisie : champs, attestation et bouton Generer sur toute la largeur de
	   la fiche ou de l'ecran, comme le cadre d'ajout et le bouton de l'accueil
	   (le global les tient a 80 %, 300 px et 358 px). */
	.input-field
	{
		width: 100%;
		max-width: none;
	}

	.input-field input,
	.input-field-birthdate .birthdate-input-wrap
	{
		width: auto;
		max-width: none;
	}

	.content-create-card-buttons
	{
		width: 100%;
		min-width: 0;
	}

	#generateButton
	{
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}

	/* Accueil : "Cartes disponibles" et le bouton de depart sont fixes a
	   360 px, plus etroits que le texte au-dessus des 400 px de large. */
	#available-card-management,
	#start-create-card-button
	{
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}

	/* Ecran final : le global cale les panneaux sur 100vw sans tenir compte
	   des marges (texte colle au bord, boutons qui debordent). Une seule
	   gouttiere de 20 px, la meme que l'encart d'envoi par e-mail. */
	.content-deliverycards-body
	{
		width: auto;
		margin: 0 20px;
		gap: 24px;
	}

	.content-deliverycards-body #left-panel,
	.content-deliverycards-body #right-panel
	{
		width: auto;
		min-width: 0;
		margin: 0;
	}

	/* L'encart d'envoi porte .content-card, que le global fixe a 90vw
	   (!important) : il ne s'alignait pas sur les panneaux du dessus. */
	#content-send-card
	{
		width: auto !important;
	}

	#noReservation
	{
		padding: 40px 16px 60px;
		font-size: var(--font-size-18);
	}
}

/* "En savoir plus" : le global ne donne au bouton qu'une hauteur fixe et des
   marges laterales, sans disposition -- l'icone se retrouvait collee au
   libelle. */
.moreinfo-button,
.lessinfo-button
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: auto;
	padding: 7px 16px;
}

.block-button-for-modal
{
	margin-top: 20px;
}

/* Messages de validation : le global les met en rouge vif (#E10B16) et en vert,
   deux teintes saturees illisibles sur le brun du theme. On garde le code
   couleur mais on l'inverse -- texte clair sur une pastille sombre translucide,
   ce qui detache aussi le message du fond. */
.error-banner,
.success-banner
{
	/* block + fit-content : la pastille garde sa largeur de contenu tout en
	   occupant sa propre ligne. En inline-block elle se plaçait a cote du
	   bouton, qui est lui aussi en ligne dans ce conteneur centre au texte. */
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 16px;
	padding: 10px 16px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
	font-family: var(--theme-font-family-medium);
}

.error-banner
{
	color: #FFD2CB;
}

.success-banner
{
	color: #C8F0BF;
}

.error-banner p,
.success-banner p
{
	margin: 0;
}

/* Ecran final : le conteneur des deux actions secondaires n'est mis en flex
   que par les themes demo et rddm ; ailleurs il reste un bloc, et `order`
   n'aurait aucun effet. On le passe en flex, ce qui aligne les deux boutons et
   permet de mettre l'envoi par mail avant le telechargement PDF sans toucher
   au composant partage : DeliveryCardsView rend le PDF en premier et l'ordre
   de cardDeliveryMethods n'a aucune influence sur le rendu.
   Reserve assumee : l'ordre du DOM reste PDF puis mail, donc un lecteur
   d'ecran annonce encore le PDF en premier. */
/* Les deux actions sont presentees en tuiles cote a cote, grande icone au-dessus
   du libelle : la regle .action-button du theme (360 x 45 px) les rendait en
   pastilles trop etroites pour "Envoyer les Pass par e-mail", qui passait sur
   deux lignes et debordait. Dans une tuile, le libelle peut passer a la ligne. */
.action-buttons-secondary
{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	max-width: 560px;
	margin-top: 32px;
}

.action-buttons-secondary .action-button,
.action-buttons-secondary .disabled-action-button
{
	width: 100%;
	height: auto;
	min-height: 120px;
	padding: 20px 16px;
	border-radius: 16px;
	font-size: var(--font-size-18);
	line-height: 1.3;
	/* Sans equilibrage, "par e-mail" se coupait au tiret ("e-" / "mail"). */
	text-wrap: balance;
}

.action-buttons-secondary .action-button-inner
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.action-buttons-secondary .action-button-icon
{
	display: inline-flex;
}

.action-buttons-secondary .action-button-icon svg
{
	width: 32px;
	height: 32px;
}

/* L'envoi par mail est l'action principale : fond noir du theme, comme les
   autres boutons principaux. Le PDF devient secondaire, en contour blanc. */
#send_cards
{
	order: -1;
}

.action-buttons-secondary .action-button:not(#send_cards)
{
	background-color: transparent;
	border: 2px solid var(--color-main);
	color: var(--color-main);
}

.action-buttons-secondary .action-button:not(#send_cards):hover
{
	background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Petit ecran : les tuiles redeviennent des boutons pleine largeur empiles,
   icone a gauche du libelle. */
@media (max-width: 600px)
{
	.action-buttons-secondary
	{
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 24px;
	}

	.action-buttons-secondary .action-button,
	.action-buttons-secondary .disabled-action-button
	{
		min-height: 52px;
		padding: 12px 20px;
		border-radius: 26px;
		font-size: var(--font-size-16);
	}

	.action-buttons-secondary .action-button-inner
	{
		flex-direction: row;
		gap: 10px;
	}

	.action-buttons-secondary .action-button-icon svg
	{
		width: 20px;
		height: 20px;
	}
}

/* Le brun de #content s'arretait sous le contenu : sur un ecran final court,
   la moitie basse de la page restait blanche. La page devient une colonne
   dont le contenu occupe toute la hauteur restante sous l'en-tete. */
body
{
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#content
{
	flex: 1;
	display: flex;
	flex-direction: column;
}

#content .body-content
{
	flex: 1;
}

/* Newsletter : encart blanc detache du fond brun, pour qu'on ne le confonde
   pas avec la remise des Pass. La regle plus haut le rendait transparent. La
   case et ses deux lignes avaient le meme style : libelle appuye, accroche en
   dessous plus petite et attenuee. */
.content-deliverycards-body #right-panel
{
	align-self: flex-start;
	padding: 24px 28px;
	border-radius: 16px;
	background-color: var(--color-main);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	color: var(--color-darker-grey);
}

.content-deliverycards-body #right-panel h2
{
	margin-top: 0;
	color: var(--color-second-light);
}

#content-newsletter label
{
	color: var(--color-darker-grey);
}

#translation_checkbox_newsletter_text
{
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
}

#content-newsletter .newsletter-special-offer
{
	font-size: var(--font-size-14);
	opacity: 0.8;
}

@media (max-width: 800px)
{
	/* Le global met l'encart en pleine largeur d'ecran sans arrondi (!important). */
	.content-deliverycards-body #right-panel
	{
		width: auto;
		margin: 0 0 24px;
		border-radius: 16px !important;
		/* align-self: flex-start, plus haut, la reduisait en colonne a la
		   largeur de son contenu. */
		align-self: stretch;
	}
}

/* Titres et boutons dans l'esprit du site pays-denhaut.ch : titres en Inter
   gras, libelles de boutons en semi-gras. */
.title-done-view,
#translation_title_home_page,
#translation_title_home_page_,
#translation_title_payment_page,
#available-card-text,
.content-deliverycards-body #right-panel h2
{
	font-weight: var(--font-weight-bold);
}

.action-button,
.disabled-action-button,
#discover-resort-pass-button
{
	font-weight: var(--font-weight-semibold);
}

/* Accueil : "Cartes disponibles" demarre a la hauteur de la description, pas
   du titre. Le titre a une hauteur fixe (36 px x 1.15 + 20 px de marge) et la
   colonne de droite est decalee d'autant ; empiles sur petit ecran, les deux
   blocs n'ont pas besoin de ce decalage. */
#translation_title_home_page_
{
	margin: 0 0 20px;
}

@media (min-width: 801px)
{
	/* Limite a l'accueil : la saisie partage .home-content et enveloppe meme
	   chaque fiche de personne dans un .right-body-panel. */
	.home-content > .right-body-panel:has(#available-card-management)
	{
		padding-top: calc(36px * 1.15 + 20px);
	}
}

/* ══════════════════════════════════════════
   Envoi des Pass par e-mail (ecran final, apres clic sur "Envoyer les Pass par
   e-mail"). Le bloc tombait directement sur le brun, textes noirs, fiches de
   personnes au gros en-tete. Il devient une carte blanche comme la newsletter :
   adresse commune d'abord, puis, sous un trait, une fiche claire par personne,
   et le bouton d'envoi a droite.
   ══════════════════════════════════════════ */
#content-send-card
{
	width: 60vw;
	box-sizing: border-box;
	margin: 32px auto 48px;
	padding: 32px;
	border-radius: 16px;
	background-color: var(--color-main);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	color: var(--color-darker-grey);
}

/* Entre telephone et grand ecran, le global passe l'ecran final a 80vw : la
   newsletter, a cote des boutons, ne s'alignait plus sur l'encart d'envoi
   (60vw) pose en dessous. Elle passe sur sa propre ligne et l'encart prend
   la meme largeur. */
@media (min-width: 801px) and (max-width: 1200px)
{
	.content-deliverycards-body #left-panel,
	.content-deliverycards-body #right-panel
	{
		flex: 1 1 100%;
	}

	#content-send-card
	{
		width: 80vw;
	}
}

#content-send-card .title-create-card-guest
{
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	color: var(--color-second-light);
}

#send-all-cards-to-one-mail p,
#send_cards_individually
{
	margin: 0 0 10px;
	font-size: var(--font-size-16);
	font-weight: var(--font-weight-semibold);
	color: var(--color-darker-grey);
}

#send_cards_individually
{
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #E7E5E4;
}

#content-send-card .mail-input
{
	width: 100%;
	max-width: 480px;
	height: 46px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #D6D3D1;
	border-radius: 10px;
	background-color: #FFFFFF;
	font-family: var(--theme-font-family);
	font-size: var(--font-size-16);
	color: var(--color-darker-grey);
}

#content-send-card .mail-input:focus
{
	outline: 2px solid var(--color-second-light);
	outline-offset: 1px;
	border-color: transparent;
}

/* Fiches par personne : fond clair, sans ombre ni bandeau d'en-tete. */
#content-send-card .card-guest-content
{
	gap: 16px;
	margin: 0;
}

#content-send-card .card-guest
{
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 16px 18px;
	border: 0;
	border-radius: 12px;
	background-color: #F8F3F1;
	box-shadow: none;
}

#content-send-card .card-guest-header
{
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	background: transparent;
}

#content-send-card .card-guest-header p
{
	margin: 0;
	font-size: var(--font-size-12);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--color-second-light);
}

#content-send-card .send-card-guest-body
{
	padding: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

#content-send-card .send-card-to
{
	margin-left: 0;
	font-size: var(--font-size-16);
	color: var(--color-darker-grey);
}

#content-send-card .send-card-to-mail
{
	margin: 10px 0 0 !important;
}

#content-send-card .card-guest .mail-input
{
	max-width: none;
}

#content-send-card .content-create-card-buttons
{
	display: flex;
	width: 100%;
	min-width: 0;
	justify-content: flex-end;
	margin-top: 24px;
}

/* Le global impose 358 px !important a .validate-card-button. */
#send-all-cards-button
{
	width: auto !important;
	min-width: 220px;
	height: 48px;
	padding: 0 32px;
	border-radius: 24px;
}

#send-all-cards-button.disabled-action-button
{
	background-color: #E7E5E4;
	color: #78716C;
}

@media (max-width: 800px)
{
	#content-send-card
	{
		width: auto;
		margin: 24px 20px 32px;
		padding: 20px;
	}

	#content-send-card .content-create-card-buttons
	{
		justify-content: stretch;
		min-width: 0;
	}

	#send-all-cards-button
	{
		width: 100% !important;
		max-width: none;
	}
}

/* Saisie des personnes : le titre gardait les marges par defaut d'un h1 (plus
   de 20 px au-dessus et au-dessous) en plus du rembourrage du conteneur. */
#content-create-card h1
{
	margin: 0 0 16px;
}

/* Bouton retour pose au-dessus du titre (backButtonInContent) : dans l'en-tete,
   superpose au logo, il flottait loin du contenu qu'il annule. */
#content-create-card .content-back-button
{
	/* Bouton blanc comme celui du guichet RDDM et le selecteur de langue :
	   32 px de haut, coins de 7 px, chevron centre sur le texte. */
	/* Bloc et non inline-flex : une marge negative ne deplace pas un element
	   pose sur une ligne de texte. */
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 6px;
	height: 32px;
	box-sizing: border-box;
	/* Remonte vers le fil d'etapes : ~60 px de vide au-dessus sinon. */
	margin: -24px 0 12px;
	padding: 0 14px 0 10px;
	border: none;
	border-radius: 7px;
	background: #FFFFFF;
	color: var(--color-dark-grey);
	font-family: var(--theme-font-family);
	font-size: var(--font-size-16);
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

#content-create-card .content-back-button img
{
	height: 16px;
}

#content-create-card .content-back-button:hover
{
	background: #F5F0EE;
}

@media (max-width: 800px)
{
	/* Sur telephone, le selecteur de langue occupe seul une ligne, a droite :
	   le bouton remonte sur cette ligne, a gauche (mesure : 76 px separent
	   le haut du selecteur de celui du contenu). */
	#content-create-card .content-back-button
	{
		margin-top: -76px;
	}
}

/* Case de la newsletter : le global la dessine sans bordure ni etat coche
   (appearance: none), elle etait invisible sur la carte blanche. Bordure grise,
   puis fond brun et coche blanche une fois cochee. */
#content-newsletter #subscribeNews
{
	width: 22px;
	height: 22px;
	min-width: 22px;
	margin-top: 1px;
	border: 2px solid #A8A29E;
	border-radius: 5px;
	background-color: #FFFFFF;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}

#content-newsletter #subscribeNews:hover
{
	border-color: var(--color-second-light);
}

#content-newsletter #subscribeNews:focus-visible
{
	outline: 2px solid var(--color-second-light);
	outline-offset: 2px;
}

#content-newsletter #subscribeNews:checked
{
	border-color: var(--color-second-light);
	background-color: var(--color-second-light);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

#content-newsletter .checkbox-subscribe-block label
{
	cursor: pointer;
}

/* Petit ecran : le pied de page est en flex ligne (regle #footer plus haut),
   l'adresse etait ecrasee dans une colonne d'une centaine de pixels. */
@media (max-width: 800px)
{
	#footer
	{
		flex-direction: column;
		width: 90vw;
		box-sizing: border-box;
	}
}

/* Fiche par personne du bloc e-mail : le global donne a l'en-tete une hauteur
   fixe de 30 px (vide entre "PASS #1" et le nom) et met le paragraphe du champ
   en inline (sa marge du haut est ignoree, le champ collait au nom). Numero et
   nom forment un bloc serre, le champ vient 12 px plus bas. */
#content-send-card .card-guest-header
{
	height: auto;
	margin-bottom: 2px;
}

#content-send-card .send-card-to
{
	font-size: var(--font-size-18);
	font-weight: var(--font-weight-semibold) !important;
	line-height: 1.3;
}

#content-send-card .card-guest-body p.send-card-to-mail
{
	display: block;
	margin: 12px 0 0 !important;
}

/* Choix entre adresse commune et adresses individuelles
   (collapseIndividualMails) : deux onglets cote a cote, l'actif plein en brun,
   pour que la bascule entre les deux modes se voie. */
.mail-mode-switch
{
	display: inline-flex;
	gap: 4px;
	margin: 0 0 24px;
	padding: 4px;
	border-radius: 12px;
	background-color: #F3EDEA;
}

.mail-mode-option
{
	padding: 10px 18px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	cursor: pointer;
	font-family: var(--theme-font-family);
	font-size: var(--font-size-16);
	font-weight: var(--font-weight-semibold);
	color: var(--color-dark-grey);
	transition: background-color 0.15s, color 0.15s;
}

.mail-mode-option:hover
{
	color: var(--color-darker-grey);
}

.mail-mode-option--active,
.mail-mode-option--active:hover
{
	background-color: var(--color-second-light);
	color: #FFFFFF;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.mail-mode-option:focus-visible
{
	outline: 2px solid var(--color-second-light);
	outline-offset: 2px;
}

@media (max-width: 600px)
{
	.mail-mode-switch
	{
		display: flex;
	}

	.mail-mode-option
	{
		flex: 1;
		padding: 10px 8px;
		font-size: var(--font-size-14);
		text-align: center;
		line-height: 1.25;
	}
}

/* Messages dans les cartes blanches (newsletter, envoi par e-mail) : la
   pastille sombre a texte pale prevue pour le brun devenait grise et illisible
   sur le blanc. Style d'erreur / de succes classique, pleine largeur. */
#content-newsletter .error-banner,
#content-send-card .error-banner,
#content-newsletter .success-banner,
#content-send-card .success-banner
{
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 12px;
	font-size: var(--font-size-14);
	text-align: left;
}

#content-newsletter .error-banner,
#content-send-card .error-banner
{
	border: 1px solid #F5C2BC;
	background: #FDECEA;
	color: #B42318;
}

#content-newsletter .success-banner,
#content-send-card .success-banner
{
	border: 1px solid #B7E4C7;
	background: #ECFDF3;
	color: #146C2E;
}

/* Tuile "Envoyer les Pass par e-mail" quand son bloc est ouvert
   (openMailBlockByDefault, ou apres un clic) : anneau blanc, comme une option
   choisie. */
.action-buttons-secondary #send_cards.action-button--selected
{
	box-shadow: 0 0 0 3px var(--color-main);
}

/* Newsletter : champ e-mail, case et bouton alignes sur toute la largeur de
   la carte (le champ etait plus etroit que le bouton, la case decalee). */
#content-newsletter #mail-subscribe,
#content-newsletter #subscribe-newsletter-button
{
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

#content-newsletter #mail-subscribe
{
	height: 46px;
	padding: 0 14px;
	border: 1px solid #D6D3D1;
	border-radius: 10px;
	font-family: var(--theme-font-family);
	font-size: var(--font-size-16);
}

#content-newsletter .checkbox-subscribe-block
{
	margin-left: 0;
	padding-left: 0;
}

/* ══════════════════════════════════════════
   Pied de page dans l'esprit du site pays-denhaut.ch : bande brun fonce pleine
   largeur, nom et adresse avec un bouton "Contact" a gauche, "Nous contacter"
   (telephone, e-mail, reseaux) a droite. Le contenu reste aligne sur la
   colonne de 60vw du reste de la page.
   ══════════════════════════════════════════ */
#footer.footer--contact
{
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 56px calc((100% - 60vw) / 2) 64px;
	justify-content: flex-start;
	gap: 15vw;
	background-color: #3C1412;
	color: var(--color-main);
}

#footer.footer--contact .footer-items,
#footer.footer--contact #footer-second-block
{
	flex: 0 1 auto;
}

#footer.footer--contact #footer_contact_name,
#footer.footer--contact .footer-contact-title
{
	margin: 0 0 20px;
	max-width: 260px;
	font-size: var(--font-size-20);
	font-weight: var(--font-weight-bold);
	line-height: 1.4;
	color: var(--color-main);
}

#footer.footer--contact .footer_contact
{
	font-size: var(--font-size-16);
	line-height: 1.75;
	color: var(--color-main);
}

.footer-contact-button
{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	padding: 10px 20px;
	border-radius: 999px;
	background-color: var(--color-main);
	color: #3C1412;
	font-size: var(--font-size-16);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
}

.footer-contact-button:hover
{
	background-color: #F3EDEA;
}

.footer-contact-column
{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-contact-link
{
	font-size: var(--font-size-16);
	line-height: 1.75;
	color: var(--color-main) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-socials
{
	display: flex;
	gap: 8px;
	margin-top: 40px;
}

.footer-social
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--color-main);
	color: #3C1412 !important;
}

.footer-social:hover
{
	background-color: #F3EDEA;
}

.footer-contact-button:focus-visible,
.footer-contact-link:focus-visible,
.footer-social:focus-visible
{
	outline: 2px solid var(--color-main);
	outline-offset: 3px;
}

@media (max-width: 800px)
{
	#footer.footer--contact
	{
		width: 100%;
		gap: 40px;
		padding: 40px 20px 48px;
	}
}

/* Le global souligne et grise tous les liens du pied de page (#footer a). */
#footer.footer--contact .footer-contact-button
{
	color: #3C1412 !important;
	text-decoration: none;
}

/* Telephone et e-mail ne se coupent pas (l'e-mail passait a la ligne au tiret). */
.footer-contact-link
{
	white-space: nowrap;
}

@media (max-width: 800px)
{
	/* Le global masque le cercle de l'etape courante sur petit ecran et affiche
	   un second libelle : on garde le cercle, et le libelle de l'etape courante. */
	.breadcrumb_active .breadcrumb_number
	{
		display: inline-flex;
	}

	.breadcrumb_active .breadcrumb_text_mobile
	{
		display: none;
	}

	/* Reservation : la colonne de gauche ne prenait que la moitie de l'ecran,
	   noms et dates passaient sur trois lignes. */
	.reservation-element
	{
		flex-direction: column;
	}
}

/* Emplacement d'image de carte sans image pour ce theme : 200 px de vide dans
   la reservation (visible sur telephone, ou il passe sous le texte). */
#card-and-discount
{
	display: none;
}

/* Les 30 px sous le contenu laissaient une bande brune entre la reservation
   (blanche) et le pied de page. */
#content .body-content
{
	padding-bottom: 0;
}

@media (max-width: 800px)
{
	/* Le global masque le libelle "ordinateur" sur petit ecran : on le garde
	   pour l'etape courante, a cote de son cercle. */
	.breadcrumb_active .breadcrumb_text_desktop
	{
		display: inline;
	}
}

/* Note "contactez votre hebergeur" : remontee en tete du pied de page (toutes
   les vues), en encadre clair sur la bande foncee. L'ancienne note sous la
   reservation est masquee pour ne pas la dire deux fois. */
#footer.footer--contact
{
	flex-wrap: wrap;
}

.footer-establishment-note
{
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex: 1 0 100%;
	box-sizing: border-box;
	margin: 0 0 40px;
	padding: 16px 20px;
	border-radius: 12px;
	background-color: #FBEFE9;
	color: #3C1412;
	font-size: var(--font-size-16);
	font-weight: var(--font-weight-semibold);
	line-height: 1.5;
}

.footer-establishment-note svg
{
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--color-second-light);
}

#footer-note
{
	display: none;
}

/* "#footer p" passe tous les paragraphes du pied de page en blanc, note comprise ;
   et l'ecart de 15vw entre colonnes s'appliquait aussi entre les lignes depuis
   que la note occupe la premiere. */
#footer.footer--contact .footer-establishment-note
{
	color: #3C1412;
}

#footer.footer--contact
{
	row-gap: 0;
}

#footer.footer--contact #footer-copyright:empty
{
	display: none;
}

@media (max-width: 800px)
{
	/* Colonnes empilees : row-gap a 0 (note en tete), l'espace entre l'adresse
	   et "Nous contacter" est donc porte par la seconde colonne. */
	#footer.footer--contact #footer-second-block
	{
		margin-top: 40px;
	}
}

/* Note "contactez votre hebergeur" allegee : l'encadre rose plein en gras
   ecrasait le pied de page. Fond blanc translucide, texte blanc normal. */
#footer.footer--contact .footer-establishment-note
{
	align-items: center;
	margin-bottom: 32px;
	padding: 12px 16px;
	border-radius: 10px;
	background-color: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--font-size-14);
	font-weight: var(--font-weight-normal);
}

#footer.footer--contact .footer-establishment-note svg
{
	width: 18px;
	height: 18px;
	margin-top: 0;
	color: rgba(255, 255, 255, 0.75);
}

/* ══════════════════════════════════════════
   Envoi des Pass par e-mail : attente, tuiles occupees, message de resultat.
   ══════════════════════════════════════════ */

/* Ecran d'attente : carte blanche comme le bloc d'envoi, au lieu des textes
   bleu et vert du global poses sur le brun. Pas d'image a droite pour ce
   theme (image_process_*.png absente) : la colonne et son espace sont retires. */
#content-process-card
{
	width: 60vw;
	box-sizing: border-box;
	margin: 32px auto 48px;
	padding: 32px;
	border-radius: 16px;
	background-color: var(--color-main);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

#content-process-card .title-process-card-guest
{
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	color: var(--color-second-light);
}

#content-process-card .process-right-body-panel,
#content-process-card .process-body-panel-fantom
{
	display: none;
}

#content-process-card .process-pdf-loading-block,
#content-process-card .process-pdf-fail-block
{
	width: auto;
	margin: 0 0 16px;
	padding: 24px;
	border-radius: 12px;
	background-color: #F8F3F1;
	box-shadow: none;
}

#content-process-card .process-pdf-loading-block img
{
	width: 72px;
	height: 72px;
	margin-top: 0;
}

#content-process-card .process-pdf-loading-block p,
#content-process-card .process-pdf-fail-block p
{
	color: var(--color-darker-grey);
	font-size: var(--font-size-16);
	line-height: 1.5;
}

#content-process-card .processing-blue-text,
#content-process-card .processing-green-text
{
	margin: 8px 0 0;
	color: var(--color-dark-grey);
	font-size: var(--font-size-16);
	line-height: 1.5;
}

/* Tuiles pendant l'envoi ou le telechargement : le global les passe en gris
   avec "..." pour libelle. Elles gardent leurs couleurs, attenuees, et un
   indicateur tourne a la place du texte. */
.action-buttons-secondary .disabled-action-button
{
	position: relative;
	opacity: 0.6;
	cursor: progress;
	font-size: 0;
	background-color: transparent;
	border: 2px solid var(--color-main);
	color: var(--color-main);
}

.action-buttons-secondary #send_cards.disabled-action-button
{
	background-color: var(--color-button-primary) !important;
	border-color: transparent;
}

.action-buttons-secondary .disabled-action-button::after
{
	content: "";
	display: block;
	width: 28px;
	height: 28px;
	margin: auto;
	border: 3px solid rgba(255, 255, 255, 0.35);
	border-top-color: var(--color-main);
	border-radius: 50%;
	animation: pde-spin 0.8s linear infinite;
}

@keyframes pde-spin
{
	to
	{
		transform: rotate(360deg);
	}
}

/* Resultat de l'envoi sous les tuiles : encadre pleine largeur avec une coche
   (ou un signe d'erreur), au lieu de la petite pastille sombre a texte pale. */
.content-deliverycards-body #left-panel .success-banner,
.content-deliverycards-body #left-panel .error-banner
{
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 560px;
	box-sizing: border-box;
	margin: 20px 0 0;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: var(--font-size-16);
	font-weight: var(--font-weight-semibold);
	text-align: left;
}

.content-deliverycards-body #left-panel .success-banner
{
	border: 1px solid #B7E4C7;
	background: #ECFDF3;
	color: #146C2E;
}

.content-deliverycards-body #left-panel .error-banner
{
	border: 1px solid #F5C2BC;
	background: #FDECEA;
	color: #B42318;
}

.content-deliverycards-body #left-panel .success-banner::before,
.content-deliverycards-body #left-panel .error-banner::before
{
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.content-deliverycards-body #left-panel .success-banner::before
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146C2E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='8 12.5 11 15.5 16 9.5'/%3E%3C/svg%3E");
}

.content-deliverycards-body #left-panel .error-banner::before
{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='7' x2='12' y2='13'/%3E%3Cline x1='12' y1='16.5' x2='12.01' y2='16.5'/%3E%3C/svg%3E");
}

.content-deliverycards-body #left-panel .success-banner p,
.content-deliverycards-body #left-panel .error-banner p
{
	margin: 0;
}

@media (max-width: 800px)
{
	#content-process-card
	{
		width: auto;
		margin: 24px 20px 32px;
		padding: 20px;
	}
}

/* L'animation d'attente (loading_pdf.gif) a un fond blanc : sur le beige elle
   faisait un carre. Bloc blanc borde, sur toute la largeur de la carte. */
#content-process-card .process-pdf-loading-block,
#content-process-card .process-pdf-fail-block
{
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #E7E5E4;
	background-color: #FFFFFF;
}

/* La colonne de l'ecran d'attente garde la largeur du global : moitie de la
   carte sur ordinateur, texte qui deborde sur telephone. */
#content-process-card .process-left-body-panel
{
	flex: 1;
	width: 100%;
	min-width: 0;
	max-width: none;
	box-sizing: border-box;
}

/* Telephone : les paragraphes de l'attente heritaient d'une largeur fixe et
   depassaient la carte a droite. */
#content-process-card p
{
	width: auto;
	max-width: 100%;
}

/* Sous le selecteur de langue, .lang-card porte le titre de bienvenue et le
   bouton retour des autres themes. Ici le titre est vide et le bouton n'est
   pas active : le bloc vide creusait ~60 px sur telephone. */
.header-body .lang-card
{
	display: none;
}

@media (max-width: 800px)
{
	/* Le conteneur du selecteur de langue garde la hauteur du bloc titre des
	   autres themes (72 px + 15 px de marge) : ramene a celle du bouton. */
	.header-body .language-selector
	{
		height: auto;
		min-height: 0;
		margin-bottom: 0;
	}
}

@media (max-width: 800px)
{
	/* Sous le selecteur de langue, 30 px de marge du contenu s'ajoutaient a
	   celle de chaque bloc (attente, accueil) : un vide de 60 a 80 px. */
	#content .body-content
	{
		padding-top: 8px;
	}

	#content-process-card
	{
		margin-top: 16px;
	}

	.home-content
	{
		padding-top: 16px;
	}
}

/* Ecran final, mobile : l'envoi des Pass passe avant la newsletter. Dans le
   HTML, l'encart d'envoi suit le bloc des deux panneaux : en colonne, la
   newsletter s'intercalait entre les boutons et l'envoi, et pouvait passer
   pour la suite du parcours. Le bloc des panneaux s'efface (display:
   contents) pour que les trois encarts se rangent ensemble ; ses marges
   (20 px de cote, 24 px entre les encarts, 20 px en bas) passent sur les
   encarts. Ordinateur inchange. */
@media (max-width: 800px)
{
	#content .body-content:has(> .content-deliverycards-body)
	{
		display: flex;
		flex-direction: column;
		padding-bottom: 20px;
	}

	.body-content > .content-deliverycards-body
	{
		display: contents;
	}

	.body-content > .content-deliverycards-body > #left-panel
	{
		order: 1;
		margin-left: 20px;
		margin-right: 20px;
	}

	.body-content > .mail-block-wrapper
	{
		order: 2;
	}

	.body-content > .content-deliverycards-body > #right-panel
	{
		order: 3;
		margin-left: 20px;
		margin-right: 20px;
		margin-top: 24px;
	}

	/* L'encart d'envoi ouvert porte deja sa marge basse. */
	.body-content:has(> .mail-block-wrapper--open) > .content-deliverycards-body > #right-panel
	{
		margin-top: 0;
	}
}
