/* Polices auto-hébergées — conformité RGPD (pas de transfert vers Google) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-mono-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/syne-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #090d12;
  --surface: #0f1620;
  --surface2: #161f2e;
  --accent: #00e5ff;
  --accent2: #7b5ea7;
  --accent3: #ff6b35;
  --text: #e8edf5;
  --muted: #6b7a94;
  --border: rgba(0,229,255,0.12);
  --card: #111a27;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.7; overflow-x: hidden; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.6;
}

.grid-bg {
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 70px;
  background: rgba(9,13,18,0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
nav ul a { color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; transition: color 0.2s; }
nav ul a:hover, nav ul a.active { color: var(--accent); }
.nav-cta { background: var(--accent) !important; color: var(--bg) !important; padding: 8px 18px; border-radius: 4px; font-weight: 700 !important; }

/* PAGE HEADER */
.page-header {
  position: relative; z-index: 1;
  padding: 140px 40px 80px;
  overflow: hidden;
}
.page-header-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.section-label { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
h1.page-title { font-family: 'Syne', sans-serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.page-subtitle { color: var(--muted); font-size: 1.05rem; max-width: 580px; }

/* SECTIONS */
.content-section { position: relative; z-index: 1; padding: 80px 40px; }
.content-section.alt { background: var(--surface); }

h2.section-title { font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
h3.sub-title { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }

/* BUTTONS */
.btn-primary { background: var(--accent); color: var(--bg); padding: 14px 28px; border-radius: 6px; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-block; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 0 30px rgba(0,229,255,0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,229,255,0.35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); padding: 14px 28px; border-radius: 6px; font-weight: 500; font-size: 0.95rem; text-decoration: none; display: inline-block; transition: border-color 0.2s, background 0.2s; }
.btn-ghost:hover { border-color: var(--accent); background: rgba(0,229,255,0.05); }

/* CARDS */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: rgba(0,229,255,0.35); transform: translateY(-3px); }

/* BADGE */
.badge { font-size: 0.7rem; padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border); color: var(--muted); font-family: 'Space Mono', monospace; }
.badge-green { border-color: rgba(56,201,138,0.3); color: #38c98a; }
.badge-blue { border-color: rgba(0,229,255,0.3); color: var(--accent); }
.badge-purple { border-color: rgba(123,94,167,0.3); color: #a78bda; }
.badge-orange { border-color: rgba(255,107,53,0.3); color: var(--accent3); }

/* TAGS */
.tag { display: inline-block; font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 100px; margin-bottom: 16px; }
.tag-ai { background: rgba(0,229,255,0.1); color: var(--accent); }
.tag-devops { background: rgba(123,94,167,0.15); color: #a78bda; }
.tag-security { background: rgba(255,107,53,0.1); color: var(--accent3); }
.tag-web { background: rgba(56,201,138,0.1); color: #38c98a; }
.tag-cloud { background: rgba(99,102,241,0.1); color: #818cf8; }

/* AFFILIATE LINK */
.ext-link { display: block; text-align: center; background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.2); color: var(--accent); padding: 10px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: all 0.2s; }
.ext-link:hover { background: rgba(0,229,255,0.15); border-color: var(--accent); }
.ext-link small { display: block; font-size: 0.65rem; font-weight: 400; color: var(--muted); margin-top: 2px; font-family: 'Space Mono', monospace; }

/* HOSTINGER BANNER */
.hostinger-banner { background: linear-gradient(135deg, #0f1620 0%, #161f2e 100%); border: 1px solid rgba(123,94,167,0.3); border-radius: 20px; padding: 56px; margin: 0 40px 80px; position: relative; overflow: hidden; z-index: 1; }
.hostinger-banner::before { content: ''; position: absolute; top: -80px; right: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(123,94,167,0.15) 0%, transparent 70%); }
.banner-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.banner-text p { color: var(--muted); max-width: 480px; margin-top: 8px; }
.banner-perks { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.perk { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.perk-icon { width: 28px; height: 28px; background: rgba(0,229,255,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.btn-hostinger { background: linear-gradient(135deg, #7b5ea7, #a78bda); color: white; padding: 16px 36px; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; display: block; text-align: center; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 0 40px rgba(123,94,167,0.3); }
.btn-hostinger:hover { transform: translateY(-3px); box-shadow: 0 0 60px rgba(123,94,167,0.5); }
.ext-link-notice { font-size: 0.7rem; color: var(--muted); margin-top: 10px; font-family: 'Space Mono', monospace; text-align: center; }

/* FOOTER */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 40px 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; margin-top: 14px; max-width: 280px; }
.footer-affil { font-size: 0.72rem; color: var(--muted); font-family: 'Space Mono', monospace; background: rgba(0,229,255,0.05); border: 1px solid rgba(0,229,255,0.1); padding: 6px 14px; border-radius: 100px; display: inline-block; margin-top: 16px; }
.footer-col h5 { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; color: var(--text); letter-spacing: 0.04em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: var(--muted); font-family: 'Space Mono', monospace; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; max-width: 480px; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 24px; z-index: 9999; box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: slideUp 0.4s ease; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner h4 { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; }
.cookie-banner p { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-accept { background: var(--accent); color: var(--bg); border: none; padding: 9px 20px; border-radius: 6px; font-weight: 700; font-size: 0.82rem; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.cookie-refuse { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 9px 20px; border-radius: 6px; font-size: 0.82rem; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: color 0.2s; }
.cookie-refuse:hover { color: var(--text); }

/* FORMS */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
label { font-size: 0.8rem; color: var(--muted); font-family: 'Space Mono', monospace; letter-spacing: 0.05em; }
input, select, textarea { background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 12px 16px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; transition: border-color 0.2s; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--surface2); }
.form-submit { width: 100%; background: var(--accent); color: var(--bg); border: none; padding: 14px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: opacity 0.2s, transform 0.2s; margin-top: 8px; }
.form-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.rgpd-notice { font-size: 0.72rem; color: var(--muted); margin-top: 12px; font-family: 'Space Mono', monospace; line-height: 1.5; }

/* LEGAL PAGES */
.legal-content { max-width: 800px; position: relative; z-index: 1; padding: 140px 40px 80px; }
.legal-content h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.legal-content .last-update { font-family: 'Space Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-bottom: 48px; }
.legal-content h2 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; margin: 40px 0 12px; color: var(--accent); }
.legal-content p { color: var(--muted); margin-bottom: 16px; font-size: 0.92rem; line-height: 1.8; }
.legal-content ul { color: var(--muted); font-size: 0.92rem; line-height: 1.8; padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content a { color: var(--accent); }
.legal-divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ANIMATIONS */
@keyframes fadeUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  nav ul { display: none; }
  .page-header, .legal-content { padding: 120px 20px 60px; }
  .content-section { padding: 60px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hostinger-banner { margin: 0 20px 60px; padding: 32px 24px; }
  .banner-inner { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}
