/* ouix.fr — accueil. Sobre, lumineux, typographie système (SF Pro sur Apple). */
:root {
  --paper: #fbfbfd;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --soft: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --black: #000;
  --on-black: #f5f5f7;
  --lime: #d6f55b;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: min(1080px, 100% - 2 * clamp(20px, 4vw, 44px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 980px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 251 253 / 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: rgb(0 0 0 / 0.08); }
.nav-in { width: var(--page); margin-inline: auto; height: 52px; display: flex; align-items: center; gap: 28px; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.06em; }
/* Le point de « ouix. » : la seule couleur de marque de la page. */
.logo span { position: relative; color: transparent; }
.logo span::after { content: ""; position: absolute; left: 0.02em; bottom: 0.14em; width: 0.26em; height: 0.26em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1); }
.nav nav { display: flex; gap: 26px; margin-inline: auto; font-size: 13px; color: var(--soft); letter-spacing: -0.01em; }
.nav nav a:hover { color: var(--ink); }
.nav-cta { font-size: 13px; padding: 6px 14px; border-radius: 980px; background: var(--ink); color: var(--paper); letter-spacing: -0.01em; }
.nav-cta:hover { background: #333336; }

/* Boutons et liens */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border: 0; border-radius: 980px;
  background: var(--ink); color: var(--paper);
  font: 500 17px/1 var(--font); letter-spacing: -0.02em; cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #333336; }
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--on-black); color: var(--ink); }
.btn--light:hover { background: #fff; }
.link { color: #0066cc; font-size: 17px; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }

/* Hero */
.hero { width: var(--page); margin: 0 auto; padding: clamp(72px, 13vh, 150px) 0 0; text-align: center; }
.hero h1 { font-size: clamp(44px, 8.2vw, 96px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.h-line { display: block; }
.h-soft {
  background: linear-gradient(180deg, #6e6e73 0%, #a1a1a6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.hero-lede { max-width: 34em; margin: 28px auto 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--soft); letter-spacing: -0.02em; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; }
.hero-icons { list-style: none; margin: clamp(64px, 10vh, 104px) auto 0; padding: 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.2vw, 26px); }
.hero-icons li { width: clamp(52px, 8vw, 92px); aspect-ratio: 1; }
.hero-icons li:nth-child(odd) { transform: translateY(-14px); }
.hero-icons a { display: block; width: 100%; height: 100%; border-radius: 23%; overflow: hidden; box-shadow: 0 1px 1px rgb(0 0 0 / 0.04), 0 18px 34px -18px rgb(0 0 0 / 0.38); transition: transform 0.4s var(--ease); }
.hero-icons a:hover { transform: translateY(-6px); }
.hero-icons img, .mono { width: 100%; height: 100%; object-fit: cover; }
.mono { display: grid; place-items: center; background: var(--tint, var(--ink)); color: #fff; font-weight: 600; letter-spacing: -0.04em; font-size: 0.34em; }

/* Ouverture : une seule chorégraphie */
@media (prefers-reduced-motion: no-preference) {
  .h-line, .hero-lede, .hero-actions { animation: settle 1.1s var(--ease) both; }
  .h-line:nth-child(2) { animation-delay: 0.12s; }
  .hero-lede { animation-delay: 0.3s; }
  .hero-actions { animation-delay: 0.42s; }
  .hero-icons li { animation: rise 1.2s var(--ease) both; }
  .hero-icons li:nth-child(1) { animation-delay: 0.50s; }
  .hero-icons li:nth-child(2) { animation-delay: 0.57s; }
  .hero-icons li:nth-child(3) { animation-delay: 0.64s; }
  .hero-icons li:nth-child(4) { animation-delay: 0.71s; }
  .hero-icons li:nth-child(5) { animation-delay: 0.78s; }
  .hero-icons li:nth-child(6) { animation-delay: 0.85s; }
  .hero-icons li:nth-child(7) { animation-delay: 0.92s; }
  .hero-icons li:nth-child(8) { animation-delay: 0.99s; }
  .hero-icons li:nth-child(9) { animation-delay: 1.06s; }
  .hero-icons li:nth-child(10) { animation-delay: 1.13s; }
}
@keyframes settle { from { opacity: 0; filter: blur(14px); transform: translateY(18px); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(0.92); } }

/* Phrase qui s'illumine au défilement */
.statement { width: var(--page); margin: 0 auto; padding: clamp(120px, 20vh, 220px) 0 clamp(40px, 8vh, 80px); }
.statement-text { max-width: 22em; margin-inline: auto; font-size: clamp(30px, 4.6vw, 56px); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; }
.statement-text .w { color: var(--ink); transition: color 0.35s linear; }
.js .statement-text .w { color: #d2d2d7; }
.js .statement-text .w.on { color: var(--ink); }

/* Sections */
.section { width: var(--page); margin: 0 auto; padding-top: clamp(96px, 14vh, 160px); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.section-head p { margin-top: 16px; font-size: 21px; line-height: 1.38; color: var(--soft); }

/* Services : deux tuiles majeures, quatre secondaires */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 22px; background: var(--tile); }
.tile--wide { grid-column: span 2; min-height: 380px; padding: 44px; border-radius: 30px; }
.tile--dark { background: var(--black); color: var(--on-black); }
.tile--dark p { color: #a1a1a6; }
.t-ico { width: 40px; height: 40px; margin-bottom: auto; color: var(--ink); }
.tile--wide .t-ico { width: 56px; height: 56px; }
.tile--dark .t-ico { color: var(--lime); }
.tile h3 { margin-top: 28px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.tile--wide h3 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.04em; }
.tile p { font-size: 17px; color: var(--soft); }
.tile .link { margin-top: 6px; }

/* Méthode : vraie séquence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--line); margin-bottom: 18px; }
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.steps p { margin-top: 8px; color: var(--soft); }

/* Solutions regroupées */
.group { margin-top: 56px; }
.group:first-of-type { margin-top: 0; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.group-head h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; }
.group-head .link { font-size: 15px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid #e8e8ed; }
.item-ico { grid-row: span 3; align-self: start; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); font-size: 60px; }
.item-ico img { width: 100%; height: 100%; object-fit: cover; }
.item h4 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.item h4 a:hover { text-decoration: underline; }
.item p { font-size: 15px; line-height: 1.45; color: var(--soft); }
.item-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.item-links a { color: #0066cc; }
.item-links a:hover { text-decoration: underline; }
.soon { font-size: 14px; color: var(--faint); }

/* Contact */
.contact { margin-top: clamp(120px, 16vh, 180px); background: var(--black); color: var(--on-black); }
.contact-in { width: var(--page); margin: 0 auto; padding: clamp(96px, 14vh, 150px) 0; }
.contact h2 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.contact-lede { max-width: 36em; margin-top: 20px; font-size: 21px; line-height: 1.38; color: #a1a1a6; }
.form { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: #a1a1a6; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #424245; border-radius: 12px;
  background: #1d1d1f; color: var(--on-black); font: 17px/1.4 var(--font); letter-spacing: -0.02em;
  transition: border-color 0.2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: none; border-color: #f5f5f7; }
.form ::placeholder { color: #6e6e73; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-foot p { flex: 1 1 280px; font-size: 14px; color: #86868b; }
.form-foot a { color: var(--on-black); text-decoration: underline; text-underline-offset: 3px; }

/* Pied de page */
.foot { background: var(--tile); color: var(--soft); font-size: 12px; letter-spacing: -0.01em; }
.foot-in { width: var(--page); margin: 0 auto; padding: 40px 0 28px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px 72px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot h2 { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; }

/* Tablette */
@media (max-width: 899px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { min-height: 300px; }
  .items { grid-template-columns: minmax(0, 1fr); }
}
/* Téléphone */
@media (max-width: 680px) {
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: 1 / -1; padding: 28px; }
  .tile--wide { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .form { grid-template-columns: 1fr; }
  .hero-icons li:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Catalogues (apps.ouix.fr, games.ouix.fr) ---------- */
.logo small { margin-left: 8px; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; color: var(--soft); }
.nav nav a[aria-current] { color: var(--ink); }
.hero--catalog { padding-bottom: 8px; }
.hero--catalog h1 { font-size: clamp(48px, 9vw, 104px); }
.shelf { width: var(--page); margin: 0 auto; padding-top: clamp(80px, 11vh, 128px); }
.shelf > h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.035em; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 8px 32px;
  padding: 32px 0; border-bottom: 1px solid #e8e8ed;
}
.row-ico { grid-row: span 2; width: 112px; height: 112px; border-radius: 25px; overflow: hidden; font-size: 112px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06), 0 16px 30px -22px rgb(0 0 0 / 0.5); }
.row-ico img { width: 100%; height: 100%; object-fit: cover; }
.row-text h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.row-text h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.row-text p { margin-top: 6px; max-width: 34em; color: var(--soft); }
.row-legal { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.row-legal a { color: var(--soft); }
.row-legal a:hover { color: var(--ink); text-decoration: underline; }
.row-actions { grid-row: span 2; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 176px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px; border-radius: 980px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; letter-spacing: -0.015em; transition: background 0.2s; }
.pill:hover { background: #333336; }
.pill--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill--ghost:hover { background: var(--tile); }
.row-soon { font-size: 15px; color: var(--faint); text-align: center; }
.band { width: var(--page); margin: clamp(96px, 13vh, 150px) auto 0; padding: clamp(36px, 5vw, 56px); border-radius: 30px; background: var(--tile); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.band h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.band p { margin-top: 6px; color: var(--soft); }
.foot--catalog { margin-top: clamp(96px, 13vh, 150px); }
@media (max-width: 760px) {
  .row { grid-template-columns: 76px minmax(0, 1fr); gap: 6px 18px; padding: 26px 0; }
  .row-ico { width: 76px; height: 76px; border-radius: 18px; font-size: 76px; grid-row: span 3; align-self: start; }
  .row-actions { grid-row: auto; grid-column: 2; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .row-legal { grid-column: 2; }
  .row-soon { text-align: left; }
}
