/* 15 Alors — feuille de style du site public (téléphone d’abord). */

@font-face { font-family: "Bricolage Grotesque"; src: url("../polices/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../polices/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #F4ECE2; --surface: #FFFDF9; --encre: #1D1A14; --doux: #5C564A; --ligne: #E3D8CA;
  --acc: #CEBD07; --sur-acc: #1D1A14;
  --vert: #325A4B; --rose: #C81E41; --bleu: #143773; --corail: #E9C9B3; --creme: #F4ECE2;
  --rayon: 24px; --rayon-s: 18px; --gouttiere: 16px;
  --titres: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="sombre"] {
  --bg: #0E1814; --surface: #17241F; --encre: #F3EDE4; --doux: #B4BCB5; --ligne: #2A3A33;
  --vert: #3D7A62; --corail: #5A4337; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --bg: #0E1814; --surface: #17241F; --encre: #F3EDE4; --doux: #B4BCB5; --ligne: #2A3A33;
    --vert: #3D7A62; --corail: #5A4337; color-scheme: dark;
  }
}
/* Couleur de mise en valeur choisie par le visiteur (lisible en clair comme en sombre) */
:root[data-couleur="corail"] { --acc: #FF6B5B; }
:root[data-couleur="bleu"]   { --acc: #4C8DF6; }
:root[data-couleur="vert"]   { --acc: #2FBF71; }

@media (min-width: 700px) { :root { --gouttiere: clamp(20px, 3vw, 40px); --rayon: 28px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--encre); font-family: var(--texte); font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl, figure, h1, h2, h3 { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
main:focus { outline: none; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js-seul { display: none; }
.js .js-seul { display: revert; }
.icone { flex: none; }
.centre { text-align: center; }
.texte-doux { color: var(--doux); }

.evitement { position: absolute; left: 12px; top: -100px; z-index: 50; background: var(--encre); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.evitement:focus { top: 12px; }

/* ---------- Typographie ---------- */
.titre-hero, .titre-page, .titre-section, .titre-tuile, .carte-titre, .chiffre, .chiffre-valeur, .marque-nom, .voisin-titre, .membre-nom {
  font-family: var(--titres); font-optical-sizing: auto; font-weight: 750; letter-spacing: -.025em; line-height: 1.02;
}
.titre-hero { font-size: clamp(2.6rem, 9.5vw, 6rem); line-height: .98; }
.titre-page { font-size: clamp(2.5rem, 8vw, 4.75rem); margin-top: 14px; }
.titre-section { font-size: clamp(2.1rem, 6vw, 4.25rem); }
.titre-tuile { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.05; margin-bottom: 18px; }
.valeur { display: inline-block; background: var(--acc); color: var(--sur-acc); border-radius: 999px; padding: 0 .28em; transform: rotate(-2deg); }
.valeur-2 { transform: rotate(2deg); }
.chapeau { font-size: 1.25rem; line-height: 1.5; margin-top: 16px; max-width: 46ch; }
.chapeau p + p, .texte-long p + p, .intro p + p { margin-top: .8em; }
.texte-long { max-width: 70ch; }
.texte-long h2, .texte-long h3 { font-family: var(--titres); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 1.4em 0 .4em; font-size: 1.5rem; }
.texte-long h2:first-child, .texte-long h3:first-child { margin-top: 0; }
.texte-long ul { padding-left: 1.2em; margin: .6em 0; }
.texte-long ul li + li { margin-top: .3em; }
.texte-long p + ul, .texte-long ul + p { margin-top: .8em; }

/* ---------- Boutons, pastilles, étiquettes ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--encre); background: transparent; color: var(--encre); font-weight: 600; font-size: 1rem; line-height: 1.15; text-decoration: none; text-align: center; transition: transform .15s ease; }
.pill:hover { transform: translateY(-2px); text-decoration: none; }
.pill-encre { background: var(--encre); color: var(--bg); }
.pill-acc { background: var(--acc); border-color: var(--acc); color: var(--sur-acc); }
.pill-grand { min-height: 58px; padding: 0 32px; }
.bouton-rond { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; border: 2px solid var(--ligne); background: var(--surface); color: var(--encre); padding: 0; }
.bouton-rond:hover { border-color: var(--encre); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ligne); font-size: .875rem; font-weight: 600; line-height: 1.2; }
.badge-acc { background: var(--acc); border-color: var(--acc); color: var(--sur-acc); }
.sticker { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--encre); font-size: .875rem; font-weight: 700; line-height: 1.2; }
.sticker-acc { background: var(--acc); color: var(--sur-acc); transform: rotate(-4deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ligne); background: var(--surface); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.chip:hover { border-color: var(--encre); }
.chip[aria-current="true"] { background: var(--acc); border-color: var(--acc); color: var(--sur-acc); }
.compte { display: inline-block; min-width: 1.6em; padding: 2px 8px; border-radius: 999px; background: var(--encre); color: var(--bg); font-size: .8125rem; text-align: center; }

/* ---------- Choix de la couleur ---------- */
.couleurs-int { max-width: 1360px; margin: 0 auto; padding: 12px var(--gouttiere) 0; display: flex; align-items: center; gap: 10px 16px; }
.couleurs-texte { flex: 1 1 auto; font-size: .875rem; line-height: 1.35; }
.couleurs-texte span { color: var(--doux); }
.couleurs-choix { display: flex; align-items: center; gap: 8px; flex: none; }
.pastille { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 2px solid var(--encre); }
.pastille .icone { display: none; color: #1D1A14; stroke-width: 3; }
.pastille[aria-pressed="true"] { outline: 3px solid var(--encre); outline-offset: 3px; }
.pastille[aria-pressed="true"] .icone { display: block; }
.pastille-jaune { background: #CEBD07; } .pastille-corail { background: #FF6B5B; } .pastille-bleu { background: #4C8DF6; } .pastille-vert { background: #2FBF71; }
.couleurs-nom { display: none; font-size: .875rem; font-weight: 600; min-width: 112px; padding-left: 4px; }
@media (max-width: 420px) { .couleurs-texte span { display: block; } .pastille { width: 42px; height: 42px; } }
@media (min-width: 900px) {
  .couleurs-int { justify-content: flex-end; }
  .couleurs-texte { flex: 0 1 auto; font-size: .9375rem; }
  .couleurs-nom { display: inline; }
  .couleurs-texte span::before { content: "— "; }
}

/* ---------- En-tête ---------- */
.entete { max-width: 1360px; margin: 0 auto; padding: 12px var(--gouttiere) 0; }
.capsule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--surface); border-radius: 30px; padding: 6px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; border-radius: 999px; }
.marque-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #CEBD07; padding: 7px; }
.marque-logo img { width: 100%; height: 100%; }
.marque-nom { font-size: 1.25rem; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current] { background: var(--encre); color: var(--bg); }
.bouton-theme .icone:last-of-type { display: none; }
.bouton-theme[aria-pressed="true"] .icone:first-of-type { display: none; }
.bouton-theme[aria-pressed="true"] .icone:last-of-type { display: block; }
.entete-cta { display: none; }
.bouton-menu { min-height: 52px; padding: 0 20px; }
.nav { order: 5; flex-basis: 100%; }
.js .nav { display: none; }
.js .nav.ouvert { display: block; padding: 4px 6px 8px; }
.js .nav.ouvert ul { flex-direction: column; }
.js .nav.ouvert a { width: 100%; font-size: 1.125rem; }
@media (min-width: 900px) {
  .capsule { flex-wrap: nowrap; gap: 16px; padding: 10px 10px 10px 12px; }
  .marque { margin-right: 0; }
  .nav, .js .nav { display: flex; order: 0; flex: 1 1 auto; justify-content: center; }
  .bouton-menu { display: none !important; }
  .entete-cta { display: inline-flex; }
}

/* ---------- Mise en page ---------- */
.conteneur { max-width: 1360px; margin: 0 auto; padding: 16px var(--gouttiere) 0; }
.section { margin-top: clamp(56px, 9vw, 96px); }
.section-haut { padding-top: 8px; }
.section-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .9375rem; color: var(--doux); padding: 6px 0 8px; }
.ariane li + li::before { content: "›"; margin-right: 8px; }
.ariane a { display: inline-block; padding: 8px 0; }
.ariane [aria-current] { padding: 8px 0; color: var(--encre); font-weight: 600; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bento > * { grid-column: 1 / -1; }
.tuile { position: relative; border-radius: var(--rayon); background: var(--surface); padding: 26px 22px; overflow: hidden; }
.tuile-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.tuile-intro .intro { font-size: 1.125rem; line-height: 1.55; max-width: 52ch; margin-bottom: 22px; }
.tuile-photo { padding: 0; min-height: 260px; }
.tuile-photo .tuile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuile-photo .sticker { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); }
.tuile-photo-grande { aspect-ratio: 4 / 3; }
.tuile-chiffre { grid-column: span 1; color: #FFFFFF; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; aspect-ratio: 1; padding: 18px; }
.tuile-chiffre .chiffre { display: block; font-size: clamp(3rem, 12vw, 4.5rem); line-height: .9; }
.chiffre-texte { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.3; margin-top: 6px; }
.tuile-forme { width: 40px; height: 40px; }
.tuile-rose { background: var(--rose); color: #FFFFFF; }
.tuile-bleu { background: var(--bleu); color: #FFFFFF; }
.tuile-vert { background: var(--vert); color: #FFFFFF; }
.tuile-acc { background: var(--acc); color: var(--sur-acc); }
.bento > .tuile-photo:not(.tuile-photo-grande) { grid-column: span 1; aspect-ratio: 1; min-height: 0; }
.f-acc { fill: var(--acc); } .f-rose { fill: var(--rose); } .f-bleu { fill: var(--bleu); } .f-vert { fill: var(--vert); } .f-corail { fill: var(--corail); } .f-creme { fill: #F4ECE2; }
.f-sourire { stroke: #C81E41; stroke-width: 5; stroke-linecap: round; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .bento > .tuile-intro { grid-column: span 7; min-height: 520px; padding: clamp(28px, 4vw, 56px); }
  .bento > .tuile-photo-grande { grid-column: span 5; aspect-ratio: auto; }
  .bento:not(:has(.tuile-photo-grande)) > .tuile-intro { grid-column: 1 / -1; min-height: 0; }
  .bento > .tuile-chiffre, .bento > .tuile-photo:not(.tuile-photo-grande) { grid-column: span 3; aspect-ratio: auto; min-height: 220px; padding: 28px; }
  .tuile-forme { width: 56px; height: 56px; }
  .chiffre-texte { font-size: 1.0625rem; }
  .bento > .tuile-lieux { grid-column: span 7; padding: clamp(28px, 4vw, 56px); }
  .bento > .tuile-savoir { grid-column: span 5; padding: clamp(28px, 4vw, 48px); }
  .bento > .tuile-large { grid-column: 1 / -1; }
  .bento-collectif > .tuile-intro { min-height: 0; }
}

/* Mosaïque de projets */
.mosaique { columns: 1; column-gap: 20px; }
@media (min-width: 640px) { .mosaique { columns: 2; } }
@media (min-width: 1040px) { .mosaique { columns: 3; } }
.carte-projet { break-inside: avoid; margin-bottom: 20px; }
.carte { display: block; background: var(--surface); border-radius: var(--rayon); padding: 10px 10px 20px; text-decoration: none; }
.carte-media { display: block; position: relative; overflow: hidden; border-radius: var(--rayon-s); }
.carte-img { width: 100%; transition: transform .4s ease; }
.carte:hover .carte-img { transform: scale(1.03); }
.carte:hover .carte-titre { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.carte .sticker { position: absolute; top: 14px; left: 14px; }
.carte-titre { display: block; margin: 16px 8px 6px; font-size: 1.625rem; line-height: 1.08; }
.carte-meta { display: block; margin: 0 8px; color: var(--doux); font-size: .9375rem; }
.chips-tete { max-width: 760px; }

/* Lieux et savoir-faire */
.tuile-lieux .texte-doux { margin: 12px 0 26px; font-size: 1.0625rem; max-width: 52ch; }
.communes { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-commune { border-color: var(--ligne); background: var(--bg); min-height: 48px; padding: 0 18px; }
.puces { display: grid; gap: 10px; font-size: 1.0625rem; font-weight: 600; }
.puces li { display: flex; gap: 12px; align-items: baseline; }
.puces li::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; background: currentColor; transform: translateY(1px); }
@media (min-width: 700px) { .puces-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; } }

/* Contact (tuile verte) */
.tuile-contact { background: var(--vert); color: #FFFFFF; padding: 28px 20px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.tuile-contact :focus-visible { outline-color: #FFFFFF; }
.contact-texte { flex: 1 1 300px; }
.contact-texte > div { margin-top: 16px; font-size: 1.125rem; line-height: 1.55; max-width: 42ch; }
.contact-formes { margin-top: 28px; width: 160px; height: 80px; }
.tuile-contact .formulaire { flex: 999 1 480px; min-width: 0; }
.tuile-contact a { color: #FFFFFF; }
.coordonnees { font-size: 1rem !important; }
.reseaux { margin-top: 20px; font-weight: 600; }
.reseaux a { display: inline-block; padding: 8px 4px; }
@media (min-width: 900px) { .tuile-contact { padding: clamp(32px, 5vw, 72px); } }

/* Formulaire */
.form-note { font-size: .9375rem; margin-bottom: 18px; }
.form-grille { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .champ-large { grid-column: 1 / -1; } }
.champ label { display: block; font-weight: 600; margin-bottom: 8px; }
.champ input:not([type="checkbox"]), .champ select, .champ textarea { width: 100%; min-height: 56px; padding: 12px 18px; border: 2px solid transparent; border-radius: 16px; background: #FFFDF9; color: #1D1A14; font-size: 1.0625rem; line-height: 1.4; }
.champ textarea { min-height: 170px; resize: vertical; }
.champ [aria-invalid="true"] { border-color: #FFD24A; box-shadow: 0 0 0 2px #1D1A14 inset; }
.aide { font-size: .875rem; margin-top: 6px; opacity: .92; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; }
.case input { flex: none; width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--acc); }
.case label { font-weight: 400; margin: 0; }
.erreur { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 10px; background: #FFFDF9; color: #A1121B; font-weight: 600; font-size: .9375rem; }
.erreur::before { content: "⚠ "; }
.erreurs, .confirmation { background: #FFFDF9; color: #1D1A14; border-radius: var(--rayon-s); padding: 18px 20px; margin-bottom: 22px; }
.erreurs { border-left: 8px solid #A1121B; }
.erreurs a { color: #A1121B; font-weight: 600; }
.erreurs ul { margin-top: 8px; padding-left: 1.2em; }
.confirmation { border-left: 8px solid #2FBF71; }
.confirmation p + p { margin-top: 6px; }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Liste des projets */
.filtres { display: grid; gap: 18px; margin: 28px 0 8px; }
.filtres-titre { font-weight: 700; font-size: .9375rem; margin-bottom: 8px; }
.resultat { font-family: var(--texte); font-size: 1.0625rem; font-weight: 700; margin: 24px 0 16px; scroll-margin-top: 16px; }
.vide { padding: 32px 0; font-size: 1.125rem; }

/* Fiche projet */
.fiche-surtitre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fiche-surtitre a { text-decoration-thickness: 3px; text-decoration-color: var(--acc); text-underline-offset: .3em; }
.fiche-surtitre .sticker { margin-left: 12px; letter-spacing: 0; text-transform: none; }
.fiche-tete .titre-page { margin-top: 10px; hyphens: auto; -webkit-hyphens: auto; }
.fiche-savoirs { margin-top: 20px; }
.badge-lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; }
.badge-lien:hover { border-color: currentColor; }
.fiche-h2 { font-family: var(--titres); font-optical-sizing: auto; font-weight: 750; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.fiche-texte .fiche-h2 { margin-bottom: 14px; }
.fiche-texte .texte-long { font-size: 1.125rem; line-height: 1.65; }
.fiche-couverture img { width: auto; max-width: 100%; max-height: min(80vh, 720px); border-radius: var(--rayon); }
.fiche-couverture figcaption { font-size: .875rem; color: var(--doux); margin-top: 10px; padding: 0 4px; }

.fiche-synthese { display: grid; gap: 22px; align-content: start; }
.fiche-synthese-titre { display: flex; align-items: center; gap: 10px; font-family: var(--titres); font-weight: 750; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }
.fiche-synthese-forme { flex: none; fill: var(--acc); }
.chiffres-cles { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.chiffre-label, .chiffre-valeur { overflow-wrap: normal; }
.chiffre-tuile { padding: 16px; border-radius: var(--rayon-s); }
.chiffre-label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chiffre-valeur { display: block; margin-top: 8px; font-size: 1.375rem; line-height: 1.1; }
.fiche-dl { display: grid; gap: 14px; }
.fiche-dl > div + div { padding-top: 14px; border-top: 1.5px solid var(--filet, var(--ligne)); }
.fiche-dl dt { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
.fiche-dl dd { margin: 4px 0 0; line-height: 1.5; }
.fiche-dl .badges { gap: 6px; margin-top: 8px; }
.fiche-imprimer .pill { width: 100%; min-height: 48px; padding: 0 18px; font-size: .9375rem; }
.js .fiche-imprimer.js-seul { display: block; }

/* Mise en page : titre sur toute la largeur, puis « En bref » à gauche (fond teinté) et photo + texte à droite.
   Sur téléphone : titre, photo, « En bref », texte. */
.fiche .fiche-grille { display: flex; flex-direction: column; gap: 28px; }
.fiche .fiche-corps { display: contents; }
.fiche .fiche-tete { order: 1; } .fiche .fiche-couverture { order: 2; } .fiche .fiche-synthese { order: 3; } .fiche .fiche-texte { order: 4; }
.fiche .fiche-synthese { --filet: color-mix(in srgb, var(--encre) 14%, transparent); background: var(--fiche-fond); border-radius: var(--rayon); padding: 24px 20px; }
.fiche .fiche-dl .badge { background: var(--surface); border-color: var(--filet); }
@media (min-width: 700px) {
  .fiche .fiche-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "tete tete" "synth corps"; gap: 36px 32px; align-items: start; }
  .fiche .fiche-tete { grid-area: tete; } .fiche .fiche-synthese { grid-area: synth; }
  .fiche .fiche-corps { grid-area: corps; display: flex; flex-direction: column; gap: 36px; }
  .fiche .fiche-tete .chapeau { max-width: 52ch; }
}
@media (min-width: 1100px) {
  .fiche .fiche-grille { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; }
  .fiche .fiche-synthese { padding: 32px 28px; }
}
@media (min-width: 900px) and (min-height: 720px) { .fiche .fiche-synthese { position: sticky; top: 24px; } }

/* Fond du bloc « En bref » (réglable dans l’administration : Textes › Page Projets).
   Par défaut : une teinte pâle de la couleur choisie en haut du site (foncée en mode sombre). */
:root { --acc-pale: #F8EEAC; }
:root[data-couleur="corail"] { --acc-pale: #FFDAD3; }
:root[data-couleur="bleu"] { --acc-pale: #D9E6FD; }
:root[data-couleur="vert"] { --acc-pale: #D2F0DE; }
:root[data-theme="sombre"] { --acc-pale: #36331A; }
:root[data-theme="sombre"][data-couleur="corail"] { --acc-pale: #3E2622; }
:root[data-theme="sombre"][data-couleur="bleu"] { --acc-pale: #1D2A40; }
:root[data-theme="sombre"][data-couleur="vert"] { --acc-pale: #173826; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) { --acc-pale: #36331A; }
  :root:not([data-theme="clair"])[data-couleur="corail"] { --acc-pale: #3E2622; }
  :root:not([data-theme="clair"])[data-couleur="bleu"] { --acc-pale: #1D2A40; }
  :root:not([data-theme="clair"])[data-couleur="vert"] { --acc-pale: #173826; }
}
.fiche { --fiche-fond: var(--acc-pale); }
.fiche-teinte-sauge { --fiche-fond: #D6E4D9; }
.fiche-teinte-peche { --fiche-fond: #F8D9C4; }
.fiche-teinte-ciel { --fiche-fond: #D7E3F4; }
:root[data-theme="sombre"] .fiche-teinte-sauge { --fiche-fond: #20372C; }
:root[data-theme="sombre"] .fiche-teinte-peche { --fiche-fond: #3B2A21; }
:root[data-theme="sombre"] .fiche-teinte-ciel { --fiche-fond: #1C2D40; }
:root[data-theme="sombre"] .chiffre-tuile { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) .fiche-teinte-sauge { --fiche-fond: #20372C; }
  :root:not([data-theme="clair"]) .fiche-teinte-peche { --fiche-fond: #3B2A21; }
  :root:not([data-theme="clair"]) .fiche-teinte-ciel { --fiche-fond: #1C2D40; }
  :root:not([data-theme="clair"]) .chiffre-tuile { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
}

.fiche-source { display: none; }

/* Appel à contact */
.fiche-appel { display: grid; gap: 22px; margin-top: 56px; padding: 28px 22px; }
.fiche-appel .titre-tuile { margin-bottom: 0; font-size: clamp(1.875rem, 4.5vw, 3rem); }
.fiche-appel-texte { margin-top: 12px; font-size: 1.125rem; line-height: 1.5; max-width: 52ch; }
.fiche-appel :focus-visible { outline-color: var(--sur-acc); }
.tuile-acc .valeur { background: var(--encre); color: var(--bg); }
@media (min-width: 900px) { .fiche-appel { grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: clamp(32px, 4vw, 56px); } }

/* Galerie défilante */
.galerie { margin-top: 56px; }
.galerie-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.galerie-aide { color: var(--doux); font-size: .9375rem; }
.galerie .carrousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); margin: 0 calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere) 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.carrousel::after { content: ""; flex: none; width: 1px; }
.carrousel li { flex: none; scroll-snap-align: start; }
.carrousel-lien { position: relative; display: block; border-radius: var(--rayon-s); overflow: hidden; }
.carrousel-img { height: min(60vh, 420px); width: auto; max-width: min(85vw, 640px); object-fit: cover; }
.js .carrousel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* Projets voisins : photo en fond, fondu progressif jusqu’au titre */
.voisins { display: grid; gap: 12px; margin-top: 16px; }
.voisin { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 230px; padding: 20px 22px; background: var(--surface); border-radius: var(--rayon); text-decoration: none; }
.voisin-img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .3, 1);
  -webkit-mask-image: linear-gradient(to top, transparent 0, transparent 92px, rgba(0, 0, 0, .55) 150px, #000 100%);
          mask-image: linear-gradient(to top, transparent 0, transparent 92px, rgba(0, 0, 0, .55) 150px, #000 100%); }
.voisin:hover .voisin-img { transform: scale(1.04); }
.voisin:hover .voisin-titre { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.voisin-sens { display: inline-flex; align-items: center; gap: 6px; color: var(--doux); font-size: .9375rem; font-weight: 600; }
.voisin-titre { font-size: 1.625rem; }
.voisin-meta { color: var(--doux); font-size: .9375rem; }
.voisin-suivant { align-items: flex-end; text-align: right; }
@media (min-width: 700px) {
  .voisins { grid-template-columns: 1fr 1fr; gap: 16px; }
  .voisin { min-height: 340px; padding: 24px 28px; }
  .voisin-img { -webkit-mask-image: linear-gradient(to top, transparent 0, transparent 108px, rgba(0, 0, 0, .6) 180px, #000 100%); mask-image: linear-gradient(to top, transparent 0, transparent 108px, rgba(0, 0, 0, .6) 180px, #000 100%); }
  .voisin-suivant:only-child { grid-column: 2; }
}

/* Visionneuse */
.visionneuse { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 16px; border: 0; background: rgba(10, 12, 10, .94); color: #FFFFFF; }
.visionneuse[open] { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.visionneuse::backdrop { background: rgba(10, 12, 10, .94); }
.visionneuse figure { display: grid; justify-items: center; gap: 10px; min-height: 0; }
.visionneuse-img { max-height: 74vh; width: auto; border-radius: 14px; }
.visionneuse-legende { text-align: center; max-width: 60ch; }
.visionneuse-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.visionneuse .bouton-rond { background: #1D1A14; color: #FFFFFF; border-color: #5C564A; }
.visionneuse-fermer { background: #FFFDF9; color: #1D1A14; border-color: #FFFDF9; }
.visionneuse :focus-visible { outline-color: #FFFFFF; }
.visionneuse-compteur { min-width: 4em; text-align: center; }

/* Collectif */
.equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 24px; }
.membre { text-align: center; }
.membre-img, .membre-initiale { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.membre-initiale { display: grid; place-items: center; background: var(--acc); color: var(--sur-acc); font-family: var(--titres); font-weight: 750; font-size: 3rem; }
.membre-nom { font-size: 1.375rem; }
.membre-role { color: var(--doux); margin-top: 4px; }
.tuile-cta { display: grid; gap: 24px; }

/* Pages de texte */
.page-texte .tuile { margin-top: 24px; padding: clamp(24px, 4vw, 48px); }
.plan ul { padding-left: 1.2em; margin-top: 6px; }
.plan li { margin: 6px 0; }
.tuile-404 { margin-top: 24px; gap: 18px; }

/* ---------- Pied de page ---------- */
.pied { max-width: 1360px; margin: clamp(64px, 10vw, 104px) auto 0; padding: 0 var(--gouttiere) 36px; }
.pied-bas { display: grid; gap: 16px; padding-top: 20px; border-top: 2px solid var(--ligne); font-size: .9375rem; }
.pied-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.pied-liens a { display: inline-block; padding: 10px 0; }
.pied-mention { color: var(--doux); }
.haut { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
@media (min-width: 900px) {
  .pied-bas { grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px; }
  .pied-bas nav { grid-column: 1 / -1; }
  .pied-liens { display: flex; flex-wrap: wrap; gap: 0 24px; }
}

/* ---------- Formes du pied de page : une œuvre éphémère au toucher ---------- */
.pied-formes { --t: clamp(44px, 9vw, 72px); --g: 10px; --u: calc(var(--t) + var(--g)); display: flex; align-items: flex-end; gap: var(--g); margin: clamp(32px, 5vw, 64px) 0 28px; }
.forme { display: block; flex: none; width: var(--t); }
.forme svg { width: 100%; height: auto; transform-origin: 50% 100%; }
.forme-rond { position: relative; z-index: 2; }
.pied-formes-bouton { padding: 0; border: 0; background: none; color: inherit; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.pied-formes-bouton:focus-visible { outline-offset: 8px; }
.pied-formes-bouton .forme svg { transition: transform .25s cubic-bezier(.3, .7, .4, 1); }
.pied-formes-bouton:hover .forme svg { transform: translateY(-5px); }
.pied-formes-bouton:hover .forme:nth-child(2) svg { transition-delay: .04s; } .pied-formes-bouton:hover .forme:nth-child(3) svg { transition-delay: .08s; }
.pied-formes-bouton:hover .forme:nth-child(4) svg { transition-delay: .12s; } .pied-formes-bouton:hover .forme:nth-child(5) svg { transition-delay: .16s; }
.pied-formes.joue { cursor: default; }
.joue .forme-rond { animation: f-rond-x 6s both; }
.joue .forme-rond svg { animation: f-rond-y 6s both; }
.joue .forme-quart { animation: f-quart-x 6s both; }
.joue .forme-quart svg { animation: f-quart-y 6s both; }
.joue .forme-triangle svg { animation: f-triangle-y 6s both; }
.joue .forme-demi { animation: f-demi-x 6s both; }
.joue .forme-demi svg { animation: f-demi-y 6s both; }
.joue .forme-carre { animation: f-carre-x 6s both; }
.joue .forme-carre svg { animation: f-carre-y 6s both; }
@keyframes f-rond-x {
  0% { transform: translateX(0); animation-timing-function: linear; }
  4% { transform: translateX(0); animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
  20% { transform: translateX(calc(var(--u) * 0.3)); animation-timing-function: linear; }
  82% { transform: translateX(calc(var(--u) * 0.3)); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  92% { transform: translateX(0); animation-timing-function: linear; }
  100% { transform: translateX(0); animation-timing-function: linear; }
}
@keyframes f-rond-y {
  0% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  2% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.88); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  4% { transform: translateY(0px) rotate(0deg) scale(0.94, 1.08); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  13% { transform: translateY(calc(var(--t) * -1.6)) rotate(0deg) scale(1, 1); animation-timing-function: ease-in-out; }
  20% { transform: translateY(calc(var(--t) * -1.25)) rotate(0deg) scale(1, 1); animation-timing-function: ease-in-out; }
  24% { transform: translateY(calc(var(--t) * -1.35)) rotate(0deg) scale(1, 1); animation-timing-function: ease-in-out; }
  28% { transform: translateY(calc(var(--t) * -1.25)) rotate(0deg) scale(1, 1); animation-timing-function: ease-in-out; }
  36% { transform: translateY(calc(var(--t) * -1.25)) rotate(0deg) scale(1.08, 1.08); animation-timing-function: ease-in-out; }
  44% { transform: translateY(calc(var(--t) * -1.25)) rotate(0deg) scale(1, 1); animation-timing-function: ease-in-out; }
  52% { transform: translateY(calc(var(--t) * -1.25)) rotate(0deg) scale(1.08, 1.08); animation-timing-function: ease-in-out; }
  60% { transform: translateY(calc(var(--t) * -1.25)) rotate(0deg) scale(1, 1); animation-timing-function: ease-in-out; }
  78% { transform: translateY(calc(var(--t) * -1.25)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  82% { transform: translateY(calc(var(--t) * -1.45)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  92% { transform: translateY(0px) rotate(0deg) scale(1.1, 0.86); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  94% { transform: translateY(-8px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  96% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  97% { transform: translateY(-2px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  98% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  100% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
}
@keyframes f-quart-x {
  0% { transform: translateX(0); animation-timing-function: linear; }
  16% { transform: translateX(0); animation-timing-function: linear; }
  25% { transform: translateX(calc(var(--u) * -0.4)); animation-timing-function: linear; }
  68% { transform: translateX(calc(var(--u) * -0.4)); animation-timing-function: linear; }
  76% { transform: translateX(0); animation-timing-function: linear; }
  100% { transform: translateX(0); animation-timing-function: linear; }
}
@keyframes f-quart-y {
  0% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  14% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  16% { transform: translateY(0px) rotate(0deg) scale(1.06, 0.9); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  20.5% { transform: translateY(calc(var(--t) * -0.4)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  25% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.9); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  27% { transform: translateY(-6px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  29% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  30% { transform: translateY(-2px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  31% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  66% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  68% { transform: translateY(0px) rotate(0deg) scale(1.06, 0.9); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  72% { transform: translateY(calc(var(--t) * -0.4)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  76% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.9); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  78% { transform: translateY(-6px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  80% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  81% { transform: translateY(-2px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  82% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  100% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
}
@keyframes f-triangle-y {
  0% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  17% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  19% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.88); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  30% { transform: translateY(calc(var(--t) * -1.9)) rotate(-6deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  39% { transform: translateY(calc(var(--t) * -1)) rotate(0deg) scale(1.06, 0.92); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  41.5% { transform: translateY(calc(var(--t) * -1 - 7px)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  43.5% { transform: translateY(calc(var(--t) * -1)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  44.5% { transform: translateY(calc(var(--t) * -1 - 2px)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  45.5% { transform: translateY(calc(var(--t) * -1)) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  64% { transform: translateY(calc(var(--t) * -1)) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  66% { transform: translateY(calc(var(--t) * -1)) rotate(0deg) scale(1.06, 0.9); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  72% { transform: translateY(calc(var(--t) * -1.9)) rotate(6deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  79% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.9); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  81% { transform: translateY(-7px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  83% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  84% { transform: translateY(-2px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  85% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  100% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
}
@keyframes f-demi-x {
  0% { transform: translateX(0); animation-timing-function: linear; }
  34% { transform: translateX(0); animation-timing-function: linear; }
  41% { transform: translateX(calc(var(--u) * 0.25)); animation-timing-function: linear; }
  64% { transform: translateX(calc(var(--u) * 0.25)); animation-timing-function: linear; }
  70% { transform: translateX(0); animation-timing-function: linear; }
  100% { transform: translateX(0); animation-timing-function: linear; }
}
@keyframes f-demi-y {
  0% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  23% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-in-out; }
  25.5% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.85); animation-timing-function: ease-in-out; }
  28% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  32% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  34% { transform: translateY(0px) rotate(0deg) scale(1.06, 0.9); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  37.5% { transform: translateY(calc(var(--t) * -0.35)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  41% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.9); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  43% { transform: translateY(-6px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  45% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  46% { transform: translateY(-2px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  47% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  62% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  64% { transform: translateY(0px) rotate(0deg) scale(1.06, 0.9); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  67% { transform: translateY(calc(var(--t) * -0.35)) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  70% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.9); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  72% { transform: translateY(-6px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  74% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  75% { transform: translateY(-2px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  76% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  100% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
}
@keyframes f-carre-x {
  0% { transform: translateX(0); animation-timing-function: linear; }
  18% { transform: translateX(0); animation-timing-function: linear; }
  33% { transform: translateX(calc(var(--u) * -2)); animation-timing-function: linear; }
  68% { transform: translateX(calc(var(--u) * -2)); animation-timing-function: linear; }
  80% { transform: translateX(0); animation-timing-function: linear; }
  100% { transform: translateX(0); animation-timing-function: linear; }
}
@keyframes f-carre-y {
  0% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  15% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  18% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.88); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  25.5% { transform: translateY(calc(var(--t) * -0.8)) rotate(-6deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  33% { transform: translateY(0px) rotate(0deg) scale(1.1, 0.88); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  35% { transform: translateY(-7px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  37% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  38% { transform: translateY(-2px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  39% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  40.5% { transform: translateY(0px) rotate(0deg) scale(1.05, 0.94); animation-timing-function: ease-out; }
  42.5% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  66% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: ease-out; }
  68% { transform: translateY(0px) rotate(0deg) scale(1.08, 0.88); animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
  74% { transform: translateY(calc(var(--t) * -0.8)) rotate(6deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .85, .45); }
  80% { transform: translateY(0px) rotate(0deg) scale(1.1, 0.88); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  82% { transform: translateY(-7px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  84% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  85% { transform: translateY(-2px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  86% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
  100% { transform: translateY(0px) rotate(0deg) scale(1, 1); animation-timing-function: linear; }
}

/* ---------- Préférences de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pill:hover { transform: none; }
  .carte:hover .carte-img { transform: none; }
}
@media (forced-colors: active) {
  .valeur, .badge-acc, .chip[aria-current="true"] { border: 2px solid CanvasText; }
  .pastille[aria-pressed="true"] { outline: 3px solid Highlight; }
}

/* Liens vers les réseaux (nouvel onglet signalé par une icône) */
.lien-externe .icone { display: inline-block; vertical-align: -1px; margin-left: 4px; }

.insecable { white-space: nowrap; }
.tuile-contact .titre-page { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.tuile-contact a.pill { border-color: #FFFFFF; }
.contact-texte p + p { margin-top: .8em; }
.contact-texte form, .contact-texte > p { margin-top: 24px; }
/* Récapitulatif montré au visiteur après l’envoi (sa trace) : couleurs fixes, le cadre reste clair en mode sombre */
.tuile-contact > .confirmation { flex: 1 1 100%; margin-bottom: 0; }
.js .recu-boutons .js-seul { display: inline-flex; }
.recu-detail { display: grid; gap: 12px; margin: 14px 0 16px; padding: 16px; border-radius: var(--rayon-s); background: #F3EFE6; max-width: 70ch; }
.recu-detail dt { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.recu-detail dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.confirmation .recu-boutons .pill, .tuile-contact .confirmation .recu-boutons a.pill { border-color: #1D1A14; color: #1D1A14; background: transparent; }
.confirmation .recu-boutons .pill-encre, .tuile-contact .confirmation .recu-boutons a.pill-encre { background: #1D1A14; color: #FFFDF9; }
.bandeau-apercu { position: sticky; top: 0; z-index: 40; margin: 0; padding: 10px 16px; background: #1D1A14; color: #FFFDF9; font-weight: 700; font-size: .9375rem; text-align: center; }
button[disabled] { opacity: .55; cursor: not-allowed; }
