/* Patricia Couture — feuille de style du site public.
   Direction artistique « Rose poudré animé ». Polices système (aucun téléchargement). */

:root {
  --fond: #FBF1F0;
  --encre: #3D1A2A;
  --accent: #A3134F;
  --rose: #F3D6DA;
  --texte-doux: #5E3747;
  --texte-pale: #7A4B5C;
  --rose-vif: #F4A9C4;
  --rose-nuit: #E7C9D3;
  --nuit: #2A111C;
  --couture: #D88AA6;
  --blanc: #FFFFFF;
  --vert: #2F6B47;
  --serif: Georgia, "Times New Roman", "Noto Serif", "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(16px, 4.5vw, 32px);
  --ressort: cubic-bezier(.3, 1.45, .5, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-tap-highlight-color: rgba(163, 19, 79, .15); }
@media (min-width: 760px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--encre); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h1 em, h2 em { color: var(--accent); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.infos :focus-visible, .pied :focus-visible, .visionneuse :focus-visible { outline-color: var(--rose-vif); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--marge); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--encre); color: var(--blanc); padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.evitement:focus { top: 12px; color: var(--blanc); }

.surtitre { font-family: var(--sans); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.chapo { font-size: 19px; color: var(--texte-doux); max-width: 560px; }
@media (min-width: 760px) { .chapo { font-size: 20px; } }
.cat { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* Visible seulement sur téléphone / tablette (le SMS n'a de sens que là) */
@media (hover: hover) and (pointer: fine) { .seulement-tactile { display: none !important; } }
@media not all and (hover: hover) and (pointer: fine) { .seulement-souris { display: none !important; } }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; transition: background .25s ease, color .25s ease, transform .25s var(--ressort); }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn svg { flex: none; }
.btn .fleche { transition: transform .3s var(--ressort); }
.btn:hover .fleche { transform: translateX(4px); }
.couture { position: absolute; inset: 5px; border: 1.5px dashed rgba(255, 255, 255, .6); border-radius: 999px; pointer-events: none; transition: inset .3s ease; }
.btn:hover .couture { inset: 3px; }
.btn-sombre { background: var(--encre); color: var(--blanc); }
.btn-sombre:hover { background: var(--accent); color: var(--blanc); }
.btn-accent { background: var(--accent); color: var(--blanc); }
.btn-accent:hover { background: var(--encre); color: var(--blanc); }
.btn-contour { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--couture); }
.btn-contour:hover { background: var(--rose); color: var(--encre); }

/* ---------- Bandeau congés / message ---------- */
.bandeau { background: var(--encre); color: var(--fond); font-size: 16px; }
.bandeau[hidden] { display: none; }
.bandeau-in { display: flex; gap: 12px; align-items: flex-start; padding-block: 12px; }
.bandeau-ico { flex: none; color: var(--rose-vif); margin-top: 2px; }
.bandeau p span { display: block; }
@media (min-width: 760px) { .bandeau-in { justify-content: center; align-items: center; } .bandeau p { text-align: center; } }

/* ---------- En-tête ---------- */
.entete-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 18px 10px; }
@media (min-width: 900px) { .entete-in { padding-block: 28px; } }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.marque:hover { color: var(--encre); }
.logo-aiguille { flex: none; animation: frisson 4s ease-in-out infinite; transform-origin: 50% 0; }
.marque-txt { display: flex; flex-direction: column; line-height: 1.12; }
.marque-nom { font-family: var(--serif); font-style: italic; font-size: 27px; }
.marque-sous { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--texte-pale); white-space: nowrap; }
@media (min-width: 760px) { .marque-nom { font-size: 30px; } .marque-sous { font-size: 13px; letter-spacing: .18em; } }
.nav { display: flex; gap: 4px 22px; font-size: 16px; overflow-x: auto; scrollbar-width: none; margin-inline: -8px; padding: 2px; width: calc(100% + 16px); }
.nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .nav { width: auto; margin: 0; gap: 28px; overflow: visible; } }
.nav a { flex: none; color: var(--encre); text-decoration: none; padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; border-bottom: 2px dashed var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
@media (max-width: 899px) { .nav { justify-content: space-between; gap: 4px; border-top: 1.5px dashed #E4BFCB; margin-top: 4px; padding-top: 4px; } .nav a { font-size: 15px; padding-inline: 6px; } .nav a::after { left: 6px; right: 6px; } }
@media (max-width: 479px) { .nav-long { display: none; } }

/* ---------- Pastille ouvert / fermé ---------- */
.statut { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--vert); background: var(--blanc); padding: 8px 16px; border-radius: 999px; width: fit-content; }
.statut-dot { width: 9px; height: 9px; border-radius: 50%; background: #3D8B5C; flex: none; animation: pulse 2.4s ease-in-out infinite; }
.statut[data-ouvert="false"] { color: var(--texte-pale); }
.statut[data-ouvert="false"] .statut-dot { background: #C98AA2; animation: none; }
.statut-nuit { background: rgba(255, 255, 255, .08); color: #9FE0B8; }
.statut-nuit[data-ouvert="false"] { color: var(--rose-nuit); }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 120px; }
@media (min-width: 900px) { .hero { padding-bottom: 150px; } }
.hero-in { display: grid; gap: 40px; align-items: center; padding-top: 20px; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 40px; } }
.hero-txt { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 10.5vw, 80px); line-height: 1.03; letter-spacing: -.02em; }
@media (min-width: 900px) { .hero h1 { font-size: clamp(50px, 5.2vw, 72px); } }
.insecable { white-space: nowrap; }
.souligne { position: relative; display: inline-block; }
.souligne svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 18px; }
.trait-souligne { stroke-dasharray: 440; stroke-dashoffset: 440; animation: souligne 4.5s ease-in-out infinite; }

.collage { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.04; }
.arche { position: absolute; top: 0; left: 6%; width: 62%; aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; overflow: hidden; background: var(--rose); transform: rotate(-3deg); box-shadow: 0 16px 40px rgba(61, 26, 42, .14); }
.arche img { width: 100%; height: 100%; object-fit: cover; }
.arche-vide { display: flex; align-items: flex-end; justify-content: center; padding: 30px 20px 0; }
.polaroid { position: absolute; top: 24%; right: 0; width: 42%; background: var(--blanc); padding: 10px 10px 40px; border-radius: 14px; box-shadow: 0 18px 44px rgba(61, 26, 42, .18); color: var(--accent); text-decoration: none; transform: rotate(7deg); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 8px; }
.polaroid .epingle { position: absolute; top: -26px; left: 50%; margin-left: -13px; }
.polaroid-legende { position: absolute; left: 14px; bottom: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(15px, 3.6vw, 19px); }
.polaroid:hover { color: var(--accent); }
.collage-badge { position: absolute; left: 0; bottom: 0; width: 27%; }
.collage-badge svg { width: 100%; height: auto; }

.fil-aiguille { position: absolute; left: 0; bottom: 20px; width: 1100px; height: 90px; pointer-events: none; transform-origin: 0 0; }
.aiguille svg { transform-origin: 62px 7px; }
.fil-aiguille > svg { position: absolute; inset: 0; overflow: visible; }
.fil-cousu { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: coud 7s linear infinite; }
.aiguille { position: absolute; left: 0; top: 0; width: 70px; height: 14px; margin: -7px 0 0 -62px; offset-path: path('M -40 52 C 120 8, 250 86, 390 46 S 650 8, 790 50 S 1010 82, 1140 34'); offset-rotate: auto; animation: pique 7s linear infinite; }

/* ---------- Ruban défilant ---------- */
.ruban { overflow: hidden; padding: 14px 0; }
.ruban-in { background: var(--accent); color: var(--blanc); padding: 16px 0; transform: rotate(-1.2deg); margin: 0 -24px; }
.ruban-defile { display: flex; width: max-content; align-items: center; gap: 32px; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 6vw, 34px); white-space: nowrap; animation: defile 30s linear infinite; }

/* ---------- Sections ---------- */
.section { padding-block: 72px 32px; }
@media (min-width: 900px) { .section { padding-block: 112px 40px; } }
.section-tete { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section h2 { font-size: clamp(36px, 8vw, 52px); }

/* Prestations */
.prestas { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.presta { background: var(--blanc); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: background .35s ease, color .35s ease, transform .35s var(--ressort); }
.presta h3 { font-size: 27px; }
.presta p { font-size: 17px; color: var(--texte-doux); transition: color .35s ease; }
.presta svg { transition: stroke .35s ease; }
.presta:hover { background: var(--accent); color: var(--blanc); transform: translateY(-6px); }
.presta:hover p { color: var(--blanc); }
.presta:hover svg { stroke: var(--blanc); }

/* Comment ça se passe */
.etapes-liste { list-style: none; display: grid; gap: 28px; position: relative; counter-reset: etape; }
@media (min-width: 900px) { .etapes-liste { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.etape { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 76px; }
@media (min-width: 900px) { .etape { padding-left: 0; padding-top: 84px; } }
.etape h3 { font-size: 26px; }
.etape p { color: var(--texte-doux); font-size: 17px; }
.etape-num { position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%; background: var(--blanc); border: 2px dashed var(--accent); color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 28px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.etape:not(:last-child)::before { content: ""; position: absolute; left: 28px; top: 62px; bottom: -30px; border-left: 2px dashed var(--couture); }
@media (min-width: 900px) {
  .etape:not(:last-child)::before { left: 66px; right: -30px; top: 28px; bottom: auto; border-left: 0; border-top: 2px dashed var(--couture); }
}
.etapes-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 40px; }
.etapes-sms { display: inline-flex; align-items: center; gap: 10px; color: var(--texte-doux); font-size: 16px; }
.etapes-sms svg { color: var(--accent); flex: none; }

/* Mètre ruban */
.metre { position: relative; padding: 40px 0 24px; }
.metre-repere { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid var(--accent); z-index: 1; }
.metre-bande { position: relative; height: 56px; background: var(--rose); border-top: 1px solid #D9A9B9; border-bottom: 1px solid #D9A9B9; overflow: hidden; box-shadow: inset 0 -7px 0 rgba(61, 26, 42, .05); }
.metre-graduations { display: flex; width: max-content; height: 100%; animation: metre 160s linear infinite alternate;
  background-image: repeating-linear-gradient(90deg, #3D1A2A 0 1.5px, transparent 1.5px 6px), repeating-linear-gradient(90deg, #3D1A2A 0 1.5px, transparent 1.5px 30px), repeating-linear-gradient(90deg, #3D1A2A 0 2px, transparent 2px 60px);
  background-size: 60px 9px, 60px 14px, 60px 20px; background-repeat: repeat-x; }
.metre-graduations span { width: 60px; flex: none; height: 56px; padding: 24px 0 0 4px; font-size: 13px; font-weight: 700; color: var(--encre); }

/* Réalisations (accueil) */
.real-in { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .real-in { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.real-txt { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.real-txt > p:not(.surtitre) { color: var(--texte-doux); max-width: 440px; }
.real-cartes, .autres-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; padding-top: 20px; }
@media (min-width: 760px) { .real-cartes { gap: 28px; } }
.real-cartes-vide { display: flex; justify-content: center; }
.carte-epinglee { position: relative; display: block; text-decoration: none; color: var(--encre); background: var(--blanc); border-radius: 22px; padding: 10px 10px 18px; box-shadow: 0 12px 30px rgba(61, 26, 42, .10); }
.carte-epinglee:hover { color: var(--encre); }
.carte-epinglee .epingle { position: absolute; top: -24px; left: 50%; margin-left: -13px; }
.carte-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.carte-epinglee .cat { padding: 12px 6px 0; }
.carte-titre { display: block; padding: 2px 6px 0; font-family: var(--serif); font-size: clamp(17px, 4.2vw, 21px); line-height: 1.2; }
.rot-a { transform: rotate(-2.5deg); }
.rot-b { transform: rotate(2.5deg) translateY(30px); }
.autres-cartes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px 28px; }
.autres-cartes .rot-b { transform: rotate(2.5deg); }
.tilt { transition: transform .5s var(--ressort), box-shadow .5s ease; }
.tilt:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: 0 24px 50px rgba(61, 26, 42, .18); }

/* Qui suis-je */
.apropos-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .apropos-in { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.apropos-visuel { position: relative; max-width: 340px; width: 78%; margin-inline: auto; }
@media (min-width: 900px) { .apropos-visuel { width: 100%; } }
.mannequin { width: 100%; height: auto; overflow: visible; }
.metre-ruban { transform-box: view-box; transform-origin: 170px 66px; animation: balance 5s ease-in-out infinite; }
.apropos-badge { position: absolute; right: -6%; top: 2%; width: 38%; }
.apropos-badge svg { width: 100%; height: auto; }
.apropos-txt { display: flex; flex-direction: column; gap: 18px; }
.apropos-txt > p:not(.surtitre):not(.signature) { color: var(--texte-doux); max-width: 640px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--accent); line-height: 1; margin-top: 4px; }

/* Avis */
.avis-info { color: var(--texte-doux); font-size: 16px; }
.avis-liste { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.avis-carte { background: var(--blanc); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.avis-carte::before { content: "“"; position: absolute; right: 22px; top: -6px; font-family: var(--serif); font-size: 96px; color: var(--rose); line-height: 1; }
.etoiles { display: flex; gap: 2px; color: #E0A11B; }
.avis-carte blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.avis-carte blockquote p + p { margin-top: .6em; }
.avis-auteur { font-size: 15px; color: var(--texte-pale); }

/* FAQ */
.faq-in { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-in { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.faq-tete { display: flex; flex-direction: column; gap: 14px; }
.faq-tete > p:not(.surtitre) { color: var(--texte-doux); }
.faq-liste { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--blanc); border-radius: 20px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; min-height: 60px; font-weight: 700; font-size: 17px; border-radius: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--accent); position: relative; transition: transform .35s var(--ressort), background .25s ease; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--accent); border-radius: 2px; }
.faq-ico::after { transform: rotate(90deg); transition: transform .35s ease; }
.faq-item[open] .faq-ico { transform: rotate(180deg); background: var(--rose); }
.faq-item[open] .faq-ico::after { transform: rotate(0deg); }
.faq-rep { padding: 0 22px 20px; color: var(--texte-doux); }
.faq-rep p + p { margin-top: .6em; }

/* ---------- Infos pratiques (fond sombre, sur toutes les pages) ---------- */
.infos { position: relative; overflow: hidden; background: var(--encre); color: var(--fond); padding-block: 80px; margin-top: 72px; }
@media (min-width: 900px) { .infos { padding-block: 104px; margin-top: 96px; } }
.infos-in { position: relative; display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.infos-bloc { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.infos h2 { font-size: clamp(36px, 8vw, 46px); }
.infos h2 em { color: var(--rose-vif); }
.infos h3 { font-family: var(--sans); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-vif); font-weight: 700; }
.btn-tel { position: relative; display: inline-flex; align-items: center; min-height: 60px; padding: 16px 30px; border-radius: 999px; background: var(--rose-vif); color: var(--encre); text-decoration: none; font-weight: 800; font-size: clamp(22px, 6vw, 26px); letter-spacing: .01em; transition: background .25s ease, color .25s ease, transform .25s var(--ressort); }
.btn-tel .couture { border-color: rgba(61, 26, 42, .45); }
.btn-tel:hover { background: var(--blanc); color: var(--encre); transform: translateY(-3px) scale(1.03); }
.infos-sms a, .lien-clair { display: inline-flex; align-items: center; gap: 10px; color: var(--fond); font-weight: 700; min-height: 44px; }
.infos-sms a:hover, .lien-clair:hover { color: var(--rose-vif); }
.infos-sms, .infos-mail { font-size: 16px; color: var(--rose-nuit); }
.infos-mail a { color: var(--fond); overflow-wrap: anywhere; }
.infos-mail a:hover { color: var(--rose-vif); }
.horaires { margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.horaires-ligne { display: flex; flex-direction: column; }
.horaires dt { font-weight: 700; }
.horaires dd { margin: 0; }
.horaires .ferme dd { color: var(--rose-nuit); }
.infos address { font-size: 17px; }
.bobine { position: absolute; right: -24px; bottom: -48px; width: 170px; height: 170px; opacity: .85; pointer-events: none; }
@media (max-width: 759px) { .bobine { width: 120px; height: 120px; right: -30px; bottom: -40px; } .bobine svg { transform: scale(.7); transform-origin: 0 0; } }
.bobine-fil { position: absolute; inset: 0; overflow: visible; }
.bobine-roue { position: absolute; left: 0; top: 0; animation: tourne 9s linear infinite; transform-origin: 50% 50%; }
@media (max-width: 759px) { .bobine-roue { animation: none; } }
.fil-pointille { stroke-dasharray: 6 8; animation: fourmis 1.6s linear infinite; }

/* ---------- Pied de page et bouton d'appel flottant ---------- */
.pied { background: var(--nuit); color: var(--rose-nuit); font-size: 15px; padding-block: 26px 108px; }
.pied-in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.pied a { color: var(--fond); min-height: 44px; display: inline-flex; align-items: center; }
.pied a:hover { color: var(--rose-vif); }

.fab { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 12px; background: var(--accent); color: var(--blanc); text-decoration: none; padding: 9px; border-radius: 999px; font-weight: 700; font-size: 17px; box-shadow: 0 14px 34px rgba(61, 26, 42, .28); transition: transform .3s var(--ressort), background .25s ease; }
@media (min-width: 760px) { .fab { right: 24px; bottom: 24px; padding: 10px 22px 10px 10px; } }
.fab:hover { transform: translateY(-4px) scale(1.04); background: var(--encre); color: var(--blanc); }
.fab-ico { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--blanc); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.fab-ico::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .7); animation: tourne 8s linear infinite; }
.fab-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: onde 2.2s ease-out infinite; }
.fab svg { animation: sonne 3.2s ease-in-out infinite; }
.fab-label { display: none; }
@media (min-width: 760px) { .fab-label { display: inline; } }
html.visionneuse-ouverte .fab { display: none; }

/* ---------- Pages intérieures ---------- */
.page-tete { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
@media (min-width: 900px) { .page-tete { padding-top: 40px; } }
.page-tete h1 { position: relative; width: fit-content; font-size: clamp(44px, 11vw, 84px); line-height: 1.02; letter-spacing: -.02em; }
.page-tete h1 svg { position: absolute; left: 0; bottom: -14px; width: 100%; height: 20px; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; color: var(--texte-pale); }
.ariane li:not(:last-child)::after { content: "›"; margin: 0 10px; color: var(--couture); }
.ariane a { color: var(--texte-pale); }
.ariane a:hover { color: var(--accent); }
.ariane [aria-current] { color: var(--encre); }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
.filtres[hidden] { display: none; }
.filtre { font-size: 15px; border: 1px solid #D9B3C0; background: var(--blanc); color: var(--encre); padding: 10px 20px; border-radius: 999px; min-height: 44px; cursor: pointer; transition: background .25s ease, color .25s ease, transform .25s var(--ressort); }
.filtre:hover { transform: translateY(-2px); border-color: var(--encre); }
.filtre[aria-pressed="true"] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }

/* Galerie */
.galerie-zone { padding-top: 48px; }
.galerie { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 56px 36px; align-items: start; }
.carte { position: relative; background: var(--blanc); border-radius: 26px; padding: 12px 12px 24px; box-shadow: 0 12px 30px rgba(61, 26, 42, .10); animation: tombe .9s var(--ressort) both; transition: transform .5s var(--ressort), box-shadow .5s ease; }
.carte[hidden] { display: none; }
.carte:nth-child(4n+1) { rotate: -1.6deg; }
.carte:nth-child(4n+2) { rotate: 1.4deg; }
.carte:nth-child(4n+3) { rotate: -.8deg; }
.carte:nth-child(4n) { rotate: 1.8deg; }
.carte:nth-child(2) { animation-delay: .08s; } .carte:nth-child(3) { animation-delay: .16s; } .carte:nth-child(4) { animation-delay: .24s; } .carte:nth-child(5) { animation-delay: .32s; } .carte:nth-child(6) { animation-delay: .4s; }
.carte:hover { transform: translateY(-8px) scale(1.015); rotate: 0deg; box-shadow: 0 26px 54px rgba(61, 26, 42, .18); }
.carte .epingle { position: absolute; top: -24px; left: 50%; margin-left: -13px; z-index: 1; }
.carte-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--rose); cursor: zoom-in; border-radius: 16px; overflow: hidden; }
.carte-zoom img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.carte-zoom:hover img { transform: scale(1.05); }
.zoom-tag { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--encre); font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: transform .3s var(--ressort); }
.carte-zoom:hover .zoom-tag, .fiche-principale:hover .zoom-tag { transform: scale(1.08); }
.carte-txt { padding: 18px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.carte-txt h2 { font-size: 26px; line-height: 1.2; }
.carte-txt h2 a { color: var(--encre); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s ease, color .25s ease; }
.carte-txt h2 a:hover { color: var(--accent); background-size: 100% 2px; }
.carte-txt h2 a::after { content: " →"; color: var(--accent); }
.carte-txt p { font-size: 16.5px; color: var(--texte-doux); }
.galerie-vide { font-size: 18px; color: var(--texte-doux); padding-top: 12px; }

/* Page d'une réalisation */
.fiche { padding-top: 24px; }
@media (min-width: 900px) { .fiche { padding-top: 40px; } }
.fiche-in { display: grid; gap: 36px; margin-top: 24px; }
@media (min-width: 900px) { .fiche-in { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; } }
.fiche-principale { position: relative; display: block; width: 100%; padding: 12px; border: 0; background: var(--blanc); border-radius: 28px; cursor: zoom-in; box-shadow: 0 16px 40px rgba(61, 26, 42, .12); }
.fiche-principale img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 18px; background: var(--rose); }
.fiche-principale .zoom-tag { right: 24px; bottom: 24px; }
.vignettes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.vignettes button { width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--rose); transition: border-color .2s ease, transform .25s var(--ressort); }
.vignettes button:hover { border-color: var(--accent); transform: translateY(-3px); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.fiche-txt { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .fiche-txt { position: sticky; top: 24px; } }
.fiche-txt h1 { font-size: clamp(38px, 8vw, 58px); line-height: 1.05; }
.fiche-desc { color: var(--texte-doux); font-size: 18px; display: flex; flex-direction: column; gap: .7em; }
.fiche-appel { margin-top: 12px; padding: 24px; border-radius: 26px; background: var(--blanc); border: 1.5px dashed var(--couture); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fiche-appel p { font-size: 18px; }
.fiche-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; border-top: 1.5px dashed #E4BFCB; padding-top: 24px; }
.fiche-nav-lien { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--encre); font-family: var(--serif); font-size: 19px; line-height: 1.25; padding: 8px 0; }
.fiche-nav-lien:hover { color: var(--accent); }
.fiche-nav-sens { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.fiche-nav-lien.suiv { text-align: right; align-items: flex-end; }
.autres h2 { margin-bottom: 44px; }
.autres-tout { margin-top: 48px; }

/* Mentions légales */
.legal { padding-top: 24px; max-width: 860px; }
@media (min-width: 900px) { .legal { padding-top: 40px; } }
.legal h1 { font-size: clamp(38px, 8vw, 60px); margin-top: 24px; }
.legal-maj { color: var(--texte-pale); font-size: 15px; margin-top: 12px; }
.legal .legal-sommaire ul { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-left: 0; }
.legal-sommaire a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--blanc); text-decoration: none; font-size: 15px; color: var(--encre); }
.legal-sommaire a:hover { background: var(--rose); }
.legal section { margin-top: 44px; scroll-margin-top: 20px; }
.legal h2 { font-size: 32px; margin-bottom: 14px; }
.legal p, .legal li { color: var(--texte-doux); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: .8em; }
.legal ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: .5em; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--encre); }
.a-completer { background: #FFE3A3; color: var(--encre); padding: 0 4px; border-radius: 4px; }

/* Page 404 */
.introuvable { padding-block: 40px 24px; display: flex; flex-direction: column; gap: 20px; }
.introuvable h1 { font-size: clamp(42px, 10vw, 76px); }
.introuvable-liens { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Visionneuse photo (plein écran) ---------- */
html.visionneuse-ouverte { overflow: hidden; }
.visionneuse { position: fixed; inset: 0; z-index: 60; background: rgba(28, 10, 18, .92); display: flex; flex-direction: column; color: var(--fond); animation: fondu .3s ease both; }
@supports (backdrop-filter: blur(6px)) { .visionneuse { backdrop-filter: blur(6px); } }
.visionneuse[hidden] { display: none; }
.vis-haut { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: max(12px, env(safe-area-inset-top)) var(--marge) 8px; }
.vis-compteur { color: var(--rose-vif); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.vis-fermer { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border-radius: 999px; border: 1.5px dashed rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); color: var(--blanc); font-size: 16px; font-weight: 700; cursor: pointer; transition: background .25s ease; }
.vis-fermer:hover { background: rgba(255, 255, 255, .22); }
.vis-scene { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px var(--marge); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.vis-figure { margin: 0; flex: 1 1 auto; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.vis-cadre { position: relative; flex: 0 1 auto; min-height: 0; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.vis-cadre.glisse { transition: none; }
.vis-cadre.revient { transition: transform .3s var(--ressort); }
.vis-img { max-width: 100%; max-height: calc(100dvh - 230px); width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: var(--blanc); -webkit-user-drag: none; animation: entree .45s var(--ressort) both; }
@supports not (height: 100dvh) { .vis-img { max-height: calc(100vh - 230px); } }
.vis-cadre.charge::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px dashed var(--rose-vif); animation: tourne 1.2s linear infinite; }
.vis-legende { text-align: center; display: flex; flex-direction: column; gap: 2px; padding-inline: 8px; }
.vis-cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-vif); font-weight: 700; }
.vis-titre { font-family: var(--serif); font-size: clamp(20px, 5vw, 26px); line-height: 1.2; }
.vis-lien { color: var(--fond); font-size: 15px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.vis-lien:hover { color: var(--rose-vif); }
.vis-nav { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--blanc); color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .25s var(--ressort), background .25s ease; }
.vis-nav:hover { transform: scale(1.1); background: var(--rose-vif); }
.vis-nav[hidden] { display: none; }
@media (max-width: 759px) {
  .vis-scene { padding-inline: 8px; }
  .vis-nav { position: absolute; bottom: 4px; width: 52px; height: 52px; }
  .vis-prec { left: calc(50% - 120px); }
  .vis-suiv { right: calc(50% - 120px); }
  .vis-figure { padding-bottom: 64px; }
  .vis-img { max-height: calc(100dvh - 260px); }
}
.vis-points { display: flex; justify-content: center; gap: 0; padding: 4px 0 max(14px, env(safe-area-inset-bottom)); }
.vis-points button { width: 36px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vis-points span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .4); transition: width .3s ease, background .3s ease; }
.vis-points [aria-current="true"] span { width: 26px; background: var(--rose-vif); }

/* ---------- Animations ---------- */
.epingle { transform-origin: 50% 90%; animation: epingle 3.6s ease-in-out infinite; }
.flotte { animation: flotte 6s ease-in-out infinite; }
.badge-tournant { animation: tourne 24s linear infinite; transform-origin: 50% 50%; }
.apparait { animation: apparait .8s var(--ressort) both; }
.a1 { animation-delay: .1s; } .a2 { animation-delay: .25s; } .a3 { animation-delay: .4s; } .a4 { animation-delay: .55s; }

@keyframes apparait { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes coud { 0% { stroke-dashoffset: 1200; opacity: 1; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pique { 0% { offset-distance: 0%; } 88%, 100% { offset-distance: 100%; } }
@keyframes souligne { 0% { stroke-dashoffset: 440; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -440; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes defile { to { transform: translateX(-50%); } }
@keyframes metre { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
@keyframes repere { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes flotte { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }
@keyframes epingle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes frisson { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
@keyframes fourmis { to { stroke-dashoffset: -36; } }
@keyframes balance { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
@keyframes onde { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
@keyframes sonne { 0%, 82%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 91% { transform: rotate(-10deg); } 94% { transform: rotate(8deg); } }
@keyframes tombe { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes entree { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* Les animations s'arrêtent quand leur section n'est pas à l'écran (économie de batterie). */
.est-cache, .est-cache * { animation-play-state: paused !important; }

/* Respect du réglage « réduire les animations » du téléphone ou de l'ordinateur. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fil-cousu, .trait-souligne { stroke-dashoffset: 0; }
  .aiguille { offset-distance: 60%; }
  .metre-graduations { transform: translateX(-30%); }
}

/* Impression : version sobre */
@media print {
  .fab, .ruban, .metre, .fil-aiguille, .bobine, .nav, .bandeau, .filtres, .evitement { display: none !important; }
  body { background: #fff; }
  .infos { background: #fff; color: #000; }
}
