/* ── Fabien Deslieux — Styles personnalisés ───────────────────────────────── */

/* Réinitialisation douce */
*, *::before, *::after { box-sizing: border-box; }

/* Variables couleurs */
:root {
  --bleu: #000091;
  --bleu-hover: #1212ff;
  --texte: #1e1e1e;
  --gris-clair: #f6f6f6;
  --blanc: #ffffff;
}

body {
  font-family: "Marianne", Arial, sans-serif;
  color: var(--texte);
  margin: 0;
}

/* ── Navigation ── */
.nav-header {
  background: var(--blanc);
  border-bottom: 2px solid var(--bleu);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nav-brand a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bleu);
  text-decoration: none;
  display: block;
}
.nav-brand span {
  font-size: 0.8rem;
  font-weight: 400;
  color: #666;
  display: block;
}
.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--texte);
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: #e8e8f8;
  color: var(--bleu);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #000091 0%, #1e3a5f 100%);
  color: var(--blanc);
  padding: 5rem 1.5rem;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--blanc);
}
.hero-role {
  font-size: 1.3rem;
  opacity: 0.9;
  margin: 0 0 1rem;
}
.hero-desc {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 650px;
  line-height: 1.6;
  margin: 0 0 2rem;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--blanc);
  color: var(--bleu);
  border: 2px solid var(--blanc);
}
.btn-primary:hover { background: #e8e8f8; }
.btn-outline {
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(255,255,255,0.7);
  margin-left: 0.75rem;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-bleu {
  background: var(--bleu);
  color: var(--blanc);
  border: 2px solid var(--bleu);
}
.btn-bleu:hover { background: var(--bleu-hover); border-color: var(--bleu-hover); }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 1.5rem; }
.section-alt { background: var(--gris-clair); }

/* ── Grille cartes ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--blanc);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.75rem;
  border-top: 4px solid var(--bleu);
}
.card h3 { color: var(--bleu); margin-top: 0; }

/* ── Citation ── */
.quote-block {
  background: #eeeeff;
  border-left: 4px solid var(--bleu);
  padding: 1.5rem 2rem;
  border-radius: 0 4px 4px 0;
  max-width: 800px;
  margin: 0 auto;
}
.quote-block p { font-size: 1.1rem; font-style: italic; margin: 0 0 0.5rem; }
.quote-block .author { font-size: 0.9rem; color: #555; font-style: normal; font-weight: 600; }

/* ── Timeline ── */
.timeline {
  border-left: 3px solid var(--bleu);
  padding-left: 2rem;
  margin: 2rem 0 2rem 0.5rem;
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 14px; height: 14px;
  background: var(--bleu);
  border-radius: 50%;
  border: 2px solid var(--blanc);
  box-shadow: 0 0 0 2px var(--bleu);
}
.timeline-date {
  font-size: 0.78rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}
.timeline-company {
  font-weight: 700;
  color: var(--bleu);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.timeline-item h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.timeline-item ul { padding-left: 1.2rem; color: #444; line-height: 1.7; }

/* ── Barres de compétences ── */
.skill-bar { margin-bottom: 1.2rem; }
.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.skill-track {
  height: 9px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--bleu);
  border-radius: 5px;
  transition: width 0.6s ease;
}

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  background: #eeeeff;
  color: var(--bleu);
  border: 1px solid #c0c0f0;
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Info box ── */
.info-box {
  background: #e8f0ff;
  border-left: 4px solid var(--bleu);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1rem;
}
.info-box h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--bleu); }
.info-box p { margin: 0; font-size: 0.92rem; }

/* ── Contact ── */
.contact-card {
  background: var(--blanc);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 2rem;
  border-top: 4px solid var(--bleu);
}
.contact-card a { color: var(--bleu); }
.contact-card hr { border: none; border-top: 1px solid #eee; margin: 1.5rem 0; }

/* ── Layout deux colonnes ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.two-col-wide {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 700px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 0.5rem; }
}

/* ── Pied de page ── */
footer {
  background: #1b1b35;
  color: rgba(255,255,255,0.8);
  padding: 2rem 1.5rem;
  margin-top: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: var(--blanc); }
.footer-links { display: flex; gap: 1.5rem; }

h1, h2, h3, h4 { line-height: 1.3; }
h2.section-title { font-size: 1.7rem; margin-bottom: 0.5rem; }
h2.section-title + p { color: #555; margin-bottom: 0; }
