/*
 * Consultation en ligne — styles ajoutés au site (décembre 2026).
 * Fichier séparé de style.css : le cache LWS garde l'ancienne adresse de style.css,
 * une adresse nouvelle (avec ?v=) est servie tout de suite.
 * Chargé par include/nav.php (toutes les pages : bouton flottant, menu)
 * et par consultation-en-ligne.php / salle-attente.php.
 */

/* --- Bouton flottant « Consultation en ligne », juste au-dessus du bouton Aller au cabinet (toutes tailles) --- */
.teleconsult-float {
	position: fixed;
	right: 30px;
	bottom: 196px;              /* 144 (cabinet-float) + 40 (bouton) + 12 */
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 30px;
	background: #031B4E;       /* bleu marine (couleur secondaire du thème) */
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 10px 20px 0 rgba(3, 27, 78, 0.35);
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.teleconsult-float:hover,
.teleconsult-float:focus {
	background: #0A2F7A;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px 0 rgba(3, 27, 78, 0.45);
}
.teleconsult-float i { font-size: 16px; line-height: 1; }
@media only screen and (max-width: 575px) {
	.teleconsult-float {
		right: 15px;
		bottom: 171px;          /* 124 (cabinet-float) + 35 (bouton) + 12 */
		padding: 10px 18px;
		font-size: 14px;
	}
	.teleconsult-float i { font-size: 15px; }
}
body.fixed .teleconsult-float { display: none; }

/* Menu du haut : entre 1200 et 1365 px, on resserre un peu les liens
   pour que « Questionnaire NP » reste sur la même ligne. */
@media only screen and (min-width: 1200px) and (max-width: 1365px) {
	.header-nav.w3menu .nav > li > a {
		padding-left: 6px;
		padding-right: 6px;
	}
}

/* --- Page « Consultation en ligne » --- */
.teleconsult-salle {
	background: #fff;
	border: 1px solid #E2E8F2;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 10px 30px 0 rgba(3, 27, 78, 0.08);
}
.teleconsult-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 30px;
	background: #FFF4E0;
	color: #6B3A00;
	font-size: 14px;
	font-weight: 600;
}
.teleconsult-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #E39B00;
}
.teleconsult-cabinet {
	margin-top: 10px;
	padding: 18px 20px;
	border-left: 4px solid #00BDE0;
	border-radius: 8px;
	background: #F4F8FC;
}
.teleconsult-etape {
	height: 100%;
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 20px 0 rgba(3, 27, 78, 0.06);
}
.teleconsult-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #031B4E;
	color: #fff;
	font-weight: 700;
}
.teleconsult-salle-etat[hidden] { display: none; }

/* --- Page « Salle d'attente en ligne » (salle-attente.php) --- */
.tc-page { background: #F4F8FC; }
.tc-boite {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #E2E8F2;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 10px 30px 0 rgba(3, 27, 78, 0.08);
	scroll-margin-top: 120px;
}
@media only screen and (max-width: 575px) {
	.tc-boite { padding: 22px 16px; border-radius: 16px; }
}
.tc-ecran[hidden], .tc-etape[hidden], .tc-boite [hidden] { display: none !important; }
.tc-surtitre {
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #566593;
}
.tc-titre { font-size: 24px; line-height: 1.3; margin-bottom: 14px; color: #031B4E; }
@media only screen and (max-width: 575px) { .tc-titre { font-size: 21px; } }
.tc-centre { text-align: center; }
.tc-badge-ouverte { background: #E4F5E7; color: #0B6E4F; }
.tc-badge-ouverte .teleconsult-dot { background: #16A34A; }
.tc-file-info { font-size: 15px; color: #3B4A6B; }
.tc-etapes {
	display: flex;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 22px 0 24px;
}
.tc-etapes li {
	flex: 1;
	padding-top: 10px;
	border-top: 4px solid #E2E8F2;
	font-size: 13px;
	font-weight: 500;
	color: #8A96B3;
}
.tc-etapes li.actif { border-color: #00BDE0; color: #031B4E; font-weight: 600; }
.tc-etapes li.fait { border-color: #031B4E; color: #031B4E; }
.tc-etape { border: 0; padding: 0; margin: 0; min-width: 0; }
.tc-etape legend { float: none; width: auto; }
.tc-choix {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	margin-bottom: 10px;
	padding: 12px 16px;
	border: 2px solid var(--bs-primary);
	border-radius: 15px;
	cursor: pointer;
	font-size: 15px;
	color: #031B4E;
	transition: border-color .2s ease, background .2s ease;
}
.tc-choix input { width: 20px; height: 20px; accent-color: #031B4E; flex-shrink: 0; }
.tc-choix:has(input:checked) { background: rgba(var(--bs-primary-rgb), .08); }
.tc-choix:has(input:focus-visible) { outline: 3px solid #00BDE0; outline-offset: 2px; }
.tc-sous-titre { font-size: 18px; margin-bottom: 6px; color: #031B4E; }
/* Contours en bleu clair du projet (--bs-primary), comme le questionnaire NP */
.tc-page .floating-outline .form-control { border-color: var(--bs-primary) !important; }
.tc-page .floating-outline .form-control:focus {
	border-color: var(--bs-primary) !important;
	box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15);
}
/* Pays : Select2 habillé comme le champ téléphone du questionnaire NP (bordure, encoche du libellé) */
.tc-pays-field .select2-container .select2-selection--single {
	height: 60px;
	border: 2px solid var(--bs-primary);
	border-radius: 15px;
	background-color: transparent;
}
.tc-pays-field .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 56px;
	padding-left: 20px;
	padding-right: 40px;
	color: var(--bs-body-color);
	font-size: 15px;
}
/* Chevron du thème (image de fond de .select2-selection__arrow) : on lui laisse sa largeur */
.tc-pays-field .select2-container .select2-selection--single .select2-selection__arrow {
	height: 56px;
	width: 40px;
	right: 8px;
	background-position: center;
}
.tc-pays-field .select2-container--open .select2-selection--single,
.tc-pays-field .select2-container--focus .select2-selection--single { box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15); }
.tc-pays-field .select2-dropdown { border: 2px solid var(--bs-primary); border-radius: 12px; overflow: hidden; z-index: 1060; }
.tc-pays-field .select2-search--dropdown .select2-search__field { height: 42px; border-radius: 8px; padding: 6px 10px; font-size: 16px; }
.tc-pays-field .select2-results__option { padding: 8px 14px; font-size: 15px; }
.tc-pays-field .select2-results__option--highlighted { background-color: var(--bs-primary) !important; }
.tc-pays-option { display: inline-flex; align-items: center; gap: 8px; }
.tc-pays-option .iti__flag { flex-shrink: 0; }
.tc-aide { font-size: 14px; color: #566593; }
.tc-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tc-depot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px;
	border: 2px dashed #C7D5E6;
	border-radius: 14px;
	cursor: pointer;
	color: #031B4E;
	font-weight: 500;
	text-align: center;
}
.tc-depot i { font-size: 24px; color: #00BDE0; }
.tc-depot input { max-width: 100%; font-size: 13px; }
.tc-liste-docs { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: #3B4A6B; }
.tc-consentement { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.55; color: #3B4A6B; }
.tc-consentement input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: #031B4E; }
.tc-alerte { margin: 14px 0; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.tc-alerte-info { background: #FFF4E0; color: #6B3A00; }
.tc-alerte-info a { color: #6B3A00; text-decoration: underline; }
.tc-alerte-erreur { background: #FDECEC; color: #7A1F17; }
.tc-boutons { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.tc-boutons .btn { min-height: 48px; }
.tc-boutons .btn:disabled { opacity: .5; cursor: not-allowed; }
.tc-petit-titre { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #566593; margin-bottom: 4px; }
.tc-position { font-size: 40px; font-weight: 700; color: #031B4E; margin-bottom: 6px; line-height: 1.2; }
.tc-position sup { font-size: 20px; }
.tc-avertissement { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #FFF4E0; color: #6B3A00; font-size: 14px; }
.tc-lien { border: 0; background: none; padding: 0; color: #566593; text-decoration: underline; font-size: 14px; cursor: pointer; }
.tc-gros-bouton { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 8px; }
.tc-icone-ok { display: block; font-size: 48px; color: #16A34A; margin-bottom: 10px; }
.tc-video {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	background: #0E1A2E;
}
.tc-video[hidden] { display: none; }
.tc-video-cadre { flex: 1; }
.tc-video-secours { margin: 0; padding: 8px 12px; text-align: center; font-size: 13px; color: #B7C6DD; }
body.tc-video-ouverte { overflow: hidden; }
/* Sur la page de la salle d'attente, les boutons flottants masqueraient « Continuer » sur téléphone. */
body.tc-sans-flottants .teleconsult-float,
body.tc-sans-flottants .cabinet-float,
body.tc-sans-flottants .rdv-float { display: none !important; }
body.tc-video-ouverte .teleconsult-float,
body.tc-video-ouverte .cabinet-float,
body.tc-video-ouverte .rdv-float,
body.tc-video-ouverte .scroltop,
body.tc-video-ouverte .site-header { display: none !important; }
