/* ============================================================
   Groupement SIS – site des compagnies SPV
   Une seule police (système), 3 graisses : 400 / 600 / 700
   Tailles : 13 · 14 · 16 · 18 · 26 px
   ============================================================ */

/* ---------- Couleurs : mode clair ---------- */
:root{
  color-scheme:light dark;

  --bg:#f5f6f7;
  --card:#fff;
  --panel:#fff;
  --footer:#fafafa;
  --ink:#1f2937;
  --muted:#4b5563;
  --line:#e5e7eb;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --overlay:rgba(0,0,0,.55);

  --red:#c8102e;            /* fonds : boutons, urgence, popup */
  --red-dark:#8b0f22;       /* survol des boutons */
  --red-text:#c8102e;       /* texte rouge : liens, badge, devise */
  --red-text-hover:#8b0f22;
  --red-light:#f7d6db;      /* fond badge / encadré */
  --red-border:rgba(200,16,46,.25);
  --callout-sub:#5a1b25;
  --solidarite-bg:#fdf2f4;
}

/* ---------- Couleurs : mode sombre (automatique) ---------- */
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0f1115;
    --card:#151923;
    --panel:#11141c;
    --footer:#0c0f16;
    --ink:#e5e7eb;
    --muted:#9ca3af;
    --line:#262b36;
    --shadow:0 10px 40px rgba(0,0,0,.6);
    --overlay:rgba(0,0,0,.75);

    --red-text:#f48a9a;
    --red-text-hover:#f9b4bf;
    --red-light:#2a1217;
    --red-border:rgba(200,16,46,.5);
    --callout-sub:#f2c4cb;
    --solidarite-bg:#1a0d10;
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
}

a{color:var(--red-text)}
a:hover{color:var(--red-text-hover)}

/* ---------- Mise en page ---------- */
.wrap{
  max-width:1060px;
  min-height:100vh;
  margin:0 auto;
  padding:28px 18px 56px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.card{
  width:min(1000px,100%);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

/* ---------- En-tête ---------- */
header{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
}
header .logo{display:block; height:52px; width:auto}
header .title{flex:1; min-width:0; line-height:1.2}
header .line1{font-size:18px; font-weight:700}
header .line2{margin-top:2px; font-size:14px; font-weight:600; color:var(--muted)}

.urgence a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:var(--red);
  color:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(200,16,46,.22);
}
.urgence a:hover{background:var(--red-dark); color:#fff}
.urgence img{width:18px; height:18px; filter:brightness(0) invert(1)}

/* ---------- Bandeau solidarité (optionnel) ---------- */
.solidarite{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin:16px 22px 0;
  padding:12px 16px;
  border-left:4px solid var(--red);
  border-radius:8px;
  background:var(--solidarite-bg);
}
.solidarite img{width:20px; height:20px; margin-top:2px; opacity:.85}
.solidarite p{margin:0; line-height:1.5}

/* ---------- Contenu ---------- */
main{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  padding:22px;
}
.panel{
  padding:20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
}
.panel h1{margin:0 0 10px; font-size:26px; line-height:1.2}
.panel h3{
  position:relative;
  margin:22px 0 10px;
  padding-left:12px;
  font-size:18px;
  line-height:1.25;
}
.panel h3::before{
  content:"";
  position:absolute;
  left:0; top:.1em;
  width:4px; height:1.1em;
  border-radius:4px;
  background:var(--red);
}
.panel p{margin:10px 0}
.panel .ask{margin-top:14px; color:var(--muted)}
.panel .apply{margin-top:12px}

.badge{
  display:inline-block;
  margin:12px 0 18px;
  padding:6px 14px;
  border-radius:999px;
  background:var(--red-light);
  color:var(--red-text);
  font-size:13px;
  font-weight:700;
}

.callout{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--red-border);
  border-radius:12px;
  background:var(--red-light);
}
.callout .quote{margin:0 0 6px; color:var(--red-text); font-weight:700}
.callout .sub{margin:0; color:var(--callout-sub); font-weight:600; line-height:1.5}

.sell{margin:10px 0 0; padding-left:18px}
.sell li{margin:8px 0}

.sis-link{font-weight:600; text-decoration:none}
.sis-link:hover{text-decoration:underline}

/* ---------- Boutons ---------- */
.actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border:1px solid var(--red);
  border-radius:12px;
  background:var(--red);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  line-height:1.2;
  box-shadow:0 10px 18px rgba(200,16,46,.18);
}
.btn:hover{background:var(--red-dark); border-color:var(--red-dark); color:#fff}
.btn:active{transform:translateY(1px)}

.ecusson-wrap{
  display:flex;
  justify-content:center;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.ecusson-wrap img{height:140px; width:auto}

/* ---------- Pied de page ---------- */
footer{
  padding:14px 24px;
  border-top:1px solid var(--line);
  background:var(--footer);
  font-size:13px;
  color:var(--muted);
}

/* ---------- Popup urgences 118 ---------- */
.modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:var(--overlay);
}
.modal:target{display:flex}
.modal .backdrop{position:absolute; inset:0}
.modal .box{
  position:relative;
  width:min(820px,94vw);
  background:var(--red);
  border:10px solid var(--red);
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}
.modal .box::before{
  content:"";
  position:absolute;
  inset:18px;
  border:2px solid rgba(255,255,255,.9);
}
.modal .content{
  position:relative;
  padding:64px 48px;
  text-align:center;
  color:#fff;
}
.modal .title,
.modal .subtitle{
  margin:0;
  font-weight:700;
  text-transform:uppercase;
  line-height:1.1;
}
.modal .title{margin-bottom:12px; font-size:clamp(34px,5vw,72px)}
.modal .subtitle{font-size:clamp(20px,3.2vw,44px); color:#111}
.modal .call{
  display:inline-block;
  margin-top:18px;
  padding:12px 18px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.modal .call:hover{background:rgba(255,255,255,.18)}
.modal .close-x{
  position:absolute;
  top:-22px;
  left:50%;
  transform:translateX(-50%);
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  text-decoration:none;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}
.modal .close-x span{font-size:30px; color:#111}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  main{grid-template-columns:1fr}
}
@media (max-width:720px){
  header{flex-wrap:wrap}
  main{padding:18px}
  .panel h1{font-size:22px}
}
@media (max-width:620px){
  header .logo{height:44px}
  .urgence{width:100%; margin-top:12px; display:flex; justify-content:flex-end}
}
@media (max-width:520px){
  .modal .content{padding:56px 20px}
  .modal .box::before{inset:14px}
}
