/* constructeurdesite.fr
   Thème permanent par défaut. Le thème Black Friday s'active avec la classe .bf sur <html>.
   Pour sortir du Black Friday : retirer class="bf" des pages (le script le fait aussi
   automatiquement après la date de fin). */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f1f0eb;
  --text: #17171a;
  --muted: #5d5d66;
  --line: #e2e1da;
  --accent: #2f4bd8;
  --accent-ink: #ffffff;
  --accent-soft: #e8ecfc;
  --ok: #157a46;
  --radius: 14px;
  --maxw: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.bf {
  --bg: #0b0b0d;
  --surface: #151518;
  --surface-2: #1d1d21;
  --text: #f3f3ef;
  --muted: #a3a3ab;
  --line: #2a2a30;
  --accent: #ffd23f;
  --accent-ink: #111111;
  --accent-soft: #2a2410;
  --ok: #5fd38d;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
html.bf main a:not(.btn) { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Bandeau Black Friday */
.ribbon { display: none; }
html.bf .ribbon {
  display: block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  padding: 10px 16px;
}
html.bf .ribbon a { color: var(--accent-ink); }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 40px; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, a.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }

.big-deal {
  display: none;
}
html.bf .big-deal {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 18px;
  font-weight: 800;
}
html.bf .big-deal strong { font-size: clamp(3rem, 9vw, 5.5rem); color: var(--accent); line-height: 1; }
html.bf .big-deal span { color: var(--muted); font-size: 1.1rem; }

.countdown { font-weight: 700; color: var(--accent); }

/* Sections */
section { padding: 44px 0; }
section.alt { background: var(--surface-2); }
.section-intro { color: var(--muted); max-width: 720px; margin-bottom: 28px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 0.8rem; font-weight: 700; background: var(--accent-soft); color: var(--text); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.card.highlight { border-color: var(--accent); }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Étapes */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 66px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }

/* Tableau */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p:last-child { margin-bottom: 0; }

/* Article */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); padding-top: 20px; }
.breadcrumb a { color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; }

/* Auteur */
.author { display: flex; gap: 16px; align-items: flex-start; }
.author .avatar { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer a { color: var(--muted); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }

.disclosure { font-size: 0.9rem; color: var(--muted); }

/* Éléments liés à la période Black Friday */
.bf-only { display: none; }
html.bf .bf-only { display: block; }
html.bf .bf-hide { display: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 24px; }
  section { padding: 32px 0; }
  .nav { gap: 12px; }
}

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

/* Bannières officielles du kit affilié Elementor */
.banner { margin-top: 28px; }
.banner a { display: block; }
.banner img { display: block; width: 100%; height: auto; border-radius: 12px; }
.prose .banner { margin: 28px 0 0; }
.banner a[hidden], [hidden] { display: none !important; }
