/* vortexmail.fr : feuille de style unique, sans dépendance extérieure. */
@font-face {
  font-family: "Lora";
  src: url("fonts/lora.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --abysse: #0b2545;
  --abysse-2: #123459;
  --courant: #1e88e5;
  --courant-fort: #1565c0;
  --glace: #f3f7fb;
  --papier: #ffffff;
  --encre: #13263f;
  --brume: #55657c;
  --trait: #d8e2ee;
  --compte-1: #ef5a5f;
  --compte-2: #4fb0ff;
  --compte-3: #3cc48a;
  --sur-abysse: #e7eef8;
  --sur-abysse-doux: #a9bdd6;
  --titre: "Lora", "Iowan Old Style", Georgia, serif;
  --texte: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --largeur: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --abysse: #071a33;
    --abysse-2: #0d2647;
    --glace: #0d1726;
    --papier: #132034;
    --encre: #e6edf7;
    --brume: #9fb0c6;
    --trait: #22344d;
    --courant: #4fa3f0;
    --courant-fort: #2f8be0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--glace);
  color: var(--encre);
  font: 1.0625rem/1.65 var(--texte);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--courant); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--compte-2);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--papier); color: var(--encre); padding: 8px 12px; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 12px; }

/* En-tête : sur le bleu nuit du bandeau. */
.top {
  background: var(--abysse);
  color: var(--sur-abysse);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 18px max(16px, calc((100vw - var(--largeur)) / 2));
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font: 600 1.2rem var(--titre);
  white-space: nowrap;
}
.top nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 0.95rem; }
.top nav a { color: var(--sur-abysse-doux); text-decoration: none; }
.top nav a:hover { color: #fff; text-decoration: underline; }
.top nav .lang { color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 0 12px; }

/* Bandeau : le tourbillon de trois comptes vers Vortex Mail. */
.hero {
  background: var(--abysse);
  color: var(--sur-abysse);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  padding: 40px max(16px, calc((100vw - var(--largeur)) / 2)) 230px;
  overflow: hidden;
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); color: #fff; max-width: 18ch; }
.lead { font-size: 1.15rem; color: var(--sur-abysse-doux); max-width: 34rem; margin: 22px 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.meta { margin: 18px 0 0; font-size: 0.9rem; color: var(--sur-abysse-doux); }

.button {
  display: inline-block;
  background: #1976d2;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
}
.button:hover { background: #1565c0; }
.button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); }

.spiral { width: 100%; max-width: 560px; justify-self: end; overflow: visible; }
.spiral .ring { fill: none; stroke: rgba(150, 190, 240, 0.12); stroke-width: 1; }
.spiral .arm {
  fill: none; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 2200; stroke-dashoffset: 2200;
  animation: dessin 1.6s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
}
.spiral .core { fill: var(--abysse-2); stroke: rgba(150, 190, 240, 0.25); }
.spiral .letter { opacity: 0; }
.spiral .letter .flap { fill: none; stroke: var(--abysse); stroke-width: 1.4; stroke-linejoin: round; }
/* Écran large : enveloppes en boucle ; mobile : deux passages puis arrêt. */
.spiral .letters.court { display: none; }
@keyframes dessin { to { stroke-dashoffset: 0; } }

/* Capture principale, à cheval sur le bandeau et la suite. */
.hero-shot {
  max-width: var(--largeur);
  margin: -190px auto 0;
  padding: 0 16px;
  position: relative;
}
.hero-shot img,
.shot img {
  border-radius: 12px;
  border: 1px solid rgba(120, 150, 190, 0.28);
  box-shadow: 0 40px 80px -30px rgba(3, 15, 35, 0.55), 0 12px 24px -12px rgba(3, 15, 35, 0.35);
}

/* Fonctionnalités : texte et capture en alternance. */
.features, .download { max-width: var(--largeur); margin: 0 auto; padding: 96px 16px 32px; }
.features > h2, .download h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 40px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  padding: 36px 0;
}
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: 1.7rem; margin-bottom: 14px; }
.feature p { color: var(--brume); margin: 0; max-width: 32rem; }

.more-title { font-size: 1.5rem; margin: 64px 0 24px; }
.more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin: 0;
}
.more div { border-top: 2px solid var(--trait); padding-top: 14px; }
.more dt { font-weight: 650; margin-bottom: 6px; }
.more dd { margin: 0; color: var(--brume); }

/* Sécurité : retour au bleu nuit. */
.security { background: var(--abysse); color: var(--sur-abysse); margin-top: 80px; }
.security-inner {
  max-width: var(--largeur); margin: 0 auto; padding: 88px 16px;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px;
}
.security h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: #fff; }
.security-head p { color: var(--sur-abysse-doux); margin-top: 18px; max-width: 28rem; }
.security dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; }
.security dt { font-weight: 650; color: #fff; padding-left: 16px; border-left: 3px solid var(--compte-2); }
.security dd { margin: 6px 0 0 19px; color: var(--sur-abysse-doux); }
.security dl div:nth-child(3n + 2) dt { border-color: var(--compte-1); }
.security dl div:nth-child(3n) dt { border-color: var(--compte-3); }

/* Téléchargement. */
.download p { max-width: 40rem; color: var(--brume); }
.files { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--trait); max-width: 40rem; }
.files li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.files .os { font-weight: 600; }
.files .file { color: var(--brume); }
.download .note { font-size: 0.92rem; }

.bottom {
  max-width: var(--largeur); margin: 48px auto 0; padding: 28px 16px 48px;
  border-top: 1px solid var(--trait); color: var(--brume); font-size: 0.92rem;
  display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
}
.bottom p { margin: 0; }
.bottom .links { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* Pages de texte : confidentialité, conditions. */
.doc { max-width: 46rem; margin: 0 auto; padding: 56px 16px 32px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.doc .muted { color: var(--brume); }
.doc code { font-size: 0.9em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 150px; }
  .spiral { max-width: 340px; justify-self: center; order: -1; }
  .spiral .letters.court { display: inline; }
  .spiral .letters.boucle { display: none; }
  .hero-shot { margin-top: -120px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-text { order: 0; }
  .more { grid-template-columns: 1fr 1fr; }
  .security-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .more, .security dl { grid-template-columns: 1fr; }
  .top nav a:not(.lang) { display: none; }
  .top { flex-wrap: nowrap; gap: 12px; }
  .top nav { gap: 8px; flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spiral .arm { animation: none; stroke-dashoffset: 0; }
  .spiral .letters.court, .spiral .letters.boucle { display: none; }
}
.spiral .arm.c1 { stroke: var(--compte-1); }
.spiral .arm.c2 { stroke: var(--compte-2); animation-delay: 0.15s; }
.spiral .arm.c3 { stroke: var(--compte-3); animation-delay: 0.3s; }
.spiral .letter.c1 { fill: var(--compte-1); }
.spiral .letter.c2 { fill: var(--compte-2); }
.spiral .letter.c3 { fill: var(--compte-3); }

/* Bandeau de navigation toujours visible. */
.top {
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 rgba(150, 190, 240, 0.12), 0 8px 24px -16px rgba(3, 15, 35, 0.6);
}
.skip { z-index: 30; }
[id] { scroll-margin-top: 72px; }

/* Formulaire de contact : messages affichés par l'ancre de retour, sans script. */
.notice { display: none; margin: 24px 0; padding: 14px 18px; border-radius: 10px; border-left: 4px solid; }
.notice:target { display: block; }
.notice.ok { border-color: var(--compte-3); background: rgba(60, 196, 138, 0.12); }
.notice.err { border-color: var(--compte-1); background: rgba(239, 90, 95, 0.12); }
#envoye:target ~ .contact { display: none; }
.contact { margin-top: 28px; }
.contact p { margin: 0 0 18px; }
.contact label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact input, .contact textarea {
  width: 100%; font: inherit; color: var(--encre); background: var(--papier);
  border: 1px solid var(--trait); border-radius: 8px; padding: 10px 12px;
}
.contact input.court { max-width: 12rem; }
.contact textarea { resize: vertical; min-height: 10rem; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 3px solid var(--compte-2); outline-offset: 2px; }
.contact .note { font-size: 0.92rem; color: var(--brume); }
.contact button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Page Téléchargement. */
.telechargement .lead-doc { font-size: 1.1rem; color: var(--brume); margin: 12px 0 8px; }
.telechargement .systemes { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.telechargement .systemes a {
  text-decoration: none; font-size: 0.92rem; padding: 4px 12px;
  border: 1px solid var(--trait); border-radius: 999px; background: var(--papier);
}
.telechargement .systeme { border-top: 1px solid var(--trait); margin-top: 36px; padding-top: 8px; }
.telechargement .button { margin: 4px 0 6px; }
.doc pre {
  background: var(--papier); border: 1px solid var(--trait); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; font-size: 0.9rem; line-height: 1.5;
}
.doc pre code { font-size: inherit; }
.telechargement .avis {
  margin-top: 28px; padding: 14px 18px; border-radius: 10px;
  border-left: 4px solid var(--compte-1); background: rgba(239, 90, 95, 0.1);
}
.telechargement .avis h3 { margin: 0 0 6px; font-size: 1.1rem; }
.telechargement .avis p { margin: 0; }
.telechargement .empreinte code { word-break: break-all; font-size: 0.95rem; }

/* Page Sécurité. */
.securite .lead-doc { font-size: 1.1rem; color: var(--brume); margin: 12px 0 8px; }
.securite .avis-doc {
  margin: 20px 0 8px; padding: 14px 18px; border-radius: 10px;
  border-left: 4px solid var(--compte-2); background: rgba(79, 176, 255, 0.1);
}
.securite .point { border-top: 1px solid var(--trait); margin-top: 32px; padding-top: 4px; }
.securite .point ul { padding-left: 1.2em; }
.securite .point li { margin: 6px 0; }
.securite .preuve { font-size: 0.92rem; color: var(--brume); }
.security-head .plus { margin-top: 22px; }

/* Page Linux. */
.doc .capture { margin: 28px 0 8px; border-radius: 12px; border: 1px solid var(--trait); }
.features .plus-lien { margin: 28px 0 0; font-weight: 600; }

/* Guides. */
.guide .retour { margin: 0 0 12px; font-size: 0.95rem; }
.guide ol { padding-left: 1.4em; }
.guide ol li { margin: 6px 0; }
.guides { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--trait); }
.guides li { padding: 16px 0; border-bottom: 1px solid var(--trait); display: grid; gap: 4px; }
.guides span { color: var(--brume); }
