:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow:0 12px 28px rgba(15,23,42,.08);
  --radius:16px;
  --max: 980px;
  --danger:#c1121f;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}

/* Conteneur */
.wrap{
  width:min(100% - 32px, var(--max));
  margin: 18px auto 40px;
}

/* Header */
.header{
  display:flex;
  align-items:center;
  gap:14px;
  margin: 0 0 14px;
}

.logo{
  height:44px;
  width:auto;
  display:block;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 12px;
  padding:6px 10px;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}

.title{
  margin:0;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing:.02em;
  text-transform: uppercase;
  line-height:1.1;
}

/* Photo */
.photo{
  width:100%;
  display:block;
  border-radius: var(--radius);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 10px 0 14px;
  overflow:hidden;
}

/* Carte permis */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 0 0 18px;
}

.card p{margin:0}
.card strong{font-weight:900}

/* Titres sections */
h2{
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .10em;
}

/* Sections */
.section{
  margin: 0 0 18px;
}

/* "pre" : on veut garder les retours à la ligne mais sans look code */
.section.pre{
  background: transparent;
  border: 0;
  padding: 0;
}

/* LISTE DE CARTES (Intervenants) */
.list-cards{
  display:flex;
  flex-direction:column;
  gap:8px;               /* <- réduit l’espace entre cartes */
}

/* Une carte "item" (intervenants) */
.item{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  padding: 10px 12px;    /* <- moins haut */
}

.item-head{
  font-weight: 900;
  margin: 0 0 3px;
  display:flex;
  align-items:center;
  gap:8px;
}
.item-head::before{
  content:"";
  width:7px;height:7px;border-radius:99px;
  background:#111827;
  opacity:.18;
}

.item-main{
  font-weight: 700;
  margin: 0 0 2px;
}

.item-sub{
  margin:0;
  font-size: 13.5px;
  color: var(--muted);
  overflow-wrap:anywhere;
}

/* LOTS (texte brut) : on évite la ligne infinie */
.section.pre strong{
  font-weight: 900; /* ton (LOT..|..|) en gras */
}
.section.pre{
  white-space: pre-line;
  overflow-wrap:anywhere;
}
.section.pre:not(:has(.list-cards)){
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

/* Bandeau rouge */
.alert-banner{
  background: var(--danger);
  color:#fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing:.04em;
  box-shadow: 0 10px 24px rgba(193,18,31,.18);
  border: 1px solid rgba(255,255,255,.22);
  margin-top: 18px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px){
  .wrap{ width:min(100% - 22px, var(--max)); margin-top: 14px; }

  .header{
    align-items:flex-start;
    gap:10px;
  }
  .logo{ height:38px; padding:6px 8px; border-radius: 10px; }
  .title{ font-size: 22px; }

  .photo{ margin-bottom: 12px; }
  .card{ padding: 12px 12px; }
  .section.pre:not(:has(.list-cards)){ padding: 12px 12px; }

  .item{ padding: 10px 11px; }
  .list-cards{ gap:7px; }
}
