/* =========================================================================
   Atelier3D — styles maison
   Complète Tailwind (compilé dans tailwind.css) pour tout ce que les
   classes utilitaires ne font pas bien : dégradés, motifs, composants
   réutilisés, animations d'apparition.
   ========================================================================= */

/* ---------- Réglages globaux ---------- */
:root {
  --c-blue: #22D3EE;
  --c-violet: #A78BFA;
  --c-orange: #FF7A1A;
  --c-ink-900: #0C0E14;
  --c-ink-850: #11141C;
}

body {
  /* Évite le décalage horizontal dû aux halos en position absolue */
  overflow-x: hidden;
}

/* L'attribut HTML `hidden` doit toujours gagner.
   Sans ça, une classe utilitaire comme `flex` (display: flex) l'emporte sur
   la règle `[hidden] { display: none }` du navigateur, et les blocs qu'on
   masque en JS restent affichés. */
[hidden] { display: none !important; }

/* -------------------------------------------------------------------------
   Fiche produit : la photo s'affiche entière (object-fit: contain) plutôt
   que rognée. Sans cette règle, le dégradé de secours apparaîtrait en
   bandes colorées autour de l'image. On le neutralise dès qu'une photo est
   là ; s'il n'y en a pas, le dégradé reprend son rôle.
   ------------------------------------------------------------------------- */
.ph:has(img[data-agrandir]) { background: #0E0F14; }

/* -------------------------------------------------------------------------
   Agrandissement au clic.
   Une sculpture de 20 cm photographiée en entier devient minuscule dans une
   vignette : l'acheteur doit pouvoir regarder le détail avant de payer.
   ------------------------------------------------------------------------- */
#agrandisseur {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: rgba(8, 9, 13, 0.92);
  cursor: zoom-out;
  /* Défilement possible quand la photo est agrandie ; contain empêche la
     page derrière de défiler quand on arrive au bout de la photo. */
  overflow: auto;
  overscroll-behavior: contain;
}

/* Le flou vit sur un fond à part, pas sur le calque lui-même : un élément
   avec backdrop-filter devient le repère de ses enfants en position fixed,
   et la croix de fermeture défilait alors avec la photo. */
#agrandisseur::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(6px);
}

#agrandisseur img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
}

/* Photo agrandie à sa taille réelle : un second clic sur la photo l'a
   dépliée, le fond défile pour la parcourir de haut en bas. place-items en
   `start` (et non `center`) : centrée, une photo plus haute que l'écran
   déborde des deux côtés et son haut devient inatteignable. */
#agrandisseur.est-agrandi {
  place-items: start center;
}
#agrandisseur.est-agrandi img {
  max-height: none;
  width: min(100%, 1100px);
  height: auto;
  cursor: zoom-out;
}

#agrandisseur button {
  position: fixed; /* reste visible quand on fait défiler la photo agrandie */
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

#agrandisseur button:hover { background: rgba(255, 255, 255, 0.14); }

@media (prefers-reduced-motion: no-preference) {
  #agrandisseur { animation: agrandir-fondu 0.18s ease-out; }
  @keyframes agrandir-fondu { from { opacity: 0; } to { opacity: 1; } }
}

/* Barre de défilement discrète, cohérente avec le thème sombre */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-ink-900); }
::-webkit-scrollbar-thumb {
  background: #2A3040;
  border-radius: 999px;
  border: 2px solid var(--c-ink-900);
}
::-webkit-scrollbar-thumb:hover { background: #3A4152; }

/* Ancrages : compense la hauteur du header fixe lors d'un saut #section */
section[id] { scroll-margin-top: 5rem; }

/* Focus visible homogène (accessibilité clavier) */
:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 6px;
}


/* ---------- Motifs et effets de fond ---------- */

/* Quadrillage technique type plan / plateau d'imprimante */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  /* Estompe le quadrillage sur les bords pour qu'il ne coupe pas net */
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

/* Texte en dégradé « filament » */
.text-gradient {
  background: linear-gradient(100deg, var(--c-blue) 0%, var(--c-violet) 45%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lignes de couche : rappel visuel de l'impression FDM */
.layer-lines {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 5px
  );
}


/* ---------- Éléments de navigation ---------- */
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94A3B8;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--c-blue), var(--c-violet));
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Header : fond opaque une fois la page défilée (classe ajoutée par script.js) */
#header.is-scrolled {
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


/* ---------- Titres de section ---------- */
.section-eyebrow {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-blue);
}


/* ---------- Boutons et cartes ---------- */

/* Halo lumineux qui balaie le bouton au survol */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-glow:hover::before { transform: translateX(120%); }

/* Bouton « Boutique » de l'en-tête : doit attirer l'œil sans qu'on ait à
   survoler quoi que ce soit — c'est la porte d'entrée vers les ventes.
   Même principe que .btn-glow (reflet qui balaie le bouton), mais rejoué
   en boucle. Couleurs reprises des accents « filament / laser » du site
   (neon-blue, neon-violet, neon-orange, voir tailwind-config.js) : le
   reflet passe par les trois comme un petit filament spatial, et le halo
   autour du bouton respire en changeant de teinte au même rythme. Coupé
   pour qui a demandé moins d'animations. */
.btn-scintille {
  position: relative;
  overflow: hidden;
  animation: scintille-halo 4.8s ease-in-out infinite;
}
.btn-scintille::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 25%,
    rgba(34, 211, 238, 0.55) 40%,
    rgba(167, 139, 250, 0.65) 50%,
    rgba(255, 122, 26, 0.55) 60%,
    transparent 75%);
  transform: translateX(-140%);
  animation: scintille-reflet 4.8s ease-in-out infinite;
}
@keyframes scintille-reflet {
  0%, 20% { transform: translateX(-140%); }
  55%, 100% { transform: translateX(140%); }
}
@keyframes scintille-halo {
  0%, 100% { box-shadow: 0 0 18px 4px rgba(34, 211, 238, 0.4); }
  33%      { box-shadow: 0 0 18px 4px rgba(167, 139, 250, 0.4); }
  66%      { box-shadow: 0 0 18px 4px rgba(255, 122, 26, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-scintille, .btn-scintille::before { animation: none; }
}

/* Effet « verre » : fond translucide + flou du contenu derrière, façon
   glassmorphism. Discret par défaut, plus marqué au survol — c'est le même
   principe que le header (#header.is-scrolled) appliqué aux cartes. */
.card-hover {
  background-color: rgba(17, 20, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease,
              background-color 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(22, 26, 36, 0.75);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04),
              0 0 40px -8px rgba(167, 139, 250, 0.25);
}
/* Zoom léger sur la photo au survol : la carte bouge, la photo respire.
   .ph a déjà overflow:hidden, donc l'agrandissement ne déborde jamais du cadre. */
.card-hover .ph img { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.card-hover:hover .ph img { transform: scale(1.08); }


/* ---------- Configurateur : zone de dépôt ---------- */
.dropzone:hover,
.dropzone:focus-visible {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.04);
}
/* État actif pendant un glisser-déposer (classe posée par script.js) */
.dropzone.is-dragging {
  border-color: var(--c-blue);
  background: rgba(34, 211, 238, 0.09);
  transform: scale(1.01);
}


/* ---------- Configurateur : cartes d'option (radios stylés) ---------- */
.option-card { display: block; cursor: pointer; }
.option-card-body {
  display: block;
  height: 100%;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 13, 0.5);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.option-card:hover .option-card-body { border-color: rgba(255, 255, 255, 0.25); }
/* `peer` de Tailwind : l'input coché stylise le <span> frère */
.option-card .peer:checked ~ .option-card-body {
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(167, 139, 250, 0.08);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 8px 24px -12px rgba(167, 139, 250, 0.6);
}
.option-card .peer:focus-visible ~ .option-card-body {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}


/* ---------- Configurateur : nuancier de filaments ---------- */
.swatch {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active {
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
/* Petite coche sur la pastille sélectionnée */
.swatch.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.5rem;
  height: 0.85rem;
  border: solid rgba(255, 255, 255, 0.95);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -2px);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}


/* ---------- Configurateur : curseur, listes, quantité ---------- */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-violet), var(--c-orange));
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-ink-850);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  cursor: grab;
}
.range-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-ink-850);
  cursor: grab;
}

.select-dark,
.input-dark {
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 13, 0.6);
  color: #E2E8F0;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select-dark:focus,
.input-dark:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}
.input-dark::placeholder { color: #4B5563; }
/* Retire les flèches natives du champ nombre pour garder les boutons +/− */
.select-dark[type="number"]::-webkit-outer-spin-button,
.select-dark[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.select-dark[type="number"] { -moz-appearance: textfield; }

.qty-btn {
  width: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  transition: background-color 0.2s, border-color 0.2s;
}
.qty-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }


/* ---------- Configurateur : options à cocher ---------- */
.check-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 13, 0.4);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.check-row:hover { border-color: rgba(255, 255, 255, 0.2); }
.check-row:has(.check-input:checked) {
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.06);
}
.check-input {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--c-orange);
  cursor: pointer;
}


/* ---------- Galerie ---------- */
.filter-chip {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.filter-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.filter-chip.is-active {
  background: #fff;
  border-color: #fff;
  color: #08090D;
}

.gallery-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 20, 0.6);
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.gallery-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.25); }
/* Masquage par le filtre (script.js) */
.gallery-card.is-hidden { display: none; }

/* Vignettes de remplacement : dégradés + lignes de couche.
   Remplacez le <div class="ph"> par <img> quand vous avez vos photos.
   Volontairement non limité à la galerie : les fiches produit s'en servent
   aussi tant que les photos ne sont pas là. */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  font-size: 3.5rem;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.14) 0px,
    rgba(0, 0, 0, 0.14) 1px,
    transparent 1px,
    transparent 6px
  );
}
.ph span { position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); }
.ph-1 { background: linear-gradient(135deg, #0E7490, #164E63); }
.ph-2 { background: linear-gradient(135deg, #6D28D9, #312E81); }
.ph-3 { background: linear-gradient(135deg, #B45309, #7C2D12); }
.ph-4 { background: linear-gradient(135deg, #1E3A8A, #0F172A); }
.ph-5 { background: linear-gradient(135deg, #155E75, #4C1D95); }
.ph-6 { background: linear-gradient(135deg, #B91C1C, #450A0A); }

/* Si vous mettez de vraies images, elles se cadrent automatiquement */
.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption { padding: 1rem 1.1rem 1.15rem; }
.gallery-title {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  color: #fff;
}
.gallery-meta {
  display: block;
  margin-top: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: #94a3b8;
}


/* ---------- FAQ (accordéon) ---------- */
.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  text-align: left;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: #E2E8F0;
  transition: color 0.2s;
}
.faq-trigger:hover { color: #fff; }

.faq-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--c-orange);
  transition: transform 0.3s ease;
}
/* La croix pivote en « − » quand le panneau est ouvert */
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(135deg); }

.faq-panel { overflow: hidden; }
.faq-panel p {
  padding: 0 0.25rem 1.4rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #94A3B8;
}
.faq-panel strong { color: #E2E8F0; font-weight: 600; }


/* ---------- Pages juridiques : typographie de lecture longue ----------
   Un texte légal doit être lisible, sinon personne ne le lit et il ne
   protège plus grand monde. */
.legal h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  scroll-margin-top: 6rem;
}
.legal h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #E2E8F0;
}
.legal p,
.legal li {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #94A3B8;
}
.legal p { margin-bottom: 1rem; }
.legal ul, .legal ol { margin: 0 0 1.15rem 1.35rem; }
.legal li { margin-bottom: 0.5rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal strong { color: #E2E8F0; font-weight: 600; }
.legal a { color: var(--c-orange); text-underline-offset: 3px; }
.legal a:hover { text-decoration: underline; }
.legal table { margin-bottom: 1.25rem; }
.legal td, .legal th { font-size: 0.88rem; }

/* Champ que l'exploitant du site doit compléter avant publication */
.todo {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: 4px;
  border: 1px dashed rgba(255, 122, 26, 0.55);
  background: rgba(255, 122, 26, 0.09);
  color: #FFB37A;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
}

/* Encadré d'avertissement en tête des pages juridiques */
.legal-note {
  border-radius: 1rem;
  border: 1px solid rgba(255, 122, 26, 0.25);
  background: rgba(255, 122, 26, 0.06);
  padding: 1.25rem 1.4rem;
}
.legal-note p { margin-bottom: 0; font-size: 0.85rem; line-height: 1.7; color: #CBD5E1; }


/* ---------- Apparition progressive au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect des préférences système : pas d'animation si l'utilisateur
   a demandé à les réduire. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ---------- Diaporama du hero ----------
   Les vues sont superposées et se relaient en fondu. Une seule porte la
   classe .is-active à la fois. */
.diapo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 4s ease-out;
}
.diapo.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Pastilles de navigation. Trop petites à l'usage (7px, sans zone de clic
   élargie) — remarque du 28/09/2026, accentuée par le passage à douze vues.
   Le point visible grossit modérément ; le vrai gain est la zone de clic
   invisible (::before), qui porte la cible tactile à ~28px, proche du
   minimum recommandé (44px), sans faire paraître les pastilles énormes. */
.diapo-point {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background-color 0.3s, width 0.3s;
}
.diapo-point::before {
  content: '';
  position: absolute;
  inset: -9px;
}
.diapo-point.is-active {
  width: 26px;
  background: var(--c-orange);
}

/* Le mouvement lent de zoom n'apporte rien à qui l'a désactivé. */
@media (prefers-reduced-motion: reduce) {
  .diapo { transform: none !important; transition: opacity 0.2s ease; }
}


/* ---- Finitions (audit 05/10/2026) ---- */
/* Thème sombre déclaré : barres de défilement et champs natifs suivent. */
html { color-scheme: dark; }

/* Titres équilibrés : pas de mot seul sur la dernière ligne. */
h1, h2, h3 { text-wrap: balance; }

/* Pas de délai de double-tap sur mobile. */
a, button, summary, label, input, select, textarea, [role="button"] { touch-action: manipulation; }

/* Ancres : l'en-tête fixe ne doit pas cacher le titre visé. */
[id] { scroll-margin-top: 6rem; }

/* Pages légales : liens soulignés (reconnaissables sans la couleur). */
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Lien d'évitement : visible seulement au clavier. */
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.6rem 1rem; border-radius: 9999px;
  background: #fff; color: #08090D; font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }


/* ---- Logo vivant (05/10/2026) ----
   Même geste que la fusée du hero : le cube s'imprime de bas en haut, puis le
   satellite tourne autour (devant puis derrière). Seulement dans l'en-tête
   (.logo-vivant) ; en dehors, le logo reste fixe. Sous « réduire les
   animations », tout est immobile, le satellite posé à sa place d'origine. */
.logo-vivant .logo-cube { animation: logo-imprime 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.logo-vivant .logo-orbite { animation: logo-apparait 0.5s ease 0.85s both; }
.logo-vivant .logo-sat {
  offset-path: path('M58.49 20.2 A29 11.2 -24 1 1 5.51 43.8 A29 11.2 -24 1 1 58.49 20.2');
  offset-rotate: 0deg;
  /* invisible tant que l'orbite n'est pas apparue, puis il tourne */
  opacity: 0;
  animation: logo-orbite 9s linear 1.3s infinite both, logo-apparait 0.4s ease 1.3s both;
}
@keyframes logo-imprime { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes logo-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes logo-orbite { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* Hors en-tête : satellite fixe à sa place d'origine. */
.logo-sat { transform: translate(53.6px, 38.6px); }
.logo-vivant .logo-sat { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .logo-vivant .logo-cube, .logo-vivant .logo-orbite, .logo-vivant .logo-sat { animation: none; }
  .logo-vivant .logo-sat { offset-path: none; transform: translate(53.6px, 38.6px); }
}
