/* ==========================================================================
   Fokale 2.0 – site public
   Ordinateur, tablette, téléphone. Textes longs : largeur de ligne limitée,
   interligne généreux, titres en serif.
   ========================================================================== */
:root {
  --violet: #633689;
  --violet-fonce: #45245f;
  --violet-pale: #f4eff8;
  --vert: #3f6f4f;
  --vert-pale: #e9f2eb;
  --encre: #221f27;
  --gris: #625d6b;
  --bord-clair: #e4dfe9;
  --papier: #fbfaf7;
  --blanc: #fff;
  --rouge: #a12a2a;
  --police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mesure: 52rem;          /* largeur maximale des textes longs (≈ 90 caractères) */
  --large: 76rem;           /* largeur des grilles */
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(34, 31, 39, .06), 0 8px 24px rgba(34, 31, 39, .06);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 1.0625rem/1.65 var(--police-texte);
  text-rendering: optimizeLegibility;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; line-height: 1.2; color: var(--encre); letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin: 0 0 .8rem; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin: 2.4rem 0 .8rem; }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); margin: 1.8rem 0 .5rem; }

.aller-contenu { position: absolute; left: -999px; top: .5rem; background: var(--blanc); padding: .5rem 1rem; z-index: 100; }
.aller-contenu:focus { left: .5rem; }

/* --- Boutons ----------------------------------------------------------- */
.bouton {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid var(--violet);
  background: var(--violet); color: #fff; font: 600 1rem/1.2 var(--police-texte); text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.bouton:hover { background: var(--violet-fonce); border-color: var(--violet-fonce); color: #fff; }
.bouton.secondaire { background: transparent; color: var(--violet); }
.bouton.secondaire:hover { background: var(--violet); color: #fff; }
.boutons { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }
.lien-fleche { font-weight: 600; text-decoration: none; }

/* --- Annonce ----------------------------------------------------------- */
.annonce { background: var(--vert); color: #fff; font-size: .95rem; }
.annonce p { max-width: var(--large); margin: 0 auto; padding: .55rem 1.2rem; text-align: center; }

/* --- En-tête et menu ---------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .94);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--bord-clair);
}
.entete-int { max-width: var(--large); margin: 0 auto; padding: .7rem 1.2rem; display: flex; align-items: center; gap: 1rem; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--gris); line-height: 1.2; margin-right: auto; }
.logo img { width: 170px; height: auto; display: block; }
.slogan { font-size: .72rem; letter-spacing: .04em; margin-top: .2rem; }
.navigation { display: flex; align-items: center; gap: 1.2rem; }
.nav-liste, .langues, .sous-menu { list-style: none; margin: 0; padding: 0; }
.nav-liste { display: flex; align-items: center; gap: .3rem; }
.nav-liste > li > a, .nav-deroulant {
  display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--encre); text-decoration: none;
  font: 500 1rem/1.3 var(--police-texte); background: none; border: 0; cursor: pointer;
}
.nav-liste > li > a:hover, .nav-deroulant:hover, .nav-liste a[aria-current="page"] { background: var(--violet-pale); color: var(--violet-fonce); }
.fleche { display: inline-block; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 0 .2em .45em; transition: transform .15s; }
.nav-deroulant[aria-expanded="true"] .fleche { transform: rotate(-135deg); margin-bottom: -.1em; }
.nav-groupe { position: relative; }
.sous-menu {
  position: absolute; top: calc(100% + .4rem); left: -1rem; min-width: 19rem; padding: .5rem;
  background: var(--blanc); border: 1px solid var(--bord-clair); border-radius: var(--rayon); box-shadow: var(--ombre);
  display: none;
}
.nav-deroulant[aria-expanded="true"] + .sous-menu { display: block; }
@media (hover: hover) and (min-width: 62.01rem) {
  .nav-groupe:hover .sous-menu { display: block; }
  .nav-groupe::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; }
}
.sous-menu a { display: block; padding: .45rem .8rem; border-radius: 8px; color: var(--encre); text-decoration: none; font-size: .98rem; }
.sous-menu a:hover, .sous-menu a[aria-current="page"] { background: var(--violet-pale); color: var(--violet-fonce); }
.langues { display: flex; gap: .15rem; border-left: 1px solid var(--bord-clair); padding-left: 1rem; }
.langues a { display: block; padding: .3rem .45rem; border-radius: 6px; font-size: .85rem; font-weight: 600; color: var(--gris); text-decoration: none; letter-spacing: .03em; }
.langues a:hover { color: var(--violet); }
.langues a[aria-current="true"] { color: var(--violet); background: var(--violet-pale); }
.menu-bouton { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--bord-clair); border-radius: 999px; padding: .45rem .9rem; font: 600 .95rem var(--police-texte); color: var(--encre); cursor: pointer; }
.barres span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
body.menu-ouvert .barres span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-ouvert .barres span:nth-child(2) { opacity: 0; }
body.menu-ouvert .barres span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 62rem) {
  .entete { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--papier); }  /* sinon le menu fixe reste prisonnier de l'en-tête */
  .menu-bouton { display: inline-flex; }
  .logo img { width: 140px; }
  .navigation {
    position: fixed; inset: var(--haut-menu, 4.1rem) 0 0 0; background: var(--papier); z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.2rem 3rem; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-.5rem); transition: opacity .2s, transform .2s, visibility .2s;
  }
  body.menu-ouvert { overflow: hidden; }
  body.menu-ouvert .navigation { visibility: visible; opacity: 1; transform: none; }
  .nav-liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-liste > li { border-bottom: 1px solid var(--bord-clair); }
  .nav-liste > li > a, .nav-deroulant { width: 100%; text-align: left; padding: .9rem .2rem; font-size: 1.15rem; border-radius: 0; display: flex; justify-content: space-between; align-items: center; }
  .sous-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 .8rem; min-width: 0; background: none; }
  .nav-deroulant { pointer-events: none; color: var(--gris); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding-bottom: .3rem; }
  .nav-deroulant .fleche { display: none; }
  .sous-menu a { padding: .55rem .2rem; font-size: 1.08rem; }
  .langues { border: 0; padding: 1.2rem 0 0; gap: .5rem; }
  .langues a { padding: .5rem .9rem; border: 1px solid var(--bord-clair); font-size: 1rem; }
}

/* --- Accueil : grande image -------------------------------------------- */
.heros { position: relative; min-height: min(78vh, 46rem); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--violet-fonce); }
.heros-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 28, .05) 30%, rgba(20, 12, 28, .72) 100%); }
.heros-texte { position: relative; z-index: 1; width: 100%; max-width: var(--large); margin: 0 auto; padding: 3rem 1.2rem 3.5rem; }
.heros h1 { color: #fff; max-width: 26ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.heros p { max-width: 38rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); margin: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.heros .bouton.secondaire { border-color: #fff; color: #fff; }
.heros .bouton.secondaire:hover { background: #fff; color: var(--violet-fonce); }
/* sans photo d'accueil : bandeau étroit (headbanner) au-dessus d'un aplat violet */
.heros.bandeau { min-height: 0; align-items: stretch; background: linear-gradient(160deg, var(--violet) 0%, var(--violet-fonce) 100%); }
.heros.bandeau .heros-image { position: relative; height: clamp(7rem, 17vw, 20rem); }
.heros.bandeau::after { display: none; }
.heros.bandeau .heros-texte { padding-top: 2.4rem; }

/* --- Sections ------------------------------------------------------------ */
.section { max-width: var(--large); margin: 0 auto; padding: 3.5rem 1.2rem; }
.section-titre { margin-top: 0; }
.intro { padding-bottom: 0; }
.intro .texte { margin: 0; padding: 0; font-size: 1.12em; }

/* --- Cartes des prestations ---------------------------------------------- */
.cartes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
.carte {
  position: relative; display: flex; flex-direction: column; background: var(--blanc); border-radius: var(--rayon);
  overflow: hidden; box-shadow: var(--ombre); border: 1px solid var(--bord-clair); transition: transform .2s, box-shadow .2s;
}
.carte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(34, 31, 39, .06), 0 14px 32px rgba(34, 31, 39, .1); }
.carte img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; display: block; }
.carte.sans-image { border-top: 5px solid var(--violet); }
.carte-texte { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.carte h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.carte h3 a { color: inherit; text-decoration: none; }
.carte h3 a::after { content: ""; position: absolute; inset: 0; }   /* toute la carte est cliquable */
.carte p { margin: 0 0 1rem; color: var(--gris); font-size: .97rem; line-height: 1.55; }
.carte-lien { margin-top: auto; font-weight: 600; color: var(--violet); font-size: .95rem; }
.cartes.defilantes { grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr); grid-template-columns: none; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.cartes.defilantes .carte { scroll-snap-align: start; }

/* --- À propos (accueil) --------------------------------------------------- */
.accueil-apropos { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; align-items: center; }
.accueil-apropos h2 { margin-top: 0; }
.accueil-apropos > div { flex: 1 1 22rem; }
.accueil-apropos p { max-width: var(--mesure); }
.portrait-lien { border-radius: 50%; flex: none; }
.portrait-lien:hover .portrait-rond { box-shadow: 0 0 0 6px var(--violet), var(--ombre); }
.apropos-portrait-lien { cursor: zoom-in; }
.visionneuse { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 16, 26, .92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.visionneuse img { max-width: 95vw; max-height: 95vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.visionneuse-fermer { position: absolute; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.portrait-rond { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 6px var(--violet-pale), var(--ombre); }

/* --- Bandeau de contact ---------------------------------------------------- */
.appel { background: var(--violet); color: #fff; }
.appel-int { max-width: var(--large); margin: 0 auto; padding: 3rem 1.2rem; }
.appel h2 { color: #fff; margin: 0 0 .5rem; }
.appel p { max-width: 40rem; margin: 0; }
.appel .bouton { background: #fff; border-color: #fff; color: var(--violet-fonce); }
.appel .bouton:hover { background: var(--violet-pale); border-color: var(--violet-pale); }
.appel .bouton.secondaire { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.appel .bouton.secondaire:hover { background: #fff; color: var(--violet-fonce); }

/* --- Pages de texte --------------------------------------------------------- */
.article-tete { background: var(--violet-pale); border-bottom: 1px solid var(--bord-clair); }
.article-titre { max-width: var(--large); margin: 0 auto; padding: 3rem 1.2rem 2.4rem; }
.article-titre h1 { max-width: 24ch; }
.surtitre { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vert); }
.chapeau { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--gris); max-width: var(--mesure); margin: 0; line-height: 1.55; }
.article-tete.avec-image { position: relative; background: var(--violet-fonce); color: #fff; min-height: clamp(18rem, 42vw, 30rem); display: grid; align-items: end; }
.article-tete.avec-image .article-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-tete.avec-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 28, 0) 25%, rgba(20, 12, 28, .75) 100%); }
.article-tete.avec-image .article-titre { position: relative; z-index: 1; width: 100%; }
.article-tete.avec-image h1, .article-tete.avec-image .chapeau { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.article-tete.avec-image .surtitre { color: #d9f0de; }

/* Texte long (éditeur du back-office) */
.texte { max-width: var(--mesure); margin: 0 auto; padding: 2.4rem 1.2rem 3.5rem; overflow-wrap: break-word; }
.texte > :first-child { margin-top: 0; }
.texte p, .texte ul, .texte ol { margin: 0 0 1.1em; }
.texte ul, .texte ol { padding-left: 1.3em; }
.texte li { margin-bottom: .4em; }
.texte li::marker { color: var(--violet); }
.texte h2 { padding-top: .6rem; }
.texte h2 + p, .texte h3 + p { margin-top: 0; }
.texte strong { font-weight: 650; }
.texte blockquote { margin: 1.8rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--vert); background: var(--vert-pale); border-radius: 0 var(--rayon) var(--rayon) 0; }
.texte blockquote p:last-child { margin-bottom: 0; }
.texte hr { border: 0; height: 1px; background: var(--bord-clair); margin: 2.5rem 0; }
.texte figure { margin: 2rem 0; }
.texte figure.media, .texte iframe { width: 100%; }
.texte iframe { aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--rayon); }
.texte figcaption { font-size: .9rem; color: var(--gris); margin-top: .4rem; }
.table-defile { overflow-x: auto; margin: 1.4rem 0 1.8rem; -webkit-overflow-scrolling: touch; }
.texte figure.table { margin: 1.4rem 0 1.8rem; display: block; }
.texte table { border-collapse: collapse; width: 100%; font-size: .95em; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: 0 0 0 1px var(--bord-clair); }
.texte th, .texte td { padding: .6rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bord-clair); }
.texte tr:last-child td { border-bottom: 0; }
.texte th { background: var(--violet-pale); font-weight: 650; }
.texte td:last-child:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.texte .encadre, .texte p.encadre { background: var(--blanc); border: 1px solid var(--bord-clair); border-radius: var(--rayon); padding: 1rem 1.2rem; }
.date-maj { color: var(--gris); }

/* --- Autres prestations (bas de page) ------------------------------------- */
.autres { padding-top: 2.5rem; }
.autres h2 { margin-top: 0; }

/* --- Contact ------------------------------------------------------------------ */
.contact-grille { max-width: var(--large); margin: 0 auto; padding: 2.4rem 1.2rem 4rem; display: grid; gap: 2.4rem; }
@media (min-width: 56rem) { .contact-grille { grid-template-columns: 2fr 3fr; align-items: start; } }
.contact-coord address { font-style: normal; font-size: 1.05rem; line-height: 1.7; }
.contact-coord .texte { padding: 1rem 0 0; margin: 0; }
.horaires { color: var(--gris); }
.liens-contact { list-style: none; padding: 0; margin: 0; }
.liens-contact li { margin: .3rem 0; }
.liens-contact.grands a { display: flex; gap: .8rem; padding: .8rem 1rem; margin-bottom: .5rem; border: 1px solid var(--bord-clair); border-radius: var(--rayon); background: var(--blanc); text-decoration: none; color: var(--encre); }
.liens-contact.grands a:hover { border-color: var(--violet); }
.liens-contact.grands span { min-width: 5.5rem; color: var(--gris); font-size: .9rem; padding-top: .1rem; }
.formulaire { background: var(--blanc); border: 1px solid var(--bord-clair); border-radius: var(--rayon); padding: 1.6rem; box-shadow: var(--ombre); }
.formulaire h2 { margin-top: 0; }
.formulaire label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 1.1rem; }
.formulaire input:not([type=checkbox]), .formulaire textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .75rem .85rem; border: 1px solid #cfc8d8; border-radius: 8px;
  font: 400 1rem/1.4 var(--police-texte); background: var(--papier); color: var(--encre);
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--violet); border-color: var(--violet); background: #fff; }
.formulaire [aria-invalid="true"] { border-color: var(--rouge); }
.formulaire label.case { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.formulaire label.case input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--violet); }
.deux-colonnes { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }
.champ-erreur { display: block; color: var(--rouge); font-weight: 400; font-size: .9rem; margin-top: .25rem; }
.mdp-zone { position: relative; display: block; }
.formulaire .mdp-zone input { padding-right: 3rem; }
.mdp-oeil { position: absolute; right: .35rem; bottom: .3rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--gris); cursor: pointer; }
.mdp-oeil:hover, .mdp-oeil[aria-pressed="true"] { color: var(--violet); background: var(--violet-pale); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: .85rem; color: var(--gris); }
.msg { padding: .9rem 1.1rem; border-radius: 8px; border-left: 4px solid; }
.msg.ok { background: var(--vert-pale); border-color: var(--vert); }
.msg.err { background: #fbecec; border-color: var(--rouge); }

/* --- Pages en évidence et lien du compte dans le menu ---- */
.nav-liste a.en-evidence, .sous-menu a.en-evidence { background: var(--violet); color: #fff !important; font-weight: 700; border-radius: 8px; padding-left: .8rem; padding-right: .8rem; }
.nav-liste a.en-evidence:hover, .sous-menu a.en-evidence:hover, .sous-menu a.en-evidence[aria-current="page"] { background: var(--violet-fonce); color: #fff !important; }
.carte.en-evidence { background: var(--violet); border-color: var(--violet); box-shadow: 0 10px 30px rgba(99, 54, 137, .25); }
.carte.en-evidence h3, .carte.en-evidence h3 a, .carte.en-evidence p, .carte.en-evidence .carte-lien { color: #fff; }
.nav-compte a { display: inline-flex; align-items: center; gap: .4rem; }
.nav-compte svg { flex: none; }

/* --- Accueil : texte de présentation dans le bandeau ---- */
.heros-intro { max-width: 58rem; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); line-height: 1.6; }
.heros .heros-intro p { max-width: none; font-size: inherit; margin: 0 0 .8em; color: inherit; }
.heros-intro p:last-child { margin-bottom: 0; }
.heros-intro a { color: inherit; text-decoration-thickness: 1px; }

/* --- Page « Qui suis-je ? » ------------------------------------------------ */
.apropos-grille { max-width: var(--large); margin: 0 auto; padding: 2rem 1.2rem 3rem; display: grid; gap: 1.6rem; }
@media (min-width: 62rem) { .apropos-grille { grid-template-columns: 1fr 1fr; align-items: start; } }
.apropos-carte { background: #fff; border: 1px solid var(--bord-clair); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.6rem; min-width: 0; }
.apropos-carte h2 { margin: 0 0 1rem; font-size: 1.45rem; color: var(--violet-fonce); }
.apropos-carte h2 + * { margin-top: 0; }
.apropos-carte aside h2:not(:first-child), .apropos-carte > h2:not(:first-child) { margin-top: 2rem; }
.apropos-plan { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--bord-clair); }
.apropos-plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.apropos-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin: .9rem 0 1.4rem; }
.apropos-liens a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 600; }
.apropos-texte { padding: 0; max-width: none; }
.apropos-presentation { overflow: hidden; }
.apropos-presentation p { margin: 0 0 .8rem; }
.apropos-portrait { float: left; width: 8.5rem; height: 8.5rem; margin: .2rem 1.1rem .6rem 0; object-fit: cover; border-radius: 18px; filter: grayscale(1); }
.apropos-horaires { color: var(--gris); font-size: .95rem; }
.apropos-bouton { text-align: center; margin: 1rem 0; }
.apropos-reseaux { list-style: none; display: flex; justify-content: center; gap: .9rem; padding: 0; margin: 0 0 .5rem; }
.apropos-reseaux a { color: var(--gris); display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; }
.apropos-reseaux a:hover { color: #fff; background: var(--violet); }
.apropos-instagram { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--bord-clair); height: 520px; }
.apropos-instagram iframe { width: 100%; height: 100%; border: 0; }

/* --- Compte client ------------------------------------------------------------ */
.compte-corps { max-width: var(--mesure); margin: 0 auto 3rem; }
.compte-corps h2 { margin-top: 2rem; }
.compte-liens { padding-left: 1.2rem; }
.compte-nouveau { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--bord-clair); }
.compte-sortie { margin-top: 1.6rem; }
.formulaire select { display: block; margin-top: .35rem; padding: .6rem .75rem; border: 1px solid #cfc8d8; border-radius: 8px; font: 400 1rem var(--police-texte); background: var(--papier); }
@media (min-width: 36rem) { .npa-lieu { grid-template-columns: 8rem 1fr; } }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Encart de la page labo ---- */
.labo-encart { max-width: var(--mesure); width: calc(100% - 2.4rem); margin: 2rem auto 0; padding: 1.2rem 1.4rem; background: var(--violet-pale); border-radius: var(--rayon); }
.labo-encart p { margin: 0 0 .8rem; }
.boutons-encart { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 !important; }

/* --- Commande labo en ligne --------------------------------------------------- */
.labo-commande { padding-bottom: 3rem; }
.labo-commande > p, .labo-commande > .msg, .labo-form, .labo-merci { max-width: var(--large); margin-left: auto; margin-right: auto; }
.labo-pdf { padding: 0 1.2rem; }
.labo-form { padding: 1.2rem; }
.labo-grille { display: grid; gap: 1.6rem; }
@media (min-width: 62rem) { .labo-grille { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }
.labo-bloc { border: 0; border-top: 1px solid var(--bord-clair); margin: 0 0 1.4rem; padding: 1.2rem 0 0; min-width: 0; }
.labo-bloc:first-child { border-top: 0; padding-top: 0; }
.labo-bloc legend { font: 600 1.35rem var(--police-titre); padding: 0; margin-bottom: .6rem; }
.labo-bloc h3 { margin-top: 1.4rem; }
.formulaire label.option { display: grid; grid-template-columns: 1.4rem 1fr; gap: .1rem .6rem; font-weight: 400; padding: .7rem .8rem; margin-bottom: .5rem; border: 1px solid var(--bord-clair); border-radius: 8px; cursor: pointer; }
.formulaire label.option:has(input:checked) { border-color: var(--violet); background: var(--violet-pale); }
.formulaire label.option input { width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; accent-color: var(--violet); grid-row: span 3; }
.formulaire label.option.compacte { padding: .45rem .7rem; }
.option-titre { font-weight: 600; }
.option-prix { font-weight: 600; color: var(--violet); white-space: nowrap; }
.option-aide { display: block; font-size: .9rem; color: var(--gris); font-weight: 400; }
.option-rabais { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--vert); }
.labo-sous { margin: .4rem 0 1rem 1.2rem; padding-left: 1rem; border-left: 3px solid var(--violet-pale); }
.labo-sous .labo-sous { margin-left: 0; }
.formulaire label.quantite { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font-weight: 400; margin-bottom: .7rem; }
.formulaire label.quantite > span { flex: 1 1 14rem; }
.formulaire label.quantite input, .formulaire label.quantite select { width: 6rem; margin-top: 0; text-align: right; }
.labo-quantites { display: grid; gap: 0 1.2rem; }
@media (min-width: 48rem) { .labo-quantites { grid-template-columns: 1fr 1fr; } }
.etoile { color: var(--violet); }
.labo-choix { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.labo-recap { background: var(--papier); border: 1px solid var(--bord-clair); border-radius: var(--rayon); padding: 1.2rem; }
@media (min-width: 62rem) { .labo-recap { position: sticky; top: 5.5rem; } }
.labo-recap h2 { margin: 0 0 .6rem; font-size: 1.35rem; }
.recap-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 1rem; }
.recap-table td, .recap-table th { padding: .4rem 0; border-bottom: 1px solid var(--bord-clair); text-align: left; vertical-align: top; }
.recap-table .montant { text-align: right; white-space: nowrap; padding-left: .8rem; }
.recap-table tfoot th { font-size: 1.1rem; border-bottom: 0; padding-top: .7rem; }
.recap-table small { color: var(--gris); }
.recap-vide { color: var(--gris); }
.recap-economie { margin: -.4rem 0 .8rem; padding: .45rem .7rem; border-radius: 8px; background: var(--vert-pale); color: var(--vert); font-weight: 600; text-align: right; }
.labo-envoyer { width: 100%; margin-top: .4rem; }
.labo-maj-adresse { margin: .8rem 0 0; padding: .7rem .9rem; border: 1px dashed #cfc8d8; border-radius: 8px; }
.labo-maj-adresse summary { cursor: pointer; color: var(--violet); font-weight: 600; }
.labo-maj-adresse[open] summary { margin-bottom: .8rem; }
.labo-adresse { font-style: normal; padding: .8rem 1rem; background: var(--violet-pale); border-radius: 8px; display: inline-block; }
.labo-merci { padding: 0 1.2rem; }
.labo-ref { font-size: 1.3rem; }
.labo-ref strong { font-size: 1.8rem; color: var(--violet); letter-spacing: .02em; }
.labo-merci .actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media print {
  .labo-merci .actions, .labo-pdf { display: none !important; }
  .labo-adresse { background: none; border: 1px solid #000; }
}

/* étapes et tuiles du bulletin labo */
.labo-etape { margin: 0 0 2rem; }
.labo-etape h2 { font-size: 1.35rem; margin: 0 0 .9rem; display: flex; align-items: center; gap: .6rem; }
.etape-n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--violet); color: #fff; font: 700 1rem var(--police-texte); flex: none; }
.labo-nombre { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.compteur { display: inline-flex; align-items: stretch; border: 1px solid #cfc8d8; border-radius: 10px; overflow: hidden; background: #fff; }
.compteur button { width: 3rem; border: 0; background: var(--violet-pale); color: var(--violet); font: 700 1.5rem/1 var(--police-texte); cursor: pointer; }
.compteur button:hover { background: var(--violet); color: #fff; }
.formulaire .compteur input { width: 4.5rem; margin: 0; border: 0; border-radius: 0; text-align: center; font-size: 1.4rem; font-weight: 700; background: #fff; -moz-appearance: textfield; }
.compteur input::-webkit-inner-spin-button, .compteur input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.formulaire label.labo-type { margin: 0; flex: 1 1 16rem; }
.formulaire label.labo-type select { width: 100%; margin: 0; padding: .75rem; }
.tuiles { display: grid; gap: .9rem; }
@media (min-width: 40rem) { .tuiles-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 48rem) { .tuiles-3 { grid-template-columns: repeat(3, 1fr); } }
.formulaire label.tuile { position: relative; display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 1.1rem 1rem 1rem; border: 2px solid var(--bord-clair); border-radius: var(--rayon); background: #fff; font-weight: 400; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.formulaire label.tuile:hover { border-color: #b9a6cc; }
.formulaire label.tuile:has(input:checked) { border-color: var(--violet); background: var(--violet-pale); box-shadow: 0 0 0 3px rgba(99, 54, 137, .15); }
.formulaire label.tuile input { position: absolute; top: .9rem; right: .9rem; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--violet); }
.tuile-titre { font: 600 1.1rem/1.25 var(--police-titre); padding-right: 1.6rem; }
.tuile-services { display: flex; flex-direction: column; gap: .2rem; margin: .3rem 0 .1rem; font-size: .92rem; }
.tuile-service-ligne { display: flex; justify-content: space-between; gap: .6rem; }
.tuile-prix-u { white-space: nowrap; }
.tuile-prix-u strong { color: var(--violet); font-size: 1.05rem; }
.tuile-prix-u del, .pastille del { color: var(--gris); font-size: .85em; }
.pastille input:checked + span del { color: #e6dcef; }
.tuile-prix { font-size: 1.5rem; font-weight: 700; color: var(--violet); }
.tuile-prix del { font-size: .95rem; font-weight: 400; color: var(--gris); }
.tuile-unite { font-size: .85rem; color: var(--gris); }
.tuile-badge { align-self: flex-start; margin-top: auto; padding: .15rem .55rem; border-radius: 99px; background: var(--vert-pale); color: var(--vert); font-size: .8rem; font-weight: 600; }
.formulaire label.labo-aucun input { display: inline-block; width: auto; margin: 0; flex: none; accent-color: var(--violet); }
.formulaire label.labo-aucun { display: flex; gap: .5rem; align-items: center; font-weight: 400; font-size: .9rem; color: var(--gris); margin: .8rem 0 0; }
.labo-precisions { margin-top: 1rem; padding: 1rem 1.1rem .3rem; border-radius: var(--rayon); background: var(--papier); border: 1px solid var(--bord-clair); }
.choix-ligne { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .4rem; }
.formulaire label.pastille { margin: 0; font-weight: 400; }
.formulaire label.pastille input { position: absolute; opacity: 0; }
.pastille span { display: inline-block; padding: .45rem .9rem; border: 1px solid #cfc8d8; border-radius: 99px; background: #fff; cursor: pointer; }
.pastille input:checked + span { border-color: var(--violet); background: var(--violet); color: #fff; }
.pastille input:focus-visible + span { outline: 3px solid var(--vert); }
.labo-liquidation { padding: 1rem 1.1rem .2rem; border: 1px dashed var(--bord-clair); border-radius: var(--rayon); }
.formulaire .labo-liquidation select { width: 6rem; }
.labo-autres { margin: 0 0 2rem; border: 1px solid var(--bord-clair); border-radius: var(--rayon); background: #fff; }
.labo-autres > summary { padding: 1rem 1.1rem; cursor: pointer; list-style-position: inside; }
.labo-autres > summary .note { display: block; margin-top: .2rem; }
.labo-autres[open] > summary { border-bottom: 1px solid var(--bord-clair); }
.labo-autres > .tuiles, .labo-autres > .note { margin: 1rem 1.1rem; }
.tuile-service { border: 2px solid var(--bord-clair); border-radius: var(--rayon); padding: .9rem 1rem; background: var(--papier); }
.tuile-service[open] { border-color: var(--violet); background: #fff; }
.tuile-service > summary { display: flex; flex-direction: column; gap: .2rem; cursor: pointer; list-style: none; }
.tuile-service > summary::-webkit-details-marker { display: none; }
.tuile-service > summary::after { content: "+"; position: relative; align-self: flex-end; margin-top: -1.6rem; font-size: 1.3rem; color: var(--violet); }
.tuile-service[open] > summary::after { content: "−"; }
.tuile-service > summary + * { margin-top: .8rem; }

/* --- Tarifs des tableaux (conteneur) ---------------------------------------- */
.tarifs { max-width: var(--large); margin: 0 auto; padding: 2.4rem 1.2rem 1rem; }

/* --- Pied de page ------------------------------------------------------------- */
.pied { background: #1e1a24; color: #d6d1dc; font-size: .95rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied-int { max-width: var(--large); margin: 0 auto; padding: 3rem 1.2rem 2rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.pied h2 { font: 700 .8rem var(--police-texte); letter-spacing: .12em; text-transform: uppercase; color: #a99fb5; margin: 0 0 .8rem; }
.pied address { font-style: normal; margin-bottom: .6rem; }
.pied p { margin: 0 0 .6rem; }
.pied-logo { background: #fff; padding: .45rem .7rem; border-radius: 10px; margin-bottom: .6rem; width: 170px; height: auto; box-sizing: content-box; }
.pied-bas { border-top: 1px solid #342e3c; max-width: var(--large); margin: 0 auto; padding: 1.2rem 1.2rem 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #a99fb5; }
.pied-bas p { margin: 0; }
.pied-bas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

/* --- Impression --------------------------------------------------------------- */
@media print {
  .entete, .pied, .appel, .autres, .annonce, .boutons { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article-tete { background: none; }
  .article-tete.avec-image { color: #000; min-height: 0; }
  .article-tete.avec-image .article-image, .article-tete.avec-image::after { display: none; }
  .article-tete.avec-image h1, .article-tete.avec-image .chapeau { color: #000; text-shadow: none; }
}
