/* ==========================================================================
   Annulation de transaction — Avast style
   ========================================================================== */

:root {
  --orange: #ff7800;
  --orange-dark: #e56a00;
  --orange-soft: rgba(255, 120, 0, 0.12);
  --ink: #1b1b1b;
  --ink-soft: #444444;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --line-strong: #d3d3d3;
  --bg: #f6f6f6;
  --white: #ffffff;
  --danger: #c62828;
  --success: #1e7d32;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand-word {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.9px;
  color: #111;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.main-nav svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: #7a7a7a;
  stroke-width: 1.6;
  fill: none;
}

.main-nav a:hover svg {
  stroke: var(--orange);
}

/* ==========================================================================
   Page head
   ========================================================================== */

.page {
  padding: 22px 0 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb .crumb-home svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: var(--orange);
}

.breadcrumb .sep {
  color: #b5b5b5;
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb .current {
  color: var(--ink-soft);
}

.page-title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.page-subtitle {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 760px;
}

/* ==========================================================================
   Notice
   ========================================================================== */

.notice {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  padding: 15px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.notice p {
  margin: 0;
}

.notice strong {
  color: var(--ink);
  font-weight: 700;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 20px;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-bottom: 20px;
}

.btn-details:hover {
  background: var(--orange-dark);
}

.btn-details svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  stroke-width: 1.7;
  fill: none;
}

.details-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: -8px 0 22px;
}

.details-panel ul {
  margin: 0;
  padding-left: 20px;
}

.details-panel li + li {
  margin-top: 6px;
}

/* ==========================================================================
   Card / form
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 16, 16, 0.05), 0 8px 22px rgba(16, 16, 16, 0.04);
  padding: 26px 30px 24px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ececec;
}

.card-head svg {
  width: 22px;
  height: 22px;
  stroke: var(--orange);
  stroke-width: 1.7;
  fill: none;
  flex: 0 0 auto;
}

.card-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}

/* Fields ------------------------------------------------------------------ */

.field-group {
  margin-bottom: 24px;
}

.group-title {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field.span-2 {
  grid-column: 1 / -1;
}

.field label,
.field .label {
  font-size: 12.5px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.field label .req {
  color: var(--orange);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

select.placeholder {
  color: #9a9a9a;
}

input::placeholder {
  color: #9a9a9a;
}

input:hover,
select:hover {
  border-color: #bdbdbd;
}

input:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.field.invalid input,
.field.invalid select {
  border-color: var(--danger);
}

.field.invalid input:focus,
.field.invalid select:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.error-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}

/* Radios ------------------------------------------------------------------ */

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #b9b9b9;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
}

.radio input:checked {
  border-color: var(--orange);
}

.radio input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--orange);
}

.radio input:focus-visible {
  box-shadow: 0 0 0 3px var(--orange-soft);
}

/* Checkbox ---------------------------------------------------------------- */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  margin-top: 4px;
  line-height: 1.5;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  border: 1.5px solid #b9b9b9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.consent input:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.consent input:focus-visible {
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.consent.consent-invalid input {
  border-color: var(--danger);
}

.consent a {
  color: var(--orange);
  font-weight: 500;
}

.consent a:hover {
  text-decoration: underline;
}

/* Alerts ------------------------------------------------------------------ */

.alert {
  display: flex;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border: 1px solid;
}

.alert-error {
  background: #fdf2f2;
  border-color: #f3c9c9;
  color: #8f1d1d;
}

.alert-success {
  background: #f1f8f2;
  border-color: #c6e4cb;
  color: #1e5c28;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

/* Actions ----------------------------------------------------------------- */

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid #ececec;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  fill: none;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.btn-secondary svg {
  stroke: #7a7a7a;
}

.btn-secondary:hover {
  background: #f7f7f7;
  border-color: #bdbdbd;
  color: var(--ink);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 1px 2px rgba(255, 120, 0, 0.28);
}

.btn-primary svg {
  stroke: #fff;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

/* Success view ------------------------------------------------------------ */

.success-box {
  text-align: center;
  padding: 26px 10px 10px;
}

.success-box .check {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #f1f8f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-box .check svg {
  width: 30px;
  height: 30px;
  stroke: var(--success);
  stroke-width: 2.2;
  fill: none;
}

.success-box h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.success-box p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
}

.success-box .form-actions {
  justify-content: center;
  border-top: 0;
  margin-top: 22px;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: var(--white);
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 28px 16px;
}

.modal-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.modal-body {
  padding: 0 28px 10px;
}

.modal-actions {
  padding: 16px 28px 24px;
  margin-top: 6px;
  border-top: 0;
}

.radio-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-card {
  margin-top: 24px;
  padding: 0 26px;
}

.faq-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 0 18px;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.faq-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.faq-list {
  border-bottom: 1px solid #ececec;
}

.faq-item + .faq-item {
  border-top: 1px solid #ececec;
}

.faq-item-heading {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--orange);
}

.faq-question:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  border-radius: 4px;
}

.faq-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #c9c9c9;
  transition: transform 0.2s ease, color 0.15s ease;
}

.faq-question:hover .faq-chevron {
  color: var(--orange);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 40px 18px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Hero Banner (Processing)
   ========================================================================== */

.hero-banner {
  background-color: #171d33;
  color: #fff;
  padding: 30px 24px 70px;
  text-align: center;
}

.hero-banner .breadcrumb {
  justify-content: flex-start;
  max-width: 800px;
  margin: 0 auto 30px;
}

.hero-banner .breadcrumb .crumb-home svg {
  fill: var(--orange);
}

.hero-banner .breadcrumb a,
.hero-banner .breadcrumb .current,
.hero-banner .breadcrumb .sep {
  color: #8c93a8;
}

.hero-banner .breadcrumb a:first-child,
.hero-banner .breadcrumb a:nth-child(3) { /* Accueil is first text link if we don't count home icon? Let's just style specifically */
}

.hero-banner .breadcrumb .crumb-home-text {
  color: var(--orange);
}

.hero-banner .breadcrumb a:hover {
  color: #fff;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  display: inline-block;
  margin-bottom: 12px;
}

.hero-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--orange);
  stroke-width: 1.5;
  fill: none;
}

.hero-title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.hero-title .title-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  margin-top: -4px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #d1d4e0;
  margin: 0 auto 40px;
  max-width: 800px;
}

.hero-btn {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 32px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-btn:hover {
  background: #f0f0f0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #fff;
  padding: 50px 0 20px;
  border-top: 1px solid #ececec;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: var(--orange);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.social-links a:hover {
  color: var(--orange);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-email svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #ececec;
  font-size: 12px;
  color: #8c8c8c;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: #8c8c8c;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: var(--ink-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .header-inner {
    height: 64px;
  }

  .main-nav {
    gap: 18px;
  }

  .page-title {
    font-size: 25px;
  }

  .card {
    padding: 22px 20px;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .main-nav a span {
    display: none;
  }

  .main-nav {
    gap: 20px;
  }

  .main-nav svg {
    width: 19px;
    height: 19px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .radio-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .btn-details {
    width: 100%;
    justify-content: center;
  }

  .faq-card {
    padding: 0 18px;
  }

  .faq-head {
    padding: 18px 0 14px;
  }

  .faq-question {
    padding: 15px 0;
  }

  .faq-answer {
    padding-right: 24px;
  }
  
  .hero-banner {
    padding: 20px 16px 50px;
  }
  
  .hero-title {
    font-size: 22px;
  }
  
  .hero-btn {
    width: 100%;
    padding: 14px 16px;
    text-align: center;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
