/* Copy-Right.fr — noir encre, vermillon tampon, typo massive */
:root {
  --noir: #0d0c0a;
  --noir-2: #161411;
  --noir-3: #211e1a;
  --blanc: #f7f4ee;
  --gris: #a39d92;
  --gris-2: #6e6960;
  --verm: #e0472f;
  --verm-vif: #ff5a3c;
  --verm-dark: #b4351f;
  --ligne: #2b2822;
  --ligne-clair: #e6e1d7;
  --ok: #3d8f63;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--verm); color: #fff; }

body {
  font-family: "Public Sans", system-ui, sans-serif;
  background: var(--noir);
  color: var(--blanc);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--verm); color: #fff; padding: 8px 14px; z-index: 50; }

/* ===== Header ===== */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 12, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ligne);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand {
  font-family: "Public Sans", sans-serif;
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--blanc);
  text-decoration: none;
  letter-spacing: 0.12em;
  display: inline-flex; align-items: center; gap: 11px;
}
.brand .tld { color: var(--verm-vif); }
.stamp {
  width: 30px; height: 30px;
  flex-shrink: 0;
  transform: rotate(-8deg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(224, 71, 47, 0.22);
}
.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a {
  color: var(--gris);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--verm);
  transition: width 0.22s ease;
}
.nav a:hover, .nav a.active { color: var(--blanc); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* ===== Page head (pages intérieures) ===== */
.page-head {
  padding: 72px 0 56px;
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(224, 71, 47, 0.14), transparent 60%),
    var(--noir);
  border-bottom: 1px solid var(--ligne);
}
.crumb { font-size: 0.8rem; color: var(--gris-2); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.crumb a { color: var(--gris-2); text-decoration: none; }
.crumb a:hover { color: var(--verm); }
.crumb span { margin: 0 4px; }
h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 860px;
}

/* ===== Corps de page : sections claires ===== */
main { background: var(--blanc); color: var(--noir); }
main section { padding: 64px 0; }
main section.dark { background: var(--noir); color: var(--blanc); }
main section.alt { background: #efeae1; }

h2 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--noir);
}
main section.dark h2 { color: var(--blanc); }
.kicker {
  display: block;
  font-family: "Public Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--verm);
  margin-bottom: 12px;
}
h3 { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.28rem; margin: 30px 0 10px; letter-spacing: -0.01em; }
p { margin-bottom: 15px; color: #46423b; }
main section.dark p { color: var(--gris); }
p strong, li strong { color: var(--noir); }
main section.dark p strong, main section.dark li strong { color: var(--blanc); }
main a { color: var(--verm-dark); text-decoration-color: rgba(224, 71, 47, 0.35); text-underline-offset: 3px; font-weight: 600; }
main a:hover { color: var(--verm); text-decoration-color: var(--verm); }
main ul, main ol { margin: 0 0 18px 22px; color: #46423b; }
main li { margin-bottom: 8px; }

.lead { font-size: 1.22rem; line-height: 1.6; color: var(--noir); font-weight: 500; max-width: 780px; }

/* Encadré */
.note {
  border-left: 5px solid var(--verm);
  background: #fff;
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 26px 0;
  box-shadow: 0 2px 14px rgba(13, 12, 10, 0.07);
}
.note p:last-child { margin-bottom: 0; }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 26px 0; border-radius: 14px; box-shadow: 0 3px 20px rgba(13, 12, 10, 0.08); }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 0.94rem; }
th { background: var(--noir); color: var(--blanc); text-align: left; padding: 14px 16px; font-weight: 700; white-space: nowrap; }
td { border-top: 1px solid var(--ligne-clair); padding: 13px 16px; color: #46423b; vertical-align: top; }
tr.hl td { background: #fdf0ed; color: var(--noir); border-top-color: rgba(224, 71, 47, 0.25); }
tr.hl td:first-child { box-shadow: inset 4px 0 0 var(--verm); }

/* ===== Cartes guides ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 34px 0 8px; }
.card {
  position: relative;
  background: var(--noir-2);
  border: 1px solid var(--ligne);
  border-radius: 16px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: var(--blanc);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: block;
}
.card::before {
  content: attr(data-n);
  position: absolute; top: 14px; right: 18px;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 2.6rem;
  color: rgba(247, 244, 238, 0.07);
  line-height: 1;
  transition: color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--verm); }
.card:hover::before { color: rgba(224, 71, 47, 0.35); }
.card .k {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card .d { font-size: 0.9rem; color: var(--gris); line-height: 1.55; display: block; }
.card .go {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--verm-vif);
}
.card .go::after { content: " →"; transition: margin-left 0.18s ease; margin-left: 2px; }
.card:hover .go::after { margin-left: 8px; }

/* ===== Étapes ===== */
.steps { counter-reset: step; list-style: none; margin: 30px 0 10px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 66px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px;
  width: 2px; background: var(--ligne-clair);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  background: var(--verm);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  transform: rotate(-4deg);
  box-shadow: 0 4px 12px rgba(224, 71, 47, 0.3);
}
main section.dark .steps li:not(:last-child)::after { background: var(--ligne); }

/* ===== FAQ ===== */
details {
  background: #fff;
  border: 1px solid var(--ligne-clair);
  border-radius: 12px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 700;
  color: var(--noir);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--verm); font-weight: 800; font-size: 1.3rem; line-height: 1; transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details > p, details > div { padding: 0 20px 16px; }

/* ===== CTA ===== */
.cta {
  position: relative;
  background:
    radial-gradient(600px 260px at 85% -20%, rgba(255, 90, 60, 0.35), transparent 65%),
    var(--noir);
  border-radius: 20px;
  padding: 44px 40px;
  margin: 44px 0 8px;
  color: var(--blanc);
  overflow: hidden;
}
.cta::before {
  content: "©";
  position: absolute; right: -30px; bottom: -60px;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 14rem;
  color: rgba(224, 71, 47, 0.12);
  line-height: 1;
  transform: rotate(-10deg);
}
.cta h2, .cta h3 { color: var(--blanc); margin-top: 0; position: relative; }
.cta p { color: var(--gris); position: relative; max-width: 560px; }
.btn {
  position: relative;
  display: inline-block;
  background: var(--verm);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 15px 34px;
  border-radius: 12px;
  margin-top: 10px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--verm-vif); transform: translateY(-2px); }
.cta .fine { font-size: 0.78rem; color: var(--gris-2); margin-top: 14px; margin-bottom: 0; }

/* ===== HERO (accueil) ===== */
.hero {
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(224, 71, 47, 0.22), transparent 60%),
    radial-gradient(500px 300px at 5% 90%, rgba(224, 71, 47, 0.08), transparent 60%),
    var(--noir);
  color: var(--blanc);
  padding: 100px 0 84px !important;
  border-bottom: 1px solid var(--ligne);
}
.hero .kicker { margin-bottom: 20px; }
.hero h1, .hero .h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 0.99;
  letter-spacing: -0.032em;
  max-width: 900px;
  color: var(--blanc);
}
.hero .mark {
  color: var(--verm-vif);
  position: relative;
  white-space: nowrap;
}
.hero .lead { margin-top: 28px; max-width: 640px; color: var(--gris); font-size: 1.18rem; font-weight: 400; }
.hero .lead strong { color: var(--blanc); }
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-ghost {
  display: inline-block;
  color: var(--blanc) !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 12px;
  border: 1px solid var(--ligne);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: var(--verm); background: rgba(224, 71, 47, 0.08); }

/* Bande stats */
.strip {
  border-top: 1px solid var(--ligne);
  background: var(--noir-2);
  padding: 0 !important;
}
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip .cell { padding: 26px 20px; text-align: center; border-left: 1px solid var(--ligne); }
.strip .cell:first-child { border-left: none; }
.strip .n { font-family: "Fraunces", serif; font-weight: 900; font-size: 1.7rem; color: var(--blanc); display: block; line-height: 1.15; }
.strip .l { font-size: 0.8rem; color: var(--gris-2); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* ===== Footer ===== */
.site-foot { background: var(--noir); color: var(--gris); border-top: 1px solid var(--ligne); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 52px 24px 30px; }
.brand-foot { font-family: "Public Sans", sans-serif; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.12em; margin-bottom: 10px; color: var(--blanc); display: flex; align-items: center; gap: 10px; }
.brand-foot .tld { color: var(--verm-vif); }
.brand-foot .stamp { width: 26px; height: 26px; }
.foot-title { font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gris-2); margin-bottom: 14px; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: var(--gris); text-decoration: none; font-size: 0.92rem; }
.site-foot a:hover { color: var(--verm-vif); }
.muted { color: var(--gris-2); font-size: 0.9rem; }
.muted a { color: var(--gris); }
.legal { border-top: 1px solid var(--ligne); padding-top: 18px; padding-bottom: 24px; }
.legal p { font-size: 0.78rem; color: var(--gris-2); }

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .bar { justify-content: center; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .cell { border-left: none; border-top: 1px solid var(--ligne); }
  .strip .cell:first-child { border-top: none; }
  main section { padding: 48px 0; }
}
