/* ============================================================
   CV Benoît Rataux – Feuille de styles
   Structure : Variables → Reset → Layout → Sidebar → Main
              → Composants → Responsive → Print
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --teal: #06b6d4;
  --teal-dark: #0891b2;
  --teal-light: #67e8f9;
  --white: #ffffff;
  /*--sidebar-bg: #0f172a;*/
  --sidebar-bg: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgb(106 125 229 / 0.22));
  /*--page-bg: #e2e8f0;*/
  --page-bg: radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.2) 0%, transparent 42%),
  radial-gradient(circle at 85% 10%, rgba(14, 116, 144, 0.18) 0%, transparent 46%),
  linear-gradient(155deg, #020617 0%, #0f172a 42%, #1e293b 100%);
  --muted: #94a3b8;
  --muted-dark: #64748b;
  --text-main: #1e293b;
  --text-body: #334155;
  --text-light: #cbd5e1;
  --accent-bg: #f0fdfa;
  --radius-sm: 6px;
  --radius-md: 10px;
  --transition: 150ms ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Citations */
blockquote {
  position: relative;
  font-style: italic;
  font-size: 1.5em;
  text-align: center;
  color: var(--text-main);
  line-height: 1.6;
  padding-left: 1.3em;
  padding-top: 0.2em;
  padding-bottom: 0;
}

blockquote::before {
  content: "“";
  font-family: "Arial Rounded MT Bold", serif;
  font-size: 1.6em;
  line-height: 1;
  position: absolute;
  top: 0;
  left: 0;
}

blockquote::after {
  content: "”";
  font-family: "Arial Rounded MT Bold", serif;
  font-size: 1.6em;
  line-height: 1;
  position: absolute;
  bottom: -0.5em;
  right: 0;
}

/* ── Bouton impression ─────────────────────────────────────── */
.print-buttons-wrapper {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.print-btn {
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  transition: background var(--transition), transform var(--transition);
}

.print-btn:hover {
  background: #22d3ee;
  transform: translateY(-1px);
}

.print-hint {
  font-size: 11px;
  font-style: italic;
  color: var(--muted-dark);
  max-width: 260px;
  text-align: center;
  line-height: 1.4;
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
}

/* ── CV Page  ───────────────────────────────────────────────── */
.page-wrapper {
  margin: 0 auto;
  padding: 0;
}

.cv-page {
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: var(--sidebar-bg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.58),
  0 1px 0 rgba(255, 255, 255, 0.14) inset;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

/* Titres de sections */
.section-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

.sidebar-name {
  line-height: 1.02;
  color: var(--white);
  text-wrap: balance;
}

.dot-pattern {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
  width: 6em;
  opacity: 0.25;
  margin-top: 1em;
}

.dot-pattern span {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--teal);
}

.sidebar-section-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--teal-light);
}

.sidebar-section-subtitle {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Status */
.status-list,
.contact-list,
.aptitude-list,
.lang-list,
.interest-list {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.status-item,
.contact-item,
.aptitude-item,
.lang-item,
.interest-item {
  display: flex;
  gap: 0.5em;
  color: var(--text-light);
  line-height: 1.5;
  word-break: keep-all;
  align-items: center;
}

.status-icon,
.contact-icon,
.aptitude-icon,
.lang-icon,
.interest-icon {
}


.status-item {
}

.status-icon {
  flex-shrink: 0;
  text-align: center;
  width: 1.2em;
  height: 1.2em;
}

/* Contact */
.contact-list {
}

.contact-item {
}

.contact-icon {
  flex-shrink: 0;
  text-align: center;
  width: 1.2em;
  height: 1.2em;
}

/* Compétences — sous-catégories */
.pill-group {
  display: flex;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 0.15em 1em;
  font-weight: 500;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--teal-light);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  letter-spacing: 0.2em;
  line-height: 1.6;
}

/* Langues */
.lang-list {
}

.lang-item {
}

/* Aptitudes */
.aptitude-list {
}

.aptitude-item {
}

/* Intérêts */
.interest-list {
}

.interest-item {
  color: var(--muted);
}

/* ── Contenu principal ──────────────────────────────────────── */
.main-content {
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.88));
}

.main-title {
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0;
  margin-bottom: 2px;
  color: var(--navy);
}

/* Titres de section — main */
.section-title--main {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}

/* Expériences / Formation */

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.exp-title,
.formation-degree {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  flex: 1;
}

.exp-date {
  color: var(--muted);
  font-style: italic;
  white-space: nowrap;
}

.exp-company,
.formation-school {
  font-weight: 600;
  color: var(--teal-dark);
}

.exp-note,
.formation-note {
  color: var(--muted);
}

.exp-note ul,
.formation-note ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.exp-note li,
.formation-note li {
  color: var(--text-body);
  line-height: 1.5;
  padding-left: 1.5em;
  position: relative;
}

.exp-note li::before,
.formation-note li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
