:root {
--bg: #f8fafc;          /* fond global */
--bg-alt: #ffffff;      /* cartes / sections */
--card: #ffffff;
--accent: #0284c7;      /* bleu */
--accent-soft: rgba(2, 132, 199, 0.10);
--text: #0f172a;        /* texte principal */
--muted: #475569;       /* texte secondaire */
--border: #e2e8f0;      /* bordures */
--radius: 16px;
--shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
--transition: 200ms ease;
}

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

html, body {
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #ffffff 100%);
color: var(--text);
scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

.page {
max-width: 1040px;
margin: 0 auto;
padding: 1.5rem 1.5rem 1rem;
}

header {
position: sticky;
top: 0;
z-index: 10;
backdrop-filter: blur(16px);
background: rgba(248, 250, 252, 0.85);
border-bottom: 1px solid var(--border);
}

.nav-inner {
max-width: 1040px;
margin: 0 auto;
padding: 0.75rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}

.nav-left { display: flex; align-items: center; gap: 0.6rem; }

.logo-circle {
width: 32px; height: 32px; border-radius: 999px;
border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
font-weight: 700; font-size: 0.85rem;
background: radial-gradient(circle, rgba(2,132,199,0.12), transparent 70%);
}

.logo-text {
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--muted);
}

nav ul {
display: flex;
gap: 1rem;
list-style: none;
font-size: 0.9rem;
}

nav a {
padding: 0.35rem 0.7rem;
border-radius: 999px;
color: var(--muted);
border: 1px solid transparent;
transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

nav a:hover {
background: rgba(2, 132, 199, 0.06);
border-color: rgba(2, 132, 199, 0.25);
color: var(--text);
transform: translateY(-1px);
}

/* Hero */
.hero {
display: grid;
grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
gap: 2.5rem;
align-items: center;
}

.hero-main h1 {
font-size: clamp(2.4rem, 4vw, 3.2rem);
line-height: 1.1;
margin-bottom: 0.75rem;
}

.hero-main h1 span { color: var(--accent); }

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

.hero-text {
font-size: 0.98rem;
color: #1f2937;
line-height: 1.7;
margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.btn {
display: inline-flex; align-items: center; gap: 0.4rem;
padding: 0.7rem 1.1rem;
border-radius: 999px;
border: 1px solid transparent;
font-size: 0.9rem;
cursor: pointer;
transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary {
background: linear-gradient(135deg, #38bdf8, #0284c7);
color: #ffffff;
font-weight: 700;
box-shadow: 0 14px 28px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
transform: translateY(-1px);
box-shadow: 0 18px 40px rgba(2, 132, 199, 0.35);
}

.btn-outline {
border-color: var(--border);
color: var(--text);
background: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
border-color: rgba(2, 132, 199, 0.45);
color: var(--accent);
background: rgba(2, 132, 199, 0.06);
transform: translateY(-1px);
}

.hero-meta {
display: flex; flex-wrap: wrap; gap: 1rem;
margin-top: 1.25rem;
font-size: 0.78rem;
color: var(--muted);
}

.hero-meta div {
display: flex; align-items: center; gap: 0.35rem;
padding: 0.35rem 0.7rem;
border-radius: 999px;
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.8);
}

.hero-card {
border-radius: 24px;
background: radial-gradient(circle at top, #ffffff 0%, #f1f5f9 100%);
border: 1px solid var(--border);
box-shadow: var(--shadow);
padding: 1.4rem;
position: relative;
overflow: hidden;
min-height: 220px;
}

.hero-card::before {
content: "";
position: absolute;
inset: -30%;
background:
  radial-gradient(circle at top left, rgba(56, 189, 248, 0.18) 0, transparent 55%),
  radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.12) 0, transparent 55%);
opacity: 0.55;
pointer-events: none;
}

.hero-card-inner { position: relative; z-index: 1; }

.badge {
display: inline-flex; align-items: center; gap: 0.45rem;
font-size: 0.75rem;
padding: 0.3rem 0.7rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.85);
border: 1px solid var(--border);
color: var(--muted);
margin-bottom: 1rem;
}

.badge-dot {
width: 8px; height: 8px; border-radius: 999px;
background: #16a34a;
box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.18);
}

.hero-card h2 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.hero-card p { font-size: 0.9rem; color: #1f2937; margin-bottom: 1rem; line-height: 1.6; }

.hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; }

.hero-stat {
padding: 0.55rem 0.7rem;
border-radius: 12px;
background: rgba(255, 255, 255, 0.85);
border: 1px solid var(--border);
min-width: 120px;
}

.hero-stat span { display: block; }
.hero-stat-label {
color: var(--muted);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.12em;
margin-bottom: 0.25rem;
}
.hero-stat-value { font-weight: 700; font-size: 0.98rem; }

main { margin-top: 3rem; display: flex; flex-direction: column; gap: 2.5rem; }

section {
border-radius: var(--radius);
background: rgba(255, 255, 255, 0.9);
border: 1px solid var(--border);
padding: 1.5rem 1.5rem 1.3rem;
box-shadow: var(--shadow);
}

.section-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}

.section-title {
font-size: 1rem;
font-weight: 700;
display: flex;
align-items: center;
gap: 0.5rem;
}

.section-title::before {
content: "";
width: 6px;
height: 20px;
border-radius: 999px;
background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.section-subtitle { font-size: 0.8rem; color: var(--muted); }

.section-body { font-size: 0.94rem; color: #1f2937; line-height: 1.7; }
.section-body p + p { margin-top: 0.8rem; }

/* Timeline */
.timeline {
margin-top: 0.3rem;
border-left: 1px solid rgba(148, 163, 184, 0.6);
padding-left: 1.3rem;
}

.timeline-item { position: relative; padding-bottom: 1.2rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
content: "";
position: absolute;
left: -1.5rem;
top: 0.2rem;
width: 11px;
height: 11px;
border-radius: 999px;
background: var(--accent);
border: 2px solid #ffffff;
box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18);
}

.timeline-period {
font-size: 0.8rem;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.12em;
margin-bottom: 0.2rem;
}

.timeline-role { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.1rem; }
.timeline-company { font-size: 0.9rem; color: #1d4ed8; margin-bottom: 0.25rem; }
.timeline-desc { font-size: 0.88rem; color: #0f172a; }

/* Skills */
.skills-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
margin-top: 0.6rem;
}

.skills-card {
border-radius: 14px;
background: radial-gradient(circle at top left, rgba(2, 132, 199, 0.08), rgba(255, 255, 255, 0.95));
border: 1px solid var(--border);
padding: 0.9rem;
font-size: 0.86rem;
}

.skills-card h3 { font-size: 0.88rem; margin-bottom: 0.4rem; }

.skills-tags {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
margin-top: 0.4rem;
}

.tag {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.7);
background: rgba(255, 255, 255, 0.9);
}

/* Formation & Contact */
.one-col {
display: grid;
gap: 1.5rem;
margin-top: 0.4rem;
}

.hobbies-list {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
font-size: 0.86rem;
}

.hobbies-list li {
padding: 0.3rem 0.65rem;
border-radius: 999px;
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.9);
}

.contact-grid {
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
gap: 1.3rem;
margin-top: 0.3rem;
font-size: 0.9rem;
}

.bubble {
border-radius: 18px;
padding: 1rem;
background: radial-gradient(circle at top, rgba(2, 132, 199, 0.10), rgba(255, 255, 255, 0.95));
border: 1px solid var(--border);
line-height: 1.7;
font-size: 0.9rem;
}

footer {
max-width: 1040px;
margin: 2rem auto 1rem;
padding: 0 1.5rem;
font-size: 0.8rem;
color: var(--muted);
display: flex;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}

footer a { text-decoration: underline; text-decoration-style: dotted; }

/* Responsive */
@media (max-width: 900px) {
.hero { grid-template-columns: 1fr; }
.hero-card { order: -1; }
}

@media (max-width: 768px) {
.nav-inner { padding-inline: 1rem; }
nav ul { display: none; }
.page { padding-inline: 1rem; }
section { padding-inline: 1.1rem; }
.skills-grid { grid-template-columns: 1fr; }
.two-cols, .contact-grid { grid-template-columns: 1fr; }
}

/* =========================
   FORMATION - mise en relief
   ========================= */
.edu-list{
  display: grid;
  gap: 0.9rem;
}

.edu-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.edu-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.edu-period-badge{
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(2,132,199,0.25);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.edu-title{
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.edu-subtitle{
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.edu-detail{
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #1f2937;
  line-height: 1.65;
}

/* =========================
   COMPÉTENCES - niveau/jauges
   ========================= */
.skill-list{
  display: grid;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.skill-row{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap: 0.75rem;
}

.skill-name{
  font-weight: 700;
  font-size: 0.9rem;
}

.skill-level{
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-bar{
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: rgba(148,163,184,0.25);
  border: 1px solid rgba(148,163,184,0.35);
  overflow: hidden;
}

.skill-bar > span{
  display:block;
  height:100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

/* petits helpers */
.muted-note{
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
/* =========================
   LOISIRS
   ========================= */
.hobbies-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.hobby-card{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
  padding: 1.2rem 0.8rem 1.1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hobby-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

.hobby-icon{
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  color: var(--accent);
}

.hobby-icon svg{
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.hobby-title{
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.hobby-subtitle{
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px){
  .hobbies-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px){
  .hobbies-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   LIEN LINKEDIN
   ========================= */
.linkedin-link{
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  transition: all var(--transition);
}

.linkedin-link svg{
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.linkedin-link:hover{
  color: var(--accent);
  border-color: rgba(2,132,199,0.45);
  background: rgba(2,132,199,0.06);
  transform: translateY(-1px);
}
