:root{
  --ac-red: #b40000;       /* proche de ta carte pro */
  --ac-red-soft: rgba(255, 0, 0, 0.05);
  --ac-red-glow: rgba(255, 0, 0, 0.25);

  --text: #111827;
  --muted: #6b7280;
  --line: rgba(255,255,255,0.18);
  --soft: #f9fafb;

  --radius: 24px;
}

*{
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body{
  margin: 0;
  color: white;

  /* même logique que ta carte pro : image pleine page */
  background: url("fond.png") center/cover no-repeat fixed;

  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 28px 18px;
  position: relative;
}

/* voile noir pour lisibilité (comme ta carte pro) */
body::before{
  content:"";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

.container{
  max-width: 980px;
  width: 100%;
  position: relative;
  z-index: 1; /* au-dessus du voile */
}

/* carte "glass" rouge + blur (comme ta carte pro) */
.card{
  position: relative;
  background: var(--ac-red-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  padding: 22px;
  border-radius: var(--radius);

  box-shadow: 0 0 25px var(--ac-red-glow);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

/* HEADER */
.brand{
  display:flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-left{
  display:flex;
  gap: 12px;
  align-items:center;
  min-width: 260px;
}

.brand-logo{
  height: 150px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--ac-red));
}

.brand-title{
  display:flex;
  flex-direction:column;
  gap: 2px;
}

.brand-name{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand-tagline{
  font-size: 16px;
  opacity: 0.90;
}

.brand-contact{
  text-align:right;
  font-size: 20px;
  line-height: 1.35;
  opacity: 0.92;
}

.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  margin: 16px 0 18px;
}

/* contenu interne : léger fond clair, mais pas "bloc blanc" agressif */
.inner-card{
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 20px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
}

/* TITRES */
.page-title{
  margin: 0 0 8px;
  font-size: 22px;
}

.subtitle{
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* FORM GRID */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 18px;
  margin-bottom: 14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

label{
  font-size: 14px;
  font-weight: 800;
  color: #374151;
}

input, select{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  background: rgba(255,255,255,0.95);
}

input:focus, select:focus{
  outline: none;
  border-color: var(--ac-red);
  box-shadow: 0 0 0 3px rgba(180, 0, 0, 0.15);
}

.hint{
  font-size: 12px;
  color: #9ca3af;
}

/* CALLOUTS */
.callouts{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin: 10px 0 16px;
}

.callout{
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.95);
  font-size: 13px;
  color: #374151;
}

.callout-info{ border-left: 4px solid var(--ac-red); }
.callout-warn{ border-left: 4px solid #f59e0b; }

.hidden{ display:none; }

/* PARAMS */
.params{
  margin-top: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(249,250,251,0.95);
  border: 1px dashed rgba(0,0,0,0.12);
}

.params-title{
  font-weight: 900;
  margin-bottom: 8px;
}

.params-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 12px;
  font-size: 13px;
  color: #4b5563;
}

/* BUTTON */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border-radius: 12px;
  border:none;
  font-weight: 900;
  font-size: 14px;
  cursor:pointer;
  background: var(--ac-red);
  color: #fff;
  margin: 18px 0 18px;
}

.button:hover{
  background: #ff3333;
}

/* RESULTS */
.results{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.result-card{
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.10);
}

.result-card.secondary{
  background: rgba(249,250,251,0.96);
}

.result-title{
  font-size: 14px;
  font-weight: 900;
  color: #1f2933;
  margin-bottom: 10px;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-main{
  font-size: 24px;
  font-weight: 950;
  color: #111827;
  margin-bottom: 4px;
}

.result-sub{
  font-size: 12px;
  color: var(--muted);
}

.breakdown{
  margin-top: 10px;
  font-size: 13px;
  color: #4b5563;
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.breakdown div{
  display:flex;
  justify-content: space-between;
  gap: 10px;
}

.badge{
  display:inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(0,0,0,0.08);
  color: #374151;
}

.badge-accent{
  background: rgba(255, 0, 0, 0.10);
  color: var(--ac-red);
  border: 1px solid rgba(255, 0, 0, 0.18);
}

/* FOOTER */
.footer{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.10);
  color: var(--muted);
  font-size: 12px;
}

.footer-line{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  line-height: 1.35;
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ac-red);
  margin-top: 5px;
  flex: 0 0 auto;
}

@media (max-width: 600px){
  body{ padding: 18px 12px; }
  .card{ padding: 16px; }
  .inner-card{ padding: 16px; }
  .brand-contact{ text-align:left; }
  .page-title{ font-size: 20px; }
}
