/* ==========================================================================
   Site public — charte commune aux quatre pages.

   Elle était recopiée dans la page d'accueil. Quatre pages qui la
   recopieraient chacune, c'est quatre endroits où corriger une couleur, et
   trois oublis. Une seule feuille, mise en cache une fois : c'est aussi ce
   qui fait tenir la promesse d'un site qui s'ouvre vite sur un téléphone en
   4G de campagne.
   ========================================================================== */
/* Mise en page : un bandeau vert pleine largeur qui porte l'identité et
   l'essentiel — où je consulte aujourd'hui et comment prendre rendez-vous —
   puis le reste sur fond clair : horaires du futur cabinet, infos pratiques.
   Palette reprise de l'affiche d'ouverture. */
:root {
	--page: #FAF7F0;
	--encre: #16332C;
	--gris-encre: #55655C;
	--trait: rgba(22, 51, 44, 0.14);

	--vert-fond: #16332C;
	--vert-ombre: #214A3F;
	--vert-clair: #AFC8B9;
	--creme: #F3EEE3;

	--orange: #E9A063;
	--orange-fonce: #A85C22;

	--display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--texte: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

	color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--page);
	color: var(--encre);
	font-family: var(--texte);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
	border-radius: 4px;
}

.saut {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--creme);
	color: var(--encre);
	padding: 12px 18px;
	border-radius: 0 0 10px 0;
	font-weight: 600;
	z-index: 10;
}

.saut:focus { left: 0; }

.enveloppe {
	max-width: 1040px;
	margin: 0 auto;
	padding-inline: 20px;
}

/* ---- Bandeau vert ---- */

.entete {
	background: var(--vert-fond);
	color: var(--creme);
	position: relative;
	overflow: hidden;
	padding-top: env(safe-area-inset-top, 0px);
}

.arche {
	position: absolute;
	right: max(20px, calc(50% - 520px + 60px));
	top: 76px;
	bottom: 0;
	width: min(230px, 30vw);
	background: var(--vert-ombre);
	border-radius: 999px 999px 0 0;
	opacity: 0.5;
	z-index: 0;
}

.entete .enveloppe { position: relative; z-index: 1; }

.bandeau {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 20px 6px;
}

.identite .nom {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}

.identite .role {
	font-size: 0.82rem;
	color: var(--vert-clair);
}

.lien-pro {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid rgba(243, 238, 227, 0.32);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--creme);
	transition: border-color 0.15s, background-color 0.15s;
}

.lien-pro:hover,
.lien-pro:focus-visible {
	background: rgba(243, 238, 227, 0.1);
	border-color: rgba(243, 238, 227, 0.65);
}

.lien-pro svg { flex: none; }

.hero { padding-block: 26px 36px; }

h1 {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(2.2rem, 7vw, 3.5rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-wrap: balance;
	margin: 0 0 24px;
	max-width: 13ch;
}

.adresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 20px;
	padding-top: 24px;
	border-top: 1px solid rgba(243, 238, 227, 0.22);
}

.ou {
	min-width: 0;
	padding-left: 18px;
	border-left: 3px solid rgba(243, 238, 227, 0.22);
}

.ou-suivant { border-left-color: var(--orange); }

.eyebrow {
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--vert-clair);
	margin: 0 0 8px;
}

.ou-suivant .eyebrow { color: var(--orange); }

.ou .lieu {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.2rem, 3.6vw, 1.55rem);
	letter-spacing: -0.015em;
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
}

.ou .itineraire {
	display: inline-block;
	margin-top: 7px;
	font-size: 0.92rem;
	color: var(--orange);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Liens de rendez-vous dans les colonnes « où ». Un agenda par lien, et
   chaque libellé dit lequel : deux boutons côte à côte qui diraient tous
   deux « Prendre rendez-vous » feraient deviner le bon. La colonne du
   nouveau cabinet les porte en orange, comme son filet. */
.rdv-liens {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.rdv {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px;
	border: 1.5px solid rgba(243, 238, 227, 0.4);
	border-radius: 999px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--creme);
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}

.rdv:hover,
.rdv:focus-visible { border-color: var(--creme); }

.ou-suivant .rdv {
	background: var(--orange);
	border-color: var(--orange);
	color: var(--vert-fond);
}

.ou-suivant .rdv:hover,
.ou-suivant .rdv:focus-visible { background: #F2B179; border-color: #F2B179; }

.rdv svg { flex: none; }

.boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.bouton {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: 999px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	min-width: 0;
	transition: background-color 0.15s, border-color 0.15s;
}

.bouton svg { flex: none; }

/* Accueil : les deux boutons de rendez-vous en tête de la grille des
   adresses, sur toute sa largeur pour tenir côte à côte. */
.boutons-accueil { grid-column: 1 / -1; margin-top: 0; }

.bouton-plein {
	background: var(--orange);
	color: var(--vert-fond);
}

.bouton-plein:hover,
.bouton-plein:focus-visible { background: #F2B179; }

/* ---- Horaires du futur cabinet ---- */

.titre-section {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 14px;
	padding-top: 40px;
	margin-bottom: 18px;
}

.titre-section h2 {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	margin: 0;
}

.titre-section .precision-section {
	font-size: 0.94rem;
	color: var(--gris-encre);
}

.cartes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 18px;
}

.carte {
	background: #FFFFFF;
	border: 1px solid var(--trait);
	border-radius: 20px;
	padding: 24px 24px 20px;
	min-width: 0;
}

.carte h3 {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.015em;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.puce {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex: none;
}

.puce-verte { background: var(--vert-fond); }
.puce-orange { background: var(--orange-fonce); }

.carte .qui {
	font-size: 0.9rem;
	color: var(--gris-encre);
	margin: 2px 0 12px 19px;
}

.etiquette {
	display: inline-block;
	margin-left: 19px;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 600;
	background: #E8E1D3;
	color: #3C4A42;
}

.etiquette-orange { background: #F8E3CC; color: #7E4414; }

.horaires {
	margin: 16px 0 0;
	border-top: 1px solid var(--trait);
}

.ligne {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--trait);
}

.ligne .jour {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1rem;
}

.ligne .heures {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.ligne-vide .jour { color: #7C8C83; font-weight: 600; }
.ligne-vide .heures {
	font-style: italic;
	font-weight: 400;
	color: #7C8C83;
	font-family: var(--texte);
}

.carte .precision {
	margin: 14px 0 0;
	font-size: 0.88rem;
	color: var(--gris-encre);
}

/* ---- Informations pratiques ---- */

.pratique {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	padding-top: 18px;
}

.bloc {
	border: 1px solid var(--trait);
	border-radius: 18px;
	padding: 22px;
	min-width: 0;
}

.bloc h3 {
	font-family: var(--display);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--orange-fonce);
	margin: 0 0 12px;
}

.bloc p { margin: 0 0 6px; }
.bloc p:last-child { margin-bottom: 0; }
.bloc .fort { font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.bloc .discret { color: var(--gris-encre); font-size: 0.9rem; }

.bloc .itineraire {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.92rem;
	color: var(--orange-fonce);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.urgence {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--trait);
}

.urgence:last-child { border-bottom: 0; padding-bottom: 0; }
.urgence .quoi { font-size: 0.94rem; min-width: 0; }
.urgence .numero {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.2rem;
	font-variant-numeric: tabular-nums;
	color: var(--orange-fonce);
}

/* ---- Pied ---- */

footer {
	margin-top: 36px;
	border-top: 1px solid var(--trait);
	padding-block: 22px;
	padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 24px;
	font-size: 0.86rem;
	color: var(--gris-encre);
}

footer .lien-pro-bas {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Les deux liens du pied, groupés. Le pied aligne ses enfants aux
   extrémités : un troisième enfant isolé serait allé se placer au milieu,
   entre la signature et l'accès professionnel. Sur écran étroit ils passent
   l'un sous l'autre plutôt que de se serrer. */
footer .liens-pied {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

/* ---- Écrans étroits ---- */

@media (max-width: 640px) {
	.arche { display: none; }
	.bandeau { padding-block: 16px 2px; }
	.identite .nom { font-size: 0.98rem; }
	.lien-pro { padding: 8px 13px; font-size: 0.78rem; }
	.hero { padding-block: 20px 28px; }
	h1 { margin-bottom: 20px; }
	.aujourdhui { gap: 18px; }
	.bouton { width: 100%; justify-content: center; }
	.titre-section { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

@media print {
	.lien-pro, .saut, .arche { display: none; }
	.entete { background: none; color: #000; }
	body { background: #fff; }
}

/* --- Navigation entre les quatre pages -----------------------------------
   Un rang de liens sous l'identité. Pas de menu déroulant : quatre pages se
   montrent entièrement, et un menu qui s'ouvre est un geste de plus sur un
   téléphone tenu d'une main. */

.nav-site { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 18px 0 0;
	padding: 0; list-style: none; }
.nav-site a { display: inline-block; padding: 9px 14px; border-radius: 999px;
	border: 1px solid rgba(243, 238, 227, .28); color: #F3EEE3;
	text-decoration: none; font-size: .92rem; font-weight: 500; line-height: 1.2; }
.nav-site a:hover { background: rgba(243, 238, 227, .12); }
.nav-site a[aria-current="page"] { background: #F3EEE3; border-color: #F3EEE3;
	color: #16332C; font-weight: 600; }

/* --- Pages intérieures ---------------------------------------------------
   L'accueil porte un grand bandeau vert ; les pages intérieures gardent le
   même en-tête, en plus court, et donnent la place au texte. */

.entete.courte { padding-bottom: 28px; }
.entete.courte h1 { margin-bottom: 6px; }

.chapo { max-width: 62ch; margin: 0; color: rgba(243, 238, 227, .86);
	font-size: 1.04rem; line-height: 1.55; }

.texte { max-width: 68ch; }
.texte h2 { margin: 36px 0 10px; }
.texte h3 { margin: 24px 0 6px; font-size: 1.02rem; }
.texte p { margin: 0 0 14px; line-height: 1.65; }
.texte ul { margin: 0 0 16px; padding-left: 20px; line-height: 1.65; }
.texte li { margin-bottom: 5px; }

.encadre { margin: 24px 0; padding: 16px 18px; background: #FFFFFF;
	border: 1px solid rgba(22, 51, 44, .14); border-left: 3px solid #214A3F;
	border-radius: 14px; }
.encadre p:last-child { margin-bottom: 0; }

/* Le plan : une image, pas une carte en JavaScript. Elle se charge une fois,
   ne demande aucun script, et le lien ouvre l'itinéraire réel. */
.plan { display: block; margin: 24px 0; border-radius: 14px; overflow: hidden;
	border: 1px solid rgba(22, 51, 44, .14); }
.plan img { display: block; width: 100%; height: auto; }
.plan figcaption { padding: 10px 14px; background: #FFFFFF; font-size: .88rem;
	color: #55655C; }

@media print { .nav-site, .lien-pro, .lien-pro-bas { display: none; } }

/* Détail repliable — la liste des villages sur la page Accès. Fermée par
   défaut : le visiteur veut l'adresse et l'itinéraire, pas l'inventaire
   de la zone. Le contenu reste dans la page, donc indexable. */
.texte details {
	margin: 1.4rem 0 0;
	border-top: 1px solid var(--trait);
	border-bottom: 1px solid var(--trait);
	padding: 0.2rem 0;
}

.texte summary {
	cursor: pointer;
	padding: 0.85rem 0;
	font-weight: 600;
	color: var(--gris-encre);
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 44px;
}

.texte summary::-webkit-details-marker {
	display: none;
}

.texte summary::before {
	content: "";
	width: 0.42rem;
	height: 0.42rem;
	border-right: 2px solid var(--orange-fonce);
	border-bottom: 2px solid var(--orange-fonce);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}

.texte details[open] summary::before {
	transform: rotate(45deg);
}

.texte summary:hover {
	color: var(--encre);
}

.texte details p {
	font-size: 0.95rem;
}

.texte details p:last-child {
	margin-bottom: 1rem;
}

/* --- Avis : une condition qu'on ne peut pas manquer ----------------------
   Fond blanc, filet orange, une icône discrète. Pas de rouge ni de triangle
   d'alerte : il ne s'agit pas d'un danger mais d'une condition pratique, et
   un bandeau d'alarme sur un site de cabinet inquiète sans rien expliquer
   de plus. */

.avis { display: flex; gap: 14px; margin: 28px 0 0; padding: 18px 20px;
	background: #FFFFFF; border: 1px solid var(--trait);
	border-left: 3px solid var(--orange-fonce); border-radius: 14px; }
.avis > svg { flex: none; margin-top: 3px; color: var(--orange-fonce); }
.avis p { margin: 0 0 8px; line-height: 1.6; }
.avis p:last-child { margin-bottom: 0; }
.avis strong { font-family: var(--display); font-weight: 700; }
.avis a { color: var(--orange-fonce); text-decoration: underline;
	text-underline-offset: 3px; }

/* --- Les choses à vérifier avant de réserver -----------------------------
   Numérotées dans une pastille : on les lit comme une liste de contrôle, pas
   comme un paragraphe de plus. */

.etapes { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: etape; }
.etapes li { position: relative; padding-left: 40px; margin-bottom: 13px;
	line-height: 1.6; }
.etapes li::before { counter-increment: etape; content: counter(etape);
	position: absolute; left: 0; top: 0; width: 27px; height: 27px;
	display: grid; place-items: center; border-radius: 50%;
	background: #F8E3CC; color: #7E4414; font-family: var(--display);
	font-weight: 700; font-size: .86rem; }
.etapes b { font-weight: 600; }

/* --- Boutons de rendez-vous dans le texte --------------------------------
   Les classes .bouton du bandeau vert, reprises sur fond clair. Le bouton
   plein garde son orange (texte vert foncé : 6,3:1) et gagne un bord
   orange foncé, sans quoi l'orange se détache à peine de la page (2:1). */

.texte .boutons { margin: 18px 0 22px; align-items: center; }
.texte .bouton-plein { border: 1.5px solid var(--orange-fonce); }

/* --- Ruban de rendez-vous ------------------------------------------------
   Version complète dans le bandeau des pages intérieures : un lieu par
   bloc, comme les colonnes de l'accueil, le lieu à venir en orange. */

.ruban {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 40px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(243, 238, 227, 0.22);
}

.ruban-lieu {
	min-width: 0;
	padding-left: 16px;
	border-left: 3px solid rgba(243, 238, 227, 0.22);
}

.ruban-lieu.ou-suivant { border-left-color: var(--orange); }
.ruban-lieu .rdv-liens { margin-top: 0; }

/* Version compacte, collée. Cachée tant que le bandeau est à l'écran ;
   le script de fin de page pose .visible. Cachée veut dire aussi hors
   de la tabulation : visibility, pas seulement transform. */

.ruban-collant {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 5;
	background: var(--vert-fond);
	color: var(--creme);
	box-shadow: 0 4px 18px rgba(22, 51, 44, .22);
	padding-top: env(safe-area-inset-top, 0px);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 0.2s ease, visibility 0.2s;
}

.ruban-collant.visible { transform: none; visibility: visible; }

.ruban-collant .enveloppe {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 10px;
}

.ruban-titre {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: 0.95rem;
}

.ruban-boutons { display: flex; gap: 10px; }
.ruban-collant .bouton { padding: 9px 18px; font-size: 0.92rem; }

@media (max-width: 640px) {
	.ruban { gap: 16px; }

	/* Sur téléphone : en bas, à portée du pouce, sans titre. */
	.ruban-collant {
		top: auto;
		bottom: 0;
		padding-top: 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		box-shadow: 0 -4px 18px rgba(22, 51, 44, .22);
		transform: translateY(100%);
	}
	.ruban-collant .enveloppe { padding: 10px 12px; }
	.ruban-titre { display: none; }
	.ruban-boutons { flex: 1; gap: 8px; }
	.ruban-collant .bouton {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		justify-content: center;
		padding: 12px 10px;
		font-size: 0.95rem;
	}
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

@media print { .ruban, .ruban-collant { display: none; } }

/* Libellés du ruban collant : en entier sur ordinateur, abrégés sur
   téléphone. Toujours « rendez-vous » dedans : le bouton dit ce qu'il
   fait, pas seulement la prestation. Une seule ligne : à 320 px de large,
   l'icône s'efface plutôt que de couper « RDV prise de sang » en deux. */
.ruban-collant .bouton { white-space: nowrap; }
.lib-court { display: none; }

/* Le titre et les deux libellés longs demandent environ 1 010 px. */
.ruban-titre { white-space: nowrap; }

@media (max-width: 1040px) {
	.ruban-titre { display: none; }
	.ruban-collant .enveloppe { justify-content: center; }
}

/* Les libellés longs demandent environ 650 px : en dessous de 720, la
   barre du haut prend aussi les courts plutôt que de sortir de l'écran. */
@media (max-width: 720px) {
	.lib-long { display: none; }
	.lib-court { display: inline; }
}

@media (max-width: 360px) {
	.ruban-collant .enveloppe { padding-inline: 8px; }
	.ruban-boutons { gap: 6px; }
	.ruban-collant .bouton { padding-inline: 6px; font-size: 0.9rem; }
	.ruban-collant .bouton svg { display: none; }
}

/* --- Téléphone dans le bandeau -------------------------------------------
   La place d'honneur, en haut à droite : un numéro se comprend sans
   légende. « Accès professionnel », qui ne s'adresse pas aux patients,
   passe en lien discret à sa gauche ; sur téléphone, les deux deviennent
   des pastilles (voir « Bandeau sur téléphone » plus bas). */

.bandeau-droite {
	flex: none;
	display: flex;
	align-items: center;
	gap: 20px;
}

.bandeau-droite .lien-pro {
	order: -1;
	padding: 0;
	border: 0;
	border-radius: 0;
	font-size: 0.8rem;
	color: var(--vert-clair);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(175, 200, 185, 0.45);
}

.bandeau-droite .lien-pro:hover,
.bandeau-droite .lien-pro:focus-visible {
	background: none;
	color: var(--creme);
}

.tel-entete {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	white-space: nowrap;
	color: var(--creme);
	text-decoration: none;
}

.tel-entete svg { flex: none; color: var(--orange); }
.tel-entete:hover { text-decoration: underline; text-underline-offset: 4px; }

/* « Appeler » : seulement dans la barre du bas, sur téléphone. */
.bouton-appeler { display: none; }

@media (max-width: 640px) {
	.identite { min-width: 0; }
	.tel-entete { font-size: 1rem; gap: 7px; }

	.ruban-collant .bouton-appeler {
		display: inline-flex;
		flex: none;
		background: transparent;
		border: 1.5px solid rgba(243, 238, 227, 0.4);
		color: var(--creme);
	}
}

/* Trois boutons dans la barre du bas : ils se resserrent par paliers
   plutôt que de couper un libellé. Sous 460 px, les deux boutons de
   rendez-vous perdent leur icône ; sous 376 px, « Appeler » ne garde que
   la sienne — son nom reste lu par les lecteurs d'écran. Paliers mesurés
   de 320 à 640 px. */
@media (max-width: 640px) {
	.ruban-collant .bouton { flex: 1 1 auto; gap: 6px; padding-inline: 10px; font-size: 0.9rem; }
	.ruban-collant .bouton-appeler { flex: none; }
}

@media (max-width: 460px) {
	.ruban-collant .enveloppe { padding-inline: 8px; }
	.ruban-boutons { gap: 6px; }
	.ruban-collant .bouton:not(.bouton-appeler) svg { display: none; }
	.ruban-collant .bouton { padding-inline: 8px; font-size: 0.86rem; }
}

@media (max-width: 376px) {
	.ruban-collant .bouton { font-size: 0.84rem; }
	.ruban-collant .bouton-appeler { padding-inline: 11px; }
	.ruban-collant .bouton-appeler svg { display: block; }
	.lib-appeler {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (max-width: 340px) {
	.ruban-collant .bouton { padding-inline: 7px; font-size: 0.8rem; }
}

/* Sur ordinateur, le lien professionnel garde son libellé entier, sans
   icône : c'est un lien de texte discret. */
.bandeau-droite .lien-pro svg,
.pro-court { display: none; }

/* --- Bandeau sur téléphone -----------------------------------------------
   Le numéro et l'accès professionnel cohabitent à droite du nom, en deux
   pastilles : le numéro d'abord, plein ; l'accès professionnel ensuite, à
   bord fin — l'équipe infirmière doit le trouver sans le chercher. Son
   libellé se réduit avec la largeur : « Accès professionnel », puis
   « Pro » ; l'aria-label dit toujours « Accès professionnel ». Chaque
   pastille offre au moins 44 px de cible. */

@media (max-width: 640px) {
	.bandeau-droite { gap: 6px; }
	.bandeau-droite .lien-pro,
	.tel-entete {
		min-height: 44px;
		min-width: 64px; /* ovales : plus larges que hauts, plus faciles à toucher */
		justify-content: center;
		border-radius: 999px;
		white-space: nowrap;
	}
	.tel-entete {
		padding: 0 12px;
		gap: 6px;
		font-size: 0.92rem;
		background: rgba(243, 238, 227, 0.1);
		border: 1px solid rgba(243, 238, 227, 0.32);
	}
	.bandeau-droite .lien-pro {
		order: 0;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 0 12px;
		border: 1px solid rgba(243, 238, 227, 0.32);
		font-size: 0.8125rem; /* 13 px, le plancher */
		color: var(--creme);
		text-decoration: none;
	}
	.bandeau-droite .lien-pro svg { display: block; }
}

/* Paliers, mesurés sur la page la plus large (rôle « Médecin généraliste
   · Doische ») avec les polices du site. Rien ne passe à la ligne et le
   nom n'est jamais écrasé ; les pastilles ne descendent jamais sous
   64 px de large. Dans l'ordre : « Accès professionnel » devient « Pro »,
   les polices se resserrent, « Pro » perd son cadenas, puis le numéro ne
   garde que son icône (il
   reste écrit en grand sur l'accueil, dans la barre du bas et dans la
   page). « Pro » reste écrit à toutes les largeurs : un cadenas seul
   n'évoque rien pour un visiteur. */

@media (max-width: 557px) {
	.pro-long { display: none; }
	.pro-court { display: inline; }
}

@media (max-width: 456px) {
	.bandeau { gap: 16px; }
	.identite .nom { font-size: 0.9rem; }
	.identite .role { font-size: 0.76rem; }
	.tel-entete { padding: 0 10px; font-size: 0.86rem; gap: 5px; }
}

@media (max-width: 428px) {
	.bandeau-droite .lien-pro svg { display: none; }
}

@media (max-width: 424px) {
	.tel-numero { display: none; }
	.tel-entete { padding: 0 20px; }
}

/* Sous 400 px, la place se reprend sur l'identité, jamais sur les
   pastilles : d'abord la ligne du rôle (le titre de la page situe déjà),
   puis un cran sur le nom. À 320 px il manquait encore 6 px : la marge
   latérale de la page passe de 20 à 16 px sous 342 px. */
@media (max-width: 399px) {
	.identite .role { display: none; }
}

@media (max-width: 342px) {
	.identite .nom { font-size: 0.8rem; }
	.enveloppe { padding-inline: 16px; }
}

/* Les pastilles de 44 px dépassent la hauteur du nom : un peu d'air
   avant le titre. */
@media (max-width: 640px) {
	.bandeau { padding-bottom: 10px; }
}

/* --- Numéro de l'accueil -------------------------------------------------
   Lisible d'un coup d'œil et recopiable : typographie de titre, chiffres
   groupés et de chasse fixe, jamais coupé. Tout le bloc appelle. */

.numero-accueil {
	display: block;
	width: fit-content;
	margin: -4px 0 6px;
	color: var(--creme);
	text-decoration: none;
}

.numero-accueil .numero {
	display: block;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(2rem, 6.5vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.numero-accueil .horaire {
	display: block;
	margin-top: 4px;
	font-size: 0.98rem;
	color: var(--vert-clair);
}

.numero-accueil:hover .numero,
.numero-accueil:focus-visible .numero {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Accueil : sous 400 px, la ligne du rôle quitte le bandeau ; elle
   revient ici, sous le titre, au-dessus du grand numéro. Au-delà, le
   bandeau la porte déjà : pas de doublon. */
.sous-titre-accueil { display: none; }

@media (max-width: 399px) {
	.sous-titre-accueil {
		display: block;
		margin: -12px 0 14px;
		font-size: 0.92rem;
		color: var(--vert-clair);
	}
}
