/* Invicta Shop by Loma Combustion · « Le salon d'hiver », version fusionnée
   Lumière du jour sur la neige, puis le soir près du feu. Le plateau montre chaque modèle en grand.
   Polices : Literata (titres, chiffres) + Familjen Grotesk (texte et interface). */

:root {
  /* « by Loma Combustion » sous le logo : UNE variable règle sa taille et sa couleur.
     1 = réglage actuel (discret). 0,9 = plus petit et plus pâle. 1,2 = plus grand et plus marqué. */
  --loma: 1;

  /* jour d'hiver */
  --neige: #F5F8FB;
  --givre: #E9EEF3;
  --brume: #DDE3E9;
  --trait: #C3CDD7;
  --trait-doux: #D5DCE4;
  --encre: #22201E;
  --encre-2: #514D49;
  /* soir */
  --heure-bleue: #253040;
  --soir: #2B231E;
  --braise: #16110E;
  --nuit-surface: #322A24;
  --nuit-trait: #4A4039;
  --papier: #F2F0EC;
  --papier-2: #CBC2B8;
  /* la flamme, pour l'action */
  --flamme: #C8470F;
  --flamme-fonce: #A63A0B;
  --flamme-vive: #FF9A5C;
  --flamme-pale: #FFE2CF;

  --f-titre: "Literata", Georgia, "Times New Roman", serif;
  --f-texte: "Familjen Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-display: clamp(2.45rem, 1.55rem + 3.9vw, 5.1rem);
  --t-h2: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --t-h3: clamp(1.2rem, 1.08rem + .55vw, 1.55rem);
  --t-corps: 1.0625rem;
  --t-petit: .9375rem;
  --t-mini: .8125rem;

  --marge: clamp(1.25rem, .55rem + 3vw, 3rem);
  --large: 1320px;
  --section: clamp(4.25rem, 3rem + 4.5vw, 7.25rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --barre-bas: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background-color: var(--neige);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-corps);
  line-height: 1.55;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #9AA6B2 transparent;
  caret-color: var(--flamme);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--flamme-pale); color: var(--encre); }
:focus-visible { outline: 2px solid var(--flamme); outline-offset: 3px; border-radius: 3px; }
.nuit :focus-visible { outline-color: var(--flamme-vive); }
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--encre); color: var(--papier); padding: .75rem 1rem; border-radius: 4px; }
.evitement:focus { top: 1rem; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--f-titre); font-optical-sizing: auto; letter-spacing: -.02em; line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-family: var(--f-texte); font-size: var(--t-h3); font-weight: 600; letter-spacing: -.005em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.cadre { width: 100%; max-width: calc(var(--large) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.chapeau { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--encre-2); max-width: 36rem; line-height: 1.5; }
.nuit .chapeau { color: var(--papier-2); }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- boutons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--h); padding: 0 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.15 var(--f-texte); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-flamme { background: var(--flamme); color: #fff; }
.btn-encre { background: var(--encre); color: var(--papier); }
.btn-ligne { border-color: currentColor; color: var(--encre); background: transparent; }
.nuit .btn-ligne { color: var(--papier); }
.btn-s { --h: 44px; padding: 0 1.1rem; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-flamme:hover { background: var(--flamme-fonce); }
  .btn-encre:hover { background: #3A3633; }
  .btn-ligne:hover { background: rgba(34, 32, 30, .06); }
  .nuit .btn-ligne:hover { background: rgba(244, 241, 236, .08); }
}
.btn .ic { width: 1.15em; height: 1.15em; }
.lien-fleche { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.lien-fleche .ic { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lien-fleche:hover .ic { transform: translateX(3px); } .lien-fleche:hover { text-decoration: underline; } }

/* ---------- logo + signature (le fichier porte une grande marge transparente) ---------- */
.logo { --lw: 108px; display: inline-grid; justify-items: start; gap: 3px; width: max-content; flex: none; text-decoration: none; color: inherit; }
.logo-image { position: relative; display: block; width: var(--lw); aspect-ratio: 619 / 268; overflow: hidden; }
.logo img { position: absolute; width: 145.4%; max-width: none; left: -23.6%; top: -28.7%; transition: opacity 240ms ease; }
.logo .logo-clair { opacity: 0; }
.entete.est-nuit .logo .logo-sombre, .pied .logo .logo-sombre { opacity: 0; }
.entete.est-nuit .logo .logo-clair, .pied .logo .logo-clair { opacity: 1; }
.logo-loma {
  display: block; white-space: nowrap; line-height: 1;
  font: 500 calc(13px * var(--loma)) / 1 var(--f-texte); letter-spacing: 0;
  color: color-mix(in oklab, currentColor min(100%, calc(70% * var(--loma))), transparent);
  transition: color 240ms ease;
}

/* ---------- en-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--encre);
  transition: background-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
}
.entete::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--trait-doux); opacity: 0; transition: opacity 260ms ease; }
.entete.est-plein { background: rgba(245, 248, 251, .97); }
.entete.est-plein::after { opacity: 1; }
.entete.est-nuit { color: var(--papier); }
.entete.est-nuit.est-plein { background: rgba(26, 21, 18, .97); }
.entete.est-nuit::after { background: var(--nuit-trait); }
.entete-ligne { display: flex; align-items: center; gap: 1rem; height: 72px; }
.entete-ligne > .logo { margin-right: auto; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: .975rem; padding: .7rem .15rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: .15rem; right: .15rem; bottom: .45rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.entete .btn-devis { display: none; }
.btn-menu { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; margin-right: -.6rem; border: 0; background: transparent; color: inherit; font: 600 1rem var(--f-texte); cursor: pointer; border-radius: 999px; }
.btn-menu .ic { width: 1.4em; height: 1.4em; }
@media (min-width: 640px) { .entete .btn-devis { display: inline-flex; } }
@media (min-width: 980px) { .entete-ligne { height: 84px; gap: 2rem; } .logo { --lw: 120px; } }
@media (min-width: 1140px) {
  .nav { display: flex; gap: 1.5rem; }
  .btn-menu { display: none; }
}

/* menu téléphone */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--neige); color: var(--encre);
  display: flex; flex-direction: column; padding: 0 var(--marge) calc(1.5rem + env(safe-area-inset-bottom));
  transform: translateY(-2%); opacity: 0; visibility: hidden;
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms;
}
.menu.est-ouvert { opacity: 1; transform: none; visibility: visible; transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out); }
.menu-haut { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.menu nav { display: flex; flex-direction: column; margin-top: 1rem; overflow-y: auto; border-top: 1px solid var(--trait-doux); }
.menu nav a { font-family: var(--f-titre); font-size: 1.75rem; letter-spacing: -.015em; text-decoration: none; padding: .85rem 0; border-bottom: 1px solid var(--trait-doux); display: flex; justify-content: space-between; align-items: center; }
.menu nav a .ic { color: var(--encre-2); }
.menu-bas { margin-top: auto; display: grid; gap: .75rem; }
.menu-bas p { color: var(--encre-2); font-size: var(--t-petit); }

/* barre fixe téléphone */
.barre-actions { display: none; }
@media (max-width: 979px) {
  :root { --barre-bas: calc(64px + env(safe-area-inset-bottom)); }
  .barre-actions {
    display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px;
    position: fixed; inset: auto 0 0 0; z-index: 55;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--encre);
  }
  .barre-actions .btn { --h: 48px; padding: 0 .75rem; width: 100%; }
  .barre-actions .btn-appel { background: #3A3633; color: var(--papier); }
}

/* ---------- la lumière de la page (une seule ligne de temps) ---------- */
.lumiere { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lumiere span { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.lumiere .fenetre { background: radial-gradient(110% 75% at 0% 0%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 62%); }
.lumiere .foyer { background: radial-gradient(85% 70% at 100% 100%, rgba(255, 126, 46, .2), rgba(255, 126, 46, 0) 70%); }
main, .pied { position: relative; z-index: 1; }

.section { padding-block: var(--section); color: var(--encre); }
/* repli sans animation : chaque section garde sa propre lumière */
.h-0 { background: var(--neige); }
.h-1 { background: #EEF2F6; }
.h-2 { background: #E6EBF0; }
.h-3 { background: #DDE2E8; }
.h-5 { background: var(--heure-bleue); }
.h-6 { background: #29292D; }
.h-7 { background: var(--soir); }
.h-8 { background: #211A16; }
.h-9 { background: #1B1512; }
.h-10 { background: var(--braise); }
/* avec l'animation, une section devient transparente quand elle approche de l'écran :
   c'est alors la lumière commune (le fond de la page) qui l'éclaire */
html.anime .section.vivant { background: transparent; }
.nuit { color: var(--papier); }
.nuit .encre-2 { color: var(--papier-2); }

/* ---------- lien externe ---------- */
.lien-ext { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: .9375rem; font-weight: 500; color: var(--encre-2); text-decoration: underline; text-decoration-color: var(--trait); text-underline-offset: .25em; }
.lien-ext .ic { width: 1rem; height: 1rem; }
@media (hover: hover) and (pointer: fine) { .lien-ext:hover { color: var(--encre); text-decoration-color: currentColor; } }

/* ---------- formulaires ---------- */
.champ { display: grid; gap: .4rem; }
.champ label, .champ .libelle { font-weight: 600; font-size: .9375rem; }
.champ input, .champ select {
  min-height: 52px; width: 100%; padding: 0 1rem; border-radius: 6px;
  border: 1.5px solid var(--trait); background: #fff; color: var(--encre);
  font: 400 1.0625rem var(--f-texte);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.champ input:focus, .champ select:focus { outline: none; border-color: var(--flamme); box-shadow: 0 0 0 3px rgba(200, 71, 15, .18); }
.champ input::placeholder { color: #737069; }
.champ .aide { font-size: .875rem; color: var(--encre-2); }
.champ .erreur { font-size: .875rem; color: #A2290A; font-weight: 500; }
.nuit .champ input, .nuit .champ select { background: rgba(255, 255, 255, .06); border-color: #5C5047; color: var(--papier); }
.nuit .champ select option { color: var(--encre); }
.nuit .champ input::placeholder { color: #A99E94; }
.nuit .champ input:focus, .nuit .champ select:focus { border-color: var(--flamme-vive); box-shadow: 0 0 0 3px rgba(255, 154, 92, .2); }
.nuit .champ .aide { color: var(--papier-2); }
.nuit .champ .erreur { color: #FFB08A; }

/* ---------- curseur de surface ---------- */
.curseur { --p: 46%; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.curseur::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--flamme) 0 var(--p), var(--trait) var(--p) 100%); }
.curseur::-moz-range-track { height: 6px; border-radius: 3px; background: var(--trait); }
.curseur::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--flamme); }
.curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: #fff; border: 2px solid var(--flamme); box-shadow: 0 2px 8px rgba(28, 34, 44, .25); transition: transform 160ms var(--ease-out); }
.curseur::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--flamme); box-shadow: 0 2px 8px rgba(28, 34, 44, .25); }
.curseur:active::-webkit-slider-thumb { transform: scale(1.1); }
.curseur:focus-visible { outline: none; }
.curseur:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(200, 71, 15, .3), 0 2px 8px rgba(28, 34, 44, .25); }
.curseur-bornes { display: flex; justify-content: space-between; font-size: .875rem; color: var(--encre-2); margin-top: -.5rem; }

/* ---------- pied de page ---------- */
.pied { background: var(--braise); color: var(--papier); padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 calc(2rem + var(--barre-bas)); }
.pied a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pied a:hover { text-decoration: underline; } }
.pied-grille { display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr 1fr; }
.pied-grille > * { min-width: 0; }
@media (max-width: 639px) { .pied-grille > div:nth-child(n+4) { grid-column: 1 / -1; } }
.pied-societe { color: var(--papier); }
.pied address a, .pied li a { overflow-wrap: anywhere; }
.pied-marque { grid-column: 1 / -1; display: grid; gap: 1rem; max-width: 26rem; }
.pied-marque p { color: var(--papier-2); }
.pied h2 { font-family: var(--f-texte); font-size: .9375rem; font-weight: 600; letter-spacing: .01em; color: var(--papier); margin-bottom: .9rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.pied li a, .pied li span { display: inline-flex; min-height: 36px; align-items: center; color: var(--papier-2); }
.pied address { font-style: normal; color: var(--papier-2); line-height: 1.6; }
.pied-bas { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--nuit-trait); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--papier-2); font-size: .875rem; }
.pied .logo { --lw: 132px; justify-self: start; }
.pied-marque .logo-loma { color: var(--papier-2); }
@media (min-width: 900px) {
  .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr; }
  .pied-marque { grid-column: auto; }
}
.crochet { background: rgba(255, 154, 92, .14); color: inherit; padding: 0 .25em; border-radius: 3px; font-style: normal; }

/* ---------- onglets de famille (accueil et catalogue) ---------- */
.onglets { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .62); border: 1px solid var(--trait-doux); max-width: 100%; }
.onglet {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: 0 1.15rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--encre-2); font: 600 .9688rem/1.1 var(--f-texte); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.onglet:active { transform: scale(.97); }
.onglet[aria-selected="true"], .onglet[aria-current="page"] { background: var(--encre); color: var(--papier); }
.onglet .n { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--encre-2); }
.onglet[aria-selected="true"] .n, .onglet[aria-current="page"] .n { color: var(--papier-2); }
@media (hover: hover) and (pointer: fine) { .onglet:not([aria-selected="true"]):not([aria-current="page"]):hover { color: var(--encre); background: rgba(34, 32, 30, .06); } }
.onglet .court { display: none; }
@media (max-width: 559px) {
  .onglet .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .onglet .court { display: inline; }
  .onglet { padding: 0 .9rem; font-size: .9375rem; }
}
