/* === tantaoui.com — feuille de style unifiée === */

/* ========== FONTS — Inter self-hosted (latin + latin-ext) ========== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-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: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter-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 {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #eff6ff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green: #059669;
  --red: #dc2626;
  --radius: 10px;
}

/* ========== RESET / BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ========== UTILITY CLASSES ========== */
.list-reset { list-style: none; padding: 0; margin: 0; }
.flex-wrap-gap { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== NAV ========== */
nav {
  position: fixed; top: 0; width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100; padding: 14px 0;
}
nav .container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-name { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.3px; text-decoration: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.9rem; color: var(--gray-500);
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: #93c5fd; }
.nav-links a.active { color: var(--gray-900); font-weight: 600; }

/* Hamburger button */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero { padding: 140px 0 80px; }

.hero-photo {
  flex-shrink: 0; width: 200px; height: 200px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--gray-200);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-text { flex: 1; }
.hero-tag {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  padding: 5px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 20px; letter-spacing: 0.3px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15;
  color: var(--gray-900); margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero p { font-size: 1.1rem; color: var(--gray-600); max-width: 520px; margin-bottom: 20px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white; padding: 14px 28px;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.hero-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gray-500); padding: 14px 20px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.hero-link:hover { color: var(--gray-700); }
.hero-subtitle { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 16px; }
.hero-detail { margin-top: 16px; color: var(--gray-500); font-size: 1rem; }
.hero-actions { margin-top: 28px; }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section.alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; letter-spacing: -0.3px; }
.section-sub { color: var(--gray-500); margin-bottom: 16px; font-size: 1.05rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== CTA SECTION ========== */
.cta-section { padding: 80px 0; text-align: center; }
.cta-box {
  background: var(--gray-900); border-radius: 16px; padding: 56px 40px; color: white;
}
.cta-box h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--gray-400); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; font-size: 1rem; }

/* ========== FORM ========== */
.form-inline { max-width: 420px; margin: 0 auto; text-align: left; }
.form-inline label { display: block; font-weight: 600; font-size: 0.8rem; margin-bottom: 6px; color: var(--gray-300); }
.form-inline input, .form-inline textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-700);
  background: var(--gray-800); color: white; border-radius: 8px;
  font-size: 0.9rem; font-family: inherit; margin-bottom: 14px; outline: none;
  transition: border 0.2s;
}
.form-inline input::placeholder, .form-inline textarea::placeholder { color: var(--gray-500); }
.form-inline input:focus, .form-inline textarea:focus { border-color: var(--accent); }
.form-inline textarea { resize: vertical; min-height: 80px; }
.form-inline button {
  width: 100%; padding: 14px; background: var(--accent); color: white;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.form-inline button:hover { background: var(--accent-dark); }
.form-inline button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-disclaimer { font-size: 0.7rem; color: var(--gray-500); margin-top: 12px; line-height: 1.5; }
.form-disclaimer a { color: var(--gray-400); }
/* Honeypot — caché visuellement ET au screen reader */
.form-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
/* Success / error messages */
.success-msg { text-align: center; padding: 32px 0; }
.success-msg .check { font-size: 2.5rem; margin-bottom: 12px; }
.success-msg h3 { color: white; font-size: 1.1rem; margin-bottom: 8px; }
.success-msg p { color: var(--gray-400); font-size: 0.9rem; }
.form-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid var(--red);
  border-radius: 8px;
  color: #fecaca;
  font-size: 0.85rem;
  text-align: center;
}

/* ========== FOOTER ========== */
footer {
  padding: 32px 0; text-align: center; color: var(--gray-400);
  font-size: 0.8rem; border-top: 1px solid var(--gray-200);
}
footer a { color: var(--gray-500); text-decoration: none; }
footer a:hover { color: var(--gray-700); }

/* ========== FOCUS VISIBLE ========== */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* =====================================================
   PAGE: HOME (index)
   ===================================================== */
.page-home {
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-home nav { position: static; }

.page-home .entry {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-home .photo {
  width: 120px; height: 120px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--gray-200);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  margin: 0 auto 28px;
}
.page-home .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.page-home .entry h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--gray-900);
  margin-bottom: 8px; letter-spacing: -0.5px;
}
.page-home .entry .subtitle {
  font-size: 1.05rem; color: var(--gray-600);
  margin-bottom: 32px;
}
.page-home .entry .tagline {
  font-size: 0.95rem; color: var(--gray-600);
  max-width: 560px; margin: 0 auto 56px;
  line-height: 1.7;
}
.page-home .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  text-align: left;
}
.page-home .card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.page-home .card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.page-home .card .tag {
  display: inline-block;
  background: var(--accent-light); color: var(--accent);
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}
.page-home .card h2 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 10px;
}
.page-home .card p {
  font-size: 0.9rem; color: var(--gray-600);
  margin-bottom: 20px;
}
.page-home .card .arrow {
  font-size: 0.9rem; font-weight: 700;
  color: var(--accent);
}

/* =====================================================
   PAGE: CTO FREELANCE
   ===================================================== */
.page-cto .hero-main-right h1 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.page-cto .hero-cta { box-shadow: 0 2px 8px rgba(37,99,235,0.3); }

.page-cto .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.page-cto .card {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; background: white; transition: box-shadow 0.2s;
}
.page-cto .card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.page-cto .card .icon { font-size: 1.5rem; margin-bottom: 14px; }
.page-cto .card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.page-cto .card p { font-size: 0.88rem; color: var(--gray-600); }
.page-cto .card--problem { border-left: 4px solid var(--red); }
.page-cto .card--solution { border-left: 4px solid var(--green); }

.page-cto .process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; counter-reset: step;
}
.page-cto .process-step {
  text-align: center; padding: 32px 20px;
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); position: relative;
}
.page-cto .process-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--accent);
  color: white; font-weight: 800; font-size: 1.1rem;
  border-radius: 50%; margin: 0 auto 16px;
}
.page-cto .process-step h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.page-cto .process-step p { font-size: 0.85rem; color: var(--gray-600); }

.page-cto .guarantees-title {
  text-align: center; font-size: 1.1rem; font-weight: 700;
  color: var(--gray-900); margin-top: 48px; margin-bottom: 20px;
}
.page-cto .guarantees { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 20px; }
.page-cto .guarantee { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--gray-700); font-weight: 600; }
.page-cto .guarantee .check { color: var(--green); font-size: 1.2rem; }

/* Hero layout — chiffres à gauche */
.page-cto .hero-layout-h { display: flex; gap: 0; align-items: stretch; }
.page-cto .hero-sidebar-left {
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; padding: 40px 36px 40px 0;
  border-right: 1px solid var(--gray-200);
  flex-shrink: 0; min-width: 150px;
}
.page-cto .hero-sidebar-left .hero-photo { width: 130px; height: 130px; flex-shrink: 0; }
.page-cto .sidebar-credentials {
  display: flex; flex-direction: column; gap: 22px; align-items: center;
}
.page-cto .sidebar-credential { text-align: center; }
.page-cto .sidebar-credential strong {
  display: block; font-size: 1.4rem; font-weight: 800;
  color: var(--accent); line-height: 1.2;
}
.page-cto .sidebar-credential .sidebar-emoji {
  display: block; font-size: 1.4rem; line-height: 1.2;
}
.page-cto .sidebar-credential span {
  display: block; font-size: 0.72rem; color: var(--gray-500);
  line-height: 1.3; max-width: 100px;
}
.page-cto .hero-main-right { padding: 40px 0 40px 36px; flex: 1; min-width: 0; }

/* =====================================================
   PAGE: ARCHITECTE LOGICIEL
   ===================================================== */
.page-architecte .hero-text h1 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.page-architecte .hero-meta {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 28px; font-size: 0.85rem; color: var(--gray-500);
}
.page-architecte .hero-stats {
  display: flex; gap: 40px; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid var(--gray-200);
}
.page-architecte .hero-stat strong {
  display: block; font-size: 1.6rem; font-weight: 800; color: var(--gray-900);
}
.page-architecte .hero-stat span { font-size: 0.8rem; color: var(--gray-500); }

.page-architecte .expertise-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.page-architecte .expertise-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; background: white; transition: box-shadow 0.2s;
}
.page-architecte .expertise-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.page-architecte .expertise-card .icon { font-size: 1.5rem; margin-bottom: 14px; }
.page-architecte .expertise-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.page-architecte .expertise-card p { font-size: 0.88rem; color: var(--gray-600); }

.page-architecte .track-list { display: flex; flex-direction: column; gap: 20px; }
.page-architecte .track-card {
  display: flex; gap: 24px; align-items: center;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; background: white;
}
.page-architecte .track-period {
  flex-shrink: 0; width: 100px; text-align: center;
  background: var(--gray-50); border-radius: 8px; padding: 12px 8px;
}
.page-architecte .track-period .years { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.page-architecte .track-period .duration { font-size: 0.7rem; color: var(--gray-400); margin-top: 2px; }
.page-architecte .track-content { flex: 1; }
.page-architecte .track-content h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.page-architecte .track-content .company { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.page-architecte .track-content p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 12px; }
.page-architecte .track-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.page-architecte .track-tag {
  background: var(--gray-100); color: var(--gray-600); padding: 3px 10px;
  border-radius: 5px; font-size: 0.75rem; font-weight: 500;
}
.page-architecte .track-bullet {
  padding: 4px 0; font-size: 0.88rem; color: var(--gray-600);
  display: flex; align-items: baseline; gap: 8px;
}
.page-architecte .track-bullet::before { content: "•"; color: var(--accent); font-weight: 700; }

.page-architecte .tech-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.page-architecte .tech-group h3 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--gray-400); margin-bottom: 12px;
}
.page-architecte .tech-group ul { list-style: none; }
.page-architecte .tech-group ul li {
  padding: 6px 0; font-size: 0.9rem; color: var(--gray-700);
  display: flex; align-items: center; gap: 8px;
}
.page-architecte .tech-group ul li::before { content: "•"; color: var(--accent); font-weight: 700; }

.page-architecte .info-bar {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  padding: 20px 0; color: var(--gray-500); font-size: 0.85rem;
}
.page-architecte .info-bar span { display: flex; align-items: center; gap: 6px; }

/* Hero layout — sidebar gauche (photo + stack) */
.page-architecte .hero-layout { display: flex; gap: 0; align-items: stretch; }
.page-architecte .hero-sidebar-left {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--gray-200);
  flex-shrink: 0; min-width: 160px;
}
.page-architecte .hero-sidebar-left .hero-photo { width: 130px; height: 130px; flex-shrink: 0; }
.page-architecte .sidebar-stack {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.page-architecte .sidebar-stack-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--gray-600); font-weight: 500; line-height: 1.3;
}
.page-architecte .sidebar-stack-item .icon { font-size: 1.1rem; flex-shrink: 0; }
.page-architecte .hero-layout .hero-text { padding: 40px 0 40px 40px; flex: 1; }

/* =====================================================
   PAGE: LEGAL (mentions-legales, confidentialite)
   ===================================================== */
.page-legal .content { max-width: 700px; margin: 0 auto; padding: 120px 24px 80px; }
.page-legal .content h1 { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); margin-bottom: 40px; }
.page-legal .content h2 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin: 32px 0 12px; }
.page-legal .content p { font-size: 0.92rem; color: var(--gray-600); margin-bottom: 12px; line-height: 1.7; }
.page-legal .content ul { margin: 0 0 12px 20px; }
.page-legal .content ul li { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 4px; }
.page-legal .content a { color: var(--accent); }

/* =====================================================
   PAGE: 404
   ===================================================== */
.page-404 {
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-404 .error-page {
  max-width: 600px; margin: 0 auto; padding: 120px 24px 80px;
  text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.page-404 .error-page .code { font-size: 5rem; font-weight: 800; color: var(--gray-200); line-height: 1; margin-bottom: 16px; }
.page-404 .error-page h1 { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.page-404 .error-page p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 32px; }
.page-404 .error-page a {
  display: inline-block; background: var(--accent); color: white;
  padding: 12px 28px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: background 0.2s;
}
.page-404 .error-page a:hover { background: var(--accent-dark); }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-photo { width: 150px; height: 150px; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Nav dropdown */
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
  }
  .nav-links a:last-child { border-bottom: none; }

  /* page-architecte */
  .page-architecte .hero-layout { flex-direction: column; }
  .page-architecte .hero-sidebar-left {
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    padding: 0 0 24px 0; border-right: none;
    border-bottom: 1px solid var(--gray-200);
    min-width: auto; gap: 16px;
  }
  .page-architecte .hero-sidebar-left .hero-photo { width: 100px; height: 100px; }
  .page-architecte .sidebar-stack {
    flex-direction: row; flex-wrap: wrap; gap: 12px; justify-content: center;
  }
  .page-architecte .hero-layout .hero-text { padding: 24px 0 0 0; }
  .page-architecte .hero-stats { gap: 24px; }
  .page-architecte .track-card { flex-direction: column; }
  .page-architecte .track-period { width: auto; }

  /* page-cto */
  .page-cto .hero-layout-h { flex-direction: column; }
  .page-cto .hero-sidebar-left {
    flex-direction: column; align-items: center;
    border-right: none; padding: 0 0 20px;
    gap: 16px; min-width: unset;
  }
  .page-cto .hero-sidebar-left .hero-photo { width: 100px; height: 100px; }
  .page-cto .sidebar-credentials {
    flex-direction: row; gap: 20px; flex-wrap: wrap; justify-content: center;
  }
  .page-cto .sidebar-credential { min-width: 60px; }
  .page-cto .sidebar-credential strong { font-size: 1.1rem; }
  .page-cto .sidebar-credential .sidebar-emoji { font-size: 1.1rem; }
  .page-cto .sidebar-credential span { font-size: 0.65rem; max-width: 70px; }
  .page-cto .hero-main-right { padding: 20px 0 0; }
  .page-cto .hero-main-right h1 { font-size: 1.3rem; }
  .page-cto .hero-main-right p { font-size: 0.95rem; }
  .page-cto .guarantees { gap: 20px; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .page-home .card:hover,
  .hero-cta:hover {
    transform: none;
  }
}
