/* =========================================================
   Page de vente — Le RN en 20 questions concrètes
   Palette stricte : #012653, #ED283A, blanc, gris neutres.
   Police : une seule famille sans empattement (système).
   ========================================================= */

:root {
  --navy: #012653;
  --red: #ED283A;
  --white: #FFFFFF;
  --gray-50: #F5F6F7;
  --gray-100: #ECEEF0;
  --gray-200: #DDE1E5;
  --gray-600: #5A6472;
  --gray-700: #3F4A57;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --header-h: 76px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(1, 38, 83, 0.06);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--gray-700);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy);
  text-underline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- Utilitaires ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.icon {
  flex: none;
}

/* ---------- En-tête / navigation fixe ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--red);
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.nav-link--buy {
  padding: 8px 16px;
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-size: 19px;
  font-weight: 700;
}

.nav-link--buy:hover {
  background: var(--navy);
  border-color: var(--navy);
}

/* ---------- Héros ---------- */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--red);
  vertical-align: 1px;
}

.eyebrow-sep {
  color: var(--gray-600);
  font-weight: 400;
}

.eyebrow-edition {
  display: inline;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.title-accent {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.12em;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 36ch;
  margin: 24px 0 0;
  color: var(--gray-600);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--gray-600);
  font-size: 14px;
}

.hero-meta li {
  display: flex;
  align-items: center;
}

.hero-meta li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--red);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 36px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.price-label {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-value {
  color: var(--navy);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--gray-200);
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-link:hover {
  text-decoration-color: var(--red);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--gray-600);
  font-size: 13px;
}

.hero-figure {
  margin: 0;
}

.image-frame {
  padding: 12px;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-figure figcaption,
.gallery figcaption,
.portrait figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.4;
}

.caption-mark {
  width: 6px;
  height: 6px;
  background: var(--red);
  flex: none;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section--soft {
  background: var(--gray-50);
}

.section--tight {
  padding: clamp(40px, 6vw, 64px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.08;
}

.lead {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--gray-600);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

section[id],
main[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- Ce que vous trouverez dedans ---------- */

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-200);
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}

.feature-number {
  padding-top: 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.6;
}

.theme-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
}

.theme-label {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-list li {
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Encadré de précision ---------- */

.precision-box {
  max-width: 900px;
  padding: clamp(24px, 4vw, 40px);
  border-left: 4px solid var(--navy);
  background: var(--gray-50);
}

.precision-label {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.precision-box h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.precision-text {
  max-width: 62ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.gallery > figure {
  grid-column: span 2;
  margin: 0;
}

.gallery > figure.gallery-wide {
  grid-column: span 3;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gray-200);
  object-fit: cover;
}

.gallery-wide img {
  aspect-ratio: 3 / 2;
}

.gallery figcaption {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Formulaire ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.form-intro h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.08;
}

.form-intro .lead {
  max-width: 40ch;
}

.form-intro > p:not(.eyebrow):not(.lead) {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--gray-600);
  font-size: 16px;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.label-note,
.label-required {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-600);
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(1, 38, 83, 0.12);
  outline: none;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.field-hint {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.4;
}

.char-count {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
}

.char-count.is-near-limit {
  color: var(--navy);
  font-weight: 700;
}

.field-error {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.field-error::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--red);
  vertical-align: 1px;
}

.field--consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.field--consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--navy);
}

.field--consent label {
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.field--consent .field-error {
  grid-column: 2;
  margin-top: 0;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin: 14px 0 0;
  color: var(--gray-600);
  font-size: 12px;
  line-height: 1.5;
}

.form-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: var(--gray-50);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
}

.form-error a {
  color: var(--navy);
}

.form-success {
  padding: 8px 0;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.form-success h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.form-success p {
  color: var(--gray-600);
}

.form-success .text-link {
  margin-top: 8px;
}

/* ---------- À propos ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.portrait {
  max-width: 360px;
  margin: 0;
}

.portrait-frame {
  padding: 12px;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.portrait-monogram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  color: var(--white);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.portrait-monogram::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 40px;
  height: 4px;
  background: var(--red);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

.about-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.about-text {
  max-width: 62ch;
  margin: 0;
  color: var(--gray-700);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.about-text + .about-text {
  margin-top: 1em;
}

/* ---------- Contact ---------- */

.section--contact {
  border-top: 1px solid var(--gray-200);
}

.contact-inner {
  max-width: 760px;
  text-align: center;
}

.contact-inner .eyebrow {
  justify-content: center;
}

.contact-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
}

.contact-text {
  margin: 0 0 28px;
  color: var(--gray-600);
  font-size: 18px;
}

.contact-text a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding: 36px 0 40px;
  background: var(--navy);
  color: var(--white);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-top > p {
  margin: 0;
  color: var(--white);
  font-size: 14px;
}

.legal {
  max-width: 720px;
}

.legal summary {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  list-style: none;
}

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

.legal summary::after {
  content: "+";
  display: inline-block;
  margin-left: 8px;
  color: var(--red);
  font-weight: 700;
}

.legal[open] summary::after {
  content: "−";
}

.legal-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-600);
  color: var(--gray-200);
  font-size: 14px;
  line-height: 1.6;
}

.legal-content p {
  margin: 0 0 10px;
}

.legal-content strong {
  color: var(--white);
}

.legal-content a {
  color: var(--white);
}

/* ---------- Tablette / mobile ---------- */

@media (max-width: 980px) {
  .brand {
    display: none;
  }

  .header-inner {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .nav-link {
    min-height: 48px;
    padding: 8px;
    border-radius: var(--radius);
    font-size: 13px;
  }

  .nav-link--buy {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 19px;
    letter-spacing: -0.01em;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-figure {
    width: 100%;
    max-width: 520px;
    justify-self: center;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature {
    padding: 24px 0;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery > figure,
  .gallery > figure.gallery-wide {
    grid-column: 1 / -1;
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .portrait {
    max-width: 280px;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
  }

  section[id],
  main[id] {
    scroll-margin-top: 160px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  .eyebrow-sep {
    display: none;
  }

  .eyebrow-edition {
    display: block;
  }

  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hero-actions {
    gap: 14px;
  }

  .price-value {
    font-size: 26px;
  }

  .btn {
    min-height: 50px;
    padding: 12px 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .feature {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .feature h3 {
    font-size: 18px;
  }

  .form-card {
    padding: 20px;
  }

  .field-foot {
    flex-direction: column;
    gap: 2px;
  }

  .contact-text {
    font-size: 16px;
  }

  .contact-text a {
    overflow-wrap: anywhere;
  }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
