/* AWOKEN : site vitrine, style « clinique » (clair, éditorial) */

/* Police de la charte, hébergée avec le site (licence : fonts/OFL.txt) */
@font-face { font-family: "Zalando Sans SemiExpanded"; src: url("/asset?u=https%3A%2F%2Fawoken-medtech.com%2Ffonts%2FZalandoSans_SemiExpanded-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zalando Sans SemiExpanded"; src: url("/asset?u=https%3A%2F%2Fawoken-medtech.com%2Ffonts%2FZalandoSans_SemiExpanded-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zalando Sans SemiExpanded"; src: url("/asset?u=https%3A%2F%2Fawoken-medtech.com%2Ffonts%2FZalandoSans_SemiExpanded-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Palette de la charte AWOKEN (valeurs HEX officielles) */
  --nuit: #1B0859;      /* textes, titres, boutons, footer */
  --base: #F5F8FF;      /* fond clair par défaut */
  --lavande: #9F78F6;   /* accent sur grands éléments (contraste insuffisant pour du petit texte) */
  --pervenche: #CCCCFF; /* bordures, aplats doux */
  --bleu: #054BD9;      /* petits textes d'accent, liens, interactif */
  --vert: #81CF5D;      /* validé */
  --jaune: #EFBB59;     /* vigilance */
  --rouge: #E74120;     /* erreur */
  /* Nuances dérivées par transparence de la palette */
  --texte: rgba(27, 8, 89, .78);
  --discret: rgba(27, 8, 89, .6);
  --trait: rgba(204, 204, 255, .75);
  --teinte: rgba(204, 204, 255, .32);
  --police: "Zalando Sans SemiExpanded", "Avenir Next", "Century Gothic", system-ui, sans-serif;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--nuit); font: 16px/1.6 var(--police); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
[hidden] { display: none !important; }
section { scroll-margin-top: 80px; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.i { flex-shrink: 0; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Titres et textes */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: 60px; line-height: 1.1; margin: 26px 0 28px; }
h1 em { display: block; font-style: normal; color: var(--lavande); }
h2 { font-size: 40px; line-height: 1.15; margin: 18px 0; max-width: 28ch; }
h3 { font-size: 20px; line-height: 1.3; }
.label { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bleu); }
.label::before { content: ""; width: 36px; height: 1.5px; background: currentColor; }
.lead, .sub { margin: 0; max-width: 56ch; font-size: 20px; line-height: 1.65; color: var(--texte); }
.sub { font-size: 18px; }

/* Boutons et liens */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--nuit); color: #fff; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--bleu); transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; padding: 9px 20px; border: 1.5px solid var(--nuit); border-radius: 999px; font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--nuit); color: #fff; }
.link { padding-bottom: 2px; border-bottom: 1.5px solid currentColor; font-weight: 700; transition: color .2s; }
.link:hover { color: var(--bleu); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--trait); }
.nav-in { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-in > a:first-child { flex-shrink: 0; } /* le logo ne doit jamais être déformé */
.logo { display: block; height: 26px; width: auto; }
.menu-in { display: flex; align-items: center; gap: 30px; }
.menu a { white-space: nowrap; }
.menu a:not(.btn-outline) { font-size: 15px; font-weight: 600; color: var(--nuit); transition: color .2s; }
.menu a:not(.btn-outline):hover { color: var(--bleu); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; color: var(--nuit); align-items: center; justify-content: center; cursor: pointer; font-size: 18px; }

/* Hero */
.hero { padding: 96px 0 0; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 80px 0 0; border-top: 1px solid var(--trait); }
.facts div { padding: 26px 28px 40px 0; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--trait); }
.facts dt { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--discret); }
.facts dd { margin: 0; font-size: 17px; font-weight: 600; }

/* Sections */
.sec { padding: 110px 0; border-top: 1px solid var(--trait); }
.white { background: #fff; }
.tint { background: var(--teinte); }

/* Mission : trois colonnes numérotées */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; margin: 64px 0 0; padding: 0; list-style: none; counter-reset: n; }
.cols li { padding-top: 24px; border-top: 1px solid var(--nuit); }
.cols li::before { counter-increment: n; content: "0" counter(n); display: block; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--bleu); }
.cols p { margin: 12px 0 0; color: var(--texte); }

/* Solution : quatre étapes en onglets (la largeur de la barre suit --p, réglé par le JS) */
.steps { --p: .25; display: grid; grid-template-columns: minmax(0,380px) minmax(0,1fr); gap: 32px; margin-top: 56px; }
.steps-list { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 18px 20px; border: 1px solid var(--trait); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.step:hover { border-color: var(--pervenche); }
.step[aria-selected="true"] { border-color: var(--lavande); background: var(--teinte); }
.step-n { padding-top: 3px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--discret); }
.step[aria-selected="true"] .step-n { color: var(--bleu); }
.step b { display: block; font-size: 17px; font-weight: 600; }
.step small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--texte); }
/* Le panneau prend la hauteur de la liste ; les blocs Entrée / Sortie se calent en bas */
.steps-panels { display: flex; flex-direction: column; padding: 32px 36px; border: 1px solid var(--trait); border-radius: 16px; background: #fff; }
.steps-bar { height: 4px; margin-bottom: 28px; border-radius: 999px; background: var(--trait); overflow: hidden; }
.steps-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--lavande); transition: width .4s ease; }
.panel:not([hidden]) { display: flex; flex-direction: column; flex: 1; animation: apparition .35s ease; }
@keyframes apparition { from { opacity: 0; transform: translateY(6px); } }
.panel h3 { font-size: 24px; }
.panel > p { margin: 8px 0 20px; font-size: 17px; color: var(--texte); }
.io { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: auto; }
/* Schémas des étapes (SVG en ligne) */
.schema { display: block; width: 100%; height: auto; max-height: 96px; margin: 0 0 20px; overflow: visible; }
.schema .ink, .schema .acc, .schema .soft { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.schema .ink { stroke: var(--nuit); stroke-width: 1.5; }
.schema .acc { stroke: var(--lavande); stroke-width: 1.8; }
.schema .soft { stroke: var(--pervenche); stroke-width: 1.5; }
.schema .paper { fill: #fff; stroke: var(--nuit); stroke-width: 1.5; }
.schema .tint { fill: var(--teinte); stroke: var(--lavande); stroke-width: 1.5; }
.schema .evt { fill: rgba(159, 120, 246, .1); stroke: var(--lavande); stroke-width: 1.2; stroke-dasharray: 4 4; }
.schema .dot { fill: var(--lavande); }
.schema .ok { fill: var(--vert); }
.schema .tick { fill: none; stroke: var(--nuit); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.schema text { font-size: 11px; font-weight: 700; letter-spacing: .05em; fill: var(--discret); }
.schema .t-acc { fill: var(--bleu); }
.io > div { padding: 20px 22px; border: 1px solid var(--trait); border-radius: 12px; background: var(--base); }
.io span { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bleu); }
.io ul { margin: 0; padding-left: 18px; }
.io li + li { margin-top: 6px; }

/* Étude */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: end; }
.split h2 { margin-bottom: 0; }
.split p { margin: 0 0 28px; font-size: 19px; line-height: 1.65; color: var(--texte); }

/* Équipe */
.people { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; margin-top: 64px; }
.person { padding: 30px 22px; border: 1px solid var(--trait); border-radius: 16px; background: var(--base); text-align: center; }
.person img { display: block; width: 104px; height: 104px; margin: 0 auto 20px; border-radius: 50%; object-fit: cover; }
.person h3 { font-size: 18px; }
.person h3 a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.person h3 a:hover { color: var(--bleu); }
.person h3 .i { width: .7em; height: .7em; color: var(--bleu); }
.person .role { display: block; margin: 6px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); }
.person p { margin: 0; font-size: 14px; color: var(--texte); }

/* Partenaires */
.partners { padding: 80px 0; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-flow: dense; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.logos li { display: flex; align-items: center; justify-content: center; height: 84px; padding: 12px 20px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; }
.logos img { display: block; width: auto; max-height: 56px; max-width: min(200px, 100%); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 72px; align-items: start; }
.cinfo { display: flex; flex-direction: column; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.cinfo li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.cinfo .i { color: var(--bleu); }
.cinfo a { border-bottom: 1px solid var(--trait); }
.cinfo a:hover { color: var(--bleu); border-color: currentColor; }
.form { display: flex; flex-direction: column; gap: 16px; padding: 36px; border: 1px solid var(--trait); border-radius: 16px; background: var(--base); }
.form label, #profil-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input:not([type=radio]), .form textarea { min-height: 48px; padding: 10px 14px; border: 1px solid var(--pervenche); border-radius: 10px; background: #fff; font-size: 15px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:user-invalid, .form textarea:user-invalid { border-color: var(--rouge); }
.form .btn { align-self: flex-start; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
#profil-label { width: 100%; }
.chips label { position: relative; flex-direction: row; align-items: center; min-height: 40px; padding: 7px 14px; border: 1px solid var(--pervenche); border-radius: 999px; background: #fff; cursor: pointer; transition: background .15s, color .15s; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(:checked) { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.chips label:has(:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 3px; }
.warn, .note { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.warn { background: rgba(239, 187, 89, .2); box-shadow: inset 3px 0 0 var(--jaune); }
.note { background: var(--teinte); }
.note a, .small a { text-decoration: underline; }
.small { margin: 0; font-size: 13px; color: var(--discret); }

/* Pied de page */
.foot { padding: 48px 0 40px; background: var(--nuit); color: rgba(255,255,255,.7); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot img { display: block; height: 34px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: rgba(255,255,255,.9); }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot p { width: 100%; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.6); }

/* Page mentions légales */
.legal { max-width: 760px; }
.legal h1 { font-size: 44px; margin: 0 0 24px; }
.legal h2 { font-size: 23px; margin: 44px 0 10px; }
.legal p { line-height: 1.75; color: var(--texte); }
.legal a { color: var(--bleu); text-decoration: underline; }

/* Responsive */
@media (max-width: 1100px) {
  .menu-in { gap: 20px; }
  h1 { font-size: 52px; }
  .people { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact { grid-template-columns: minmax(0,1fr); gap: 48px; }
}
/* Menu burger dès que les 5 liens ne tiennent plus sur une ligne (Zalando SemiExpanded est large) */
@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  /* Menu déroulant : la hauteur passe de 0 à auto via grid-template-rows, sans JS */
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-rows: 0fr; visibility: hidden; background: #fff; border-bottom: 1px solid var(--trait); transition: grid-template-rows .3s ease, visibility 0s .3s; }
  .nav.open .menu { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease; }
  .menu-in { flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; padding: 0 20px; }
  .menu-in a:not(.btn-outline) { padding: 15px 0; border-bottom: 1px solid var(--trait); font-size: 17px; }
  .menu-in .btn-outline { margin: 16px 0 20px; align-self: flex-start; }
}
@media (max-width: 900px) {
  .nav-in { height: 68px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .sec { padding: 76px 0; }
  .facts, .cols, .split, .steps { grid-template-columns: minmax(0,1fr); }
  .steps { gap: 16px; margin-top: 40px; }
  .steps-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step { padding: 14px 16px; }
  .step small { display: none; }
  .facts div, .facts div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--trait); }
  .cols { gap: 36px; }
  .split { gap: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 56px; }
  h1 { font-size: 32px; }
  h2 { font-size: 27px; }
  .lead { font-size: 18px; }
  .facts { margin-top: 56px; }
  .row2 { grid-template-columns: minmax(0,1fr); }
  .form { padding: 24px; }
  .logos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps-panels { padding: 24px; }
  .panel h3 { font-size: 21px; }
  .io { grid-template-columns: minmax(0,1fr); }
  .schema { margin-bottom: 20px; }
  .schema text { display: none; }
  .logos .wide { grid-column: span 2; }
  /* Équipe en lignes compactes : photo à gauche, texte à droite */
  .people { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 40px; }
  .person { display: grid; grid-template-columns: 72px minmax(0,1fr); column-gap: 18px; align-items: center; padding: 18px; text-align: left; }
  .person img { grid-row: span 3; width: 72px; height: 72px; margin: 0; }
  .person .role { margin: 4px 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
