/* Pages « référencement » de TheHooklyStudio : thème HooklyEdit (fond sombre, cyan, dégradé cyan → violet). Léger et sans police à télécharger. */
:root {
  color-scheme: dark;
  --bg: #0b0c10; --bg-alt: #0f1116; --panel: #13151b; --panel2: #1a1d25; --line: #272c38;
  --text: #f1f3f8; --muted: #a3abbc; --accent: #22d3ee; --accent-ink: #04161c;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6d8cf7 55%, #8b5cf6 100%);
  --display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }
.wrap { width: min(860px, 100% - 2rem); margin-inline: auto; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: 8px; z-index: 20; }

/* Haut de page */
.haut { position: sticky; top: 0; z-index: 10; background: rgba(11,12,16,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.haut .wrap { width: min(1160px, 100% - 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.haut nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.haut nav a { color: var(--muted); text-decoration: none; }
.haut nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 12px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 700; text-decoration: none; line-height: 1.3; }
.btn:hover { filter: brightness(1.07); }
.haut nav .btn { padding: .5rem 1rem; font-size: .9rem; }

/* Contenu */
main { padding-block: 1.5rem 3rem; }
.ariane { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }
.ariane a { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
p, li { color: #d8dce6; }
.chapo { font-size: 1.18rem; color: var(--text); }
strong { color: var(--text); }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .35rem; }
.encadre { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.encadre p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .97rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; background: var(--panel); }
.etapes { counter-reset: e; list-style: none; padding: 0; }
.etapes li { counter-increment: e; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft, rgba(34,211,238,.12)); color: var(--accent); font-weight: 700; display: grid; place-items: center; }

/* Questions fréquentes */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq details p { margin: .7rem 0 0; }

/* Appel à l'action */
.appel { margin: 3rem 0 1rem; padding: 1.75rem; border-radius: 18px; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.appel h2 { margin-top: 0; }
.appel .lien { margin-left: 1rem; }

/* À lire aussi */
.proches ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.proches li { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: grid; gap: .25rem; }
.proches li a { color: var(--text); font-weight: 600; text-decoration: none; }
.proches li a:hover { color: var(--accent); }
.proches li span { font-size: .82rem; color: var(--muted); }

/* Pied de page */
.pied { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 2.5rem 1.5rem; font-size: .93rem; }
.pied .wrap { width: min(1160px, 100% - 2rem); }
.pied-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; }
.pied-titre { font-weight: 700; color: var(--text); margin: 0 0 .6rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .35rem; }
.pied a { color: var(--muted); text-decoration: none; }
.pied a:hover { color: var(--text); }
.pied-legal { color: var(--muted); margin: 2rem 0 0; font-size: .85rem; }

@media (max-width: 640px) {
  .haut nav a:not(.btn) { display: none; }
  .appel .lien { display: block; margin: 1rem 0 0; }
}
