/* La lettre de Rémi — mélange « X premium » (polices, bleu, boussole, courbes de niveau)
   et « banque privée » (bleu nuit, filets fins, étiquettes en capitales, note d'étude). */

@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --fond: #0b0f1c;
  --fond-bas: #0a0c12;
  --carte: #0f1a36;
  --carte-bas: #0a1128;
  --encre: #f5f5f7;
  --texte: #a1a1a6;
  --discret: #8a8a8f;
  --bleu: #2f6bff;
  --bleu-texte: #5b8cff;
  --filet: rgba(245, 245, 247, 0.12);
  --filet-bleu: rgba(91, 140, 255, 0.28);
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--fond-bas); }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background:
    radial-gradient(ellipse 55% 45% at 80% 12%, rgba(47, 107, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--fond) 0%, var(--fond-bas) 900px);
  -webkit-font-smoothing: antialiased;
}
/* Courbes de niveau très atténuées, en haut de page seulement */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 860px;
  background: url("fond-topo.jpg") center top / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  pointer-events: none;
}
.entete, main, .pied { position: relative; z-index: 1; }

a { color: var(--encre); text-underline-offset: 3px; text-decoration-color: rgba(245, 245, 247, 0.35); }
a:hover { text-decoration-color: var(--encre); }

.c { width: min(1180px, 100% - 48px); margin: 0 auto; }
.etiquette { font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bleu-texte); }
.b { color: var(--bleu-texte); }
.i { font-style: italic; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.entete { border-bottom: 1px solid var(--filet); }
.entete .c { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.marque { display: flex; align-items: center; gap: 12px; color: var(--encre); text-decoration: none; }
.marque img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.marque b { font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: 0.005em; }
.marque span { margin-left: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--discret); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a { color: var(--texte); text-decoration: none; }
.nav a:hover { color: var(--encre); }
.nav .bouton-ligne { padding: 8px 18px; border: 1px solid var(--filet-bleu); border-radius: 999px; color: var(--encre); white-space: nowrap; }
.nav .bouton-ligne:hover { border-color: var(--bleu-texte); }

/* Accroche */
.accroche { padding: 92px 0 100px; border-bottom: 1px solid var(--filet); }
.accroche .c { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; }
.accroche h1 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--encre);
}
.accroche h1 .i { color: var(--bleu-texte); }
.accroche .sous { margin: 24px 0 0; max-width: 520px; font-size: 18px; }

/* Formulaire */
.formulaire { margin-top: 38px; max-width: 500px; }
.formulaire .champs { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(245, 245, 247, 0.35); }
.formulaire .champs:focus-within { border-bottom-color: var(--bleu-texte); }
.formulaire input[type="email"] {
  flex: 1; min-width: 0; height: 56px; padding: 0;
  font: 400 17px var(--sans); color: var(--encre);
  background: transparent; border: 0; outline: 0;
}
.formulaire input[type="email"]::placeholder { color: var(--discret); }
.formulaire button {
  flex: none; height: 44px; padding: 0 22px;
  font: 600 15px var(--sans); color: #0b0f1c;
  background: var(--encre); border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.formulaire button:hover { background: #ffffff; }
.formulaire button:focus-visible { outline: 3px solid rgba(91, 140, 255, 0.55); outline-offset: 2px; }
.formulaire .message { margin: 14px 0 0; font-size: 15px; color: var(--encre); }
.formulaire .message:empty { display: none; }
.formulaire .precision { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--discret); }
.formulaire .precision a { color: var(--texte); }
.final .formulaire { margin-left: auto; margin-right: auto; }

/* Note d'étude (couverture de lettre) */
.note {
  position: relative; overflow: hidden;
  padding: 40px 40px 34px;
  background: linear-gradient(160deg, var(--carte) 0%, var(--carte-bas) 100%);
  border: 1px solid var(--filet-bleu);
  border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(245, 245, 247, 0.06);
}
.note::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(91, 140, 255, 0.12); pointer-events: none; }
.note > * { position: relative; }
.note .haut { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.note .exemple { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--discret); }
.note h2 { margin: 28px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--encre); }
.note .meta { font-size: 13px; color: var(--discret); }
.sommaire { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--filet); }
.sommaire li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.sommaire .r { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--bleu-texte); }
.sommaire .t { font-size: 15.5px; color: var(--encre); }
.sommaire .d { font-size: 12.5px; color: var(--discret); text-align: right; }
.note .pied-note { margin-top: 20px; font-size: 12.5px; color: var(--discret); }

/* Bande d'engagements */
.engagements { border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.engagements .c { display: grid; grid-template-columns: repeat(4, 1fr); }
.engagements div { padding: 34px 28px 32px; border-left: 1px solid var(--filet); }
.engagements div:first-child { border-left: 0; padding-left: 0; }
.engagements b { display: block; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; color: var(--encre); }
.engagements span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--filet); }
.section .c { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.section .tete { position: sticky; top: 32px; }
.section h2 { margin: 16px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; color: var(--encre); }
.section .intro { margin: 18px 0 0; font-size: 17px; max-width: 380px; }

.lignes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--filet); }
.lignes li { display: grid; grid-template-columns: 48px 0.9fr 1.4fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.lignes .r { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--bleu-texte); }
.lignes h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; color: var(--encre); }
.lignes p { margin: 0; font-size: 16px; line-height: 1.55; }
.regle { margin: 28px 0 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35; color: var(--encre); }

/* Ce que la lettre laisse de côté */
.exclus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.exclus li {
  padding: 26px 24px 24px;
  background: linear-gradient(160deg, rgba(15, 26, 54, 0.75) 0%, rgba(10, 17, 40, 0.6) 100%);
  border: 1px solid var(--filet);
  border-radius: 4px;
}
.exclus .croix { width: 26px; height: 26px; display: block; fill: none; stroke: var(--bleu-texte); stroke-width: 1.2; stroke-linecap: round; }
.exclus h3 { margin: 22px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.12; color: var(--encre); }
.exclus p { margin: 0; font-size: 15px; line-height: 1.55; }

.section-exclus .c { display: block; }
.section-exclus .tete { position: static; margin-bottom: 40px; }
.exclus li { padding: 30px 30px 28px; }

/* Qui écrit : centré */
.section.auteur .c { display: block; max-width: 760px; text-align: center; }
.section.auteur img { display: block; width: 88px; height: 88px; margin: 26px auto 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--filet-bleu), 0 0 0 7px rgba(91, 140, 255, 0.06); }
.section.auteur blockquote { margin: 28px 0 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--encre); }
.section.auteur .signe { margin: 20px auto 0; max-width: 600px; font-size: 16px; }
.section.auteur .nom { margin: 22px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--discret); }

.final { padding: 110px 0; text-align: center; }
.final h2 { margin: 16px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; color: var(--encre); }
.final h2 .i { color: var(--bleu-texte); }

/* Pages courtes */
.page-courte { padding: 104px 0 128px; }
.page-courte .c { max-width: 680px; }
.page-courte h1 { margin: 18px 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.06; color: var(--encre); }
.page-courte h1 .i { color: var(--bleu-texte); }
.page-courte p { font-size: 18px; }
.encadre { margin-top: 36px; padding: 24px 26px; background: linear-gradient(160deg, var(--carte) 0%, var(--carte-bas) 100%); border: 1px solid var(--filet-bleu); border-radius: 4px; }
.encadre p { margin: 0; font-size: 16px !important; }
.encadre p + p { margin-top: 10px; }
.encadre strong { color: var(--encre); font-weight: 600; }

/* Pages légales */
.legal { padding: 72px 0 104px; }
.legal .c { max-width: 780px; }
.legal h1 { margin: 16px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 50px); line-height: 1.08; color: var(--encre); }
.legal .maj { margin: 0 0 40px; font-size: 14px; color: var(--discret); }
.legal h2 { margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--filet); font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--encre); }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 16px; }
.legal dt { color: var(--discret); }
.legal dd { margin: 0; color: var(--encre); }

.a-completer { color: var(--bleu-texte); border-bottom: 1px dashed var(--bleu-texte); }

/* Pied de page */
.pied { padding: 36px 0 44px; font-size: 13.5px; color: var(--discret); }
.pied .c { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.pied p { margin: 0; max-width: 560px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied nav a { color: var(--texte); text-decoration: none; }
.pied nav a:hover { color: var(--encre); }

/* Mobile */
@media (max-width: 900px) {
  .nav a:not(.bouton-ligne) { display: none; }
  .accroche { padding: 48px 0 64px; }
  .accroche .c { grid-template-columns: 1fr; gap: 48px; }
  .engagements .c { grid-template-columns: 1fr 1fr; }
  .engagements div, .engagements div:first-child { padding: 24px 0; border-left: 0; border-top: 1px solid var(--filet); }
  .engagements div:nth-child(-n+2) { border-top: 0; }
  .section { padding: 64px 0; }
  .section .c { grid-template-columns: 1fr; gap: 32px; }
  .section .tete { position: static; }
  .lignes li { grid-template-columns: 36px 1fr; }
  .lignes p { grid-column: 2; }
  .exclus { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .marque span { display: none; }
  .marque b { font-size: 20px; }
  .note { padding: 30px 24px 26px; }
  .note h2 { font-size: 28px; }
  .sommaire li { grid-template-columns: 32px 1fr; }
  .sommaire .d { display: none; }
  .formulaire .champs { flex-direction: column; align-items: stretch; gap: 0; border-bottom: 0; }
  .formulaire input[type="email"] { border-bottom: 1px solid rgba(245, 245, 247, 0.35); }
  .formulaire button { margin-top: 16px; height: 52px; width: 100%; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: 8px; }
}

/* Accroche centrée, sans note d'étude (12/11/2026) */
.accroche-centre { padding: 120px 0 128px; text-align: center; }
.accroche-centre .c { display: block; max-width: 880px; }
.accroche-centre h1 { margin-left: auto; margin-right: auto; font-size: clamp(40px, 5.6vw, 72px); }
.accroche-centre .sous { margin-left: auto; margin-right: auto; font-size: 20px; }
.accroche-centre .formulaire { margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .accroche-centre { padding: 64px 0 72px; } }
.section.auteur img.signature { width: 200px; height: auto; margin: 26px auto 0; border-radius: 0; box-shadow: none; opacity: 0.92; }
.pied nav { align-items: center; }
.pied nav a.x { display: inline-flex; align-items: center; padding: 2px; }
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
