/* Vitrine de Lytis (D-103) : titres en Cormorant Garamond, texte en Inter, violet de la
   marque sur fonds nuit et blanc cassé. Polices auto-hébergées (OFL 1.1), aucune ressource
   tierce (D-037). */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 300 700; font-style: italic; font-display: swap;
}

:root {
  --nuit: #07060d; --nuit-2: #151127; --violet: #8b5cf6; --accent: #7c3aed; --violet-fonce: #6d28d9;
  --violet-clair: #c4b5fd; --violet-pale: #ede9fe;
  --papier: #f8f7f4; --papier-2: #f1f0f5; --blanc: #fff; --encre: #14121c; --encre-2: #3a3644;
  --gris: #5f5b6b; --trait: #e4e1ea;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --largeur: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0;
  text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
.conteneur--etroit { max-width: 46rem; }
.centre { text-align: center; }
.discret { color: var(--gris); font-size: .9rem; }

/* Titres et surtitres. */
.titre { font-family: var(--serif); font-weight: 400; }
.titre--xl { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.titre--l { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.titre--m { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.titre em { color: var(--accent); }
.surtitre { display: block; margin-bottom: .5rem; font: italic 400 1.5rem/1.2 var(--serif); color: var(--violet); }
.chapeau { color: var(--gris); font-size: 1.08rem; max-width: 40rem; margin-top: 1rem; }
.centre .chapeau { margin-inline: auto; }

/* Boutons. */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1.25rem; border-radius: .55rem;
  border: 1px solid transparent; font: 500 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; }
.btn--plein, .btn--plein-violet { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--plein:hover, .btn--plein-violet:hover { background: var(--violet-fonce); border-color: var(--violet-fonce); color: #fff; }
.btn--trait { background: transparent; border-color: currentColor; color: var(--encre); }
.btn--trait:hover { border-color: var(--violet); color: var(--accent); }
.sur-nuit .btn--trait { color: #fff; }
.sur-nuit .btn--trait:hover { color: var(--violet-clair); border-color: var(--violet-clair); }
.btn--trait-violet { background: transparent; border-color: var(--violet); color: var(--violet-fonce); }
.btn--trait-violet:hover { background: var(--violet); color: #fff; }
.btn--petit { padding: .5rem .95rem; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.centre .actions { justify-content: center; }

/* Navigation : barre nuit ; transparente sur la photo de l'accueil. */
.nav { background: var(--nuit); color: #fff; position: relative; z-index: 20; }
.nav--transparente { position: absolute; inset: 0 0 auto; background: transparent; }
.nav .conteneur { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.marque { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; margin-right: auto; }
.marque__logo { display: block; border-radius: .5rem; }
.marque__nom { font: 600 1.2rem/1 var(--sans); letter-spacing: -.02em; }
.nav__liens { display: flex; align-items: center; gap: 1.6rem; }
.nav__liens > a:not(.btn) { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .92rem; }
.nav__liens > a:not(.btn):hover { color: #fff; }
.nav__mobile { display: none; position: relative; }
.nav__mobile summary { list-style: none; cursor: pointer; color: #fff; font-size: 1.4rem; padding: .2rem .5rem; }
.nav__mobile summary::-webkit-details-marker { display: none; }
.nav__mobile-liens { position: absolute; right: 0; top: 2.6rem; min-width: 13rem; display: grid; gap: .2rem;
  padding: .6rem; border-radius: .8rem; background: var(--nuit-2); border: 1px solid rgba(255, 255, 255, .1); }
.nav__mobile-liens a { display: block; padding: .55rem .7rem; border-radius: .45rem; color: #fff; text-decoration: none; }
.nav__mobile-liens a:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 900px) {
  .nav__liens > a:not(.btn) { display: none; }
  .nav__mobile { display: block; }
  .nav__liens { gap: .6rem; }
  .nav__liens .btn { white-space: nowrap; }
}

/* Mention d'environnement (démonstration, chat, espaces) : discrète, sur la nuit. */
.bandeau { background: var(--nuit); color: rgba(255, 255, 255, .55); text-align: center;
  font: 500 .72rem/1.3 var(--sans); padding: .4rem 1rem; }
.bandeau:empty { display: none; }

/* ---------- Accueil ---------- */
section { padding-block: clamp(4rem, 8vw, 6.5rem); scroll-margin-top: 1rem; }

.heros { position: relative; overflow: hidden; isolation: isolate; background: var(--nuit); color: #fff;
  padding-block: clamp(8rem, 13vw, 11rem) clamp(4rem, 7vw, 5.5rem); }
.heros__photo { position: absolute; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover;
  object-position: center 18%; z-index: -2; }
.heros::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--nuit) 38%, rgba(7, 6, 13, .6) 55%, rgba(7, 6, 13, .05) 85%),
              linear-gradient(0deg, rgba(7, 6, 13, .55), transparent 40%); }
.heros::after { content: ""; position: absolute; left: -15%; bottom: -40%; width: 65%; height: 90%; z-index: -1;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .38), transparent); pointer-events: none; }
.heros .titre--xl { max-width: 15ch; }
.heros .titre em { color: var(--violet-clair); }
.heros .chapeau { color: rgba(255, 255, 255, .82); max-width: 34rem; margin: 1.4rem 0 2rem; }
.garanties-courtes { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; margin: 3.2rem 0 0; padding: 0; list-style: none;
  font: 500 .7rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.garanties-courtes li::before { content: "◆ "; color: var(--violet-clair); }
.legende-photo { position: absolute; right: 1rem; bottom: .8rem; font-size: .7rem; color: rgba(255, 255, 255, .55); }

.video { margin: 2.5rem auto 2rem; max-width: 56rem; display: grid; gap: .8rem; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--nuit);
  border-radius: .8rem; box-shadow: 0 30px 70px -35px rgba(30, 20, 60, .55); }

.cadre { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 1rem; }
.cadre .chapeau { font-size: 1rem; }
.liste-num { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.liste-num li { display: grid; grid-template-columns: 2.4rem 1fr; }
.liste-num .n { font: 500 .85rem/1.6 var(--mono); color: var(--violet); }
.liste-num b { display: block; font-weight: 600; }
.liste-num span:not(.n) { color: var(--gris); font-size: .93rem; }

.carte-solution { background: var(--blanc); border-radius: 1.2rem; padding: clamp(2.4rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem);
  box-shadow: 0 30px 60px -40px rgba(30, 20, 60, .35); }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 3rem 0 2.5rem; padding: 0;
  list-style: none; text-align: left; }
.etape { display: grid; gap: .6rem; align-content: start; padding: 1.6rem; border-radius: .8rem; background: var(--papier-2); }
.etape--accent { background: var(--violet); color: #fff; }
.etape__num { width: 2.3rem; height: 2.3rem; border-radius: .55rem; display: grid; place-items: center;
  background: var(--blanc); color: var(--accent); font: 500 .85rem var(--mono); }
.etape--accent .etape__num { background: rgba(255, 255, 255, .2); color: #fff; }
.etape h3 { font-size: 1.6rem; }
.etape p { color: var(--gris); font-size: .93rem; }
.etape--accent p { color: rgba(255, 255, 255, .9); }

.sombre { background: var(--nuit-2); color: #fff; }
.sombre .surtitre { color: var(--violet-clair); }
.sombre .chapeau { color: #c9c3dc; }
.principes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 3rem; text-align: left;
  background: rgba(255, 255, 255, .1); border-radius: .8rem; overflow: hidden; }
.principe { background: var(--nuit-2); padding: 1.6rem; display: grid; gap: .5rem; align-content: start; }
.principe h3 { font-size: 1.45rem; }
.principe p { color: #c9c3dc; font-size: .9rem; }
.exemple { margin-top: .4rem; padding: .7rem .8rem; border-radius: .6rem; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #ece9f6; display: grid; gap: .35rem; }
.exemple__qui { font: 500 .62rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9d95b8; }
.exemple__client { justify-self: end; background: var(--violet); color: #fff; border-radius: .6rem; padding: .3rem .55rem; }
.non-valide { color: #fdba74; font-size: .75rem; }
.preuves { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 2rem; padding: 0; list-style: none; }
.preuves li::before { content: "✓ "; color: var(--violet-clair); }
.preuve-lien { margin-top: 1.6rem; color: #c9c3dc; }
.preuve-lien a { color: var(--violet-clair); }
.note-ia { margin-top: 1rem; font-size: .8rem; color: #9d95b8; }

.domaines { background: var(--papier-2); }
.grille-domaines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; padding: 0; list-style: none; }
.domaine { display: grid; gap: .3rem; justify-items: center; padding: 1.4rem 1rem; border-radius: .8rem; background: var(--blanc); text-align: center; }
.domaine b { font-weight: 500; }
.domaine small { color: var(--gris); font-size: .78rem; }
.domaine--complet { grid-column: span 2; background: var(--violet); color: #fff; }
.domaine--complet small { color: var(--violet-pale); }

.encart { max-width: 46rem; margin: 2.5rem auto 0; padding: clamp(1.6rem, 4vw, 2.4rem); text-align: left;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 1rem; display: grid; gap: 1.2rem; }
.coches { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.coches li::before { content: "✓  "; color: var(--accent); font-weight: 700; }

.final { background: var(--nuit); color: #fff;
  background-image: radial-gradient(60% 120% at 50% 120%, rgba(124, 58, 237, .45), transparent); }
.final .titre { max-width: 22ch; margin: 0 auto 2rem; }
.final .discret { color: rgba(255, 255, 255, .6); margin-top: 1.2rem; }

/* Pied de page. */
.pied { background: var(--papier); border-top: 1px solid var(--trait); padding-block: 3.5rem 2rem; font-size: .9rem; }
.pied__colonnes { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.pied h2 { font: 500 .68rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin: 0 0 .9rem; }
.pied a { display: block; color: var(--encre); text-decoration: none; margin-bottom: .45rem; }
.pied a:hover { color: var(--accent); }
.pied .marque { display: inline-flex; margin-bottom: .6rem; }
.pied__bas { border-top: 1px solid var(--trait); margin-top: 2.5rem; padding-top: 1.2rem; color: var(--gris); font-size: .8rem; }

@media (max-width: 860px) {
  .heros__photo { width: 100%; opacity: .5; }
  .heros::before { background: linear-gradient(0deg, var(--nuit) 20%, rgba(7, 6, 13, .45)); }
  .cadre, .etapes, .principes, .pied__colonnes { grid-template-columns: 1fr; }
  .grille-domaines { grid-template-columns: 1fr 1fr; }
  .legende-photo { display: none; }
}

/* ---------- Pages simples : démonstration, pilote, essai, confidentialité, exploitant ---------- */
.page-simple { min-height: 60vh; }
.page-simple .titre--xl { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.formulaire-site { padding: 4rem 0 5rem; }
.champs-site { display: grid; gap: 1rem; margin-top: 2rem; }
.champs-site label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.champs-site .libelle .discret { font-weight: 400; }
.champs-site input, .champs-site select, .champs-site textarea {
  font: inherit; font-weight: 400; padding: .75rem .9rem; border-radius: .6rem;
  border: 1px solid var(--trait); background: var(--blanc); color: var(--encre); }
.champs-site input:focus, .champs-site select:focus, .champs-site textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.champs-site .case { flex-direction: row; align-items: flex-start; gap: .7rem; font-weight: 400; }
.champs-site .case input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.champs-site button { justify-self: start; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alerte-site { padding: .8rem 1rem; border-radius: .6rem; background: #fde8e8; color: #8a1c1c; }
.texte-site h2 { margin-top: 2rem; font-size: 1.6rem; }
.texte-site li { margin: .4rem 0; }
.tableau-site { overflow-x: auto; margin: 1.5rem 0; }
.tableau-site table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tableau-site th, .tableau-site td { text-align: left; padding: .6rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.etapes-demo { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.etape-demo { padding: 1.6rem; border: 1px solid var(--trait); border-radius: 1rem; background: var(--blanc);
  display: flex; flex-direction: column; gap: .8rem; }
.etape-demo h2 { font-size: 1.6rem; }
.etape-demo p { color: var(--encre-2); line-height: 1.55; flex: 1; }
.etape-demo .btn { align-self: flex-start; }
.etape-demo__numero { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--violet-pale); color: var(--violet-fonce); font-weight: 700; }
.identifiants { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 0; font-size: .85rem;
  padding: .7rem .9rem; border-radius: .6rem; background: var(--papier); }
.identifiants dt { color: var(--gris); }
.identifiants dd { margin: 0; overflow-wrap: anywhere; }
.lien-secondaire { font-size: .9rem; color: var(--violet-fonce); }
