:root {
  --ink: #0b1b2b;        /* deep navy text */
  --cream: #f3f7fb;      /* very light blue background */
  --warm: #d5e4f7;       /* soft blue for hovers/accents */
  --rust: #1f6feb;       /* primary blue */
  --rust-light: #4b8dff; /* lighter blue hover */
  --sage: #2563eb;       /* section titles */
  --gold: #38bdf8;       /* secondary accent blue */
  --muted: #64748b;      /* muted text */
  --border: #c3d4ee;     /* subtle blue border */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

/* ── HEADER ── */
header {
  background: var(--ink);
  color: var(--cream);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--rust);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
}

.logo span { color: var(--rust-light); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--warm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover { color: var(--rust-light); }

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--rust);
}

.hero-text .role {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: #4a4440;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--rust);
  color: #fff;
}

.btn-primary:hover { background: var(--rust-light); }

.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover { background: var(--ink); color: var(--cream); }

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) sepia(10%);
  border: 1px solid var(--border);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1.5px solid var(--rust);
  z-index: -1;
}

/* ── MAIN ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

section {
  margin-bottom: 5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.5rem;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ── COMPÉTENCES ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-category h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--sage);
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category ul li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category ul li::before {
  content: '◆';
  font-size: 0.45rem;
  color: var(--rust);
}

/* Back-end list uses the same visual style, but kept as an ordered list in HTML */
.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.skill-bullet {
  font-size: 0.45rem;
  color: var(--rust);
}

/* ── TABLEAU FORMATIONS ── */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-caption {
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--warm);
}

thead {
  background: var(--ink);
  color: var(--cream);
}

thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:hover { background: var(--warm); }

tbody td {
  padding: 0.9rem 1.25rem;
  vertical-align: top;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.tag-edu { background: #e3efe0; color: var(--sage); }
.tag-work { background: #fde8df; color: var(--rust); }

/* ── RÉSEAUX SOCIAUX ── */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  background: #fff;
}

.social-link:hover {
  border-color: var(--rust);
  color: var(--rust);
  background: #fff8f5;
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

.contact-item a {
  color: var(--rust);
  text-decoration: none;
}

.contact-item a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: var(--warm);
  padding: 2.5rem 2rem;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  color: var(--muted);
}

footer a {
  color: var(--rust-light);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
  }

  .hero-photo { order: -1; max-width: 240px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }

  nav ul { gap: 1rem; }
}
