/* KCE TV — site vitrine kcecore.com
   Feuille de style unique, pensée d'abord pour le téléphone.
   Points de rupture : 768 px et 1100 px. */

/* ---------- Police Sora (servie par le site) ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sora-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/sora-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/sora-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/sora-latin-800-normal.woff2') format('woff2');
}

/* ---------- Palette et jetons ---------- */
:root {
  --navy: #0b2a6b;
  --navy-dark: #071a44;
  --red: #d4202c;
  --red-dark: #b01a24;
  --bg: #f5f8fd;
  --surface: #ffffff;
  --text: #0d1b33;
  --muted: #4a5a78;
  --line: #dde5f2;
  --tint: #eaf0fa;
  --on-dark: #ffffff;
  --on-dark-muted: #c3d0ea;
  --series: #1f5fd1;

  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 68, 0.06), 0 2px 8px rgba(7, 26, 68, 0.05);
  --shadow: 0 2px 4px rgba(7, 26, 68, 0.05), 0 12px 32px rgba(7, 26, 68, 0.09);
  --shadow-lg: 0 24px 60px rgba(7, 26, 68, 0.28);
  --header-h: 68px;
  --focus-ring: #1f5fd1;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

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

.hero :focus-visible,
.band :focus-visible,
.contact :focus-visible,
.plan-featured :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}

strong {
  font-weight: 700;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

/* Lien d'évitement */
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-dark);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: #fff;
}

/* ---------- Mise en page ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 64px;
}

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 4.6vw, 2.5rem);
  font-weight: 800;
}

.section-head h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--red);
}

.section-lead {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--muted);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(7, 26, 68, 0.18);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #ffffff;
}

.btn-sm {
  min-height: 40px;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 54px;
  padding: 14px 26px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(7, 26, 68, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.brand img {
  width: auto;
  height: 52px;
}

.nav-desktop {
  display: none;
}

.nav-desktop a:not(.btn) {
  position: relative;
  padding: 8px 2px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-desktop a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.nav-desktop a:not(.btn):hover {
  color: var(--navy);
}

.nav-desktop a:not(.btn):hover::after {
  transform: scaleX(1);
}

/* Menu mobile (sans JavaScript) */
.nav-mobile {
  position: static;
}

.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.burger {
  display: inline-grid;
  gap: 4px;
  width: 18px;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-mobile[open] .burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-mobile[open] .burger span:nth-child(2) {
  opacity: 0;
}

.nav-mobile[open] .burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  gap: 2px;
  padding: 12px 20px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(7, 26, 68, 0.12);
}

.nav-mobile-panel a:not(.btn) {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-mobile-panel .btn {
  margin-top: 14px;
}

/* ---------- Accueil (héros) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 64px;
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(31, 95, 209, 0.45) 0%, rgba(31, 95, 209, 0) 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(212, 32, 44, 0.2) 0%, rgba(212, 32, 44, 0) 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 75%);
  color: var(--on-dark);
  /* Fond uni sous le dégradé : contraste garanti même sans dégradé. */
  background-color: var(--navy-dark);
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 8.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.lead {
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn {
  flex: 1 1 260px;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.hero .btn-outline:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy-dark);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e3eaf8;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background:
    url('assets/check.svg') center / 12px 12px no-repeat,
    var(--red);
}

/* Maquette de téléphone (HTML + CSS, sans image) */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(290px, 82vw);
  aspect-ratio: 9 / 18.5;
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(150deg, #1d2c4f, #050d22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 34px 13px 0;
  overflow: hidden;
  border-radius: 34px;
  background: #eef3fc;
  color: var(--text);
  font-size: 11px;
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 78px;
  height: 18px;
  border-radius: 999px;
  background: #050d22;
  transform: translateX(-50%);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 4px;
}

.app-logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-logo-kce {
  color: var(--navy);
}

.app-logo-tv {
  color: var(--red);
}

.app-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8d6f0, #9fb4dc);
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 12px;
  overflow: hidden;
  border-radius: 14px;
  color: #ffffff;
}

.app-card::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.app-card-title {
  font-size: 15px;
  font-weight: 800;
}

.app-card-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.app-card-live {
  min-height: 120px;
  background: var(--navy) linear-gradient(140deg, #164096 0%, var(--navy) 50%, var(--navy-dark) 100%);
}

.app-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-row .app-card {
  min-height: 78px;
}

.app-card-films {
  background: var(--red) linear-gradient(140deg, #d92833, var(--red) 55%, #9e1720);
}

.app-card-series {
  background: var(--series) linear-gradient(140deg, #2a68d8, var(--series) 55%, #15449c);
}

.app-rail-title {
  width: 46%;
  height: 9px;
  margin-top: 4px;
  border-radius: 5px;
  background: #c9d5ec;
}

.app-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-rail span {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: linear-gradient(180deg, #d6e0f2, #c0cee8);
}

.app-tabbar {
  display: flex;
  justify-content: space-between;
  margin: auto -13px 0;
  padding: 10px 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.app-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.app-tabbar span::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #cfd9ec;
}

.app-tabbar .is-active {
  color: var(--navy);
}

.app-tabbar .is-active::before {
  background: var(--navy);
}

/* ---------- Mise en page éditoriale (titre à gauche, contenu à droite) ---------- */
.split {
  display: grid;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

.text-link::after {
  content: '→';
  transition: transform 0.18s ease;
}

.text-link:hover {
  color: var(--red);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ---------- Fonctionnalités ---------- */
.features {
  display: grid;
  list-style: none;
  border-top: 2px solid var(--navy-dark);
}

.feature {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.feature-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.14rem;
  font-weight: 700;
}

.feature-glyph {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--red);
}

.feature-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 40px;
  padding: 3px 8px;
  border: 2px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.feature p {
  margin-top: 10px;
  padding-left: 40px;
  color: var(--muted);
}

/* ---------- Appareils (bande marine) ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding-block: 64px;
  background:
    radial-gradient(55% 80% at 100% 0%, rgba(31, 95, 209, 0.4) 0%, rgba(31, 95, 209, 0) 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 80%);
  color: var(--on-dark);
  /* Fond uni sous le dégradé : contraste garanti même sans dégradé. */
  background-color: var(--navy-dark);
}

.band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  height: 6px;
  background: var(--red);
}

.band h2,
.band h3 {
  color: #ffffff;
}

.band-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.band-head h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.band-lead {
  max-width: 460px;
  font-size: 1.05rem;
  color: var(--on-dark-muted);
}

.devices {
  display: grid;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.device {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.device-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
  font-weight: 700;
}

.device-glyph {
  width: 24px;
  height: 24px;
  flex: none;
  color: #ffffff;
}

.device p {
  margin-top: 8px;
  padding-left: 36px;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

/* ---------- Télécharger (liste en lignes) ---------- */
.downloads {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.download {
  display: grid;
  gap: 16px;
  padding: 24px 22px;
  border-left: 4px solid transparent;
}

.download + .download {
  border-top: 1px solid var(--line);
}

.download:hover {
  border-left-color: var(--red);
  background: #fbfcff;
}

.download h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.download p {
  margin-top: 6px;
  color: var(--muted);
}

.download .btn {
  justify-self: start;
}

.address {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #c9d6ee;
  border-radius: 6px;
  background: var(--tint);
  color: var(--navy-dark);
  font-size: 0.92em;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Formules ---------- */
.plans {
  display: grid;
  gap: 18px;
  list-style: none;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 10px;
  color: var(--navy-dark);
  line-height: 1;
}

.plan-amount {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan-currency {
  margin-top: 6px;
  font-size: 1.6rem;
  font-weight: 700;
}

.plan-note {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.95rem;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  border-radius: 50%;
  background:
    url('assets/check.svg') center / 12px 12px no-repeat,
    var(--navy);
}

.plan .btn {
  margin-top: auto;
}

.plan-featured {
  border-color: var(--navy);
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  /* Fond uni sous le dégradé : contraste garanti même sans dégradé. */
  background-color: var(--navy-dark);
}

.plan-featured .plan-name,
.plan-featured .plan-price {
  color: #ffffff;
}

.plan-featured .plan-note {
  color: var(--on-dark-muted);
}

.plan-featured .plan-list {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.plan-featured .plan-list li::before {
  background:
    url('assets/check.svg') center / 12px 12px no-repeat,
    var(--red);
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(7, 26, 68, 0.2);
}

.plans-foot {
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- S'abonner (étapes) ---------- */
.steps {
  display: grid;
  gap: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 22px 0 26px;
  border-top: 3px solid var(--navy);
}

.step:last-child {
  border-top-color: var(--red);
}

.step-num {
  display: block;
  margin-bottom: 12px;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.step:last-child .step-num {
  color: var(--red);
}

.step h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

.steps-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 30px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 30px;
  padding: 36px 26px;
  border-radius: 24px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(31, 95, 209, 0.5) 0%, rgba(31, 95, 209, 0) 70%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  /* Fond uni sous le dégradé : contraste garanti même sans dégradé. */
  background-color: var(--navy-dark);
}

.contact h2 {
  font-size: clamp(1.6rem, 4.6vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
}

.contact-text p {
  margin-top: 12px;
  color: var(--on-dark-muted);
}

.contact-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #12295c;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.contact-list a,
.contact-list span:not(.contact-label) {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* ---------- Textes légaux (pages Task 2) ---------- */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 48px 72px;
  font-size: 1rem;
  line-height: 1.75;
}

.legal h1 {
  font-size: clamp(1.9rem, 6vw, 2.75rem);
  font-weight: 800;
}

.legal .legal-meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal h2 {
  margin-top: 44px;
  padding-top: 8px;
  font-size: 1.35rem;
  font-weight: 700;
}

.legal h3 {
  margin-top: 28px;
  font-size: 1.08rem;
  font-weight: 700;
}

.legal p,
.legal ul,
.legal ol,
.legal table {
  margin-top: 14px;
}

.legal ul,
.legal ol {
  padding-left: 1.4em;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  overflow-wrap: anywhere;
}

.legal table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal th,
.legal td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Sur téléphone, le tableau tient dans l’écran : texte plus petit, marges réduites, mots longs coupés. */
@media (max-width: 599px) {
  .legal table {
    font-size: 0.84rem;
  }

  .legal th,
  .legal td {
    padding: 10px 8px;
  }
}

.legal th {
  background: var(--tint);
  color: var(--navy-dark);
}

.legal .legal-toc {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legal .legal-toc-title {
  margin-top: 0;
  font-weight: 700;
  color: var(--navy-dark);
}

.legal .legal-toc ol {
  margin-top: 8px;
}

.legal .legal-toc li + li {
  margin-top: 2px;
}

.legal td {
  background: var(--surface);
}

.legal-notfound {
  padding-block: 72px 96px;
  text-align: center;
}

.legal-notfound .legal-code {
  margin-top: 0;
  font-size: clamp(3.5rem, 14vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--red);
}

.legal-notfound h1 {
  margin-top: 16px;
}

.legal-notfound .legal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-top: 56px;
  background: var(--navy-dark);
  color: var(--on-dark-muted);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 34px;
}

.footer-brand img {
  width: 64px;
  height: auto;
  border-radius: 14px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 44px;
  padding-block: 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

/* ---------- Tablette : 768 px ---------- */
@media (min-width: 768px) {
  :root {
    --header-h: 76px;
  }

  .container {
    padding-inline: 32px;
  }

  .section,
  .band {
    padding-block: 88px;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .section-head-center {
    margin-inline: auto;
    text-align: center;
  }

  .section-head-center h2::before {
    margin-inline: auto;
  }

  .brand img {
    height: 56px;
  }

  /* Navigation compacte entre 768 et 1099 px */
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .nav-desktop a:not(.btn) {
    font-size: 0.86rem;
  }

  .nav-desktop .btn-sm {
    padding-inline: 14px;
    font-size: 0.86rem;
  }

  .nav-mobile {
    display: none;
  }

  .hero {
    padding-block: 80px 88px;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }

  .features {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

  .band-head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    column-gap: 40px;
  }

  .devices {
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .device {
    padding: 26px 26px 28px 0;
    border-bottom: 0;
  }

  .device:nth-child(even) {
    padding-left: 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .device:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .download {
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 32px;
    padding: 26px 32px 26px 28px;
  }

  .download .btn {
    min-width: 230px;
  }

  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }

  .contact {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 52px 48px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
}

/* ---------- Bureau : 1100 px ---------- */
@media (min-width: 1100px) {
  .nav-desktop {
    gap: 30px;
  }

  .nav-desktop a:not(.btn) {
    font-size: 0.94rem;
  }

  .nav-desktop .btn-sm {
    padding-inline: 18px;
    font-size: 0.9rem;
  }

  .hero {
    padding-block: 96px 104px;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }

  .split {
    grid-template-columns: 0.85fr 1.6fr;
    gap: 72px;
    align-items: start;
  }

  .split-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    margin-bottom: 0;
  }

  .devices {
    grid-template-columns: repeat(4, 1fr);
  }

  .device,
  .device:nth-child(even) {
    padding: 30px 24px 34px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .device:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .device:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .device-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .device-glyph {
    width: 30px;
    height: 30px;
  }

  .device p {
    padding-left: 0;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 28px;
  }

  .step-num {
    font-size: 3.2rem;
  }

  .plan-featured {
    transform: translateY(-12px);
  }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn:hover,
  .text-link:hover::after {
    transform: none;
  }
}
