
/* ---- Variables ---- */
:root{
    --blue: #1f6fe5;
    --blue-dark:#0e3a8a;
    --text:#0f172a;
    --muted:#64748b;
    --bg:#ffffff;
    --card:#f9fbff;
    --stroke:#e5edf8;
    --radius:14px;
  }
  
  /* ---- Base ---- */
  *{ box-sizing:border-box; }
  html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); }
  body{ font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Ubuntu,"Helvetica Neue",Arial,sans-serif; }
  img{ max-width:100%; display:block; }
  a{ color:inherit; text-decoration:none; }
  .container{ width:min(1120px, 92vw); margin-inline:auto; padding-top:110px; }
  

  /* ---- Buttons ---- */
  .btn{ display:inline-block; padding:11px 18px; border-radius:10px; border:1px solid var(--stroke); background:var(--bg); }
  .btn-primary{  cursor: pointer; background:#0077ff; color:#fff; border-color:#0077ff; }
  .btn-outline{ cursor: pointer;background:#0077ff; color:white; border-color:#0077ff; }
  .btn-outline:hover, .btn-primary:hover{ background:#0056b3; border-color:#0056b3; color:#fff; }
  button[type="submit"], button[type="reset"] { border-radius: 10px; }



h1{
  color:black;
  margin-top: 20px;
}

button[type="submit"] {
  background: #0077ff; color: #ffffff; border: 1.5px solid #007BFF; border-radius: 10px; cursor: pointer;
}

button[type="submit"]:hover {
  background: #0056b3; color: white; border: 1.5px solid #0056b3;
}

button[type="reset"] {
  background: red; color: #ffffff; border: 1.5px solid #ff0000; border-radius: 10px; cursor: pointer;
}

button[type="reset"]:hover {
  background: #b30000; color: white; border: 1.5px solid #b30000;
}

/* Style pour les boutons de sauvegarde */
button.Publier {
  background: #0077ff; color: #ffffff; border: 1.5px solid #007BFF; border-radius: 10px; cursor: pointer; padding: 11px 18px;
}

button.Publier:hover {
  background: #0056b3; color: white; border: 1.5px solid #0056b3;
}

button.enregistrer {
  background: #6c757d; color: #ffffff; border: 1.5px solid #6c757d; border-radius: 10px; cursor: pointer; padding: 11px 18px;
}

button.enregistrer:hover {
  background: #5a6268; color: white; border: 1.5px solid #5a6268;
}

  
  /* ---- Hero ---- */
  .hero{ padding:40px 0; }
  .hero-inner{ display:grid; grid-template-columns: 1.15fr .85fr; align-items:center; gap:30px; }
  .hero-copy h1{ font-size:40px; line-height:1.1; margin:0 0 14px; }
  .hero-copy p{ color:var(--muted); margin:0 0 18px; }
  .hero-actions{ display:flex; gap:12px; }
  .hero-illu{ border-radius:18px; overflow:hidden; }
  
  /* ---- Cards & Form ---- */
  main .card{ background:var(--card); border:1px solid var(--stroke); border-radius:var(--radius);
    padding:18px; margin:22px 0; }
  .card h2{ margin:0 0 14px; font-size:20px; }
  .grid{ display:grid; gap:14px; }
  .grid-2{ grid-template-columns:1fr 1fr; }
  .grid-3{ grid-template-columns:1fr 1fr 1fr; }
  .field label, .field .label{ display:block; font-weight:600; margin-bottom:6px; }
  input[type="text"], input[type="date"], input[type="time"],
  input[type="number"], input[type="tel"], textarea{
    width:100%; border:1px solid var(--stroke); background:var(--bg); padding:12px 12px;
    border-radius:10px; outline:none;cursor: pointer;
  }
  input[type="radio"], input[type="checkbox"]{
    cursor: pointer; 
  }
  textarea{ resize:vertical; }
  .choice{ display:block; color:var(--text); margin:6px 0; }
  .mt-12{ margin-top:12px; }
  .agree{ display:flex; align-items:center; gap:8px; color:var(--muted); }
  .actions{ margin-top:14px; display:flex; gap:10px; }
  
  /* ---- Steps ---- */
  .how-it-works{ padding:26px 0 44px; }
  .how-it-works h2{ text-align:center; font-size:26px; margin:8px 0 18px; }
  .steps .step{ text-align:center; padding:10px 10px 0; }
  .step-ico{ font-size:34px; margin-bottom:6px; }
  .step h3{ margin:4px 0 6px; font-size:18px; }
  .muted{ color:var(--muted); }
  
  /* ---- Footer ---- */
  
  /* ---- Responsive ---- */
  @media (max-width: 980px){
    .hero-inner{ grid-template-columns:1fr; }
    .grid-2, .grid-3{ grid-template-columns:1fr; }
    .main-nav{ display:none; } /* nav se replie en mobile (sans JS) */
  }

  /* ---- FORMULAIRE TABLET (576px - 699px) ---- */
  @media (min-width: 576px) and (max-width: 699.98px) {
    .step-card {
      margin-bottom: 12px;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid #e1e1e1;
    }

    .step-header {
      background: #0077ff;
      cursor: pointer;
      color: white;
      padding: 12px 15px;
      font-size: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .step-header span {
      font-weight: bold;
    }

    .step-content {
      display: none;
      padding: 12px 15px;
      background: var(--bg);
    }

    .step-content.active {
      display: block;
    }

    input, textarea, select {
      padding: 10px;
      font-size: 14px;
    }

    button {
      padding: 10px 20px;
      font-size: 14px;
    }
  }

  /* ---- FORMULAIRE TABLET (700px - 767px) ---- */
  @media (min-width: 700px) and (max-width: 767.98px) {
    .step-card {
      margin-bottom: 15px;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid #e1e1e1;
    }

    .step-header {
      background: #0077ff;
      cursor: pointer;
      color: white;
      padding: 14px;
      font-size: 1.05rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .step-header span {
      font-weight: bold;
    }

    .step-content {
      display: none;
      padding: 14px;
      background: var(--bg);
    }

    .step-content.active {
      display: block;
    }

    input, textarea, select {
      padding: 11px;
      font-size: 15px;
    }

    button {
      padding: 11px 22px;
      font-size: 15px;
    }
  }
  
  /* ---- FORMULAIRE MOBILE EN VOLETS ---- */
@media (max-width: 768px) {
  .step-card {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e1e1e1;
  }

  .step-header {
    background: #0077ff;
    cursor: pointer;
    color: white;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .step-header span {
    font-weight: bold;
  }

  .step-content {
    display: none;
    padding: 15px;
    background: var(--bg);
  }

  .step-content.active {
    display: block;
  }

  .btn-next {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    cursor: pointer;
    background: #0077ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
  }
}


 #popupOverlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.65);
      align-items: center;
      justify-content: center;
      z-index: 1200;
      padding: 1rem;
      box-sizing: border-box;
    }
    #popup {
      background: #fff;
      color: #333;
      padding: 1.5rem;
      border-radius: 12px;
      max-width: 480px;
      width: 100%;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      text-align: center;
    }
    #popup h2 { margin-top: 0; }
    #popup button { margin: 0.5rem 0; padding: 0.6rem 1.2rem; }
    body.dark #popup { background: #1f1f1f; color: #f5f5f5; }