/* Tezia : site public. Léger, lisible sur petit écran, sans police à télécharger. */
:root {
  --blue: #0b6ef5;
  --deep: #0a3fc4;
  --night: #0b1f4b;
  --sky: #6eb6ff;
  --pale: #cfe3ff;
  --bg: #f5f8ff;
  --white: #ffffff;
  --grey: #5b6b8c;
  --warn: #f5a524;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--night);
  background: var(--white);
}

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

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--night);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête et menu */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--pale);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  position: relative;
}

.top .logo img {
  height: 40px;
  width: auto;
}

.top ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 4px;
}

.nav-desktop a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--night);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-desktop a:hover {
  background: var(--bg);
  color: var(--deep);
}

.nav-desktop a[aria-current="page"] {
  color: var(--deep);
  background: var(--pale);
}

/* Bouton « Menu » (téléphone) */
.menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--pale);
  color: var(--night);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.menu .i-close,
.menu[open] .i-open {
  display: none;
}

.menu[open] .i-close {
  display: block;
}

.menu[open] summary {
  background: var(--night);
  border-color: var(--night);
  color: var(--white);
}

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--pale);
  box-shadow: 0 18px 30px rgba(11, 31, 75, 0.14);
  padding: 8px 12px 16px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.menu-panel li + li {
  border-top: 1px solid var(--bg);
}

.menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 10px;
  color: var(--night);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
}

.menu-panel a::after {
  content: "›";
  font-size: 22px;
  color: var(--grey);
}

.menu-panel a:hover {
  background: var(--bg);
}

.menu-panel a[aria-current="page"] {
  color: var(--deep);
  background: var(--pale);
}

/* Les ancres ne passent pas sous l'en-tête collant. */
[id] {
  scroll-margin-top: 80px;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: block;
  }

  .menu {
    display: none;
  }
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--white);
  color: var(--night);
  font-weight: 700;
}

.badge-soon small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--grey);
  line-height: 1.2;
}

/* Bandeau d'accueil */
.hero {
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 182, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 64px;
  align-items: center;
}

.hero .kicker {
  color: var(--sky);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--pale);
  max-width: 34em;
}

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

.hero .note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--pale);
}

.phones {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.phone {
  width: min(200px, 44vw);
  border-radius: 26px;
  border: 6px solid #1a2f63;
  background: #1a2f63;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.phone:nth-child(2) {
  transform: translateY(28px);
}

/* Sections */
section {
  padding: 64px 0;
}

.alt {
  background: var(--bg);
}

.section-intro {
  max-width: 40em;
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--pale);
  border-radius: var(--radius);
  padding: 22px;
}

.alt .card {
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(11, 31, 75, 0.08);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pale);
  color: var(--deep);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card p {
  color: var(--grey);
  margin: 0;
}

/* Étapes */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 76px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(11, 31, 75, 0.08);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps p {
  color: var(--grey);
  margin: 0;
}

/* Captures */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  margin: 0;
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}

.shots img {
  border-radius: 22px;
  border: 5px solid var(--night);
  background: var(--night);
}

.shots figcaption {
  font-size: 14px;
  color: var(--grey);
  margin-top: 10px;
  text-align: center;
}

/* Établissements */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  background: var(--white);
  border: 1px solid var(--pale);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
}

.chips b {
  color: var(--deep);
}

/* Encadré de confiance */
.trust {
  background: var(--pale);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 8px;
}

.trust p {
  margin: 0;
}

/* Questions */
details:not(.menu) {
  background: var(--white);
  border: 1px solid var(--pale);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 10px;
}

details:not(.menu) > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

details:not(.menu) > summary::-webkit-details-marker {
  display: none;
}

details:not(.menu) > summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--deep);
}

details:not(.menu)[open] > summary::after {
  content: "−";
}

details > p,
details > ul {
  color: var(--grey);
  margin-top: 0;
}

/* Pages de texte (confidentialité, conditions, aide) */
.doc {
  padding: 48px 0 72px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.doc .updated {
  color: var(--grey);
  font-size: 15px;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0.5em 0 1.5em;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--pale);
}

.doc th {
  color: var(--grey);
  font-weight: 600;
}

.callout {
  background: var(--bg);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 1.2em 0;
}

/* Pied de page */
.foot {
  background: var(--night);
  color: var(--pale);
  padding: 40px 0;
  font-size: 15px;
}

.foot .wrap {
  display: grid;
  gap: 20px;
}

.foot img {
  height: 36px;
  width: auto;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a {
  color: var(--white);
}

.foot small {
  color: var(--pale);
}

@media (min-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 1fr;
    padding-top: 80px;
    padding-bottom: 96px;
  }

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

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .phone:nth-child(2) {
    display: none;
  }
}

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