/* Socle commun aux 3 mises en page */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
.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; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; background: #fff; color: #111; border-radius: 6px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.icon { width: 1.25em; height: 1.25em; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Vidéo YouTube/Vimeo chargée au clic */
.lite-video { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; cursor: pointer; }
.lite-video picture, .lite-video img { width: 100%; height: 100%; object-fit: cover; }
.lite-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite-video__play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: transform .2s, background .2s;
}
.lite-video__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 3px; }
.lite-video:hover .lite-video__play { transform: scale(1.06); background: rgba(0, 0, 0, .7); }
.lite-video__note { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 7px; border-radius: 4px; }
.lite-video.is-playing .lite-video__play, .lite-video.is-playing .lite-video__note { display: none; }

/* Formulaire de contact */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-error, .form-error { color: #e24b4a; font-size: 14px; }
.form-success { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 8px; background: #e1f5ee; color: #085041; margin-bottom: 18px; }
.form-notice { font-size: 13px; opacity: .75; margin: 0; }
.form-notice a, .contact-direct a { color: inherit; }

/* Pages de texte (légal, à propos) */
.prose { line-height: 1.7; }
.prose h2 { margin: 2.2em 0 .6em; font-size: 1.3em; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.05em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose a { color: inherit; text-underline-offset: 2px; }
.prose .updated { opacity: .6; font-size: .9em; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid currentColor; border-color: rgba(127, 127, 127, .3); }
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 40px; }
.sitemap-cols h2 { margin-top: 1em; }
.muted { opacity: .65; }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; border-radius: 6px; }
.about__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2em; }
.services li { margin: .5em 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* Bas de page légal */
.legal-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; }
.legal-footer p { margin: 0; }
.legal-footer__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal-footer a, .legal-footer .linklike { color: inherit; text-decoration: none; font-size: 13px; }
.legal-footer a:hover, .legal-footer .linklike:hover { text-decoration: underline; }

/* Bandeau cookies (seulement si Google Analytics est activé) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto;
  background: #fff; color: #1a1a19; border-radius: 12px; padding: 16px 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  font-size: 14px; line-height: 1.5;
}
.consent p { margin: 0 0 12px; }
.consent a { color: inherit; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent__actions button { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid #1a1a19; background: #fff; cursor: pointer; font-weight: 500; }
.consent__actions button[data-consent="accept"] { background: #1a1a19; color: #fff; }

/* Visionneuse d'images plein écran */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(8, 8, 8, .96); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; }
.lightbox button svg { width: 28px; height: 28px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #b4b2a9; font-size: 13px; padding: 0 60px; }
@media (max-width: 600px) { .lightbox { padding: 50px 8px; } }

/* Apparition douce au défilement */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Vidéos verticales (Shorts, TikTok, Reels) et miniatures manquantes ---------- */
.lite-video--vertical { aspect-ratio: 9 / 16; }
.lite-video__ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, #2a2a28, #050505); color: #fff; }
.lite-video__ph .icon { width: 56px; height: 56px; opacity: .9; }
.lite-video__ph--instagram { background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888); }
.lite-video__ph--tiktok { background: linear-gradient(160deg, #111, #000); }
.lite-video__ph--tiktok .icon { filter: drop-shadow(2px 2px 0 #fe2c55) drop-shadow(-2px -2px 0 #25f4ee); }

/* Note « version française qui fait foi » sur les pages légales anglaises */
.legal-note { font-size: .9em; padding: 10px 14px; border-left: 3px solid currentColor; opacity: .85; }

/* ---------- Menu « Affichage » : mode, langue, accessibilité ---------- */
.prefs { position: relative; }
.prefs__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.prefs__btn .icon { width: 18px; height: 18px; }
.prefs__btn:hover, .prefs__btn[aria-expanded="true"] { border-color: var(--ink); }
.prefs__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 90px); overflow-y: auto; padding: 6px 16px 16px; border-radius: 14px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  font-size: 14px; line-height: 1.4; text-align: left;
}
.prefs__panel[hidden] { display: none; }
.prefs__group { border: 0; margin: 0; padding: 12px 0 4px; min-width: 0; }
.prefs__group + .prefs__group { border-top: 1px solid var(--line); }
.prefs__group legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.prefs__label { display: block; clear: both; font-size: 13px; margin: 0 0 6px; }
.prefs__hint { clear: both; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.seg { clear: both; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span, .seg a { display: block; text-align: center; padding: 7px 6px; border-radius: 7px; font-size: 13px; text-decoration: none; color: inherit; cursor: pointer; }
.seg input:checked + span, .seg a[aria-current] { background: var(--ink); color: var(--bg); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg a:hover, .seg label:hover span { background: var(--line); }
.seg input:checked + span:hover { background: var(--ink); }
.seg__a--1 { font-size: 15px !important; } .seg__a--2 { font-size: 17px !important; }
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 38px; height: 22px; margin: 0; cursor: pointer; }
.switch__ui { flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; margin-top: 1px; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + .switch__ui { background: var(--ink); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.switch__text small { font-size: 12px; color: var(--muted); }
.prefs__reset { margin-top: 8px; background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 13px; }
.prefs__reset:hover { color: var(--ink); }
@media (max-width: 700px) {
  .prefs__panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 80px); }
}

/* ---------- Options d'accessibilité (activées depuis le menu Affichage) ---------- */
/* Texte plus grand : agrandit tout le site, comme le zoom du navigateur */
html[data-text="1"] body { zoom: 1.15; }
html[data-text="2"] body { zoom: 1.3; }
/* Contraste renforcé : textes secondaires et traits à pleine intensité, focus très visible */
html:root.a11y-contrast { --muted: var(--ink); --ink-2: var(--ink); --line: var(--ink); --placeholder: var(--ink); --field-line: var(--ink); }
html.a11y-contrast :focus-visible { outline: 3px solid var(--ink) !important; outline-offset: 3px; box-shadow: 0 0 0 6px var(--bg); }
html.a11y-contrast .lite-video__note, html.a11y-contrast .tile__desc { background: rgba(0, 0, 0, .85); }
/* Liens soulignés */
html.a11y-links a:not(.btn):not(.prefs a), html.a11y-links .linklike { text-decoration: underline !important; text-underline-offset: .2em; text-decoration-thickness: 2px; }
html.a11y-links .tile__title { text-decoration: underline; text-underline-offset: .15em; }
/* Lecture facilitée (dyslexie) : espacements recommandés par les règles d'accessibilité WCAG 1.4.12 */
html.a11y-spacing body * { letter-spacing: .05em !important; word-spacing: .16em !important; }
html.a11y-spacing :is(p, li, dd, dt, blockquote, .prose, .tile__desc, label, small) { line-height: 1.8 !important; }
html.a11y-spacing :is(p, li) { margin-bottom: 1.2em; }
/* Stopper les animations */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .js .reveal, html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
