/* GLC6 – site de téléchargement. Ambiance « coucher de soleil », polices système uniquement. */

:root {
  --fond: #0D0A1C;
  --fond-bande: #110C24;
  --fond-code: #0A0817;
  --carte: #18122B;
  --carte-2: #221A3F;
  --bord: #2C2350;
  --bord-fort: #44367C;
  --texte: #F6F2FF;
  --doux: #B9B0DA;
  --doux-2: #9C92C6;
  --rose: #FF4FA3;
  --orange: #FF8A3D;
  --cyan: #2EE6D6;
  --vert: #22C55E;
  --sur-degrade: #1A0B24;
  --degrade: linear-gradient(100deg, #FF4FA3 0%, #FF8A3D 100%);
  --police-titres: "Bahnschrift Condensed", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --police: system-ui, "Segoe UI", sans-serif;
  --police-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --rayon: 16px;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 1rem/1.6 var(--police);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: #8AF5EC;
}

strong {
  color: var(--texte);
  font-weight: 700;
}

::selection {
  background: rgba(255, 79, 163, 0.38);
  color: var(--texte);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

h1,
h2,
h3,
.marque span,
.entete__cta,
.btn-dl__titre,
.hero__slogan,
.encart__titre {
  font-family: var(--police-titres);
  font-stretch: condensed;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

code {
  font-family: var(--police-mono);
  font-size: 0.9em;
  color: var(--texte);
  background: var(--fond-code);
  border: 1px solid var(--bord);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

.conteneur {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

/* Colonne de lecture plus étroite, alignée à gauche comme les autres sections. */
.conteneur--etroit > * {
  max-width: 820px;
}

.masque {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--texte);
  color: var(--fond);
  font-weight: 700;
  text-decoration: none;
}

.evitement:focus {
  top: 12px;
}

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 10, 28, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(44, 35, 80, 0.85);
}

.entete__barre {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texte);
  text-decoration: none;
  font-size: 1.55rem;
  line-height: 1;
}

.marque:hover {
  color: var(--texte);
}

.marque img {
  display: block;
  border-radius: 9px;
}

.nav {
  margin-left: auto;
}

.nav__liens {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__liens a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--doux);
  font-weight: 600;
  text-decoration: none;
}

.nav__liens a:hover {
  color: var(--texte);
  background: rgba(255, 255, 255, 0.06);
}

.nav__bouton {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: var(--carte);
  color: var(--texte);
  font: 600 0.95rem/1 var(--police);
  cursor: pointer;
}

.nav__bouton svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav__bouton[aria-expanded="true"] {
  border-color: var(--rose);
}

.entete__cta {
  flex: none;
  padding: 9px 16px 8px;
  border-radius: 999px;
  background: var(--degrade);
  color: var(--sur-degrade);
  font-size: 1.05rem;
  line-height: 1.1;
  text-decoration: none;
}

.entete__cta:hover {
  color: var(--sur-degrade);
  filter: brightness(1.06);
}

@media (max-width: 899.98px) {
  /* Sans JavaScript : les liens passent sur une deuxième ligne. */
  .entete__barre {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav__liens {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }

  .entete__cta {
    margin-left: auto;
  }

  /* Avec JavaScript : bouton Menu et panneau déroulant. */
  .js .entete__barre {
    flex-wrap: nowrap;
  }

  .js .nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .js .entete__cta {
    margin-left: 0;
  }

  .nav__bouton {
    display: inline-flex;
  }

  .js .nav__liens {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 18px;
    background: var(--fond);
    border-bottom: 1px solid var(--bord);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9);
  }

  .js .nav__liens.ouvert {
    display: flex;
  }

  .js .nav__liens a {
    padding: 12px 14px;
    font-size: 1.05rem;
  }
}

@media (max-width: 359.98px) {
  .nav__bouton span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0D0A1C 0%, #1B0F3A 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 75%;
  pointer-events: none;
  opacity: 0.75;
  background-image:
    radial-gradient(circle at 6% 14%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 18% 6%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 27% 31%, #FFD6EC 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 39% 12%, #fff 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 47% 44%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 58% 8%, #C9FFF9 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 66% 27%, #fff 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 74% 5%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 83% 19%, #FFD6EC 0 1px, transparent 1.6px),
    radial-gradient(circle at 92% 9%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 96% 38%, #fff 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 12% 52%, #fff 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 88% 56%, #fff 0 0.8px, transparent 1.4px);
}

.hero__grille {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  padding-block: 40px 0;
}

.hero__embleme {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 14px 34px -12px rgba(255, 79, 163, 0.65);
}

.surtitre {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__titre {
  margin: 0;
  font-size: clamp(5rem, 22vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--rose);
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__slogan {
  margin: 14px 0 14px;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.hero__intro {
  max-width: 34em;
  margin: 0;
  color: var(--doux);
  font-size: 1.08rem;
}

.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pastilles li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: rgba(24, 18, 43, 0.75);
  color: var(--doux);
  font-size: 0.9rem;
  font-weight: 600;
}

.pastilles li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vert);
}

/* Carte de téléchargement */

.carte-dl {
  padding: 22px;
  border: 1px solid var(--bord);
  border-radius: 20px;
  background: rgba(24, 18, 43, 0.94);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

.btn-dl {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--degrade);
  color: var(--sur-degrade);
  text-decoration: none;
  box-shadow: 0 16px 34px -14px rgba(255, 79, 163, 0.75);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

a.btn-dl[href]:hover {
  color: var(--sur-degrade);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 20px 40px -14px rgba(255, 79, 163, 0.85);
}

.btn-dl:focus-visible {
  outline-offset: 4px;
}

.btn-dl__icone {
  flex: none;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-dl__texte {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.btn-dl__titre {
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  line-height: 1.05;
}

.btn-dl__meta {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.btn-dl[aria-disabled="true"] {
  border: 2px dashed #3E3270;
  background: var(--carte-2);
  color: var(--doux);
  box-shadow: none;
  cursor: not-allowed;
}

.carte-dl__noscript {
  margin: 12px 0 0;
  color: var(--doux);
  font-size: 0.95rem;
}

.empreinte {
  margin-top: 20px;
}

.empreinte__label {
  margin: 0 0 6px;
  color: var(--doux-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empreinte__ligne {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.empreinte__valeur {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.empreinte__valeur.est-vide {
  color: var(--doux-2);
  font-family: var(--police);
  font-size: 0.9rem;
  letter-spacing: 0;
  word-break: normal;
}

.btn-copie {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--bord-fort);
  border-radius: 10px;
  background: var(--carte-2);
  color: var(--texte);
  font: 600 0.9rem/1.2 var(--police);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-copie:hover:not(:disabled) {
  border-color: var(--rose);
}

.btn-copie:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-copie.est-copie {
  border-color: var(--vert);
  color: #86EFAC;
}

.btn-copie svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--doux);
  font-weight: 600;
}

.compat svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bord);
}

.notes__titre {
  margin: 0 0 6px;
  color: var(--doux-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notes ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--doux);
}

/* Décor : ciel, soleil, ville, palmiers, mer */

.hero__scene {
  position: relative;
  height: clamp(220px, 32vw, 460px);
  margin-top: clamp(8px, 3vw, 32px);
}

.hero__scene svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

@media (min-width: 960px) {
  .hero__grille {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: 56px;
    padding-top: 72px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--bande {
  background: linear-gradient(180deg, var(--fond-bande) 0%, #0F0B21 100%);
  border-block: 1px solid #1D1736;
}

.section__tete {
  max-width: 720px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section__tete h2 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  line-height: 1;
}

.section__chapo {
  margin: 14px 0 0;
  color: var(--doux);
  font-size: 1.1rem;
}

.carte {
  padding: 24px;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--carte);
}

/* Fonctions */

.grille-fonctions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fonction {
  transition: border-color 0.2s ease;
}

.fonction:hover {
  border-color: var(--bord-fort);
}

.fonction__icone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 79, 163, 0.3);
  border-radius: 12px;
  background: rgba(255, 79, 163, 0.12);
  color: var(--rose);
}

.fonction:nth-child(3n + 2) .fonction__icone {
  border-color: rgba(255, 138, 61, 0.3);
  background: rgba(255, 138, 61, 0.12);
  color: var(--orange);
}

.fonction:nth-child(3n) .fonction__icone {
  border-color: rgba(46, 230, 214, 0.3);
  background: rgba(46, 230, 214, 0.1);
  color: var(--cyan);
}

.fonction__icone svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fonction h3 {
  margin: 16px 0 6px;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.fonction p {
  margin: 0;
  color: var(--doux);
}

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

@media (min-width: 1000px) {
  .grille-fonctions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Étapes */

.etapes {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etape {
  counter-increment: etape;
}

.etape::before {
  content: counter(etape);
  display: block;
  font-family: var(--police-titres);
  font-stretch: condensed;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--rose);
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.etape h3 {
  margin: 10px 0 8px;
  font-size: 1.4rem;
  line-height: 1.1;
}

.etape p {
  margin: 0 0 12px;
  color: var(--doux);
}

.etape p:last-child {
  margin-bottom: 0;
}

.astuce {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(46, 230, 214, 0.32);
  border-radius: 12px;
  background: rgba(46, 230, 214, 0.07);
  font-size: 0.95rem;
}

.etape .astuce {
  color: var(--texte);
}

.astuce svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
}

.section__suite {
  margin: 28px 0 0;
  color: var(--doux);
}

@media (min-width: 900px) {
  .etapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Configuration */

.config {
  display: grid;
  gap: 14px;
  margin: 0;
}

.config__ligne {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 14px;
  row-gap: 4px;
  align-content: start;
  padding: 18px 20px;
}

.config__ligne svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.config dt {
  font-weight: 700;
}

.config dd {
  margin: 0;
  color: var(--doux);
}

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

@media (min-width: 1100px) {
  .config {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Vérifier */

.verif {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: verif;
}

.verif > li {
  position: relative;
  padding-left: 50px;
  counter-increment: verif;
}

.verif > li::before {
  content: counter(verif);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--bord-fort);
  border-radius: 50%;
  background: var(--carte-2);
  color: var(--rose);
  font-family: var(--police-titres);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.15rem;
}

.verif p {
  margin: 0 0 10px;
  color: var(--doux);
}

.verif li > :last-child {
  margin-bottom: 0;
}

.verif__sha code {
  word-break: break-all;
}

.commande {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.commande pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--bord);
  border-radius: 12px;
  background: var(--fond-code);
}

.commande code {
  padding: 0;
  border: 0;
  background: none;
  color: #ECE6FF;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.commande .insecable {
  white-space: nowrap;
}

.encart {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--carte);
}

.encart p {
  margin: 0 0 12px;
  color: var(--doux);
}

.encart .encart__titre {
  margin: 0 0 6px;
  color: var(--texte);
  font-size: 1.35rem;
}

.encart .encart__note {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

@media (max-width: 559.98px) {
  .commande {
    flex-direction: column;
    align-items: stretch;
  }

  .commande .btn-copie {
    align-self: flex-start;
  }
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--bord);
  border-radius: 14px;
  background: var(--carte);
}

.faq details[open] {
  border-color: var(--bord-fort);
}

.faq summary {
  position: relative;
  padding: 18px 60px 18px 20px;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--carte-2);
  color: var(--rose);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover {
  color: #FFFFFF;
}

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--doux);
}

/* ---------- Pied de page ---------- */

.pied {
  padding-block: 40px;
  border-top: 1px solid var(--bord);
  background: var(--fond-code);
  color: var(--doux-2);
  font-size: 0.92rem;
}

.pied__grille {
  display: grid;
  gap: 20px;
}

.pied p {
  margin: 0 0 6px;
}

.pied p:last-child {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .pied__grille {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 40px;
  }
}

/* ---------- Mouvement et accessibilité ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .reflet {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: miroiter 6s ease-in-out infinite alternate;
  }

  @keyframes miroiter {
    from {
      opacity: 0.7;
      transform: scaleX(0.95);
    }

    to {
      opacity: 1;
      transform: scaleX(1.04);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .hero__titre,
  .etape::before {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }

  .btn-dl,
  .entete__cta {
    border: 2px solid ButtonText;
  }
}
