/* ARID LABS, piste « Interface V2 » : Interface, avec le héros et l'historique de Relief */

/* Mona Sans, hébergée sur le site (licence SIL OFL) : aucune requête vers un service tiers */
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("polices/mona-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("polices/mona-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

:root {
  /* Marque */
  --encre: #070C2F;
  --bleu: #087DFF;
  --indigo: #4B4BFF;
  --violet: #6F16D8;
  --dune: #9E6CFF;
  --dune-sombre: #5D1DD6;

  /* Neutres, teintés vers l'encre */
  --texte-2: #4E536D;
  --texte-3: #62677F;
  --fond: #FFFFFF;
  --surface: #F5F6FA;
  --surface-2: #EDEFF4;
  --trait: #E3E5EC;
  --trait-fort: #D2D5DF;
  --indigo-fond: #F0F0FF;
  --ac-fond: #F1EDFF;
  --sur-encre: #FFFFFF;
  --encre-survol: #1A2050;
  --trait-survol: #BFC3D0;
  --surface-ui: #F8F9FB;
  --ui-bord-doux: #F0F1F5;
  --barre-fond: #E4E6EE;
  --teinte-1: #E6EEFF;
  --teinte-2: #EFE7FF;
  --portrait: #EFEAFF;
  --erreur: #B42318;

  --police: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --rayon: 8px;
  --conteneur: 1200px;
  --gouttiere: clamp(20px, 4vw, 40px);
  --ombre-cadre:
    0 0 0 1px rgb(7 12 47 / .07),
    0 1px 2px rgb(7 12 47 / .04),
    0 12px 32px -12px rgb(7 12 47 / .12),
    0 40px 80px -32px rgb(7 12 47 / .16);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.insec { white-space: nowrap; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 16px/1.6 var(--police);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

.conteneur {
  width: 100%;
  max-width: calc(var(--conteneur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--encre);
  color: var(--sur-encre);
  border-radius: var(--rayon);
  text-decoration: none;
}
.evitement:focus { top: 12px; }

/* Repère « à compléter » */
.ac {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ac-fond);
  color: var(--dune-sombre);
  font-size: .9em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Boutons et liens */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--rayon);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, color .15s;
}
.bouton-plein {
  background: var(--encre);
  color: var(--sur-encre);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 1px 2px rgb(7 12 47 / .2);
}
.bouton-plein:hover { background: var(--encre-survol); }
.bouton-trait {
  color: var(--encre);
  box-shadow: inset 0 0 0 1px var(--trait-fort);
}
.bouton-trait:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait-survol); }

.lien {
  color: var(--indigo);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(75 75 255 / .35);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .15s;
}
.lien:hover { text-decoration-color: currentColor; }

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--fond);
  border-bottom: 1px solid var(--trait);
  view-transition-name: entete;
}
.entete-in {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  border-radius: 6px;
}
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--texte-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--encre); }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.bouton-client {
  position: relative;
  min-height: 36px;
  margin-left: 12px;
  padding: 0 14px 0 12px;
  font-size: 14px;
  color: var(--encre);
  background: var(--fond);
  box-shadow: inset 0 0 0 1px var(--trait-fort), 0 1px 2px rgb(7 12 47 / .05);
}
.bouton-client::after { content: ""; position: absolute; inset: -4px 0; }
.bouton-client:hover { background: var(--surface); }
.bouton-client svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.menu {
  display: none;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--rayon);
  background: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .js .menu { display: block; }
  .bouton-client { margin-left: 0; }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gouttiere) 16px;
    background: var(--fond);
    border-bottom: 1px solid var(--trait);
    box-shadow: 0 16px 32px -16px rgb(7 12 47 / .18);
  }
  .js .entete:has(.menu[aria-expanded="true"]) .nav { display: block; }
  .js .nav ul { flex-direction: column; }
  .js .nav a { min-height: 48px; padding: 0; font-size: 17px; border-bottom: 1px solid var(--trait); border-radius: 0; }
  .js .nav li:last-child a { border-bottom: 0; }
  html:not(.js) .entete-in { flex-wrap: wrap; height: auto; padding-block: 8px; }
}
@media (max-width: 380px) {
  .marque .mot { display: none !important; }
}

/* Héros (repris de Relief) : lignes de niveau WebGL, ou image de repli */
.hero-texte { position: relative; z-index: 1; padding-top: clamp(64px, 10vh, 120px); }
.hero h1 {
  max-width: 17ch;
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.chapo {
  max-width: 50ch;
  margin-top: 24px;
  color: var(--texte-2);
  font-size: clamp(18px, 1rem + .45vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}
.hero .actions { margin-top: 36px; gap: 12px; }

.relief { position: relative; overflow: hidden; }
.relief img, .relief canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.relief img { object-fit: cover; object-position: center bottom; }
.relief canvas { opacity: 0; transition: opacity 1.2s ease; }
.relief canvas.pret { opacity: 1; }
.relief--gl picture, .relief--gl > img { display: none; }
/* Le héros occupe le premier écran : les ondes descendent jusqu'au bas de la fenêtre */
.hero { display: flex; flex-direction: column; min-height: calc(100svh - 65px); }
.relief-hero { flex: 1 0 auto; min-height: clamp(200px, 30vh, 480px); margin-top: clamp(-96px, -4vw, -16px); }

/* Scène de l'aperçu */
.scene {
  padding-top: clamp(24px, 4vw, 48px);
  background: linear-gradient(to bottom, var(--fond) 0 220px, var(--surface) 220px);
  border-bottom: 1px solid var(--trait);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.apercu-cadre figcaption {
  margin-top: 16px;
  color: var(--texte-3);
  font-size: 13px;
}

.apercu {
  --ui-bord: #E6E8EE;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 288px;
  min-height: 540px;
  overflow: hidden;
  background: var(--fond);
  border-radius: 12px;
  box-shadow: var(--ombre-cadre);
  font-size: 13px;
  line-height: 1.4;
}
@media (prefers-reduced-motion: no-preference) {
  .apercu { animation: arrivee .7s .15s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes arrivee { from { opacity: 0; transform: translateY(16px); } }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-lateral {
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  background: var(--surface-ui);
  border-right: 1px solid var(--ui-bord);
}
.app-espace {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 14px;
  font-weight: 600;
}
.app-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--texte-2);
  font-weight: 500;
}
.app-menu svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: .85;
}
.app-menu span { margin-left: auto; color: var(--texte-3); font-size: 12px; }
.app-menu .actif { background: var(--fond); color: var(--encre); box-shadow: 0 0 0 1px var(--ui-bord), 0 1px 2px rgb(7 12 47 / .05); }
.app-menu-bas { margin-top: auto; }

.app-centre { min-width: 0; display: flex; flex-direction: column; }
.app-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ui-bord);
}
.app-titre { font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.app-nouveau {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--encre);
  color: var(--sur-encre);
  font-size: 12px;
  font-weight: 500;
}
.app-outils {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--ui-bord);
}
.filtres {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: var(--surface-2);
}
.filtres button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--texte-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.filtres button::after { content: ""; position: absolute; inset: -8px 0; }
.filtres button:hover { color: var(--encre); }
.filtres button span { color: var(--texte-3); font-size: 11.5px; }
.filtres button[aria-pressed="true"] {
  background: var(--fond);
  color: var(--encre);
  box-shadow: 0 0 0 1px rgb(7 12 47 / .06), 0 1px 2px rgb(7 12 47 / .08);
}
.visuel-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.app-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.app-table th {
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ui-bord);
  color: var(--texte-3);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.app-table td {
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ui-bord-doux);
  color: var(--texte-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-table th:first-child, .app-table td:first-child { padding-left: 20px; }
.app-table tbody tr { cursor: pointer; transition: background-color .12s; }
.app-table tbody tr:hover { background: var(--surface-ui); }
.app-table tbody tr.choisie { background: var(--indigo-fond); box-shadow: inset 2px 0 0 var(--indigo); }
.app-table td button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--encre);
  font-weight: 500;
  cursor: pointer;
}
.col-echeance { width: 22%; }
.col-avancement { width: 24%; }
.avance { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.app-table th:last-child, .app-table td:last-child { padding-right: 20px; }
.avance .barre { flex: none; width: 88px; }

.etat { display: inline-flex; align-items: center; gap: 8px; color: var(--encre); }
.etat svg { width: 14px; height: 14px; flex: none; }

.barre {
  display: block;
  flex: 1;
  max-width: 96px;
  height: 4px;
  border-radius: 2px;
  background:
    linear-gradient(to right, transparent var(--p), var(--barre-fond) var(--p)),
    linear-gradient(to right, var(--bleu), var(--indigo) 55%, var(--violet));
}

.app-detail {
  padding: 20px;
  border-left: 1px solid var(--ui-bord);
}
.app-detail h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.app-detail-client { margin-top: 2px; color: var(--texte-3); }
.app-proprietes {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px 12px;
  align-items: center;
  margin-top: 20px;
  padding: 18px 0;
  border-block: 1px solid var(--ui-bord);
}
.app-proprietes dt { color: var(--texte-3); }
.app-proprietes dd { display: flex; align-items: center; gap: 10px; color: var(--encre); }
.app-detail h4 { margin-top: 18px; color: var(--texte-3); font-size: 12px; font-weight: 500; }
.app-etapes { margin-top: 10px; display: grid; gap: 10px; }
.app-etapes li { display: flex; align-items: center; gap: 10px; color: var(--texte-2); }
.app-etapes li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--trait-fort);
}
.app-etapes li.fait { color: var(--texte-3); text-decoration: line-through; text-decoration-color: var(--trait-fort); }
.app-etapes li.fait::before {
  box-shadow: none;
  background: var(--indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3.8 7.2 2 2 4.4-4.6' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 1120px) {
  .apercu { grid-template-columns: minmax(0, 1fr) 272px; }
  .app-lateral { display: none; }
}
@media (max-width: 820px) {
  .apercu { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-detail { display: none; }
}
@media (max-width: 560px) {
  .col-echeance, .col-avancement { display: none; }
  .app-barre, .app-outils { padding-inline: 14px; }
  .app-table th:first-child, .app-table td:first-child { padding-left: 14px; }
  .filtres { overflow-x: auto; scrollbar-width: none; }
}

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section + .section { padding-top: 0; }
.section-tete { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-tete h2, .contact h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.section-tete p { margin-top: 16px; color: var(--texte-2); font-size: 18px; line-height: 1.55; }
.section-tete-ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

/* Offre */
.metiers { border-top: 1px solid var(--trait); }
.metier {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 64px;
  padding-block: 32px;
  border-bottom: 1px solid var(--trait);
}
.metier h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.metier p { max-width: 60ch; color: var(--texte-2); }
.metier-principal { padding-block: 48px; }
.metier-principal h3 { font-size: 26px; letter-spacing: -.022em; }
.metier-principal p { color: var(--encre); font-size: 18px; line-height: 1.55; }
.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
  color: var(--texte-2);
  font-size: 15px;
}
.traits li { display: flex; align-items: center; gap: 8px; }
.traits svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Journal (accueil) */
.journal-court { border-top: 1px solid var(--trait); }
.journal-court a {
  display: grid;
  grid-template-columns: 160px minmax(0, 4fr) minmax(0, 6fr);
  gap: 4px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--trait);
  text-decoration: none;
  transition: background-color .15s;
}
.journal-court a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.journal-court time { color: var(--texte-3); font-size: 15px; }
.journal-court strong { font-weight: 500; }
.journal-court a > span { color: var(--texte-2); }

/* Contact */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--trait);
}
.contact-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
  padding-block: clamp(64px, 9vw, 112px);
}
.contact h2 { max-width: 18ch; font-size: clamp(30px, 4vw, 48px); }
.contact p { max-width: 44ch; color: var(--texte-2); font-size: 17px; }
.contact .actions { margin-top: 24px; }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); }
.pied-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 28px;
  font-size: 14px;
  color: var(--texte-3);
}
.pied ul { display: flex; flex-wrap: wrap; gap: 0 24px; margin-right: auto; margin-left: 24px; }
.pied a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--texte-2);
  text-decoration: none;
}
.pied a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 4px; }

/* Historique (repris de Relief) : le relief se forme au fil de la chronologie */
.histoire {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(56px, 8vw, 112px) clamp(80px, 9vw, 128px);
}
.histoire-tete h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.chronologie { margin-top: 48px; }
.etape {
  position: relative;
  padding: 0 0 clamp(64px, 12vh, 112px) 28px;
  border-left: 1px solid var(--trait);
  scroll-margin-top: 220px;
}
.etape::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--trait-fort);
  border-radius: 50%;
  background: var(--fond);
  transition: background-color .3s, border-color .3s;
}
.etape .date { color: var(--texte-3); font-size: 14px; font-variant-numeric: tabular-nums; transition: color .3s; }
.etape.est-active::before { background: var(--indigo); border-color: var(--indigo); }
.etape.est-active .date { color: var(--indigo); }
.etape-suite { padding-bottom: 0; border-left-style: dashed; }
.etape h2 { margin: 6px 0 12px; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.015em; }
.etape p:not(.date) { max-width: 52ch; color: var(--texte-2); font-size: 18px; }

@media (min-width: 960px) {
  .histoire { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(48px, 7vw, 112px); }
  .histoire-tete, .chronologie { grid-column: 1; }
  .chronologie { margin-top: 72px; }
  .etape { scroll-margin-top: 96px; }
}

/* Mobile */
@media (max-width: 860px) {
  .contact-in { grid-template-columns: minmax(0, 1fr); }
  .scene { background: linear-gradient(to bottom, var(--fond) 0 120px, var(--surface) 120px); }
  .metier { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
  .metier-principal { padding-block: 32px; }
  .metier-principal h3 { font-size: 23px; }
  .journal-court a { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .journal-court time { font-size: 14px; }
  .pied ul { margin-left: 0; order: 3; width: 100%; }
}

/* Pages intérieures : Logiciels et Créations web */
.page-hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.page-hero .actions { margin-top: 32px; gap: 12px; }
.lien-suite { display: inline-flex; margin-top: 20px; }

/* Aperçu complet : la barre latérale change de vue */
.app-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--texte-2);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color .15s, background-color .15s;
}
.app-menu button:hover { color: var(--encre); }
.app-menu button[aria-current="true"] { background: var(--fond); color: var(--encre); box-shadow: 0 0 0 1px var(--ui-bord), 0 1px 2px rgb(7 12 47 / .05); }
.app-menu button span { margin-left: auto; color: var(--texte-3); font-size: 12px; }
.apercu.sans-detail { grid-template-columns: 208px minmax(0, 1fr); }
.apercu.sans-detail .app-detail { display: none; }
.vue { display: flex; flex-direction: column; min-height: 100%; }

.app-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px; }
.kpi { padding: 14px 16px; border: 1px solid var(--ui-bord); border-radius: 10px; }
.kpi strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--texte-3); font-size: 12px; }
.app-section-titre { padding: 4px 20px 8px; color: var(--texte-3); font-size: 12px; font-weight: 500; }
.app-activite { padding: 0 20px 20px; }
.app-activite li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ui-bord-doux); color: var(--texte-2); }
.app-activite li:last-child { border-bottom: 0; }
.app-activite time { flex: none; color: var(--texte-3); }
.app-pied { display: flex; justify-content: space-between; margin-top: auto; padding: 12px 20px; border-top: 1px solid var(--ui-bord); color: var(--texte-3); }
.app-pied strong { color: var(--encre); font-weight: 600; font-variant-numeric: tabular-nums; }
.montant { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 1120px) {
  .apercu-complet, .apercu-complet.sans-detail { grid-template-columns: minmax(0, 1fr); }
  .apercu-complet .app-lateral { display: block; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--ui-bord); }
  .apercu-complet .app-espace, .apercu-complet .app-menu-bas, .apercu-complet .app-detail { display: none; }
  .apercu-complet .app-menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .apercu-complet .app-menu button { width: auto; white-space: nowrap; }
}
@media (max-width: 560px) {
  .app-kpis { grid-template-columns: minmax(0, 1fr); }
  .apercu-complet .montant { padding-right: 14px; }
}

/* Points communs aux logiciels */
.communs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 32px; border-top: 1px solid var(--trait); }
.commun svg { width: 20px; height: 20px; fill: none; stroke: var(--indigo); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.commun h3 { margin-top: 16px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.commun p { margin-top: 8px; color: var(--texte-2); font-size: 15px; }

/* Réalisations */
.filtres-grand button { height: 34px; padding: 0 12px; font-size: 14px; }
.filtres-grand button span { font-size: 12.5px; }
.realisations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.visuel {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: 12px;
  background: var(--surface);
}
.navigateur, .telephone { display: grid; align-content: start; gap: 8px; background: var(--fond); box-shadow: var(--ombre-cadre); }
.navigateur { width: 80%; aspect-ratio: 16 / 10; padding: 0 0 12px; border-radius: 8px; }
.navigateur .barre-nav { height: 16px; border-bottom: 1px solid var(--trait); background: var(--surface-ui); border-radius: 8px 8px 0 0; }
.telephone { width: 32%; aspect-ratio: 9 / 18; padding: 18px 8px 8px; border-radius: 20px; box-shadow: var(--ombre-cadre), inset 0 0 0 4px var(--encre); }
.bloc { display: block; height: 8px; margin-inline: 10px; border-radius: 3px; background: var(--surface-2); }
.telephone .bloc { margin-inline: 6px; }
.bloc-hero { height: 34%; min-height: 28px; background: linear-gradient(135deg, var(--teinte-1), var(--teinte-2)); }
.bloc.court { width: 45%; }
.grille-produits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-inline: 10px; }
.grille-produits i { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(135deg, var(--teinte-1), var(--teinte-2)); }
.realisation-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--texte-3); font-size: 13px; }
.etiquette { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--texte-2); }
.realisation h3 { margin-top: 8px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.realisation p { margin-top: 6px; color: var(--texte-2); font-size: 15px; }
.note-realisations { margin-top: 40px; color: var(--texte-3); font-size: 14px; }

/* Déroulé d'un projet : une vraie séquence */
.deroule { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 32px; border-top: 1px solid var(--trait); }
.deroule li::before {
  content: counter(list-item);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--trait-fort);
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
}
.deroule h3 { margin-top: 16px; font-size: 17px; font-weight: 500; }
.deroule p { margin-top: 8px; color: var(--texte-2); font-size: 15px; }

@media (max-width: 960px) {
  .communs, .deroule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .realisations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .communs, .deroule, .realisations { grid-template-columns: minmax(0, 1fr); }
  .section-tete-ligne { flex-direction: column; align-items: flex-start; }
  .filtres-grand { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}

/* À propos */
.equipe { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 48px; }
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--surface), var(--portrait));
}
.portrait span { color: rgb(93 29 214 / .22); font-size: clamp(72px, 9vw, 128px); font-weight: 500; letter-spacing: -.04em; }
.portrait small { position: absolute; bottom: 14px; left: 16px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.personne h3 { margin-top: 20px; font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.personne .role { margin-top: 2px; color: var(--texte-3); font-size: 15px; }
.personne .bio { margin-top: 12px; max-width: 44ch; color: var(--texte-2); }

/* Pages de texte : mentions légales, intelligence artificielle */
.doc { max-width: calc(760px + 2 * var(--gouttiere)); padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.doc h1 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.doc .chapo { margin-top: 20px; }
.doc-maj { margin-top: 16px; color: var(--texte-3); font-size: 14px; }
.avertissement { margin-top: 32px; padding: 14px 16px; border-radius: var(--rayon); background: var(--ac-fond); color: var(--dune-sombre); font-size: 15px; }
.doc section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--trait); }
.doc h2 { font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.doc section > p, .doc section li { color: var(--texte-2); font-size: 17px; line-height: 1.65; }
.doc section > p { max-width: 64ch; margin-top: 12px; }
.doc section ul { display: grid; gap: 8px; margin-top: 12px; }
.doc section ul li { position: relative; padding-left: 20px; }
.doc section ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--trait-fort); }
.fiche { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 24px; margin-top: 16px; }
.fiche dt { color: var(--texte-3); font-size: 15px; }
.fiche dd { color: var(--encre); }

@media (max-width: 700px) {
  .equipe { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fiche { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fiche dd { margin-bottom: 12px; }
}

/* Thème sombre : le bleu nuit du logo en fond. Auto le soir ou si le système est en sombre, sinon au choix du visiteur */
:root[data-theme="sombre"] {
  color-scheme: dark;
  --encre: #ECEDF7;
  --sur-encre: #070C2F;
  --encre-survol: #FFFFFF;
  --texte-2: #B4B8D3;
  --texte-3: #9095B8;
  --fond: #070C2F;
  --surface: #0C1238;
  --surface-2: #141B4A;
  --surface-ui: #0A1034;
  --trait: #1C2357;
  --trait-fort: #2A3268;
  --trait-survol: #3A4380;
  --ui-bord-doux: #151C4C;
  --barre-fond: #1C2357;
  --indigo: #8C8CFF;
  --indigo-fond: #161C5A;
  --ac-fond: #20184F;
  --dune-sombre: #C4A6FF;
  --teinte-1: #142060;
  --teinte-2: #1F1858;
  --portrait: #1F1858;
  --erreur: #FF9C8F;
  --ombre-cadre:
    0 0 0 1px rgb(255 255 255 / .06),
    0 12px 32px -12px rgb(0 0 0 / .5),
    0 40px 80px -32px rgb(0 0 0 / .6);
}
[data-theme="sombre"] .apercu { --ui-bord: #1C2357; }
[data-theme="sombre"] .filtres button[aria-pressed="true"],
[data-theme="sombre"] .app-menu button[aria-current="true"],
[data-theme="sombre"] .app-menu .actif { background: var(--trait-fort); }
/* Les images de repli du relief ont un fond blanc : inversées, elles se fondent dans le bleu nuit */
[data-theme="sombre"] .relief img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
.app-menu svg circle { fill: var(--surface-ui); }

.mot-sombre { display: none; }
[data-theme="sombre"] .mot-clair { display: none; }
[data-theme="sombre"] .mot-sombre { display: block; }

/* Bouton lune / soleil */
.theme {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--texte-2);
  cursor: pointer;
  transition: color .15s, background-color .15s;
}
.theme::after { content: ""; position: absolute; inset: -4px; }
.theme:hover { color: var(--encre); background: var(--surface); }
.theme svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .25s;
}
.theme-soleil { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="sombre"] .theme-lune { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="sombre"] .theme-soleil { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .theme { margin-left: 0; }
  .bouton-client { padding: 0 10px; }
  .libelle-client { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .theme svg { transition: none; }
}

/* Bande teintée : sépare la section société de l'offre et du contact */
.section.bande { padding-block: clamp(64px, 8vw, 104px); background: var(--surface); border-block: 1px solid var(--trait); }

/* Contact de l'accueil : un formulaire simple */
.contact-formulaire { background: var(--fond); border-top: 0; }
.contact-formulaire .contact-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.contact-formulaire .contact-direct { margin-top: 20px; font-size: 15px; }
.formulaire {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: var(--fond);
  box-shadow: var(--ombre-cadre);
}
.formulaire-corps { display: grid; gap: 20px; }
.choix { margin: 0; padding: 0; border: 0; min-width: 0; }
.choix legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 500; }
.choix-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { position: relative; display: inline-flex; }
.choix input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choix-liste span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--trait-fort);
  color: var(--texte-2);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.choix label:hover span { color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait-survol); }
.choix input:checked + span { background: var(--encre); color: var(--sur-encre); box-shadow: none; }
.choix input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: 14px; font-weight: 500; }
.facultatif { color: var(--texte-3); font-weight: 400; }
.champ input, .champ textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--rayon);
  background: var(--fond);
  box-shadow: inset 0 0 0 1px var(--trait-fort);
  color: var(--encre);
  font: inherit;
  font-size: 16px;
  transition: box-shadow .15s;
}
.champ textarea { min-height: 128px; line-height: 1.5; resize: vertical; }
.champ textarea::placeholder { color: var(--texte-3); }
.champ input:hover, .champ textarea:hover { box-shadow: inset 0 0 0 1px var(--trait-survol); }
.champ input:focus, .champ textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--indigo), 0 0 0 4px rgb(75 75 255 / .14); }
.champ [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--erreur); }
.champ-erreur { color: var(--erreur); font-size: 13px; }
.formulaire-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.formulaire-pied .bouton { min-height: 48px; padding: 0 22px; }
.mention { color: var(--texte-3); font-size: 13px; }
.mention a { color: inherit; text-underline-offset: 3px; }
.merci { display: grid; gap: 12px; justify-items: start; padding-block: 24px; outline: none; }
.merci h3 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.merci p { color: var(--texte-2); }
.merci .bouton { margin-top: 8px; }

@media (max-width: 860px) {
  .contact-formulaire .contact-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .champs { grid-template-columns: minmax(0, 1fr); }
}
.contact-intro p:not(.contact-direct) { margin-top: 16px; }
.formulaire p { max-width: none; font-size: 15px; }
.formulaire .mention, .formulaire .champ-erreur { font-size: 13px; }

/* À propos : technologies et clients */
.personne .lien-suite { margin-top: 12px; }
.technos { display: grid; border-top: 1px solid var(--trait); }
.technos > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 64px; padding-block: 20px; border-bottom: 1px solid var(--trait); }
.technos dt { font-weight: 500; }
.technos dd, .cibles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.technos span, .cibles li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--texte-2); font-size: 14px; }
.cibles li { padding: 8px 16px; font-size: 16px; color: var(--encre); }
@media (max-width: 700px) {
  .technos > div { grid-template-columns: minmax(0, 1fr); }
}
.section.bande + .section { padding-top: clamp(72px, 10vw, 128px); }

/* À propos : héros avec le relief et les deux fondateurs */
.apropos-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 48px 64px; }
.duo { position: relative; aspect-ratio: 1 / 1; margin: 0; overflow: hidden; border: 1px solid var(--trait); border-radius: 20px; background: var(--surface); }
.relief-duo { position: absolute; inset: 0; }
.duo-embleme { position: absolute; top: 50%; left: 50%; width: 88px; height: 88px; translate: -50% -50%; padding: 14px; border-radius: 50%; background: var(--fond); box-shadow: 0 0 0 1px var(--trait), 0 16px 40px -12px rgb(7 12 47 / .3); }
/* Les métiers posés comme des repères sur le relief */
.balise {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--fond);
  box-shadow: 0 0 0 1px var(--trait), 0 8px 20px -10px rgb(7 12 47 / .25);
  color: var(--encre);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.balise::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px rgb(75 75 255 / .15); }

/* Nos engagements : une bande sombre, les lignes du relief en fond */
.section.engagements {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 136px);
  background: #070C2F;
  color: #ECEDF7;
  --texte-2: #B4B8D3;
}
[data-theme="sombre"] .section.engagements { background: var(--surface); border-block: 1px solid var(--trait); }
.engagements-lignes {
  position: absolute;
  inset: auto 0 0;
  height: 75%;
  background: url("relief-accueil.webp") center bottom / cover no-repeat;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
  pointer-events: none;
}
.engagements .conteneur { position: relative; }
.engagements .section-tete h2 { color: #FFFFFF; }
.engagements .section-tete p { color: var(--texte-2); }
.promesses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgb(255 255 255 / .14); }
.promesses li { padding: 36px 48px 40px 0; border-bottom: 1px solid rgb(255 255 255 / .14); }
.promesses li:nth-child(even) { padding: 36px 0 40px 48px; border-left: 1px solid rgb(255 255 255 / .14); }
/* Icônes des engagements : un simple trait, grand et lisible */
.promesses svg { width: 40px; height: 40px; fill: none; stroke: #B68AFF; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.promesses h3 { margin-top: 24px; color: #FFFFFF; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.promesses p { margin-top: 10px; max-width: 44ch; color: var(--texte-2); }
.engagements + .section { padding-top: clamp(72px, 10vw, 128px); }

@media (max-width: 900px) {
  .apropos-hero { grid-template-columns: minmax(0, 1fr); }
  .duo { max-width: 520px; }
}
@media (max-width: 700px) {
  .duo { display: none; }
  .promesses { grid-template-columns: minmax(0, 1fr); }
  .promesses li, .promesses li:nth-child(even) { padding: 28px 0 32px; border-left: 0; }
}

/* Historique : le carnet de bord, collé à droite, montre la pièce de l'étape lue */
.carnet { display: none; }
@media (min-width: 960px) {
  .carnet {
    display: grid;
    gap: 24px;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 96px;
    padding: 28px;
    border: 1px solid var(--trait);
    border-radius: 16px;
    background: var(--fond);
    box-shadow: var(--ombre-cadre);
  }
}
.carnet-annee p { color: var(--texte-3); font-size: 13px; font-weight: 500; }
.mois { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.mois li {
  position: relative;
  padding-top: 14px;
  border-top: 3px solid var(--surface-2);
  color: var(--texte-3);
  font-size: 11px;
  text-align: center;
  transition: border-color .3s, color .3s;
}
.mois li.evenement::before { content: ""; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; translate: -50% 0; border-radius: 50%; background: var(--trait-fort); }
.mois li.actif { border-top-color: var(--indigo); color: var(--encre); font-weight: 600; }
.mois li.actif.evenement::before { background: var(--indigo); }
.piece { display: grid; gap: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .piece:not([hidden]) { animation: piece .35s ease-out; }
  @keyframes piece { from { opacity: 0; transform: translateY(6px); } }
}
.piece-titre { font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.piece-fiche { display: grid; border-top: 1px solid var(--trait); }
.piece-fiche > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: 14px; }
.piece-fiche dt { color: var(--texte-3); }
.piece-fiche dd { margin: 0; color: var(--encre); }
.piece-note { color: var(--texte-3); font-size: 14px; }
.piece-etiquettes { display: flex; flex-wrap: wrap; gap: 8px; }
.piece-etiquettes li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--encre); font-size: 14px; }
.piece-statut { display: flex; align-items: center; gap: 8px; color: var(--encre); font-size: 14px; font-weight: 500; }
.piece-statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1F9D55; box-shadow: 0 0 0 4px rgb(31 157 85 / .15); }
.piece-appel { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.piece .bouton { justify-self: start; }
.piece .telephone { width: 26%; }
.navigateur-site { position: relative; overflow: hidden; align-content: start; }
.navigateur-site .barre-nav { display: flex; align-items: center; justify-content: center; height: 20px; }
.navigateur-site .url { padding: 0 10px; border-radius: 4px; background: var(--fond); color: var(--texte-3); font-size: 9px; line-height: 14px; }
.navigateur-site .mini-titre { margin: 6px 12px 0; max-width: 60%; color: var(--encre); font-size: 12px; font-weight: 500; line-height: 1.2; }
.navigateur-site img { position: absolute; inset: auto 0 0; width: 100%; height: 45%; object-fit: cover; object-position: center bottom; }
[data-theme="sombre"] .navigateur-site img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }

/* Bandeau cookies : une carte discrète, dans le style du site */
.cookies {
  position: fixed;
  z-index: 30;
  left: 16px;
  bottom: 16px;
  display: grid;
  gap: 14px;
  width: min(440px, calc(100% - 32px));
  padding: 20px 20px 16px;
  border: 1px solid var(--trait);
  border-radius: 16px;
  background: var(--fond);
  box-shadow: var(--ombre-cadre);
}
.cookies[hidden] { display: none; }
.cookies h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; outline: none; }
.cookies p { color: var(--texte-2); font-size: 14px; line-height: 1.55; }
.cookies p a { color: var(--encre); text-underline-offset: 3px; }
.cookies-choix { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--trait); }
.option { display: flex; align-items: flex-start; gap: 12px; color: var(--texte-3); font-size: 14px; cursor: pointer; }
.option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--indigo); }
.option strong { display: block; color: var(--encre); font-weight: 500; }
.cookies-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookies-actions .bouton { flex: 1 1 0; min-height: 44px; font-size: 14px; }
.cookies-perso { flex-basis: 100%; min-height: 36px; padding: 0; border: 0; background: none; color: var(--texte-2); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookies-perso:hover { color: var(--encre); }
@media (prefers-reduced-motion: no-preference) {
  .cookies:not([hidden]) { animation: cookies .35s cubic-bezier(.2, .7, .2, 1); }
  @keyframes cookies { from { opacity: 0; transform: translateY(12px); } }
}
.lien-pied { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--texte-2); font: inherit; cursor: pointer; }
.lien-pied:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 4px; }
.lien-doc { min-height: 0; color: var(--indigo); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(75 75 255 / .35); text-underline-offset: 4px; }
.etape-suite .actions { margin-top: 20px; }
/* Les boutons natifs prennent le même rendu que les liens-boutons */
.bouton { border: 0; font-family: inherit; cursor: pointer; }
.bouton-trait { background-color: transparent; }

/* Page IA : quatre principes en grand, puis les détails */
.doc-large { max-width: calc(880px + 2 * var(--gouttiere)); }
.principes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--trait); }
.principes li { padding: 28px 32px 32px 0; border-bottom: 1px solid var(--trait); }
.principes li:nth-child(even) { padding: 28px 0 32px 32px; border-left: 1px solid var(--trait); }
.principes h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.principes p { margin-top: 10px; max-width: 40ch; color: var(--texte-2); font-size: 16px; }
.note-portraits { margin-top: 20px; color: var(--texte-3); font-size: 13px; }
.note-portraits a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .principes { grid-template-columns: minmax(0, 1fr); }
  .principes li, .principes li:nth-child(even) { padding: 24px 0 28px; border-left: 0; }
}
