@font-face { font-family: "Outfit"; src: url("fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: "Outfit"; src: url("fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
  @font-face { font-family: "Outfit"; src: url("fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
  @font-face { font-family: "Outfit"; src: url("fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
  @font-face { font-family: "DM Serif Text"; src: url("fonts/dm-serif-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

  :root {
    /* Charte Epifyt (reprise de epifyt.fr/abonnement) */
    --lime:        #CDF06D;
    --lime-hover:  #BFE556;
    --lime-pale:   #F1F9DC;
    --olive:       #4F6B1E;
    --noir:        #010101;
    --vert-1:      #24402B;
    --vert-2:      #0E1A12;
    --vert-3:      #060C08;
    --blanc:       #FFFFFF;
    --blanc-doux:  rgba(255, 255, 255, 0.78);
    --bord:        #DCE3CF;
    --erreur:      #9B1C1C;
    --erreur-fond: #FDECEC;
    --sans:  "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "DM Serif Text", Georgia, serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--blanc);
    background-color: var(--vert-2);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
  }

  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: radial-gradient(120% 90% at 50% 0%, var(--vert-1) 0%, var(--vert-2) 55%, var(--vert-3) 100%);
  }

  .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  /* En-tête */
  .entete { padding: 22px 0; }
  .entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .logo img { display: block; height: 46px; width: auto; }
  .retour {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    font-size: 15px; font-weight: 500;
    color: var(--blanc); text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    transition: border-color .2s, background-color .2s;
  }
  .retour:hover { border-color: var(--blanc); background: rgba(255, 255, 255, 0.06); }

  /* Contenu */
  main { flex: 1; display: flex; align-items: center; padding: 24px 0 56px; }
  .grille { display: grid; gap: 32px; grid-template-areas: "texte" "carte" "atouts"; }
  .texte  { grid-area: texte; }
  .carte  { grid-area: carte; }
  .atouts { grid-area: atouts; }
  @media (min-width: 900px) {
    .grille {
      grid-template-columns: 1.05fr 0.95fr;
      grid-template-rows: auto auto;
      grid-template-areas: "texte carte" "atouts carte";
      column-gap: 72px; row-gap: 0;
      align-items: center;
    }
    .texte  { align-self: end; }
    .atouts { align-self: start; }
  }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 18px;
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
  }
  .eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(205, 240, 109, 0.18);
  }

  h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5.2vw, 56px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.027em;
  }
  h1 .serif {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--lime);
  }
  .intro {
    margin: 0;
    max-width: 30em;
    font-size: 17px; line-height: 1.6;
    color: var(--blanc-doux);
  }

  .atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
  @media (min-width: 900px) { .atouts { margin-top: 28px; } }
  .atouts li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--blanc); }
  .atouts i {
    flex: none; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--lime); color: var(--noir);
  }
  .atouts svg { width: 16px; height: 16px; }

  /* Carte de connexion */
  .carte {
    width: 100%; max-width: 460px; justify-self: center;
    padding: 28px;
    color: var(--noir);
    background: var(--blanc);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  }
  @media (min-width: 900px) { .carte { justify-self: end; padding: 34px; } }

  .carte-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
  .carte-haut h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
  .badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600;
    background: var(--lime); color: var(--noir);
    white-space: nowrap;
  }
  .badge svg { width: 13px; height: 13px; }
  .carte-texte { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: #4a5148; }

  .champ { margin-bottom: 14px; }
  label {
    display: block; margin-bottom: 7px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--olive);
  }
  input {
    width: 100%;
    padding: 13px 14px;
    font: inherit; font-size: 16px;
    color: var(--noir);
    background: var(--blanc);
    border: 1px solid var(--bord);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
  }
  input::placeholder { color: #8b9387; }
  input:hover { border-color: #c4ceb2; }
  input:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 4px rgba(205, 240, 109, 0.55);
  }

  .code-wrap { position: relative; }
  .code-wrap input { padding-right: 90px; }
  .afficher {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    padding: 7px 10px;
    font: inherit; font-size: 13px; font-weight: 600;
    color: var(--olive); background: var(--lime-pale);
    border: 0; border-radius: 7px; cursor: pointer;
  }
  .afficher:hover { background: #e6f3c4; }
  .afficher:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; }

  .erreur {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 0 0 18px; padding: 12px 14px;
    font-size: 14px; line-height: 1.45;
    color: var(--erreur); background: var(--erreur-fond);
    border-radius: 10px;
  }
  .erreur svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

  .bouton {
    width: 100%; margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px;
    font: inherit; font-size: 16px; font-weight: 600;
    color: var(--noir); background: var(--lime);
    border: 1px solid transparent; border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s, transform .15s;
  }
  .bouton:hover { background: var(--lime-hover); }
  .bouton:active { transform: translateY(1px); }
  .bouton:focus-visible { outline: 2px solid var(--noir); outline-offset: 3px; }
  .bouton svg { width: 18px; height: 18px; transition: transform .2s; }
  .bouton:hover svg { transform: translateX(3px); }

  .aide {
    margin: 20px 0 0; padding: 14px 16px;
    font-size: 14px; line-height: 1.5;
    background: var(--lime-pale); border-radius: 10px;
  }
  .aide a { color: var(--noir); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
  .aide a:hover { color: var(--olive); }

  .pied { padding: 22px 0 28px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
  .pied .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
  .pied a { color: rgba(255, 255, 255, 0.75); text-underline-offset: 3px; }

  @media (max-width: 599px) {
    .wrap { padding: 0 16px; }
    .logo img { height: 38px; }
    .retour span { display: none; }
    .retour { padding: 10px 12px; }
    main { padding-top: 8px; }
    .carte { padding: 24px 20px; }
  }

  /* Grands écrans (27" en 2560 px) */
  @media (min-width: 1800px) {
    .wrap { max-width: 1360px; }
    h1 { font-size: 68px; }
    .intro { font-size: 19px; }
    .atouts li { font-size: 17px; }
    .carte { max-width: 520px; padding: 40px; }
    .carte-haut h2 { font-size: 28px; }
    .logo img { height: 54px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
  }
a.bouton { text-decoration: none; }
