/* Valeur Ajoutée – style sobre, proche du modèle Guy Hoquet (structure + UX), sans localisation. */
:root{
  --bg0:#071725;
  --bg1:#0b2f4d;   /* bleu principal (logo) */
  --bg2:#0a2640;
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.14);
  --text:#f2f7fb;
  --muted: rgba(242,247,251,.72);
  --shadow: 0 18px 55px rgba(0,0,0,.35);
  --r: 18px;
}

*{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;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(11,47,77,.65), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(10,38,64,.65), transparent 55%),
    linear-gradient(180deg, var(--bg0) 0%, #071b2a 55%, #061523 100%);
}

.wrap{max-width:1100px;margin:0 auto;padding:0 18px}

.topbar{
  position:sticky; top:0; z-index:50;
  background: linear-gradient(180deg, rgba(7,23,37,.92), rgba(7,23,37,.65));
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
  gap:12px;
}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand__logo{
  width:44px;height:44px;object-fit:contain;
  padding:8px;border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
}
.brand__name{font-weight:900;letter-spacing:.16em;font-size:12px}
.brand__tag{color:var(--muted);font-size:13px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.hero{padding:26px 0 10px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){ .hero__grid{grid-template-columns:1fr} }

.hero h1{margin:6px 0 10px;font-size:34px;letter-spacing:-.02em}
.lead{margin:0 0 18px;color:var(--muted);line-height:1.55;max-width:70ch}

.kpis{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 14px}
.kpi{
  padding:12px 14px;border-radius:16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  min-width: 150px;
}
.kpi__n{font-weight:900;font-size:20px}
.kpi__t{color:var(--muted);font-size:13px;margin-top:4px}

.dest{margin:12px 0 0;color:rgba(242,247,251,.86)}
.dest strong{color:var(--text)}

.mediaCard{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.mediaCard__photo{width:100%;height:360px;object-fit:contain;display:block;background:rgba(0,0,0,.18)}
@media (max-width: 980px){ .mediaCard__photo{height:320px} }
.mediaCard__caption{padding:14px 14px 16px}
.mediaCard__title{font-weight:900}
.mediaCard__sub{color:var(--muted);font-size:13px;margin-top:3px}

.formSection{padding:18px 0 34px}
.formGrid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){ .formGrid{grid-template-columns:1fr} }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:18px;
}
.card--side{position:sticky;top:86px}

h2{margin:4px 0 6px;font-size:20px}
.muted{color:var(--muted);line-height:1.45;margin:0 0 14px}

.form{margin-top:10px}
.row{display:grid;grid-template-columns: 1fr 1fr;gap:12px}
@media (max-width: 640px){ .row{grid-template-columns:1fr} }

.field{display:flex;flex-direction:column;gap:6px;margin:12px 0}
label{font-size:13px;color:rgba(242,247,251,.86)}
input, select, textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding:12px 12px;
  outline:none;
}
textarea{resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
select{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(242,247,251,.75) 50%),
    linear-gradient(135deg, rgba(242,247,251,.75) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right: 36px;
}

.slotBox{
  margin-top:14px;
  padding:14px;
  border-radius: 16px;
  border:1px dashed rgba(255,255,255,.22);
  background: rgba(0,0,0,.16);
}
.slotBox__title{font-weight:900;margin-bottom:4px}
.slotBox__sub{color:var(--muted);font-size:13px;margin-bottom:10px}
.slotHint{color:rgba(242,247,251,.82);font-size:13px;margin-top:6px;min-height:18px}

.actions{
  display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 6px;
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  color:var(--text);
  padding:12px 16px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.06)}
.btn:active{transform: translateY(1px)}
.btn--ghost{background: transparent;border-color: rgba(255,255,255,.22)}
.btn--wide{width:100%;margin-top:10px}
.btn--small{padding:10px 14px;font-size:13px}

.preview{
  margin-top:14px;
  padding:14px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.16);
}
.preview__head{
  display:flex;gap:10px;align-items:center;justify-content:space-between;
  flex-wrap:wrap;margin-bottom:10px;
}
.preview__title{font-weight:900}
.preview__pill{
  padding:8px 10px;border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.14);
  color: rgba(242,247,251,.88);
  font-size:13px;
}
.preview__box{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding:12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height:1.35;
}

.legal{margin:10px 0 0;color:rgba(242,247,251,.66);font-size:12.5px;line-height:1.45}

.sideTop{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.sideTop__logo{
  width:44px;height:44px;object-fit:contain;
  padding:8px;border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
}
.sideTop__title{font-weight:900}
.sideTop__sub{color:var(--muted);font-size:13px;margin-top:2px}

.bullets{margin:10px 0 0;padding-left:18px;color:rgba(242,247,251,.86)}
.bullets li{margin:9px 0;line-height:1.45}

.tip{
  margin-top:14px;
  padding:12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.16);
}
.tip__title{font-weight:900;margin-bottom:4px}
.tip__text{color:rgba(242,247,251,.80);font-size:13px;line-height:1.45}

.footer{
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.14);
}
.footer__inner{
  padding:14px 0;
  display:flex;gap:10px;flex-wrap:wrap;
  justify-content:center;
  color:rgba(242,247,251,.70);
  font-size:13px;
}
.sep{opacity:.6}


/* Mobile: éviter tout chevauchement du titre et du bouton */
@media (max-width: 560px){
  .topbar__inner{flex-wrap:wrap; justify-content:flex-start;}
  .brand{flex: 1 1 100%;}
  .btn--small{flex: 1 1 100%; width:100%; text-align:center;}
  .brand__tag{white-space:normal; overflow:visible; text-overflow:clip;}
}
