/* inc-os.fr — feuille de style unique. Palette « Pastel de Cocagne ». */

/* ===== Jetons ===== */
:root {
  color-scheme: light;
  --papier: #F3F5F7;
  --feuille: #FFFFFF;
  --encre: #16191E;
  --encre-2: #5B6470;
  --filet: #D5DAE0;
  --filet-fort: #AEB7C2;
  --pastel: #2E5F8F;
  --pastel-fort: #214A73;
  --pastel-voile: #E3ECF6;
  --sur-pastel: #FFFFFF;

  --police-titre: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --police-texte: Literata, Georgia, "Times New Roman", serif;
  --police-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --cadre: 72rem;
  --marge: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --papier: #0F1216;
    --feuille: #161A20;
    --encre: #E6E9ED;
    --encre-2: #9AA3AE;
    --filet: #2A3038;
    --filet-fort: #3D4650;
    --pastel: #8DB5DF;
    --pastel-fort: #B3D0EE;
    --pastel-voile: #1A2633;
    --sur-pastel: #0F1216;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --papier: #0F1216;
  --feuille: #161A20;
  --encre: #E6E9ED;
  --encre-2: #9AA3AE;
  --filet: #2A3038;
  --filet-fort: #3D4650;
  --pastel: #8DB5DF;
  --pastel-fort: #B3D0EE;
  --pastel-voile: #1A2633;
  --sur-pastel: #0F1216;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
address { font-style: normal; }
strong { font-weight: 600; }

a {
  color: var(--pastel);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .15s ease;
}
a:hover { color: var(--pastel-fort); }

:focus-visible {
  outline: 2px solid var(--pastel);
  outline-offset: 3px;
  border-radius: 2px;
}

.cadre {
  width: min(100% - 2 * var(--marge), var(--cadre));
  margin-inline: auto;
}

.etiquette {
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: .72rem;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.texte { max-width: 64ch; }
.flux > * + * { margin-top: 1rem; }

/* ===== Lien d'évitement ===== */
.evitement {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10;
  padding: .55rem 1rem;
  background: var(--pastel);
  color: var(--sur-pastel);
  font-family: var(--police-titre);
  font-weight: 600;
  text-decoration: none;
}
.evitement:focus { top: 1rem; }

/* ===== En-tête ===== */
.entete {
  border-bottom: 1px solid var(--filet);
  background: var(--papier);
}
.entete-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 2rem;
  padding-block: 1.1rem;
}
.marque {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .65rem;
  margin-right: auto;
  color: var(--encre);
  text-decoration: none;
}
.marque:hover { color: var(--encre); }
.marque-signe {
  display: inline-block;
  width: .62em;
  height: .62em;
  background: var(--pastel);
  transform: translateY(-.04em);
}
.marque-nom {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -.035em;
  line-height: 1;
}
.marque-sous {
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: .84rem;
  color: var(--encre-2);
}
@media (max-width: 560px) { .marque-sous { display: none; } }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.4rem;
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: .95rem;
}
.nav a {
  color: var(--encre);
  text-decoration: none;
  padding-block: .2rem;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--pastel);
  border-bottom-color: var(--pastel);
}

.theme {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .5rem .7rem;
  border: 1px solid var(--filet-fort);
  border-radius: 2px;
  background: transparent;
  color: var(--encre-2);
  font: 500 .74rem/1 var(--police-titre);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme:hover { color: var(--encre); border-color: var(--encre-2); }
.theme-valeur { color: var(--encre); min-width: 4ch; text-align: left; }

/* ===== Ouverture ===== */
.ouverture {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: end;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
}
@media (min-width: 900px) {
  .ouverture { grid-template-columns: minmax(0, 1fr) 21rem; }
}
.surtitre {
  font: 500 .78rem/1.5 var(--police-titre);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pastel);
  margin-bottom: 1.4rem;
}
.ouverture h1 {
  font-size: clamp(2.05rem, 1.2rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 20ch;
}
.chapeau {
  margin-top: 1.6rem;
  max-width: 56ch;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  line-height: 1.5;
}

.index {
  background: var(--feuille);
  border: 1px solid var(--filet);
  border-top: 3px solid var(--pastel);
  padding: 1.1rem 1.4rem 1.3rem;
}
.index-titre {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
  font: 600 .74rem/1.4 var(--police-titre);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.index-titre span { font-weight: 500; font-variant-numeric: tabular-nums; }
.index ol { list-style: none; }
.index li { border-top: 1px solid var(--filet); }
.index a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .8rem 0;
  color: var(--encre);
  text-decoration: none;
}
.index a:hover .index-nom { color: var(--pastel); }
.index-nom {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.015em;
  transition: color .15s ease;
}

/* ===== États ===== */
.statut {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font: 500 .72rem/1 var(--police-titre);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--encre-2);
  white-space: nowrap;
}
.statut::before {
  content: "";
  flex: none;
  width: .62em;
  height: .62em;
  border: 1.5px solid var(--pastel);
}
.statut-production::before { background: var(--pastel); }
.statut-fabrication::before { background: linear-gradient(135deg, var(--pastel) 50%, transparent 50%); }
.statut-developpement::before { border-style: dashed; }

/* ===== Rubriques ===== */
.rubrique {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--filet);
}
@media (min-width: 760px) {
  .rubrique { grid-template-columns: 11rem minmax(0, 1fr); }
}
.rubrique-titre {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  font: 600 .78rem/1.5 var(--police-titre);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pastel);
}
.rubrique-corps { display: grid; gap: 2.25rem; align-content: start; }
.intro {
  max-width: 28ch;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.022em;
}

/* Catalogue */
.catalogue { display: grid; }
.produit {
  display: grid;
  gap: 1.2rem 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--filet);
}
.produit:last-child { border-bottom: 1px solid var(--filet); }
@media (min-width: 860px) {
  .produit { grid-template-columns: minmax(0, 1fr) 17rem; }
}
.produit-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem 1.2rem;
  margin-bottom: .8rem;
}
.produit-nom {
  font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.05rem);
  letter-spacing: -.028em;
}
.produit p { max-width: 58ch; }
.meta {
  display: grid;
  gap: .9rem;
  align-content: start;
  padding-top: .35rem;
}
@media (min-width: 860px) {
  .meta { border-left: 1px solid var(--filet); padding-left: 1.5rem; }
}
.meta dd { font-size: .97rem; line-height: 1.5; }

/* Abonnement */
.points { display: grid; gap: 2rem 3rem; }
@media (min-width: 700px) {
  .points { grid-template-columns: 1fr 1fr; }
}
.points h3 { font-size: 1.15rem; margin-bottom: .5rem; letter-spacing: -.01em; }
.points p { max-width: 40ch; }
.appel {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Société */
.gerants { list-style: none; }
.gerants li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--filet);
}
.gerants li:last-child { border-bottom: 1px solid var(--filet); }
.gerants .nom { font-family: var(--police-titre); font-weight: 600; font-size: 1.05rem; }
.gerants .role { color: var(--encre-2); font-size: .95rem; }

.identite {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
}
.identite div { display: contents; }
.identite dt, .identite dd { padding: .55rem 0; border-top: 1px solid var(--filet); }
.identite dt { padding-top: .72rem; padding-right: 1.5rem; }
.identite dd { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .identite { grid-template-columns: 1fr; }
  .identite dt { padding-bottom: 0; }
  .identite dd { border-top: 0; padding-top: .1rem; }
}

/* Contact */
.contact-grille { display: grid; gap: 2rem 3rem; }
@media (min-width: 700px) {
  .contact-grille { grid-template-columns: 1fr 1fr; }
}
.contact-lien {
  display: inline-block;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: clamp(1.4rem, .9rem + 2.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.028em;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 2px solid var(--pastel);
  overflow-wrap: anywhere;
}
.contact-lien:hover { color: var(--pastel); }

/* ===== Colophon ===== */
.colophon {
  margin-top: 2rem;
  border-top: 1px solid var(--filet);
  background: var(--feuille);
  color: var(--encre-2);
  font-size: .9rem;
  line-height: 1.55;
}
.colophon-grille {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: 2.5rem;
}
@media (min-width: 860px) {
  .colophon-grille { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}
.colophon-marque {
  margin-bottom: .4rem;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.03em;
  color: var(--encre);
}
.colophon-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.4rem;
  font-family: var(--police-titre);
  font-weight: 500;
}
@media (min-width: 860px) {
  .colophon-nav { flex-direction: column; gap: .35rem; }
}
.colophon-nav a {
  color: var(--encre);
  text-decoration: none;
  border-bottom: 1px solid var(--filet-fort);
  transition: color .15s ease, border-color .15s ease;
}
.colophon-nav a:hover { color: var(--pastel); border-bottom-color: var(--pastel); }
.colophon-copie { grid-column: 1 / -1; font-variant-numeric: tabular-nums; }

/* ===== Pages document (mentions, conditions) ===== */
.document {
  display: grid;
  gap: 2.5rem 4rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .document { grid-template-columns: 14rem minmax(0, 1fr); }
}
.document-tete {
  grid-column: 1 / -1;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--filet);
}
.document-tete h1 {
  max-width: 24ch;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  letter-spacing: -.03em;
}
.document-tete .surtitre { margin-bottom: 1rem; }
.meta-doc {
  margin-top: 1.1rem;
  font: 500 .76rem/1.5 var(--police-titre);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--encre-2);
}
.avis {
  grid-column: 1 / -1;
  padding: 1rem 1.2rem;
  border: 1px solid var(--pastel);
  background: var(--pastel-voile);
  font-family: var(--police-titre);
  font-size: .95rem;
  line-height: 1.5;
}
.avis strong { color: var(--pastel-fort); }

.sommaire {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  font-family: var(--police-titre);
  font-size: .92rem;
  line-height: 1.4;
}
.sommaire-titre {
  margin-bottom: .8rem;
  font: 600 .72rem/1.4 var(--police-titre);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pastel);
}
.sommaire ol { list-style: none; display: grid; gap: .4rem; }
.sommaire a { color: var(--encre-2); text-decoration: none; }
.sommaire a:hover { color: var(--pastel); }
.sommaire .num {
  display: inline-block;
  min-width: 2ch;
  margin-right: .5ch;
  font-variant-numeric: tabular-nums;
  color: var(--filet-fort);
}

.document-corps { max-width: 68ch; }
.document-corps section + section { margin-top: 3rem; }
.document-corps h2 {
  padding-top: 1rem;
  margin-bottom: 1rem;
  border-top: 1px solid var(--filet);
  font-size: 1.45rem;
  letter-spacing: -.022em;
}
.document-corps h2 .num {
  display: inline-block;
  min-width: 2.2ch;
  color: var(--pastel);
  font-variant-numeric: tabular-nums;
}
.document-corps h3 { margin: 1.4rem 0 .5rem; font-size: 1.1rem; }
.document-corps p + p,
.document-corps ul + p,
.document-corps p + ul,
.document-corps dl + p,
.document-corps p + dl { margin-top: .9rem; }
.document-corps ul { padding-left: 1.2rem; display: grid; gap: .45rem; }
.document-corps .identite { margin-top: .5rem; }
.document-corps code {
  font-family: var(--police-mono);
  font-size: .9em;
  padding: .1em .35em;
  background: var(--pastel-voile);
  border-radius: 2px;
}

/* ===== Page introuvable ===== */
.erreur {
  padding-block: clamp(4rem, 12vw, 9rem);
  display: grid;
  gap: 1.2rem;
  max-width: 40rem;
}
.erreur h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); letter-spacing: -.03em; }
.erreur .code {
  font: 500 .78rem/1.5 var(--police-titre);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pastel);
}

/* ===== Accessibilité et impression ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .evitement, .theme, .nav, .sommaire, .colophon-nav { display: none; }
  body { background: #fff; color: #000; }
  .rubrique-titre, .sommaire { position: static; }
  a { color: inherit; }
}
