:root {
  --navy: #023047;
  --green: #00B272;
  --green-dark: #009962;
  --indigo: #34436D;
  --text: #344054;
  --heading: #101828;
  --muted: #6A7282;
  --bg: #F8FBFE;
  --border: #F3F4F6;
  --border-strong: #E5E7EB;
  --table-head: #F1F5F9;
  --radius: 0.797rem;
  --header-h: 3rem;
  --shadow: 0 1px 2px 0 rgb(16 24 40 / 0.05);
}

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

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

.icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

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

.btn-ghost {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.1);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

/* En-tête */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 1rem;
  background: var(--navy);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.brand-name span {
  color: var(--green);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.header-link {
  display: none;
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.header-link:hover {
  color: #fff;
}

@media (min-width: 960px) {
  .header-link {
    display: inline;
  }
}

/* Bandeau */

.hero {
  margin-top: var(--header-h);
  padding: 3rem 1rem 5rem;
  background: #34436D url('banner.svg') center / cover no-repeat;
  color: #fff;
}

.hero-eyebrow {
  margin-bottom: 0.5rem;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-meta {
  margin-top: 0.75rem;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
}

/* Accueil : bandeau */

/* Fond uni de la couleur du logo : le nuage et les tuiles semblent posés sur le bandeau. */
.hero--home {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  overflow: hidden;
  background: var(--navy);
}

.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.hero-logo {
  order: -1;
  width: min(100%, 17rem);
  margin: 0 auto;
}

.hero--home h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: rgb(255 255 255 / 0.8);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Accueil : aperçu du planning */

.mockup {
  position: relative;
}

.mockup-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 48px -16px rgb(2 48 71 / 0.3);
}

.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 2.5rem;
  padding: 0 1rem;
  background: var(--navy);
}

.mockup-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.mockup-brand img {
  width: 1.625rem;
  height: 1.625rem;
}

.mockup-body {
  padding: 1rem;
}

.mockup-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.mockup-title span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 4rem repeat(5, minmax(0, 1fr));
  gap: 0.375rem;
  color: var(--text);
  font-size: 0.6875rem;
}

.mockup-grid .day {
  padding-bottom: 0.125rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.mockup-grid .name {
  align-self: center;
  overflow: hidden;
  color: var(--heading);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-grid .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #F2F5F9;
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
}

.cell.tag-teal { background: #D5F5EF; color: #08735F; }
.cell.tag-yellow { background: #FEF3C7; color: #8A5A06; }
.cell.tag-pink { background: #FDE2E4; color: #B4232F; }
.cell.tag-blue { background: #DBEAFE; color: #1E4FBF; }
.cell.tag-purple { background: #EDE4FF; color: #6232C9; }

.mockup-ai {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 32px -12px rgb(2 48 71 / 0.35);
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.5;
}

.mockup-ai .icon-svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--green);
}

.mockup-ai strong {
  display: block;
  color: var(--heading);
  font-weight: 600;
}

.mockup-ai em {
  display: block;
  margin-top: 0.25rem;
  color: var(--green-dark);
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 479px) {
  .mockup-grid {
    grid-template-columns: 3.75rem repeat(3, minmax(0, 1fr));
  }

  .mockup-grid .d4,
  .mockup-grid .d5 {
    display: none;
  }
}

/* Accueil : sections */

.section {
  padding: 4rem 1rem;
  scroll-margin-top: var(--header-h);
}

.section--white {
  background: #fff;
}

.section--navy {
  background: var(--navy);
  color: rgb(255 255 255 / 0.75);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section h2 {
  color: var(--navy);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section--navy h2 {
  color: #fff;
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.tile {
  padding: 1.5rem;
}

.tile h3 {
  margin-top: 1rem;
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 600;
}

.tile p {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgb(0 178 114 / 0.1);
  color: var(--green);
}

.section--navy .tile {
  padding: 0;
}

.section--navy .tile h3 {
  color: #fff;
}

.section--navy .tile-icon {
  background: rgb(0 178 114 / 0.18);
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.app-card img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
}

.app-card h3 {
  margin-top: 1.25rem;
  color: var(--heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.app-card .app-kicker {
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.app-card p:not(.app-kicker) {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.apps-note {
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.apps-note a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.apps-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.split .section-head {
  margin-bottom: 0;
}

.steps {
  padding: 0;
  list-style: none;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.section-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-text p + p {
  margin-top: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgb(0 178 114 / 0.1);
  color: #00754B;
  font-size: 0.8125rem;
  font-weight: 600;
}

.contact-card {
  padding: 2rem;
}

.contact-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-card .btn {
  margin-top: 1.5rem;
}

.contact-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.contact-meta a {
  color: var(--green);
  overflow-wrap: anywhere;
}

/* Pages légales */

.page {
  flex: 1;
  margin-top: -3rem;
  padding: 0 1rem 4rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.toc {
  display: none;
  width: 16rem;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
  padding: 1.25rem;
}

.toc-title {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.toc ol,
.toc-mobile ol {
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.toc li + li,
.toc-mobile li + li {
  margin-top: 0.5rem;
}

.toc a,
.toc-mobile a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.toc a:hover,
.toc-mobile a:hover,
.toc a.is-active {
  color: var(--green);
}

.toc a.is-active {
  font-weight: 600;
}

.toc-mobile {
  margin-bottom: 1rem;
}

.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.toc-mobile summary::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}

.toc-mobile[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.toc-mobile ol {
  padding: 0 1.25rem 1.25rem;
}

.content {
  flex: 1;
  min-width: 0;
}

.legal-prose {
  padding: 1.5rem;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-prose > section {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

/* Le padding de 2.5rem passe sous l'en-tête : le titre arrive 1.5rem sous celui-ci. */
.legal-prose > section + section {
  scroll-margin-top: calc(var(--header-h) - 1rem);
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.legal-prose h2 {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.legal-prose h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
}

.legal-prose p + p,
.legal-prose p + ul,
.legal-prose p + ol,
.legal-prose ul + p,
.legal-prose ol + p,
.legal-prose .legal-table + p,
.legal-prose p + .legal-table {
  margin-top: 0.75rem;
}

.legal-prose strong {
  color: var(--heading);
  font-weight: 600;
}

.legal-prose ul,
.legal-prose ol {
  padding-left: 1.25rem;
}

.legal-prose li + li {
  margin-top: 0.375rem;
}

.legal-prose li::marker {
  color: var(--green);
}

.legal-prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal-prose a:hover {
  color: var(--indigo);
}

.legal-prose .legal-callout {
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(0 178 114 / 0.2);
  border-radius: 0.75rem;
  background: rgb(0 178 114 / 0.05);
}

.legal-prose .legal-table {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
}

.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.legal-prose th {
  padding: 0.75rem 1rem;
  background: var(--table-head);
  color: var(--navy);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.legal-prose td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-strong);
  vertical-align: top;
}

/* Pied de page */

.site-footer {
  padding: 3rem 1rem 2rem;
  background: var(--navy);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  max-width: 20rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-col-title {
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col a {
  text-decoration: none;
  transition: color 0.15s;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: #fff;
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.55);
  font-size: 0.8125rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 768px) {
  .site-header,
  .hero,
  .page,
  .section,
  .site-footer {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 6rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero--home {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .hero--home h1 {
    font-size: 3rem;
  }

  /* Ne chevauche que la marge basse de la fenêtre, jamais le planning. */
  .mockup-ai {
    position: relative;
    max-width: 18rem;
    margin: -0.875rem -1rem 0 auto;
  }

  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section h2 {
    font-size: 2.25rem;
  }

  .legal-prose {
    padding: 3rem;
  }

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-logo {
    order: 0;
    width: min(100%, 30rem);
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
  }

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

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .toc {
    display: block;
  }

  .toc-mobile {
    display: none;
  }
}

@media print {
  .site-header,
  .skip-link,
  .toc,
  .toc-mobile,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    margin: 0;
    padding: 0 0 1.5rem;
    background: none;
    color: #000;
  }

  .hero-eyebrow,
  .hero-meta {
    color: #444;
  }

  .page {
    margin: 0;
    padding: 0;
  }

  .card {
    border: 0;
    box-shadow: none;
  }

  .legal-prose {
    padding: 0;
    font-size: 10.5pt;
  }

  .legal-prose h2,
  .legal-prose h3 {
    break-after: avoid;
  }

  .legal-prose tr {
    break-inside: avoid;
  }
}
