/* iZola · site statique izola.app
   Couleurs, polices et rayons repris des design tokens de l'app (lib/theme/design_tokens). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-25: #f9fefe;
  --brand-50: #effefd;
  --brand-100: #d1fffb;
  --brand-500: #04c8c6;
  --brand-600: #009c9e;
  --brand-700: #057e80;
  --brand-800: #0a6265;
  --brand-900: #0d5254;
  --brand-950: #002f33;

  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e9eaeb;
  --gray-300: #d5d7da;
  --gray-500: #717680;
  --gray-600: #535862;
  --gray-700: #414651;
  --gray-900: #181d27;

  --warning-50: #fffaeb;
  --warning-300: #fec84b;
  --warning-700: #b54708;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 64px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  --content: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-700);
}

a:hover {
  color: var(--brand-900);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--gray-900);
}

.brand:hover {
  color: var(--gray-900);
}

.brand img {
  width: 32px;
  height: 32px;
}

/* Boutons : pilule, comme les FilledButton / OutlinedButton de l'app */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

/* brand-700 plutôt que brand-600 (couleur des boutons de l'app) : blanc sur
   brand-600 ne fait que 3,4:1, sous le seuil AA de 4,5:1. */
.btn-primary {
  background: var(--brand-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-800);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9375rem;
}

/* Accueil */

.hero {
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-100);
  color: var(--brand-900);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero .lead {
  font-size: 1.1875rem;
  color: var(--gray-600);
  max-width: 34em;
}

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

.illustration {
  position: relative;
}

.illustration::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-100) 0%, transparent 70%);
  z-index: -1;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-muted {
  background: var(--gray-50);
}

.section-intro {
  max-width: 40em;
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro p {
  font-size: 1.125rem;
  color: var(--gray-600);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-600);
  border: 8px solid var(--brand-25);
  box-sizing: content-box;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature p {
  margin: 0;
  color: var(--gray-600);
}

.split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.split-reverse .illustration {
  order: 2;
}

.checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009C9E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.cta {
  background: var(--brand-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta .btn-primary {
  background: #fff;
  color: var(--brand-700);
}

.cta .btn-primary:hover {
  background: var(--brand-50);
}

/* Pied de page */

.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 40px 0;
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer a {
  color: var(--gray-600);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* Page juridique */

.legal {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.legal .container {
  max-width: 820px;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-header p {
  color: var(--gray-500);
  margin: 0;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  scroll-margin-top: 96px;
}

.legal h3 {
  font-size: 1.125rem;
  margin-top: 28px;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li {
  margin-bottom: 6px;
}

.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.toc ol {
  margin: 0;
  padding-left: 1.25em;
  columns: 2;
  column-gap: 32px;
}

.callout {
  background: var(--brand-50);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--brand-950);
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

th {
  background: var(--gray-50);
  color: var(--gray-900);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* Valeur à compléter avant la mise en ligne : très visible exprès. */
.todo {
  background: var(--warning-50);
  color: var(--warning-700);
  border: 1px dashed var(--warning-300);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .hero .container,
  .split .container {
    grid-template-columns: 1fr;
  }

  .hero .illustration {
    max-width: 420px;
    margin: 0 auto;
  }

  .split-reverse .illustration {
    order: 0;
  }

  .split .illustration {
    max-width: 380px;
    margin: 0 auto;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .site-header .btn-small {
    padding: 6px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.actions-center {
  justify-content: center;
}
