/* Site d'Affirmée : direction artistique « Velours », reprise de src/theme/ (couleurs, polices, dégradé).
   Si le thème de l'app change, reporter ici les valeurs de :root. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_500Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_500Medium_Italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans_500Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  /* src/theme/colors.ts */
  --nude: #f7efea;
  --surface: #fffaf7;
  --text: #2a1220;
  --muted: #6e5560;
  --accent: #7a1f3d;
  --accent-soft: #f3ddd7;
  --on-accent: #fff6f2;
  --border: #e3d3cc;
  --champagne: #d9b98c;
  --night: #2a1220;
  --on-night: #fff3ee;
  --on-night-muted: #e7d3d8;
  /* src/theme/backgrounds.ts : « Bordeaux » (défaut) et « Poudre » */
  --velours: linear-gradient(164deg, #4a1830 0%, #2a1220 100%);
  --poudre: linear-gradient(164deg, #fbf3ef 0%, #ebcfc8 100%);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --page: 1080px;
  --prose: 720px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--nude);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* En-tête */

.site-header {
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  min-height: 48px;
  align-items: center;
}

/* La petite lumière de Nouma, comme le point de l'icône. */
.brand::after {
  content: '';
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  margin-left: 0.12em;
  align-self: flex-end;
  margin-bottom: 0.55em;
  background: radial-gradient(circle at 35% 35%, #fff4dc, var(--champagne));
  box-shadow: 0 0 10px rgba(217, 185, 140, 0.8);
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.12);
}

.on-light .site-nav a:hover,
.on-light .site-nav a[aria-current='page'] {
  background: var(--accent-soft);
}

/* Sur fond clair, la petite lumière prend un champagne plus soutenu pour rester visible. */
.on-light .brand::after {
  background: radial-gradient(circle at 35% 35%, #e8c896, #b07f45);
  box-shadow: 0 0 8px rgba(176, 127, 69, 0.45);
}

/* Accueil : velours */

.hero {
  background: var(--velours);
  color: var(--on-night);
  overflow: hidden;
}

.hero-body {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 72px;
}

.eyebrow {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--champagne);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 600;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--on-night-muted);
  max-width: 34em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 243, 238, 0.1);
  border: 1px solid rgba(217, 185, 140, 0.45);
  color: var(--on-night);
  font-weight: 500;
  margin-top: 12px;
}

.pill::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 10px rgba(217, 185, 140, 0.9);
}

/* Téléphone d'exemple : écran verrouillé avec une affirmation (comme le premier écran de l'app). */

.phone {
  justify-self: center;
  width: min(290px, 78vw);
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  padding: 10px;
  background: #170a11;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(217, 185, 140, 0.25);
}

.phone-screen {
  height: 100%;
  border-radius: 36px;
  background: var(--poudre);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 26px 30px;
  text-align: center;
}

.phone-day {
  font-weight: 600;
  font-size: 0.95rem;
}

.phone-time {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 4rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.phone-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.3;
  margin: auto 0;
}

.phone-brand {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 72px 0;
}

.section h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
}

.section-intro {
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

/* Nouma */

.night {
  background: var(--velours);
  color: var(--on-night);
}

.night .section-intro,
.night p {
  color: var(--on-night-muted);
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.nouma {
  justify-self: center;
  width: min(280px, 70vw);
  border-radius: 64px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.voice {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--champagne);
}

/* Premium */

.offer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: grid;
  gap: 24px;
}

.offer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.offer li {
  display: flex;
  gap: 12px;
}

.offer li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Pages de texte (aide, légal) */

.page-head {
  padding: 24px 0 8px;
}

.page-head h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: var(--prose);
  padding-bottom: 72px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 1.2em;
}

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

.toc {
  margin: 8px 0 32px;
}

/* Questions de l'aide */

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  min-height: 56px;
  font-weight: 600;
  position: relative;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq .answer {
  padding: 0 20px 18px;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

.help-call {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 32px 0;
}

/* Pied de page */

.site-footer {
  background: var(--night);
  color: var(--on-night-muted);
  padding: 40px 0 48px;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--on-night);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  margin-left: -8px;
}

.site-footer p {
  margin: 0 0 6px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }

  .hero-body {
    grid-template-columns: 1.2fr 1fr;
    padding-top: 48px;
    padding-bottom: 96px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1.3fr;
  }

  .offer {
    grid-template-columns: 1.2fr 1fr;
    padding: 40px;
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}
