html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui;
  background: #f6f7fb;
  color: #0f172a;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
}

.logo-box {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.logo span,
.logo {
  color: #0f172a;
}

.logo-box {
  font-size: 13px;
}

.logo-mark {
  background: #2563eb;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LINK */
.link {
  color: #64748b;
  text-decoration: none;
}

.link:hover {
  color: #2563eb;
}

/* LAYOUT */
.container {
  max-width: 760px;
  margin: auto;
  padding: 40px 20px;
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 10px;
  color: #0f172a;
}

.hero p {
  color: #64748b;
}

.badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* CARD */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

/* INPUT GRID */
.grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}


input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  color: #0f172a;
  outline: none;
}

input:focus {
  border-color: #2563eb;
  background: white;
}

/* BUTTONS */
button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  font-weight: 600;
}

.primary {
  background: #2563eb;
  color: white;
}

.primary:hover {
  background: #1d4ed8;
}

.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

/* PRO BOX */
.pro-box {
  display: flex;
  gap: 10px;
}

.pro-box input {
  flex: 1;
}

.stripe {
  display: block;
  margin-top: 12px;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.stripe:hover {
  background: #1d4ed8;
}


.annual {
  border: 2px solid #0f172a;
  background: #f8fafc;
  color: #0f172a;
}

.annual:hover {
  background: #eef2ff;
}

.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

.small {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
}

.logo-box {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.pricing-box {
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:15px;
}



.date-input {
  width: 180px;
  justify-self: start;
  margin-bottom:10px;
}

.facturx-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  opacity: 0.6;
  font-size: 11px;
  line-height: 1.3;
}

.facturx-option input {
  transform: scale(0.8);
  opacity: 0.5;
  margin-top: 2px;
}

.facturx-text {
  display: flex;
  flex-direction: column;
  color: #64748b;
}

.facturx-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.facturx-note {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;

}

/* on neutralise complètement le "note" */
.facturx-note {
 /* display: none;*/
  display: block;
}


.footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  opacity: 0.9;
}

.footer a {
  color: #2563eb;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-container {
  max-width: 760px;
  margin: auto;
}


@media (max-width: 640px) {

/* MOBILE FIRST */
  .row {
    grid-template-columns: 1fr;
	gap: 14px;
  }

  input {
    padding: 13px;
    border-radius: 12px;
	font-size: 16px; /* évite le zoom iOS automatique */
  }

  .topbar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .container {
    padding: 20px 14px;
  }

  .card {
    padding: 16px;
  }

  .pro-box {
    flex-direction: column;
  }

}

@media (max-width: 640px) {

  /* espace global entre tous les champs */
  .block input {
    margin-bottom: 10px;
  }

  /* évite le dernier input qui crée un espace inutile */
  .block input:last-child {
    margin-bottom: 0;
  }

  /* sécurité UX mobile */
  input {
    font-size: 16px;
  }
  

  /* mais pas de double espace après les rows */
  .row {
    margin-bottom: 10px;
    gap: 12px;
  }

  /* on neutralise le margin-bottom des inputs dans row
     pour éviter effet doublon */
  .row input {
    margin-bottom: 0;
  }

  /* dernier élément du bloc = pas d'espace inutile */
  .block input:last-of-type {
    margin-bottom: 0;
  }

}

.cta-scroll {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.cta-scroll:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .cta-floating {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 999;
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
  }
}

#persistToggle,
label[for="persistToggle"] {
  display: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e5e7eb;
}

.logo-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 13px;
  }
}



.privacy-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-card h2 {
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 8px;
}

.privacy-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.privacy-card .badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  margin-bottom: 8px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .privacy-card {
    padding: 12px 14px;
    margin-top: 20px;
  }

  .privacy-card h2 {
    font-size: 15px;
  }

  .privacy-card p {
    font-size: 12px;
  }

  .privacy-card .badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}




.pricing-sub {
  display:block;
  font-size:12px;
  opacity:0.85;
  margin-top:4px;
}

.pricing-secure {
  display:block;
  margin-top:8px;
  font-size:11px;
  font-weight:500;
  opacity:0.9;
  text-align:center;
}

.compliance-badge {
  margin-top:12px;
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:#ecfeff;
  color:#0f766e;
  font-size:12px;
  font-weight:600;
  border:1px solid #bae6fd;
}

.toast {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:#0f172a;
  color:white;
  padding:12px 18px;
  border-radius:12px;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition:all 0.3s ease;
  z-index:9999;
}

.toast.show {
  opacity:1;
  bottom:35px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-top: 14px;
  margin-bottom: 6px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

/* ===== FORM BLOCKS ===== */

.form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.block {
  background: #ecfeff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.block-header h3 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

/* 🗑 bouton poubelle */
.trash {
  background: #fff;
  border: 1px solid #e5e7eb;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trash:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* micro texte */
.block p {
  margin: 6px 0 0 0;
}

#extraItems {
  margin-top: 12px;
  padding-left: 2px;
  border-left: 2px solid #e5e7eb;
}

.privacy-card {
  margin-top: 28px;
  margin-bottom: 14px;
}

.form-section > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}

.cta-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 14px;
  padding: 10px 12px;

  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;

  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;

  transition: all 0.2s ease;
}

.cta-guide:hover {
  background: #dbeafe;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.cta-guide:active {
  transform: translateY(0px);
}

.guide-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.guide-hint a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.guide-hint a:hover {
  text-decoration: underline;
}


@media (max-width: 640px) {

  .privacy-card {
    margin-top: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .privacy-card h2 {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .privacy-card p {
    margin-top: 4px;
    margin-bottom: 4px;
  }
  
}

.privacy-card a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.privacy-card a:hover {
  text-decoration: none;
}

/* image cliquable */
.previewable {
  cursor: zoom-in;
}

/* fullscreen mobile */
.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.96);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 70px; /* espace topbar */
  z-index: 9999;
}

.preview-modal img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* desktop = désactivé */
@media (min-width: 769px) {
  .preview-modal {
    display: none !important;
  }
}

.pro-info {
  font-size: 11px;
  color: #64748b;
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}


.trust-block {
  text-align: center;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.trust-block p {
  margin: 0;
}

.trust-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #2563eb;
}

.pro-subinfo {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.item-row{
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
}

.service-input{
  flex:1;
  min-width:0;
}

.qty-input{
  width:72px;
  text-align:center;
  flex-shrink:0;
}

.price-input{
  width:110px;
  flex-shrink:0;
}

/* MOBILE */
@media (max-width:640px){

  .item-row{
    gap:8px;
  }

  .qty-input{
    width:64px;
    font-size:14px;
  }

  .price-input{
    width:90px;
    font-size:14px;
  }

}
