/* ====================================================================
   propagANews — Site public (vitrine + pages de contenu)
   Charte « Claude » : fond crème chaud, éditorial clair, accent BLEU ardoise.
   Polices hébergées en LOCAL (RGPD). Tous les noms de classes sont
   conservés : le HTML/PHP n'a pas à changer, seules les valeurs bougent.
   ==================================================================== */

/* ─── Polices locales (woff2, latin) ─── */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/_font/playfair-400.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/_font/playfair-700.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('/_font/playfair-900.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/_font/dmsans-300.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/_font/dmsans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/_font/dmsans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/_font/dmsans-700.woff2') format('woff2'); }

:root {
  /* Fonds chauds façon Claude */
  --bg: #faf9f5;          /* crème principal (page) */
  --bg-2: #f0eee6;        /* beige doux (panneaux, sections alternées) */
  --bg-3: #e8e5da;        /* beige soutenu */
  --surface: #ffffff;     /* cartes blanches */
  /* Texte near-black chaud */
  --fg: #1a1a18;
  --fg-mute: #5f5e57;     /* secondaire — assombri pour rester AA sur crème */
  /* Accent BLEU ardoise éditorial (remplace l'ancien or) */
  --accent: #2f62a8;
  --accent-strong: #244e86;   /* hover / texte bleu contrasté */
  --accent-soft: #e9eff7;     /* tint bleu très clair (fonds de survol) */
  --accent-line: #c3d2e8;     /* bordures bleutées discrètes */
  /* États */
  --green: #3f7d56; --blue: #2f62a8; --red: #c0563f;
  --border: #e4e1d6;      /* bordures douces sur crème */
  --dark: #1f1e1c;        /* sections sombres ponctuelles si besoin */
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: 'DM Sans', system-ui, sans-serif; font-weight: 400; line-height: 1.65; scroll-behavior: smooth; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; } /* filet de sécurité : images fluides */

/* Lien d'évitement (RGAA) */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Nav */
nav.top { position: sticky; top: 0; z-index: 50; background: rgba(250,249,245,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand .a { color: var(--accent); }
.nav-links a { color: var(--fg-mute); margin-left: 22px; font-size: 15px; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: #fff; }
.nav-links a.btn-ghost { color: var(--accent); }
.nav-links .btn { margin-left: 22px; }

/* Bouton burger : masqué en desktop, visible en mobile */
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin: 0; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(250,249,245,0.98); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { margin: 0; padding: 14px 24px; width: 100%; }
  .nav-links .btn { margin: 8px 24px; width: auto; text-align: center; }
}

.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; transition: .15s; border: none; }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-strong); text-decoration: none; }
.btn-ghost { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 16px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 90px 0 70px; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding: 56px 0 40px; } }
.pill { display: inline-block; padding: 5px 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 22px; }
.hero h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
@media (max-width: 880px) { .hero h1 { font-size: 38px; } }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p.lead { color: var(--fg-mute); font-size: 19px; margin: 0 0 30px; }
.hero-cta .btn { margin-right: 12px; margin-bottom: 10px; }
.hero-img img { width: 100%; border-radius: 14px; border: 1px solid var(--border); display: block; box-shadow: 0 24px 50px rgba(40,38,30,.14); }

section { padding: 64px 0; border-top: 1px solid var(--border); }
h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 34px; margin: 0 0 12px; }
h2 em { color: var(--accent); font-style: italic; font-weight: 400; }
.sub { color: var(--fg-mute); font-size: 17px; max-width: 720px; margin-bottom: 38px; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--fg-mute); font-size: 16px; }
.prose h2 { margin-top: 40px; }
.prose strong { color: var(--fg); }
.section--first { border-top: 0; }
.lead-line { font-size: 20px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.step .n { font-family: 'Playfair Display', serif; color: var(--accent); font-size: 28px; font-weight: 700; }
.step h3 { font-size: 16px; margin: 8px 0 6px; font-weight: 600; }
.step p { color: var(--fg-mute); font-size: 13.5px; margin: 0; }

/* Problématiques */
.probs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 980px) { .probs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .probs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .probs { grid-template-columns: 1fr; } }
.prob { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(47, 98, 168, .05); transition: transform .18s ease, box-shadow .18s ease; }
.prob:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(47, 98, 168, .12); }
.prob img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 28%; display: block; background: var(--bg-2); }
.prob-body { padding: 18px 20px; display: flex; gap: 10px; align-items: flex-start; }
.prob .x { color: var(--red); font-size: 18px; line-height: 1.3; flex-shrink: 0; }
.prob p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--fg); }

/* Solution (3 étapes) */
.sol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .sol { grid-template-columns: 1fr; } }
.sol .s { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--accent-line); border-radius: 14px; padding: 26px; }
.sol .s .n { font-family: 'Playfair Display', serif; color: var(--accent); font-size: 34px; font-weight: 900; }
.sol .s h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 6px 0 8px; }
.sol .s p { color: var(--fg-mute); margin: 0; font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.feature img { width: 100%; height: 150px; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
.feature .body { padding: 22px 24px; }
.feature h3 { font-family: 'Playfair Display', serif; font-size: 21px; margin: 0 0 8px; }
.feature p { color: var(--fg-mute); margin: 0; font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* Sélecteur de langue FR / EN */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 22px; font-size: 14px; }
.lang-switch a { color: var(--fg-mute); }
.lang-switch a.active { color: var(--accent); font-weight: 600; }
.lang-switch a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 880px) {
  .nav-links .lang-switch { padding: 12px 24px; margin: 0; }
  .nav-links .lang-switch a { display: inline; width: auto; padding: 0; }
}
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.plan .name { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--accent); font-weight: 600; }
.plan .price { font-family: 'Playfair Display', serif; font-size: 30px; margin: 8px 0 14px; }
.plan .price .unit { font-size: 15px; color: var(--fg-mute); }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; flex: 1 1 auto; }
.plan li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--fg-mute); }
.plan li:last-child { border-bottom: none; }
.plan li b { color: var(--fg); font-weight: 600; }

/* Add-on (modules complémentaires) */
.addon { margin-top: 28px; background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--accent-line); border-radius: 16px; padding: 30px 36px; display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 36px; align-items: start; }
@media (max-width: 880px) { .addon { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }
.addon-tag { display: inline-block; padding: 4px 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 999px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); font-weight: 600; margin-bottom: 14px; }
.addon-title { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; margin: 0 0 6px; line-height: 1.1; }
.addon-title em { color: var(--accent); font-style: italic; font-weight: 400; }
.addon-lead { color: var(--fg-mute); margin: 0 0 14px; font-size: 14.5px; }
.addon-price { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--accent); font-weight: 700; margin-top: 8px; }
.addon-price .unit { font-size: 14px; color: var(--fg-mute); font-family: 'DM Sans', sans-serif; font-weight: 400; margin-left: 4px; }
.addon-features { list-style: none; padding: 0; margin: 0; }
.addon-features li { padding: 8px 0; font-size: 14.5px; color: var(--fg); border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; }
.addon-features li:last-child { border-bottom: none; }
.addon-features li .v { color: var(--green); flex-shrink: 0; }
.addon-features li b { font-weight: 600; color: var(--fg); }
.addon-note { font-size: 12.5px; color: var(--fg-mute); margin: 18px 0 0; grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border); line-height: 1.55; }

.note-sub { margin-top: 24px; font-size: 14.5px; }
.note-sub strong { color: var(--fg); }

.cta-final { text-align: center; }
.cta-final h2 { font-size: 40px; }
.cta-final .sub { margin: 0 auto 28px; }

footer.site { border-top: 1px solid var(--border); padding: 32px 0; color: var(--fg-mute); font-size: 13px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer.site .a { color: var(--accent); }
footer.site nav a { color: var(--fg-mute); margin-right: 16px; }

/* Page hors-ligne (PWA) */
.offline-brand { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 900; margin-bottom: 18px; }
.offline-brand .a { color: var(--accent); }
