/* ============================================================
   Mon CV en ligne — feuille de style du site
   HTML/CSS statique pur. Palette : ivoire chaud, encre foncée,
   accent bleu profond. Typo : Sora (titres) + Inter (texte).
   ============================================================ */

/* ---------- Polices self-hostées ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-latin-700-normal.woff2') format('woff2');
}

/* ---------- Variables & base ---------- */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1a1e26;
  --ink-soft: #454d5d;
  --ink-mute: #737b8a;
  --accent: #2b50e0;
  --accent-dark: #1e3fc0;
  --accent-soft: #e9edfc;
  --line: #e6e4dc;
  --line-soft: #efede6;
  --green: #128a63;
  --green-soft: #e3f4ed;

  --font-title: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 33, 0.05), 0 2px 8px rgba(20, 24, 33, 0.04);
  --shadow-md: 0 2px 6px rgba(20, 24, 33, 0.06), 0 12px 32px rgba(20, 24, 33, 0.08);
  --shadow-lg: 0 4px 12px rgba(20, 24, 33, 0.08), 0 24px 64px rgba(20, 24, 33, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul, ol { padding-left: 1.3em; }

::selection { background: var(--accent-soft); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Structure ---------- */

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(43, 80, 224, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-mute); background: var(--surface); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.06rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--accent); }

.nav-desktop { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-link { color: var(--ink-soft); font-weight: 500; font-size: 0.96rem; }
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.4rem;
  border-radius: 8px;
  color: var(--ink);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--accent-soft); }
.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
  min-width: 210px;
}
.nav-mobile-panel a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}
.nav-mobile-panel a:hover { background: var(--bg); text-decoration: none; }
.nav-mobile-panel .btn { margin-top: 0.4rem; color: #fff; text-align: center; }

@media (max-width: 780px) {
  .nav-desktop { display: none; }
  .header-cta { display: none; }
  .nav-mobile { display: block; margin-left: auto; }
  .header-inner { gap: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.6em; }

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 500px;
  margin-bottom: 1.6rem;
}

.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-points li { display: flex; align-items: center; gap: 0.45rem; }
.hero-points li::before {
  content: '';
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.4' fill='none' stroke='%23128a63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-visual .cv-thumb {
  --thumb-scale: 0.52;
  transform: rotate(1.6deg);
  box-shadow: var(--shadow-lg);
  border-radius: 6px;
}

.hero-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-badge.b1 { top: 8%; left: 0; }
.hero-badge.b2 { bottom: 12%; right: 0; }
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.hero-badge .dot.blue { background: var(--accent); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ---------- Grilles & cartes ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* Étapes */

.step-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--accent-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ---------- Vignettes de modèles de CV ---------- */

.cv-thumb {
  --thumb-scale: 0.3;
  width: calc(794px * var(--thumb-scale));
  height: calc(1123px * var(--thumb-scale));
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  position: relative;
}

.cv-thumb .cv-sheet {
  transform: scale(var(--thumb-scale));
  transform-origin: top left;
}

.modele-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.modele-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.modele-card .cv-thumb {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.modele-card-body { text-align: center; }
.modele-card-body h3 { margin-bottom: 0.3rem; }
.modele-card-body p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.9rem; }

/* ---------- Listes à coches ---------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.check-list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.4' fill='none' stroke='%23128a63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-mute);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Fil d'Ariane ---------- */

.breadcrumbs { font-size: 0.88rem; color: var(--ink-mute); margin-bottom: 1.6rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: '›'; margin-right: 0.4rem; color: var(--ink-mute); }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Prose (articles) ---------- */

.prose { font-size: 1.06rem; color: var(--ink-soft); }
.prose h2 { margin-top: 2.2em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.18rem; }
.prose h2, .prose h3 { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.4rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); }

.article-meta { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 2rem; }

.article-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card h2, .article-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.article-card h2 a, .article-card h3 a { color: var(--ink); }
.article-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.article-card .article-lien { font-weight: 600; font-size: 0.92rem; }

/* ---------- Encart CTA ---------- */

.cta-panel {
  background: linear-gradient(135deg, #22409c 0%, var(--accent) 60%, #4f6fe8 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  text-align: center;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin-inline: auto; }
.cta-panel .btn {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: none;
  margin-top: 0.6rem;
}
.cta-panel .btn:hover { background: var(--accent-soft); }

/* ---------- Encart publicitaire (désactivé par défaut) ----------
   Réservé pour AdSense : voir CLAUDE.md, section Publicité. */

.ad-slot { margin-block: 2rem; min-height: 90px; display: none; align-items: center; justify-content: center; }
.ads-on .ad-slot { display: flex; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-title { font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.6rem; }
.footer-title span { color: var(--accent); }
.footer-baseline { color: var(--ink-mute); font-size: 0.92rem; max-width: 300px; }
.footer-head { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.9rem; color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.3rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.footer-bottom p { margin: 0; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Page 404 ---------- */

.page-404 { text-align: center; padding-block: 6rem; }
.page-404 .code {
  font-family: var(--font-title);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}
