.ico{ color: var(--brand); }
:root{
  /* Palette blanc / noir / rouge */
  --bg:#f6f7fb;
  --text:#111111;
  --muted:#6b7280;

  --brand:#e0002a;       /* rouge principal */
  --brand-dark:#b80022;  /* rouge hover */
  --black:#0b0b0b;

  --card:#ffffff;
  --border:#e6e8ef;
  --shadow: 0 12px 30px rgba(0,0,0,.10);

  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background: var(--bg);
  color: var(--text);
}

/* Layout */
.container{max-width:1100px;margin:0 auto;padding:18px}

/* Header */
.topbar{
  position:sticky; top:0; z-index:10;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}

.brand{
  color:#fff;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.3px;
  font-size:20px;
}
.brand::after{
  content:"";
  display:inline-block;
  width:10px;height:10px;
  border-radius:999px;
  background: var(--brand);
  margin-left:8px;
  transform: translateY(-1px);
}

.nav a{
  color: rgba(255,255,255,.80);
  text-decoration:none;
  margin-left:14px;
  font-weight:600;
}
.nav a:hover{color:#fff}

/* Sections */
.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
  margin-top:16px;
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

h1,h2{margin:0 0 10px}
h1{font-size:34px;letter-spacing:-.2px}
h2{font-size:20px}
p{margin:8px 0;line-height:1.55}
.muted{color:var(--muted)}

/* Grids */
.grid{display:grid;gap:14px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Buttons */
.btn{
  display:inline-block;
  border:1px solid var(--border);
  padding:12px 16px;
  border-radius: 14px;
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:800;
  background:#fff;
}
.btn.primary{
  background: var(--brand);
  color:#fff;
  border-color: transparent;
}
.btn.primary:hover{background: var(--brand-dark)}
.btn:hover{filter:brightness(0.99)}

/* Form */
.field{display:flex;flex-direction:column;gap:6px;margin:10px 0}
label{font-weight:700;color:#111}
input,select,textarea{
  background:#fff;
  border:1px solid var(--border);
  color:var(--text);
  padding:12px 12px;
  border-radius: 14px;
  outline:none;
}
input:focus,select:focus,textarea:focus{
  border-color: rgba(224,0,42,.55);
  box-shadow: 0 0 0 4px rgba(224,0,42,.12);
}

.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

/* Badges */
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight:700;
}

/* Table */
.table{width:100%;border-collapse:collapse}
.table th,.table td{
  padding:12px 10px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}
.table th{color:#111;font-size:13px;text-transform:uppercase;letter-spacing:.4px}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  margin-top:24px;
  padding:12px 0;
  background:#fff;
}

/* ===== Accueil : Démarches + FAQ (large) ===== */
.home-info{padding:26px 16px}
.home-info-wrap{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
}

.home-box{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:22px;
  padding:18px;
}
.home-box h2{margin:0 0 8px;font-size:34px}
.home-box .muted{color:#6b7280;margin:0 0 14px}

.steps-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.step-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
  text-align:center;
}
.step-card .ico{
  width:46px;height:46px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 10px;
  font-weight:900;
}

/* FAQ à droite */
.faq-box{
  background:#ffe0e6;
  border-radius:22px;
  padding:18px;
  border:1px solid rgba(0,0,0,.06);
}
.faq-box h2{
  margin:0 0 10px;
  font-size:44px;
  text-align:center;
  letter-spacing:.2px;
}
.faq-item{border-top:1px solid rgba(0,0,0,.12);padding:14px 0}
.faq-q{
  display:flex;justify-content:space-between;align-items:center;
  cursor:pointer;
  font-weight:900;
}
.faq-a{display:none;margin-top:10px;color:#111}
.faq-q .plus{font-size:24px;font-weight:900}

/* Responsive */
@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
  h1{font-size:28px}
}
@media (max-width:1020px){
  .home-info-wrap{grid-template-columns:1fr}
  .steps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .steps-grid{grid-template-columns:1fr}
  .home-box h2{font-size:28px}
  .faq-box h2{font-size:34px}
}

/* ===== Premium hover : cartes démarches + FAQ ===== */
.step-card{
  position:relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
  overflow:hidden;
}

/* halo léger */
.step-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px circle at 20% 20%, rgba(224,0,42,.14), transparent 55%);
  opacity:0;
  transition: opacity .18s ease;
  pointer-events:none;
}

.step-card:hover{
  transform: translateY(-4px);
  border-color: rgba(224,0,42,.28);
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
}
.step-card:hover::before{ opacity:1; }

.step-card .ico{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step-card:hover .ico{
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(224,0,42,.25);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

/* FAQ premium */
.faq-q{
  padding: 10px 10px;
  border-radius: 14px;
  transition: background .18s ease, transform .18s ease;
}
.faq-q:hover{
  background: rgba(255,255,255,.55);
  transform: translateY(-1px);
}
.faq-item{
  transition: border-color .18s ease;
}
.faq-item:hover{
  border-top-color: rgba(224,0,42,.25);
}

/* petite barre animée à gauche quand ouvert */
.faq-a{
  position:relative;
  padding-left: 12px;
}
.faq-a::before{
  content:"";
  position:absolute;
  left:0; top:4px; bottom:4px;
  width:3px;
  border-radius: 6px;
  background: var(--brand);
  opacity:.25;
}
