:root{
  --bg-1:#09090b;
  --bg-2:#12070a;
  --bg-3:#2a0008;

  --text:#f4eaea;
  --muted:#cdbcbc;
  --soft:#b8a8a8;

  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.14);

  --panel:rgba(255,255,255,.03);
  --panel-2:rgba(255,255,255,.025);

  --brand:#a10023;
  --brand-hover:#bd002a;

  --ok-bg:rgba(20,60,25,.22);
  --ok-border:rgba(90,170,100,.22);

  --warn-bg:rgba(70,40,10,.20);
  --warn-border:rgba(220,160,60,.22);

  --shadow:0 12px 30px rgba(0,0,0,.25);
  --radius:16px;

  --container:980px;
  --content:900px;
  --toc:540px;
}

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

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  padding:0;
  min-height:100vh;
  color:var(--text);
  font-family:Georgia, serif;
  line-height:1.7;
  background:
    radial-gradient(circle at top, rgba(80,0,15,.35) 0%, rgba(20,8,12,.18) 22%, transparent 48%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 55%, #050506 100%);
}

a{
  color:#f1dddd;
  transition:color .2s ease, opacity .2s ease;
}

a:hover{
  color:#fff2f2;
}

a:focus-visible{
  outline:2px solid rgba(255,255,255,.42);
  outline-offset:3px;
  border-radius:6px;
}

p{
  margin:0 0 1rem;
}

strong{
  color:#fff5f5;
}

em{
  color:#f4e5e5;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:28px 20px 64px;
}

.header{
  text-align:center;
  margin-bottom:40px;
}

.breadcrumb{
  font-size:.96rem;
  color:var(--muted);
  margin-bottom:18px;
}

.breadcrumb a{
  color:#e7d4d4;
  text-decoration:none;
}

.breadcrumb a:hover{
  text-decoration:underline;
}

h1,
h2,
h3{
  font-weight:700;
  letter-spacing:-0.01em;
}

h1{
  margin:0 0 18px;
  font-size:clamp(2.4rem, 5vw, 4rem);
  line-height:1.08;
  color:#fff7f7;
  text-wrap:balance;
}

h2{
  margin:40px 0 18px;
  font-size:clamp(1.75rem, 3vw, 2.35rem);
  line-height:1.2;
  text-align:center;
  color:#fff2f2;
  text-wrap:balance;
}

h3{
  margin:28px 0 14px;
  font-size:1.3rem;
  line-height:1.25;
  color:#fff1f1;
}

.lead{
  max-width:860px;
  margin:0 auto 18px;
  font-size:1.2rem;
  color:#f0e2e2;
  text-align:center;
  text-wrap:balance;
}

.note18{
  max-width:var(--container);
  margin:20px auto 0;
  padding:12px 16px;
  text-align:center;
  color:#ddd0d0;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
}

.btn{
  display:inline-block;
  padding:12px 18px;
  margin-top:10px;
  border-radius:12px;
  background:var(--brand);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border:0;
  box-shadow:var(--shadow);
  transition:
    background-color .2s ease,
    transform .15s ease,
    box-shadow .2s ease;
}

.btn:hover{
  background:var(--brand-hover);
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(0,0,0,.32);
}

.btn:focus-visible{
  outline:2px solid rgba(255,255,255,.45);
  outline-offset:3px;
}

.btn.muted{
  background:rgba(255,255,255,.06);
  color:#f5eaea;
  box-shadow:none;
  margin-right:8px;
  margin-bottom:8px;
}

.btn.muted:hover{
  background:rgba(255,255,255,.12);
  transform:none;
  box-shadow:none;
}

section{
  margin-top:28px;
}

.content-section p,
.content-section ul,
.content-section ol,
section > p,
section > ul,
section > ol{
  max-width:var(--content);
  margin-left:auto;
  margin-right:auto;
  text-align:left;
}

.content-section p,
section > p{
  margin-bottom:16px;
  font-size:1.05rem;
  letter-spacing:0.01em;
}

.toc{
  max-width:var(--container);
  margin:28px auto 36px;
  padding:22px 24px;
  background:var(--panel-2);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 8px 24px rgba(0,0,0,.16);
}

.toc strong{
  display:block;
  margin-bottom:14px;
  text-align:center;
  font-size:1.45rem;
  color:#fff2f2;
}

.toc ul,
.toc ol{
  max-width:var(--toc);
  margin:0 auto;
  padding-left:0;
  list-style:none;
  text-align:left;
}

.toc li{
  padding-left:0;
  margin-bottom:10px;
  line-height:1.55;
}

.toc li::before{
  content:none;
}

.toc a{
  display:inline-block;
  padding:4px 0;
  color:#f3dede;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* -------- LISTES (STYLE ÉDITORIAL PREMIUM) -------- */

ul,
ol{
  list-style:none;
  padding-left:0;
  margin-top:0;
  margin-bottom:22px;
}

li{
  position:relative;
  padding-left:20px;
  margin-bottom:12px;
  line-height:1.65;
  color:var(--text);
}

li::before{
  content:"—";
  position:absolute;
  left:0;
  top:0;
  color:#a88;
  font-weight:500;
}

li strong{
  color:#fff5f5;
}

.callout{
  max-width:var(--content);
  margin:24px auto 0;
  padding:14px 18px;
  border-radius:12px;
  border:1px solid var(--ok-border);
  background:var(--ok-bg);
  text-align:left;
}

.callout p:last-child,
.callout ul:last-child,
.callout ol:last-child{
  margin-bottom:0;
}

.callout.warn{
  border-color:var(--warn-border);
  background:var(--warn-bg);
}

.callout.neutral{
  border:1px solid var(--border);
  background:var(--panel);
}

.cta-links{
  text-align:center;
}

.footer{
  margin-top:48px;
  padding-top:10px;
  text-align:center;
  color:var(--soft);
  font-size:.95rem;
  border-top:1px solid rgba(255,255,255,.05);
}

table{
  width:100%;
  max-width:var(--content);
  margin:20px auto;
  border-collapse:collapse;
  background:rgba(255,255,255,.02);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}

th,
td{
  padding:12px 14px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.06);
}

th{
  color:#fff2f2;
  background:rgba(255,255,255,.04);
}

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

iframe{
  max-width:100%;
}

kbd{
  display:inline-block;
  padding:.12rem .45rem;
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#fff3f3;
  font:inherit;
  font-size:.95em;
  line-height:1.2;
  white-space:nowrap;
}

::selection{
  background:rgba(161,0,35,.35);
  color:#fff;
}

@media (max-width: 900px){
  .container{
    padding:24px 18px 56px;
  }

  .toc{
    padding:20px 18px;
  }
}

@media (max-width: 640px){
  .container{
    padding:22px 16px 52px;
  }

  .breadcrumb{
    font-size:.92rem;
    line-height:1.5;
  }

  .lead{
    font-size:1.08rem;
  }

  .toc{
    padding:18px 16px;
  }

  .btn{
    padding:11px 16px;
  }

  h2{
    margin-top:34px;
  }

  li{
    padding-left:18px;
  }
}

.cta-links{
  margin-top:16px;
  text-align:center;
}
/* ===============================
   HUB GUIDES — grille + cartes
   =============================== */

.grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
  align-items:stretch;
  margin-top:34px;
}

.card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:240px;
  padding:26px 24px 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.02) 100%);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:
    0 18px 50px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter:blur(4px);
  transition:
    transform .18s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.14);
  box-shadow:
    0 24px 60px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.04);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.025) 100%);
}

.card h2{
  margin:0 0 14px;
  font-size:clamp(1.45rem, 2.3vw, 2rem);
  line-height:1.18;
  text-align:left;
  color:#fff4f4;
}

.card p{
  margin:0 0 16px;
  max-width:none;
  text-align:left;
  color:#e7d9d9;
  font-size:1.02rem;
}

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

.card .btn{
  margin-top:auto;
}

.card .btn,
.card .btn.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:46px;
}

.card small{
  color:#bfaeae !important;
}

/* Carte “Modèles” plus large */
.card:last-child{
  grid-column:1 / -1;
}

/* Zone header plus propre */
.header{
  text-align:center;
  margin-bottom:26px;
}

.header .btn{
  margin-top:14px;
}

/* Petit raffinement sur le bloc 18+ */
.note18{
  max-width:860px;
  margin:20px auto 0;
  padding:14px 18px;
  text-align:center;
  color:#ddd0d0;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

/* Boutons multiples dans la carte PDF */
.card .btn.button{
  margin-top:0;
  margin-bottom:10px;
}

.card .btn.button:last-of-type{
  margin-bottom:0;
}

/* Responsive */
@media (max-width: 900px){
  .grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .card:last-child{
    grid-column:auto;
  }

  .card{
    min-height:auto;
    padding:22px 20px 20px;
  }
}

@media (max-width: 640px){
  .card h2{
    font-size:1.65rem;
  }

  .card{
    border-radius:18px;
  }
}

