:root{
  color-scheme: light;
  --bg:#f7f7fb;
  --panel:#ffffff;
  --panel2:#f7f7fb;
  --text:#0f172a;
  --muted:#475569;
  --border:rgba(15,23,42,.12);
  --accent:#d7263d;
  --accent2:#ff4d64;
  --shadow: 0 6px 18px rgba(15,23,42,.06);
  --radius:14px;
  --wrap:1100px;
  --ring: 0 0 0 4px rgba(215,38,61,.18);
}

@media (prefers-color-scheme: dark){
  :root{
    color-scheme: dark;
    --bg:#0b0f14;
    --panel:#0f1722;
    --panel2:#0b1320;
    --text:#e9eef6;
    --muted:#a9b4c3;
    --border:rgba(255,255,255,.10);
    --shadow: 0 14px 34px rgba(0,0,0,.35);
    --ring: 0 0 0 4px rgba(215,38,61,.26);
  }
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color:var(--text);
  line-height:1.55;
  text-rendering:optimizeLegibility;
}
a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

:focus{outline:none}
:focus-visible{
  box-shadow:var(--ring);
  border-radius:10px;
}

.wrap{max-width:var(--wrap); margin:0 auto; padding:0 18px}

/* Top navigation */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}

@media (prefers-color-scheme: dark){
  .topbar{background:rgba(11,15,20,.78)}
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px; min-width:180px}
.brand b, .brand strong{display:block; font-weight:800; letter-spacing:.2px}
.brand span{display:block; font-size:12px; color:var(--muted)}
.brandLogoImg{height:clamp(52px, 5vw, 64px); width:auto; display:block}
.brand:hover .brandLogoImg{filter:brightness(1.03)}
.logo{
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg, rgba(215,38,61,1), rgba(255,77,100,1));
  box-shadow:0 10px 24px rgba(215,38,61,.25);
}
.links{display:flex; flex-wrap:wrap; align-items:center; gap:10px; justify-content:flex-end}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 8px;
  border-radius:10px;
  border:1px solid transparent;
  background:transparent;
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
}
.pill:hover{color:var(--text); text-decoration:none}
.pill:hover{ text-decoration:underline; text-underline-offset:4px; text-decoration-color:rgba(215,38,61,.35)}
.pill[aria-current="page"]{color:var(--text); border-color:rgba(215,38,61,.35); background:rgba(215,38,61,.08)}

.pill.cta{
  color:var(--text);
  border-color:rgba(215,38,61,.42);
  background:rgba(215,38,61,.10);
}

@media (prefers-color-scheme: dark){
  .pill{color:rgba(233,238,246,.78)}
  .pill:hover{color:var(--text)}
}

/* Header / hero */
.header{padding:34px 0 18px}
.hero{padding:22px 0 0}
.heroCard{
  padding:18px 18px 16px;
  border-radius:var(--radius);
  background:var(--panel);
  border:1px solid var(--border);
  box-shadow:none;
}
.heroCard{
  position:relative;
}
.heroCard:before{
  content:"";
  position:absolute;
  left:18px;
  top:18px;
  width:46px;
  height:3px;
  border-radius:99px;
  background:var(--accent);
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted);
}
.dot{width:8px; height:8px; border-radius:99px; background:var(--accent)}
.header h1, .hero h1{margin:10px 0 0; font-size:42px; line-height:1.1; letter-spacing:-.02em}
.lead{margin:10px 0 0; color:rgba(15,23,42,.74); font-size:16px; max-width:72ch}

@media (prefers-color-scheme: dark){
  .lead{color:rgba(233,238,246,.86)}
}
.actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--panel);
  font-weight:650;
}
.btn:hover{background:var(--panel2); text-decoration:none}
.btn.primary{border-color:rgba(215,38,61,.45); background:rgba(215,38,61,.10); color:var(--text)}

@media (prefers-color-scheme: dark){
  .btn{background:rgba(255,255,255,.03)}
  .btn:hover{background:rgba(255,255,255,.06)}
}

/* Sections / cards */
section, main.section{padding:22px 0}
.sectionHead{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px}
.sectionHead h2{margin:0; font-size:22px}
.sectionHead p{margin:6px 0 0; color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}
.card{
  padding:16px;
  border-radius:var(--radius);
  background:var(--panel);
  border:1px solid var(--border);
  box-shadow:none;
  transition:transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{transform:translateY(-1px); border-color:rgba(215,38,61,.22)}

.cardHead{
  display:flex;
  align-items:center;
  gap:14px;
}
.cardHeadText{min-width:0}

.logoBox{
  --logoSize: 96px;
  width:var(--logoSize);
  height:var(--logoSize);
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--panel2);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 auto;
}

.cardLogo{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:8px;
  display:block;
}

/* Encore plus visible sur les fiches */
.heroCard .logoBox{--logoSize: 120px}

@media (max-width: 640px){
  .logoBox{--logoSize: 88px}
  .heroCard .logoBox{--logoSize: 104px}
}
.card h3{margin:8px 0 0; font-size:18px}
.tag{
  display:inline-flex;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(215,38,61,.35);
  background:rgba(215,38,61,.10);
  color:rgba(17,24,39,.90);
}

@media (prefers-color-scheme: dark){
  .tag{color:rgba(233,238,246,.95)}
}
.meta{margin:8px 0 0; color:var(--muted); font-size:14px}
.small{font-size:12px; color:var(--muted)}
.link{
  display:inline-flex;
  font-weight:700;
  color:var(--accent);
}
.link:hover{text-decoration:underline}

.card > .link{margin-top:12px}

.cardActions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:12px;
}
.cardActions .link{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--panel2);
  text-decoration:none;
}
.cardActions .link:hover{background:rgba(215,38,61,.06); border-color:rgba(215,38,61,.22)}
.link.secondary{color:var(--muted); font-weight:650; background:transparent}
.link.secondary:hover{color:var(--text); background:var(--panel2)}

.bullets{
  margin:0;
  padding-left:18px;
}
.bullets li{
  margin:7px 0;
  color:rgba(17,24,39,.84);
}
@media (prefers-color-scheme: dark){
  .bullets li{color:rgba(233,238,246,.88)}
}

/* Contact */
.contactGrid{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px}
.contactCard{padding:16px; border-radius:var(--radius); background:var(--panel); border:1px solid var(--border); box-shadow:none}
.contactCard{background:var(--panel)}
.contactCard a{color:var(--accent)}
.contactCard a:hover{text-decoration:underline}
.contactGrid--center{grid-template-columns:1fr; justify-items:center}
.contactGrid--center .contactCard{width:100%; max-width:620px}
.contactRow{display:flex; gap:10px; align-items:center; margin-top:10px}
.chip{width:34px; height:34px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.06); border:1px solid var(--border)}
.chip{background:rgba(17,24,39,.04)}

@media (prefers-color-scheme: dark){
  .chip{background:rgba(255,255,255,.06)}
}

/* Inputs */
.toolbar{margin-bottom:14px}
.input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--panel);
  color:var(--text);
  outline:none;
}
.input:focus{border-color:rgba(215,38,61,.55)}

.select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--panel);
  color:var(--text);
  outline:none;
}
.select:focus{border-color:rgba(215,38,61,.55)}

.toolbar{
  display:grid;
  grid-template-columns: 1fr 220px;
  gap:12px;
  align-items:center;
}

@media (max-width: 640px){
  .toolbar{grid-template-columns:1fr}
}

/* Footer */
.footer{padding:26px 0 34px; border-top:1px solid var(--border); margin-top:18px}
.footer .row, .foot{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}

/* Responsive */
@media (max-width: 940px){
  .grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
}
@media (max-width: 640px){
  .nav{flex-direction:column; align-items:flex-start}
  .links{justify-content:flex-start}
  .header h1, .hero h1{font-size:34px}
  .grid{grid-template-columns:1fr}
  .contactGrid{grid-template-columns:1fr}
  .brandLogoImg{height:56px}
}
