/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--red);
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  position: relative;
  margin-left: auto;
}

.nav-toggle summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-toggle summary::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-toggle[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.nav-toggle nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 240px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(23, 23, 23, 0.12);
}

.nav-toggle ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-toggle a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-toggle a:hover,
.nav-toggle a[aria-current="page"] {
  background: var(--ivory);
  color: var(--red);
}

/* Footer */

.site-footer {
  padding-block: var(--space-8) var(--space-5);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
}

.footer-brand .brand {
  margin-bottom: var(--space-3);
}

.footer-brand p {
  max-width: 32ch;
  color: var(--grey-text);
}

.footer-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--grey-text);
  text-decoration: none;
}

.footer-links span {
  color: var(--grey-text);
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--grey-text);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--grey-text);
}

/* Fil d'Ariane */

.breadcrumb {
  margin-bottom: var(--space-5);
  font-size: 0.8rem;
  color: var(--grey-text);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--grey-text);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--ivory);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Blocs éditoriaux */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--red);
}

.lead {
  max-width: 62ch;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--grey-text);
}

.section-head {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
  margin-bottom: var(--space-7);
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head p {
  color: var(--grey-text);
}

/* Cartes */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--grey-text);
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 1px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--neutral {
  color: var(--grey-text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "\2192";
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* Listes */

.list-square {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-square li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--grey-text);
}

.list-square li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--red);
}

.list-square strong {
  color: var(--ink);
}

/* Étapes */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  padding: var(--space-5);
  background: var(--white);
}

.step-index {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
}

.step h3 {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--grey-text);
}

/* Bandeau CTA */

.cta-band {
  padding-block: var(--space-8);
  background: var(--ink);
  color: var(--ivory);
}

.cta-inner {
  display: grid;
  gap: var(--space-5);
  max-width: 760px;
}

.cta-band h2 {
  margin: 0;
  color: var(--ivory);
}

.cta-band p {
  margin: 0;
  color: var(--grey);
}

.cta-band .eyebrow {
  margin: 0;
  color: var(--ivory);
}

.cta-band .eyebrow::before {
  background: var(--red);
}

.cta-band .btn-secondary {
  border-color: var(--ivory);
  color: var(--ivory);
}

.cta-band .btn-secondary:hover {
  background: var(--ivory);
  color: var(--ink);
}

/* FAQ */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq details {
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--red);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: var(--space-3) 0 0;
  color: var(--grey-text);
}

/* Texte légal */

.prose {
  max-width: 75ch;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: var(--text-2xl);
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose a {
  color: var(--red);
}

.prose ul {
  display: grid;
  gap: 0.4rem;
}

/* Utilitaires */

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.hint {
  font-size: 0.85rem;
  color: var(--grey-text);
}

/* Accessibilité mobile / desktop */

@media (max-width: 860px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
