/* =========================================================================
   Zephyr_LAB.io — feuille de style maison
   Sobre, clair, composée autour du logotype : traits fins, géométrie,
   beaucoup de blanc. Aucune dépendance, aucun framework.
   ========================================================================= */

:root {
  /* Encre */
  --ink:        #12161c;
  --ink-soft:   #3d4753;
  --ink-dim:    #6b7682;
  --ink-faint:  #9aa4ae;

  /* Fonds */
  --bg:         #ffffff;
  --bg-warm:    #f8f7f4;
  --bg-deep:    #0c1218;

  /* Filets */
  --rule:       #e6e3dc;
  --rule-soft:  #f0eee9;

  /* Accents */
  --navy:       #0c2d4a;
  --blue:       #0d6ea8;
  --green:      #2f7a4f;
  --amber:      #a65200;

  /* Typographie */
  --display: 'Jost', 'Century Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* Mesures */
  --wrap:    1140px;
  --wrap-nr: 760px;
  --gut:     clamp(20px, 5vw, 48px);
  --sec:     clamp(64px, 10vw, 132px);
}

/* ---------- Réinitialisation ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 400; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 500; font-family: var(--sans); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--navy); color: #fff; }

/* ---------- Ossature ---------- */

.wrap  { max-width: var(--wrap);    margin-inline: auto; padding-inline: var(--gut); }
.narrow{ max-width: var(--wrap-nr); margin-inline: auto; padding-inline: var(--gut); }

.section      { padding-block: var(--sec); }
.section--warm{ background: var(--bg-warm); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section + .section:not(.section--warm):not(.section--dark) { border-top: 1px solid var(--rule-soft); }

/* ---------- Typographie utilitaire ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.eyebrow--plain::after { display: none; }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
  font-weight: 300;
}

.muted { color: var(--ink-dim); }
.small { font-size: 0.9rem; line-height: 1.6; }
.tiny  { font-size: 0.8rem; line-height: 1.55; color: var(--ink-dim); }

/* ---------- En-tête ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gut);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.brand:hover { text-decoration: none; opacity: 0.68; transition: opacity 0.2s; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); }

.nav a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.is-current { color: var(--ink); }

/* Sélecteur de langue */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding-left: clamp(0.6rem, 1.6vw, 1.4rem);
  margin-left: clamp(0.1rem, 1vw, 0.6rem);
  border-left: 1px solid var(--rule);
  flex: none;
}
.lang a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  padding: 0.15rem 0;
}
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang > span[aria-hidden] { color: var(--rule); font-size: 0.7rem; user-select: none; }
.lang .on {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 720px) {
  .masthead__inner { height: 62px; gap: 0.9rem; padding-inline: 20px; }
  .brand img { height: 20px; }
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.78rem; }
  .nav a.hide-sm { display: none; }
  .lang { padding-left: 0.6rem; margin-left: 0; }
  .lang a, .lang .on { font-size: 0.68rem; letter-spacing: 0.04em; }
}
/* Sur les écrans les plus étroits, l'en-tête doit tenir sans jamais provoquer
   de défilement horizontal : la marque rétrécit et l'espacement se resserre. */
@media (max-width: 400px) {
  .masthead__inner { gap: 0.6rem; padding-inline: 16px; }
  .brand img { height: 18px; }
  .nav { gap: 0.62rem; }
  .nav a { font-size: 0.74rem; }
  .lang { padding-left: 0.5rem; gap: 0.3rem; }
  .lang a, .lang .on { font-size: 0.64rem; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  cursor: pointer;
}
.btn:hover { background: var(--navy); border-color: var(--navy); text-decoration: none; color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

/* Lien fléché */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.arrow::after { content: '→'; transition: transform 0.2s; font-size: 1.05em; }
.arrow:hover { text-decoration: none; color: var(--navy); }
.arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(72px, 12vw, 152px) clamp(56px, 8vw, 104px); }

.hero h1 { max-width: 15ch; margin-bottom: 1.6rem; }
.hero .lede { max-width: 56ch; }

.hero__mark {
  width: 52px;
  opacity: 0.9;
  margin-bottom: 2.6rem;
}

/* ---------- Grilles ---------- */

.grid { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Deux colonnes asymétriques : intitulé à gauche, corps à droite */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Bloc numéroté (méthode) ---------- */

.numbered { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.numbered__n {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1.1rem;
}
.numbered h3 { margin-bottom: 0.55rem; }
.numbered p { font-size: 0.95rem; color: var(--ink-dim); line-height: 1.68; }

/* ---------- Carte produit ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.product--flip .product__media { order: -1; }
@media (max-width: 880px) {
  .product { grid-template-columns: 1fr; gap: 2rem; }
  .product--flip .product__media { order: 0; }
}

.product__logo { height: 58px; width: auto; margin-bottom: 1.6rem; }
.product__logo--sq { height: 62px; border-radius: 14px; }
@media (max-width: 620px) {
  .product__logo { height: 46px; }
  .product__logo--sq { height: 52px; }
}

.product__media {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-warm);
}
.product__media img { width: 100%; }

.tagline {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

/* Liste de faits en ligne */
.facts {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
}
.facts li {
  font-size: 0.79rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.3rem 0.78rem;
  background: #fff;
}

/* ---------- Liste de fonctions ---------- */

.feature { border-top: 1px solid var(--rule); padding-top: 1.35rem; }
.feature h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
}
.feature p { font-size: 0.93rem; line-height: 1.66; color: var(--ink-dim); margin: 0; }
.feature__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.7rem;
}

/* ---------- Figure ---------- */

figure { margin: 0; }
.shot {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-warm);
}
figcaption {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* Élément d'interface isolé : posé sur un fond, jamais pleine largeur */
.ui {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-warm);
  padding: clamp(1.1rem, 3vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui img { border-radius: 3px; }
.ui--tall img { max-height: 380px; width: auto; }
.ui--wide img { width: 100%; }

/* Paire jour / nuit */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.duo figure { margin: 0; position: relative; }
.duo img { width: 100%; display: block; }
.duo__tag {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.duo__tag--dark { background: rgba(12,18,24,.78); color: #fff; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }

/* Bande de figures sous une section */
.plates { display: grid; gap: clamp(1.4rem, 2.6vw, 2.2rem); }
.plates--2 { grid-template-columns: 1fr 1fr; }
.plates--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .plates--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plates--2, .plates--3 { grid-template-columns: 1fr; } }

/* Figure accompagnant un bloc de texte, dans la colonne d'intitulé */
.aside-shot {
  margin-top: 2rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-warm);
  display: flex;
  justify-content: center;
}
.aside-shot img { width: 100%; display: block; }
/* Une image portrait ne doit pas étirer la colonne d'intitulé : on la borne
   en hauteur et on la laisse se centrer. */
.aside-shot--tall { padding: 1.4rem; }
.aside-shot--tall img { width: auto; max-height: 440px; }

/* ---------- Encart d'avertissement ---------- */

.notice {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--amber);
  background: var(--bg-warm);
  padding: 1.4rem 1.6rem;
  border-radius: 3px;
}
.notice h4 { margin: 0 0 0.5rem; color: var(--amber); letter-spacing: 0.02em; }
.notice p { font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ---------- Tarif ---------- */

.price {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: #fff;
}
.price__amount {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.price__unit { font-size: 0.95rem; color: var(--ink-dim); font-family: var(--sans); letter-spacing: 0; }

/* ---------- Sources ---------- */

.sources { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.sources li {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 0.34rem 0.7rem;
  border-radius: 2px;
  background: #fff;
}

/* ---------- Contact ---------- */

.contact-line {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.contact-line a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.contact-line a:hover { text-decoration: none; border-bottom-color: var(--ink); }

/* ---------- Pied de page ---------- */

.footer {
  background: var(--bg-deep);
  color: #aeb9c4;
  padding-block: clamp(48px, 7vw, 76px) 2.4rem;
  font-size: 0.88rem;
}
.footer h4 {
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 1.05rem;
  opacity: 0.55;
}
.footer a { color: #d3dce4; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer__mark { height: 24px; width: auto; filter: invert(1) brightness(1.7); opacity: 0.92; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__base {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #78858f;
}

/* ---------- Pages légales ---------- */

.legal { padding-block: clamp(48px, 7vw, 80px) var(--sec); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 0.7rem; }
.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-top: 3.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
}
.legal h2 .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  flex: none;
}
.legal h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; margin-top: 2rem; }
.legal p, .legal li { font-size: 0.97rem; line-height: 1.72; color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.2rem; margin: 0 0 1.15em; }
.legal li { margin-bottom: 0.45rem; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal__meta {
  font-size: 0.83rem;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.6rem;
  margin-bottom: 0.5rem;
}

table.idcard { width: 100%; border-collapse: collapse; margin: 1.6rem 0 1.2rem; font-size: 0.93rem; }
table.idcard th, table.idcard td {
  text-align: left;
  vertical-align: top;
  padding: 0.68rem 0.9rem 0.68rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-weight: 400;
}
table.idcard th { color: var(--ink-dim); width: 38%; font-weight: 400; }
table.idcard td { color: var(--ink); }
@media (max-width: 560px) {
  table.idcard th { width: 44%; font-size: 0.86rem; }
  table.idcard td { font-size: 0.89rem; }
}

.legal .note {
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
}
.legal .note h3 { margin-top: 0; }
.legal .note p:last-child { margin-bottom: 0; }

/* Sommaire */
.toc {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.4rem 1.6rem;
  margin: 2.4rem 0 0;
  background: var(--bg-warm);
}
.toc h4 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
  font-weight: 500;
}
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { margin-bottom: 0.4rem; font-size: 0.92rem; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--ink); }

/* ---------- Accessibilité ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 100;
}
.skip:focus { left: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Impression ---------- */

@media print {
  .masthead, .footer, .btn-row, .toc { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
