/* Cabinet Dentaire Guyaux, deuxieme site. Direction : le portrait.
   Un visage en grand, de tres grands titres, du blanc, aucune carte ni pastille.
   Couleurs du logo : nuit, marine, ciel, blanc, plus une brume pour une seule section.
   Instrument Sans porte tout le site. Crimson Pro italique est reservee a la voix humaine :
   la promesse du haut de page et les paroles de patients. */

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-gras.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("/assets/fonts/crimson-pro-italique.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --nuit: #071c44;
  --marine: #1050a0;
  --ciel: #00a8e8;
  --blanc: #fff;
  --brume: #eef3f9;
  --doux: rgba(7, 28, 68, .74);
  --trait: rgba(7, 28, 68, .16);
  --blanc-doux: rgba(255, 255, 255, .82);
  --blanc-trait: rgba(255, 255, 255, .28);
  --marge: clamp(20px, 4.6vw, 72px);
  --ecart: clamp(20px, 2.2vw, 32px);
  --section: clamp(64px, 7vw, 112px);   /* 08/11 : 112 au plus au lieu de 176, l'accueil paraissait vide */
  --bande: 0px;   /* 08/11 : la barre « Proposition de site » est retiree avant la mise en ligne */
  --f-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-voix: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sortie: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-padding-bottom: 96px; }
body { margin: 0; background: var(--blanc); color: var(--nuit); font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
h1, h2, h3 { font-weight: 400; }
h2 { font-size: clamp(2.375rem, 4.7vw, 4.75rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; }
.sur-nuit :focus-visible, .pied :focus-visible, .tiroir :focus-visible { outline-color: var(--blanc); }
.voix { font-family: var(--f-voix); font-style: italic; }
.cache { position: absolute; left: -9999px; }
.tel-seul, .tel-ligne { display: none; }

.conteneur { width: min(100% - 2 * var(--marge), 1560px); margin-inline: auto; }
.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ecart); }
.section { padding-block: var(--section); }

.evitement { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 20px; background: var(--blanc); color: var(--nuit); }
.evitement:focus { top: 12px; }

.bande-demo { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; height: var(--bande); padding-inline: 16px; background: var(--nuit); color: var(--blanc-doux); font-size: .8125rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }

/* ---- boutons et liens */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 1rem; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s var(--sortie); }
.bouton:active { transform: scale(.98); }
.bouton--plein { background: var(--marine); color: var(--blanc); }
.bouton--plein:hover { background: var(--nuit); }
.bouton--clair { background: var(--blanc); color: var(--nuit); }
.bouton--clair:hover { background: var(--ciel); }
.bouton--contour { border-color: var(--nuit); color: var(--nuit); background: var(--blanc); }
.bouton--contour:hover { background: var(--nuit); color: var(--blanc); }
.lien { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; transition: text-underline-offset .25s var(--sortie), color .2s ease; }
.lien:hover { text-underline-offset: .42em; color: var(--marine); }
.sur-nuit .lien:hover { color: var(--blanc); }

/* ---- en-tete */
.entete { position: absolute; top: var(--bande); left: 0; right: 0; z-index: 50; color: var(--blanc); }
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.entete__logo { position: relative; display: block; width: 112px; flex: none; }
.entete__logo img { width: 100%; }
.entete__logo-bleu { display: none; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav a, .entete__tel { position: relative; display: inline-block; padding-block: 8px; text-decoration: none; font-size: 1rem; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--sortie); }
.nav a:hover::after { transform: scaleX(1); }
/* petit ordinateur : le menu a 6 liens, le numero laisse sa place (il reste dans le heros et le bouton Rendez-vous reste la) */
@media (min-width: 1081px) and (max-width: 1180px) { .entete__tel { display: none; } }
.entete__droite { display: flex; align-items: center; gap: 20px; }
.bouton--entete { min-height: 44px; padding-inline: 22px; background: var(--blanc); color: var(--nuit); }
.bouton--entete:hover { background: var(--ciel); }
.menu-bouton { display: none; min-height: 44px; padding: 0 18px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 1rem; cursor: pointer; }
.entete.est-fixe { position: fixed; top: 0; background: var(--blanc); color: var(--nuit); box-shadow: 0 1px 0 var(--trait); transition: transform .45s var(--sortie); }
.entete.est-fixe .entete__in { height: 72px; }
.entete.est-fixe.est-cache { transform: translateY(-101%); }
.entete.est-fixe .entete__logo-blanc { display: none; }
.entete.est-fixe .entete__logo-bleu { display: block; }
.entete.est-fixe .bouton--entete { background: var(--marine); color: var(--blanc); }
.entete.est-fixe .bouton--entete:hover { background: var(--nuit); }
.entete.est-fixe :focus-visible { outline-color: var(--marine); }

.tiroir { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; gap: 28px; padding: 96px var(--marge) 40px; background: var(--nuit); color: var(--blanc); overflow-y: auto; }
.tiroir[hidden] { display: none; }
.tiroir a { display: block; padding-block: 8px; text-decoration: none; font-size: clamp(1.75rem, 7vw, 2.5rem); letter-spacing: -.025em; line-height: 1.15; }
.tiroir__tel { color: var(--ciel); border-top: 1px solid var(--blanc-trait); padding-top: 24px !important; }
.menu-ouvert body { overflow: hidden; }
.menu-ouvert .bande-demo { visibility: hidden; }
.menu-ouvert .entete { position: fixed; top: 0; color: var(--blanc); background: transparent; box-shadow: none; transform: none !important; }
.menu-ouvert .entete .entete__logo-blanc { display: block; }
.menu-ouvert .entete .entete__logo-bleu { display: none; }
.menu-ouvert .entete :focus-visible { outline-color: var(--blanc); }

/* ---- haut de page */
.heros { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: calc(100vh - var(--bande)); min-height: calc(100svh - var(--bande)); max-height: 1080px; background: var(--nuit); color: var(--blanc); overflow: hidden; }
.heros__scene { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.heros__photo { position: absolute; inset: 0; z-index: -2; display: block; }
.heros__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.heros__voile { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7, 28, 68, .8) 0%, rgba(7, 28, 68, .34) 46%, rgba(7, 28, 68, 0) 70%),
  linear-gradient(0deg, rgba(7, 28, 68, .86) 0%, rgba(7, 28, 68, 0) 44%); }
.heros__contenu { padding-top: 136px; padding-bottom: clamp(28px, 3.4vw, 48px); }
.heros__titre { font-size: clamp(3.75rem, 7vw, 7.75rem); line-height: .98; letter-spacing: -.045em; }
.heros__lieu { display: block; margin-bottom: 16px; font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.3; letter-spacing: 0; }
.ligne { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.ligne__in { display: block; }
.ligne__in.voix { font-size: 1.12em; line-height: .92; letter-spacing: -.025em; }
.heros__statut { display: none; }
.heros__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: clamp(24px, 2.6vw, 36px); }
.heros__actions p { max-width: 36ch; color: var(--blanc-doux); line-height: 1.45; }
.heros__boutons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.lien-tel { padding-block: 10px; font-size: 1.125rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--ecart); padding-block: 18px 22px; border-top: 1px solid var(--blanc-trait); }
.info__titre { font-size: 1.0625rem; line-height: 1.35; }
.info__texte { color: var(--blanc-doux); font-size: .9375rem; }
.info__texte a { color: var(--blanc); }
.info--statut .info__titre::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--ciel); vertical-align: .08em; }

/* ---- peur du dentiste */
.douceur__titre { grid-column: 1 / span 10; margin-bottom: clamp(32px, 4vw, 64px); }
.douceur__photo { grid-column: 1 / -1; }
.douceur__photo img { width: 100%; }
.douceur__points { grid-column: 1 / -1; margin-top: clamp(28px, 3vw, 44px); }
.douceur__points dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--ecart); }
.point { padding-top: 18px; border-top: 1px solid var(--trait); }
.point dt { font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.2; letter-spacing: -.015em; }
.point dd { max-width: 44ch; margin-top: 6px; color: var(--doux); }
.douceur__points > p { padding-top: 28px; }

/* ---- photos qui se decouvrent */
.revele { overflow: hidden; }

/* ---- soins */
.soins { padding-top: 0; }
.soins__tete { grid-column: 1 / span 12; display: grid; grid-template-columns: subgrid; align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
.soins__tete h2 { grid-column: 1 / span 7; }
.soins__tete p { grid-column: 8 / span 5; max-width: 40ch; color: var(--doux); }
.soins__liste { grid-column: 1 / span 7; border-bottom: 1px solid var(--trait); }
.soin { display: block; padding-block: 16px 18px; border-top: 1px solid var(--trait); text-decoration: none; }
.soin__nom { display: block; font-size: clamp(1.5rem, 2.5vw, 2.375rem); line-height: 1.12; letter-spacing: -.025em; transition: transform .45s var(--sortie), color .2s ease; }
.soin__texte { display: block; margin-top: 2px; color: var(--doux); font-size: .9375rem; transition: transform .45s var(--sortie); }
.soins__images { display: block; grid-column: 8 / span 5; grid-row: 2; position: sticky; top: 96px; align-self: start; aspect-ratio: 3 / 4; overflow: hidden; background: var(--brume); text-decoration: none; }
.soins__images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.soins__images img.actif { opacity: 1; }
.soins__legende { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--nuit); color: var(--blanc); font-size: 1rem; line-height: 1.25; }
.soins__voir { flex: none; text-decoration: underline; text-underline-offset: 3px; }
.soins__images:hover .soins__voir { color: var(--ciel); }
.photos-corps { margin-block: clamp(24px, 3vw, 40px); }
.photos-corps img { width: 100%; }
.photos-corps figcaption { margin-top: 8px; color: var(--doux); font-size: .9375rem; }
/* deux photos de meme hauteur : les colonnes suivent leurs proportions (16:9 et 3:4) */
.photos-corps { display: grid; grid-template-columns: 1.78fr .75fr; gap: var(--ecart); align-items: start; }
.soins__lien { grid-column: 1 / span 7; padding-top: 24px; }

/* ---- outil */
.outil { background: var(--brume); }
.outil__tete { grid-column: 1 / span 12; display: grid; grid-template-columns: subgrid; align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
.outil__tete h2 { grid-column: 1 / span 7; }
.outil__tete p { grid-column: 8 / span 5; max-width: 40ch; color: var(--doux); }
.outil__choix { grid-column: 1 / span 5; grid-row: 2 / span 2; display: grid; gap: 28px; align-content: start; }
.outil__choix legend { padding: 0 0 8px; font-weight: 700; font-size: 1rem; }
.choix { display: flex; align-items: center; gap: 14px; min-height: 48px; border-top: 1px solid var(--trait); cursor: pointer; }
.choix input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--nuit); border-radius: 50%; background: var(--blanc); cursor: pointer; transition: border-width .15s ease, border-color .15s ease; }
.choix input:checked { border: 6px solid var(--marine); }
.choix:hover span { color: var(--marine); }
.outil__dessin { grid-column: 7 / span 6; grid-row: 2; }
.outil__svg { width: min(100%, 420px); margin-inline: auto; }
.outil__gencive { fill: none; stroke: rgba(7, 28, 68, .1); stroke-width: 46; stroke-linecap: round; cursor: pointer; transition: stroke .2s ease; }
.outil__gencive:hover { stroke: rgba(16, 80, 160, .2); }
.outil__gencive.actif { stroke: rgba(16, 80, 160, .36); }
.outil__dent { cursor: pointer; }
.outil__dent rect { fill: var(--blanc); stroke: var(--nuit); stroke-width: 1.5; transition: fill .2s ease, stroke .2s ease; }
.outil__dent:hover rect { fill: rgba(16, 80, 160, .22); }
.outil__dent.actif rect { fill: var(--marine); stroke: var(--marine); }
.outil__resultat { grid-column: 7 / span 6; grid-row: 3; min-height: 240px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--trait); }
.outil__vide { color: var(--doux); }
.outil__cause { font-size: clamp(1.625rem, 2.5vw, 2.25rem); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 10px; }
.outil__niveau { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.outil__niveau strong { font-weight: 700; }
.jauge { display: inline-flex; gap: 4px; }
.jauge i { display: block; width: 28px; height: 4px; background: var(--trait); }
.jauge[data-niveau="1"] i:nth-child(-n+1), .jauge[data-niveau="2"] i:nth-child(-n+2), .jauge[data-niveau="3"] i { background: var(--marine); }
.outil__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.outil__avertissement { margin-top: 20px; color: var(--doux); font-size: .9375rem; }

/* ---- urgences du soir */
.soir { position: relative; isolation: isolate; background: var(--nuit); color: var(--blanc); padding-block: var(--section); overflow: hidden; }
.soir__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.soir__voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 28, 68, .92) 0%, rgba(7, 28, 68, .78) 50%, rgba(7, 28, 68, .12) 84%); }
/* tablette et petit ordinateur : la lampe de la photo passe derriere le texte, le voile reste plus couvrant */
@media (min-width: 761px) and (max-width: 1180px) {
  .soir__voile { background: linear-gradient(90deg, rgba(7, 28, 68, .94) 0%, rgba(7, 28, 68, .88) 62%, rgba(7, 28, 68, .14) 92%); }
}
.soir h2 { max-width: 15ch; }
.soir__tel { display: inline-block; margin-top: clamp(28px, 4vw, 56px); font-size: clamp(2.75rem, 7.6vw, 7.5rem); line-height: 1; letter-spacing: -.04em; text-decoration: none; color: var(--blanc); transition: color .2s ease; }
.soir__tel:hover { color: var(--ciel); }
.soir__texte { max-width: 54ch; margin-top: 24px; color: var(--blanc-doux); }
.soir__liens { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; }
.soir__liens a { display: inline-block; padding-block: 6px; }
.soir__secours { max-width: 54ch; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--blanc-trait); color: var(--blanc-doux); font-size: .9375rem; }

/* ---- avis : juste apres le heros, les 3 avis defilent un par un */
figcaption { margin-top: 16px; color: var(--doux); font-size: .9375rem; }
/* moins d'espace que les autres sections en haut : la section suit directement le heros.
   Rien en bas : l'espace avant « Vous avez peur du dentiste ? » est celui de la section suivante, comme partout ailleurs. */
.section.avis { padding-top: clamp(48px, 7vw, 104px); padding-bottom: 0; }
.avis__titre { grid-column: 1 / -1; grid-row: 1; margin-bottom: clamp(28px, 3.5vw, 56px); }
.avis__defile { grid-column: 1 / span 8; grid-row: 2; }
.avis__cote { grid-column: 9 / span 4; grid-row: 2; align-self: end; }
.avis__piste { display: grid; gap: 40px; overflow: hidden; }
.avis__item blockquote { font-size: clamp(1.5rem, 2.7vw, 2.75rem); line-height: 1.16; letter-spacing: -.01em; text-wrap: pretty; }
/* avec JavaScript, les avis se superposent et glissent de droite a gauche : la hauteur reste celle du plus long */
.js .avis__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(64px); transition: opacity .5s ease, transform .8s var(--sortie), visibility 0s linear .8s; }
.js .avis__item.actif { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.js .avis__item.sortant { transform: translateX(-64px); }
.avis__commandes { display: flex; align-items: center; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.avis__commandes[hidden] { display: none; }
.avis__barres { display: flex; gap: 8px; }
.avis__barre { position: relative; width: 56px; height: 3px; overflow: hidden; background: var(--trait); }
.avis__progression { position: absolute; inset: 0; background: var(--marine); transform: scaleX(0); transform-origin: left; }
.avis__barre.actif .avis__progression { animation: avis-progression var(--duree, 6s) linear forwards; }
.avis--pause .avis__progression { animation-play-state: paused !important; }
@keyframes avis-progression { to { transform: scaleX(1); } }
.avis__pause { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--doux); cursor: pointer; }
.avis__pause svg { width: 18px; height: 18px; fill: currentColor; }
.avis__pause:hover { color: var(--marine); }
.avis__pause .icone-lecture, .avis__pause[aria-pressed="true"] .icone-pause { display: none; }
.avis__pause[aria-pressed="true"] .icone-lecture { display: block; }
@media (prefers-reduced-motion: reduce) {
  .js .avis__item, .js .avis__item.sortant { transform: none; }
  .js .etoile .etoile__pleine { transition: none; }
}
.avis__etoiles { display: flex; gap: 4px; }
.etoile { position: relative; width: 28px; height: 28px; }
.etoile svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--trait); }
.etoile .etoile__pleine { fill: var(--ciel); clip-path: inset(0 calc((1 - var(--part)) * 100%) 0 0); }
.js .etoile .etoile__pleine { clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--sortie); transition-delay: calc(.2s + var(--i) * 140ms); }
.js .avis.vu .etoile .etoile__pleine { clip-path: inset(0 calc((1 - var(--part)) * 100%) 0 0); }
.avis__note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--trait); }
.avis__note strong { font-weight: 400; font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -.03em; }
.avis .lien { display: inline-block; margin-top: 8px; }

/* ---- venir et rendez-vous */
.venir { padding-top: 0; }
/* sur l'accueil, « Venir au cabinet » suit la section sombre du soir : il lui faut son propre espace en haut */
.soir + .venir { padding-top: var(--section); }
.venir__lieu { grid-column: 1 / span 6; }
.venir__adresse { margin-top: 20px; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; }
.venir__jour { margin-top: clamp(32px, 4vw, 56px); color: var(--doux); }
.journee { position: relative; height: 46px; margin-top: 18px; background: linear-gradient(var(--trait), var(--trait)) no-repeat 0 5px / 100% 2px; }
.journee__part { position: absolute; top: 0; height: 12px; }
.journee__part--cabinet { left: 37.5%; width: 45.83%; background: var(--marine); }
.journee__part--urgence { left: 83.33%; width: 8.34%; background: var(--nuit); }
.journee__heure { position: absolute; top: 20px; font-size: .875rem; color: var(--doux); }
.journee__heure--fin { transform: translateX(-100%); }
.journee__maintenant { position: absolute; top: -7px; height: 26px; width: 2px; margin-left: -1px; background: var(--ciel); }
.journee__maintenant::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ciel); }
.journee__legende { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 20px; font-size: .9375rem; }
.journee__legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--marine); }
.journee__legende span:last-child::before { background: var(--nuit); }
.formulaire { grid-column: 8 / span 5; }
.formulaire h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; }
.formulaire > p { max-width: 44ch; margin-top: 8px; color: var(--doux); }
.champ { margin-top: 20px; }
.champ label { display: block; font-size: .9375rem; }
.champ input, .champ select { display: block; width: 100%; min-height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--nuit); border-radius: 0; background: transparent; color: inherit; font: inherit; }
.champ select { appearance: none; -webkit-appearance: none; padding-right: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23071c44' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 2px center / 12px 8px; cursor: pointer; }
.champ input:focus, .champ select:focus { outline: 0; border-bottom: 2px solid var(--marine); }
.consentement { display: flex; align-items: flex-start; gap: 12px; margin-block: 24px; color: var(--doux); font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.consentement input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--marine); }
.formulaire .bouton { width: 100%; }

/* ---- questions */
.faq { padding-top: 0; }
.faq h2 { grid-column: 1 / span 5; }
.faq__liste { grid-column: 7 / span 6; border-bottom: 1px solid var(--trait); }
.faq__item { border-top: 1px solid var(--trait); }
.faq__item summary { position: relative; display: block; padding: 18px 40px 18px 0; font-size: 1.125rem; line-height: 1.3; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 15px; height: 1px; background: currentColor; transition: transform .3s var(--sortie); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item summary:hover { color: var(--marine); }
.faq__item p { max-width: 60ch; padding-bottom: 20px; color: var(--doux); }

/* ---- pied de page */
.pied { background: var(--nuit); color: var(--blanc); padding-block: clamp(56px, 7vw, 96px) 28px; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; text-underline-offset: .25em; }
.pied__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ecart); row-gap: 8px; }
.pied__cabinet { grid-column: 1 / span 4; }
.pied__cabinet img { width: 120px; margin-bottom: 20px; }
.pied__cabinet p { margin-top: 14px; color: var(--blanc-doux); }
.pied__groupe { grid-column: span 2; }
.pied__groupe:nth-of-type(2) { grid-column: span 3; }
.pied__groupe:nth-of-type(3) { grid-column: span 3; }
.pied__groupe summary { padding-block: 4px 12px; font-weight: 700; font-size: .9375rem; list-style: none; cursor: default; }
.pied__groupe summary::-webkit-details-marker { display: none; }
.pied__groupe li { padding-block: 4px; }
.pied__groupe a { color: var(--blanc-doux); font-size: .9375rem; }
.pied__groupe a:hover { color: var(--blanc); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: clamp(40px, 5vw, 72px); padding-top: 18px; border-top: 1px solid var(--blanc-trait); color: var(--blanc-doux); font-size: .875rem; }
.pied__bas a { text-decoration: underline; text-underline-offset: .25em; }

.barre { display: none; }

.merci { min-height: 60vh; padding-block: 200px 96px; }
.merci h1 { font-size: clamp(2.375rem, 4.7vw, 4.75rem); line-height: 1.02; letter-spacing: -.035em; }
.merci p { max-width: 52ch; margin-top: 20px; }
.merci__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---- pages interieures : en-tete sur fond blanc */
.clair .entete { color: var(--nuit); }
.clair .entete__logo-blanc { display: none; }
.clair .entete__logo-bleu { display: block; }
.clair .bouton--entete { background: var(--marine); color: var(--blanc); }
.clair .bouton--entete:hover { background: var(--nuit); }
.clair .entete :focus-visible { outline-color: var(--marine); }

.fil ol { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--doux); font-size: .9375rem; }
.fil li + li::before { content: "/"; margin-right: 8px; }
.fil a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.sur-nuit .fil ol { color: var(--blanc-doux); }

.page-tete { padding-top: calc(88px + clamp(16px, 3vw, 40px)); padding-bottom: clamp(40px, 5vw, 80px); }
.page-tete__texte { grid-column: 1 / span 9; }
.page-tete h1, .page-nuit h1 { margin-top: 20px; font-size: clamp(2.625rem, 5.4vw, 5.5rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.chapeau { max-width: 56ch; margin-top: 24px; font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); line-height: 1.42; }
.page-tete__meta { margin-top: 16px; color: var(--doux); font-size: .9375rem; }
.insecable { white-space: nowrap; }
.page-tete--photo .page-tete__texte { grid-column: 1 / span 7; }
.page-tete__photo { overflow: hidden; }
.page-tete__photo img { width: 100%; }
.page-tete--photo .page-tete__photo { grid-column: 8 / span 5; }
.page-tete--large .page-tete__photo { grid-column: 1 / -1; margin-top: clamp(32px, 4vw, 56px); }
.page-tete--article .page-tete__photo img { aspect-ratio: 2 / 1; object-fit: cover; object-position: var(--cadre, 50% 30%); }
/* Sur ordinateur, la photo suit la hauteur du texte : pas de trou au-dessus du titre, pas de photo plus haute que l'ecran. */
@media (min-width: 761px) {
  .page-tete--photo .page-tete__photo { position: relative; min-height: min(72vh, 540px); }
  .page-tete--photo .page-tete__photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 30%; }
}

.page-nuit { position: relative; isolation: isolate; overflow: hidden; background: var(--nuit); color: var(--blanc); }
.page-nuit__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 80% 45%; }
.page-nuit__in { padding-top: calc(88px + clamp(16px, 3vw, 40px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-nuit h1 { max-width: 15ch; }
.page-nuit .chapeau { max-width: 44ch; color: var(--blanc-doux); }
.page-nuit__tel { display: inline-block; margin-top: 24px; font-size: clamp(2.5rem, 5.6vw, 5.75rem); line-height: 1; letter-spacing: -.04em; text-decoration: none; transition: color .2s ease; }
.page-nuit__tel:hover { color: var(--ciel); }
.page-nuit__statut { margin-top: 14px; color: var(--blanc-doux); }

.corps { padding-block: clamp(48px, 6vw, 96px) var(--section); }
.prose { grid-column: 1 / span 7; min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose p, .prose .liste li { max-width: 68ch; }
.prose a:not(.bouton):not(.soin) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; }
.prose > * + h2, .prose__faq { margin-top: clamp(44px, 5vw, 72px) !important; }
.prose__faq h2 { margin-bottom: 18px; }
.liste { display: grid; gap: 8px; }
.liste li { position: relative; padding-left: 20px; }
.liste li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: currentColor; }
.etapes li { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding-block: 16px; border-top: 1px solid var(--trait); }
.etapes__num { color: var(--marine); font-size: 1.25rem; line-height: 1.3; }
.etapes h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
.etapes p { margin-top: 4px; color: var(--doux); }
.encadre { padding: 22px 24px; background: var(--brume); }
.encadre__titre { margin-bottom: 10px; font-weight: 700; }
.encadre--alerte { background: var(--nuit); color: var(--blanc); }
.tableau > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--trait); }
.tableau dd { color: var(--doux); }
.membre { padding-block: 18px; border-top: 1px solid var(--trait); }
.membre h3 { font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.2; letter-spacing: -.015em; }
.membre__role { color: var(--marine); }
.membre p + p { margin-top: 6px; }
.liens-prose .soin__nom { font-size: clamp(1.3125rem, 1.8vw, 1.625rem); }
.a-confirmer { border-bottom: 1px dotted currentColor; }

.contact { grid-column: 9 / span 4; position: sticky; top: 96px; align-self: start; padding-top: 18px; border-top: 1px solid var(--trait); }
.contact__statut::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--ciel); vertical-align: .08em; }
.contact__detail { color: var(--doux); font-size: .9375rem; }
.contact__tel { display: block; margin-block: 14px; font-size: clamp(1.75rem, 2.5vw, 2.375rem); letter-spacing: -.03em; line-height: 1.1; text-decoration: none; transition: color .2s ease; }
.contact__tel:hover { color: var(--marine); }
.contact .bouton { width: 100%; }
.contact address { margin-block: 18px 6px; color: var(--doux); font-size: .9375rem; }

.a-lire { padding-top: 0; }
.a-lire h2, .index-urgences h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.soins--index { padding-bottom: var(--section); }
.soins--index .soins__images { grid-row: 1; }
.index-urgences { padding-top: 0; }
.liens-larges .soin__texte { max-width: 72ch; }
.liens-larges .soin--vignette { display: grid; grid-template-columns: clamp(96px, 16vw, 240px) minmax(0, 1fr); column-gap: clamp(14px, 2vw, 32px); align-items: center; }
.soin--vignette img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.soin__corps { display: block; min-width: 0; }

.formulaire--page { grid-column: 1 / span 7; display: grid; gap: 24px; align-content: start; }
.formulaire--page .champ { margin-top: 0; }
.formulaire--page legend { padding-bottom: 8px; font-weight: 700; }
.formulaire--page .consentement { margin-block: 0; }
.formulaire__urgence { padding: 16px 20px; background: var(--nuit); color: var(--blanc); }
.formulaire__urgence a { text-decoration: underline; text-underline-offset: .22em; white-space: nowrap; }
.formulaire__urgence[hidden] { display: none; }
.champ textarea { display: block; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--nuit); border-radius: 0; background: transparent; color: inherit; font: inherit; resize: vertical; }
.champ textarea:focus { outline: 0; border-bottom: 2px solid var(--marine); }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* ---- animations : une entree au chargement, les photos au defilement, rien en boucle */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .heros__photo img { animation: photo-entree 2.4s var(--sortie) both; }
  .ligne__in { animation: ligne-entree 1s var(--sortie) both; }
  .ligne--2 .ligne__in { animation-delay: .09s; }
  .heros__lieu, .heros__actions, .heros__statut, .infos { animation: fondu .7s ease-out .45s both; }
  .page-tete__photo img { animation: photo-entree 1.8s var(--sortie) both; }
  .js .revele img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.1s var(--sortie), transform 1.5s var(--sortie); }
  .js .revele.vu img { clip-path: inset(0); transform: none; }
  @media (hover: hover) {
    .soin:hover .soin__nom, .soin:focus-visible .soin__nom { transform: translateX(14px); color: var(--marine); }
    .soin:hover .soin__texte, .soin:focus-visible .soin__texte { transform: translateX(14px); }
  }
  @supports (animation-timeline: scroll()) {
    .heros__photo { animation: photo-fuite linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes photo-entree { from { transform: scale(1.07); } to { transform: none; } }
@keyframes ligne-entree { from { transform: translateY(112%); } to { transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-fuite { to { transform: translate3d(0, 7%, 0); } }

/* ---- tablette */
@media (max-width: 1080px) {
  .nav, .entete__tel { display: none; }
  .menu-bouton { display: inline-flex; align-items: center; }
  .avis__titre { grid-column: 1 / -1; }
  .avis__defile { grid-column: 1 / -1; }
  .avis__cote { grid-column: 1 / -1; grid-row: 3; margin: 40px 0 0; }
  .venir__lieu { grid-column: 1 / span 6; }
  .formulaire { grid-column: 7 / span 6; }
  .formulaire--page { grid-column: 1 / span 7; }
  .contact { grid-column: 8 / span 5; }
}

/* ---- telephone : une mise en page a part, pas l'ordinateur en plus petit */
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .tel-seul { display: inline; }
  .ordi-ligne { display: none; }
  .tel-ligne { display: inline; }
  .grille { display: block; }
  .entete__in { height: 72px; }
  .entete__logo { width: 92px; }
  .bouton--entete { display: none; }

  .heros { display: block; min-height: 0; max-height: none; }
  .heros__scene { position: relative; isolation: isolate; min-height: calc(100vh - var(--bande) - 76px); min-height: calc(100svh - var(--bande) - 76px); }
  .heros__photo img { object-position: 50% 10%; }
  .heros__voile { display: none; }
  /* le voile suit le bloc de texte : le contraste tient quelle que soit la hauteur du telephone */
  .heros__contenu { width: 100%; padding: 96px var(--marge) 20px; background: linear-gradient(0deg, rgba(7, 28, 68, .96) 0%, rgba(7, 28, 68, .84) 66%, rgba(7, 28, 68, .66) 80%, rgba(7, 28, 68, 0) 100%); }
  .heros__titre { font-size: clamp(3.25rem, 16.4vw, 5.5rem); line-height: .94; letter-spacing: -.05em; }
  .heros__lieu { margin-bottom: 12px; }
  .ligne__in.voix { font-size: 1.1em; line-height: .86; }
  .heros__statut { display: block; margin-top: 20px; color: var(--blanc-doux); font-size: 1rem; line-height: 1.35; }
  .heros__actions { display: none; }
  .infos { display: block; padding-block: 0 28px; border-top: 0; }
  .info { padding-block: 14px; border-top: 1px solid var(--blanc-trait); }

  .section { padding-block: 56px; }
  .soins, .venir, .faq { padding-top: 0; }
  .douceur__titre { margin-bottom: 28px; }
  .douceur__photo { margin-inline: calc(var(--marge) * -1); }
  .douceur__photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 52% 40%; }
  .douceur__points { margin-top: 8px; }
  .douceur__points dl { display: block; }
  .point { padding-block: 20px; }
  .point:first-child { border-top: 0; }
  .douceur__points > p { padding-top: 0; }
  .soins__tete, .outil__tete { display: block; margin-bottom: 24px; }
  .soins__tete p, .outil__tete p { margin-top: 12px; }
  /* la photo du soin en avant passe au-dessus de la liste ; les autres ne se chargent pas sur telephone */
  .soins .grille { display: flex; flex-direction: column; }
  .soins__tete { order: -2; }
  .soins__images { order: -1; align-self: stretch; position: relative; top: auto; aspect-ratio: 4 / 3; margin: 0 calc(var(--marge) * -1) 24px; }
  .soins__images img { object-position: 50% 28%; }
  .soins__images img:not(.actif) { display: none; }
  .photos-corps { grid-template-columns: 1fr; }
  .photos-corps figure:last-child { max-width: 60%; }
  .soin { display: flex; align-items: center; min-height: 58px; padding-block: 10px; }
  .soin__nom { font-size: 1.375rem; letter-spacing: -.02em; }
  .soin__texte { display: none; }

  .outil .grille { display: flex; flex-direction: column; }
  .outil__dessin { order: 1; margin-bottom: 24px; }
  .outil__choix { order: 2; }
  .outil__resultat { order: 3; min-height: 0; }
  .choix { min-height: 52px; }
  .lien, .lien-tel, .info__texte a, .pied address a { display: inline-block; padding-block: 12px; }
  .pied address { line-height: 1.2; }
  .pied__bas a { display: inline-block; padding-block: 8px; }

  .soir { padding-block: 0 64px; }
  .soir__photo { position: static; display: block; height: auto; aspect-ratio: 1 / .86; object-position: 84% 50%; }
  .soir__voile { display: none; }
  .soir__in { padding-top: 36px; }
  .soir__tel { font-size: clamp(2.625rem, 13.4vw, 4.5rem); white-space: nowrap; }
  .soir__liens { display: block; }
  .soir__liens a { display: flex; align-items: center; min-height: 44px; padding: 0; }

  .avis__cote { margin-top: 32px; }

  .venir__adresse { margin-top: 14px; }
  .formulaire { margin-top: 56px; }

  .faq h2 { margin-bottom: 20px; }
  .faq__item summary { padding-block: 16px; font-size: 1.0625rem; min-height: 56px; }

  .pied { padding-block: 48px 24px; }
  .pied__grille { display: block; }
  .pied__cabinet { margin-bottom: 24px; }
  .pied__groupe { border-top: 1px solid var(--blanc-trait); }
  .pied__groupe summary { position: relative; display: flex; align-items: center; min-height: 52px; padding: 0; font-weight: 400; font-size: 1.0625rem; cursor: pointer; }
  .pied__groupe summary::before, .pied__groupe summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 15px; height: 1px; background: currentColor; }
  .pied__groupe summary::after { transform: rotate(90deg); transition: transform .3s var(--sortie); }
  .pied__groupe[open] summary::after { transform: rotate(0); }
  .pied__groupe ul { padding-bottom: 12px; }
  .pied__groupe li { padding-block: 0; }
  .pied__groupe a { display: flex; align-items: center; min-height: 44px; font-size: 1rem; }
  .pied__bas { margin-top: 16px; }

  .barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--blanc); border-top: 1px solid var(--trait); }
  .barre .bouton { min-height: 52px; padding-inline: 12px; }
  .menu-ouvert .barre { display: none; }

  .page-tete { padding-top: 88px; padding-bottom: 32px; }
  .page-tete h1, .page-nuit h1 { font-size: clamp(2.5rem, 11.6vw, 3.75rem); line-height: 1.02; letter-spacing: -.035em; }
  .page-tete__photo { margin: 28px calc(var(--marge) * -1) 0; }
  .page-tete--photo .page-tete__photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; }
  .page-tete--large .page-tete__photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--cadre, 52% 40%); }
  .fil a { display: inline-block; padding-block: 8px; }
  .fil li { padding-block: 8px; }
  .fil li:has(a) { padding-block: 0; }

  .page-nuit::before { content: ""; position: absolute; inset: 0 0 auto; height: 140px; background: linear-gradient(180deg, rgba(7, 28, 68, .78), rgba(7, 28, 68, 0)); }
  .page-nuit__photo { position: static; display: block; height: auto; aspect-ratio: 1 / .78; object-position: 84% 40%; }
  .page-nuit__in { padding-top: 20px; padding-bottom: 40px; }
  .page-nuit h1 { margin-top: 8px; max-width: none; }
  .page-nuit__tel { font-size: clamp(2.625rem, 13.4vw, 4.5rem); white-space: nowrap; }

  .corps { padding-block: 40px 72px; }
  .contact { display: none; }
  .etapes li { grid-template-columns: 36px minmax(0, 1fr); }
  .tableau > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .a-lire { padding-top: 0; }
  .soins--index { padding-bottom: 72px; }
  .formulaire--page { margin-top: 0; }
  .formulaire--page .choix { min-height: 52px; }
  .liens-larges .soin { display: block; padding-block: 16px; }
  .liens-larges .soin--vignette { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .liens-larges .soin__texte, .liens-prose .soin__texte { display: block; }
  .liens-prose .soin { display: block; padding-block: 14px; }
  .a-lire .soin { display: block; padding-block: 14px; }
  .a-lire .soin__texte, .index-urgences .soin__texte { display: block; }
  .index-urgences .soin { display: block; padding-block: 14px; }
}

/* ---- petit telephone peu haut : le titre passe sur 2 lignes pour laisser voir le visage */
@media (max-width: 760px) and (max-height: 700px) {
  .tel-seul { display: none; }
  .heros__titre { font-size: 10.6vw; line-height: 1; letter-spacing: -.04em; }
  .ligne__in.voix { line-height: .96; }
  .heros__contenu { padding-top: 72px; }
}

@media print { .barre, .bande-demo, .tiroir { display: none; } }

@media (max-width: 760px) {
  .barre { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body { padding-bottom: 140px; }
}
