/*
Theme Name: Curabec Portfolio
Theme URI: https://www.curabec.fr
Author: Yann Curabec
Description: Thème custom portfolio — sobre, premium, cybersécurité
Version: 1.0
*/

/* =========================================
   VARIABLES
   ========================================= */
:root {
  --bg-900: #1E2D4A;
  --bg-800: #243361;
  --bg-700: #2C3D76;
  --bg-100: #F0F5FF;
  --bg-0:   #FFFFFF;

  --blue:       #2E6BC5;
  --blue-dark:  #1E56A8;
  --blue-light: #4A8FE0;
  --cyan:       #38BDF8;
  --cyan-dim:   rgba(56, 189, 248, 0.10);

  --white:     #FFFFFF;
  --text-200:  #DBEAFE;
  --text-400:  #6B8CB8;
  --text-600:  #374151;
  --text-900:  #0F172A;

  --border-dark:  rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.07);

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1160px;
  --radius:    14px;
  --radius-sm:  8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  0.65s;
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-900);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { line-height: 1.7; }

.text-gradient {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section          { padding: 96px 0; }
.section--dark    { background: var(--bg-800); color: var(--white); }
.section--darkest { background: var(--bg-900); color: var(--white); }
.section--light   { background: var(--bg-100); }
.section--white   { background: var(--bg-0); }

.section__label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section__title    { margin-bottom: 16px; }
.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-400);
  max-width: 560px;
  margin-bottom: 48px;
}
.section--light .section__subtitle,
.section--white .section__subtitle { color: var(--text-600); }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(30, 45, 74, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-dark);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar__logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar__logo img,
.navbar__logo .custom-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-dark);
}
.navbar__logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar__logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.navbar__name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar__menu li a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-200);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.navbar__menu li a:hover,
.navbar__menu li.current-menu-item a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-900);
  color: var(--white);
  overflow: hidden;
  padding-top: 68px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}
.orb--1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -15%;
  right: -8%;
}
.orb--2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: 8%;
  left: 3%;
  opacity: 0.18;
}
.hero__body {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 80px 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero__title    { margin-bottom: 16px; }
.hero__role {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-200);
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 1.05rem;
  color: var(--text-400);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(46, 107, 197, 0.35);
}
.btn--primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 30px rgba(46, 107, 197, 0.5);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-dark);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* =========================================
   CARDS
   ========================================= */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.22);
}
.card--light {
  background: var(--bg-0);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}
.card--light:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* =========================================
   GRIDS
   ========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* =========================================
   LOCATION CARDS
   ========================================= */
.loc-card { text-align: center; }
.loc-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cyan-dim);
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--cyan);
}
.loc-card__icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.loc-card__label {
  font-family: var(--font-head);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.loc-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.loc-card__desc {
  font-size: 0.88rem;
  color: var(--text-400);
  line-height: 1.55;
}

/* =========================================
   FORMATION BLOCK
   ========================================= */
.formation__content { max-width: 520px; }
.formation__content p {
  color: var(--text-400);
  margin-top: 20px;
  margin-bottom: 32px;
}
.formation__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.formation__stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.formation__stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  min-width: 64px;
}
.formation__stat-label {
  font-size: 0.9rem;
  color: var(--text-400);
  line-height: 1.45;
}

/* =========================================
   SKILLS / PILLS
   ========================================= */
.skills-group { margin-bottom: 32px; }
.skills-group:last-child { margin-bottom: 0; }
.skills-group__title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-200);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  padding: 6px 14px;
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pill:hover {
  background: var(--cyan-dim);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--cyan);
}
.pill--light {
  color: var(--text-600);
  background: rgba(46, 107, 197, 0.06);
  border-color: rgba(46, 107, 197, 0.14);
}
.pill--light:hover {
  background: rgba(46, 107, 197, 0.10);
  border-color: var(--blue);
  color: var(--blue);
}

/* =========================================
   HERO SPLIT (À PROPOS)
   ========================================= */
.hero__split {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  width: 100%;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.hero__split-text { flex: 1; max-width: 600px; }
.hero__avatar {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  max-width: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(56, 189, 248, 0.30);
  box-shadow: 0 0 40px rgba(46, 107, 197, 0.28);
}
.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 768px) {
  .hero__split { flex-direction: column-reverse; gap: 32px; padding: 60px 0 40px; }
  .hero__avatar { width: 120px; height: 120px; }
}

/* =========================================
   QUALITY CARDS (À PROPOS)
   ========================================= */
.quality-card { display: flex; flex-direction: column; gap: 14px; }
.quality-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46, 107, 197, 0.10), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.quality-card__icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.quality-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.quality-card__desc {
  font-size: 0.88rem;
  color: var(--text-400);
  line-height: 1.6;
}
.section--light .quality-card__title { color: var(--text-900); }
.section--light .quality-card__desc  { color: var(--text-600); }

/* =========================================
   TIMELINE
   ========================================= */
.timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--cyan), rgba(34,211,238,0));
}
.timeline__item {
  position: relative;
  padding: 0 0 44px 28px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -7px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--bg-800);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline__date {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.timeline__role {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.timeline__company {
  font-size: 0.88rem;
  color: var(--text-400);
  margin-bottom: 14px;
}
.timeline__level {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-400);
  margin-bottom: 10px;
}
.timeline__desc {
  font-size: 0.88rem;
  color: var(--text-400);
  line-height: 1.65;
}
.timeline__level {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-400);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.section--light .timeline__level { color: var(--text-600); }
.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.timeline__tag {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--blue-light);
  background: rgba(46, 107, 197, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.18);
  padding: 3px 10px;
  border-radius: 100px;
}

/* =========================================
   TIMELINE — VARIANTE LIGHT + BADGES
   ========================================= */
.timeline--light::before {
  background: linear-gradient(to bottom, var(--blue), var(--cyan), rgba(56, 189, 248, 0));
}
.timeline--light .timeline__dot {
  border-color: var(--bg-100);
}
.timeline__dot--future {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 2px var(--cyan);
}
.timeline--light .timeline__dot--future {
  border-color: var(--bg-100);
}

.timeline__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.timeline__badge--formation {
  background: rgba(46, 107, 197, 0.08);
  color: var(--blue);
  border: 1px solid rgba(46, 107, 197, 0.22);
}
.timeline__badge--encours {
  background: rgba(56, 189, 248, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.timeline__badge--futur {
  background: linear-gradient(135deg, rgba(46, 107, 197, 0.10), rgba(56, 189, 248, 0.10));
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* =========================================
   NGE STATS
   ========================================= */
.nge-stats {
  display: flex;
  gap: 32px;
}
.nge-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nge-stat__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.nge-stat__label {
  font-size: 0.8rem;
  color: var(--text-400);
}

/* =========================================
   PROJET PROFESSIONNEL
   ========================================= */
.projet-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 700px;
}
.projet-card p {
  color: var(--text-400);
  margin-top: 16px;
  line-height: 1.7;
}
.projet-card .btn { margin-top: 32px; }

/* =========================================
   VEILLE — ÉTAPES (définition)
   ========================================= */
.veille-step { display: flex; flex-direction: column; gap: 12px; }
.veille-step__num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(46, 107, 197, 0.15);
  line-height: 1;
}
.veille-step__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-900);
}
.veille-step__desc {
  font-size: 0.88rem;
  color: var(--text-600);
  line-height: 1.65;
}

/* =========================================
   VEILLE — SOURCES
   ========================================= */
.source-card { display: flex; flex-direction: column; gap: 14px; }
.source-card__logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
}
.source-card__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.source-card__logo-wrap svg {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--cyan);
}
.source-card__type {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.source-card__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 2px;
}
.source-card__desc {
  font-size: 0.86rem;
  color: var(--text-400);
  line-height: 1.55;
  flex: 1;
}
.source-card__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  margin-top: auto;
}
.source-card__link:hover { opacity: 0.75; }

/* =========================================
   RSS FEEDS
   ========================================= */
.rss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.rss-col__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}
.rss-col__favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}
.rss-col__title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.rss-col .rss-feed { padding: 0; margin: 0; }
.rss-col .rss-feed li {
  border-bottom: 1px solid var(--border-dark);
  padding: 10px 0;
}
.rss-col .rss-feed li:last-child { border-bottom: none; }
.rss-col .rss-feed a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-200);
  line-height: 1.45;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.rss-col .rss-feed a:hover { color: var(--cyan); }
.rss-feed__date {
  font-size: 0.72rem;
  color: var(--text-400);
  display: block;
}
.rss-col__more {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  transition: opacity 0.2s;
}
.rss-col__more:hover { opacity: 0.7; }

/* =========================================
   PROJECT CARDS (E5 / E6)
   ========================================= */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.project-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.project-card__num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(56, 189, 248, 0.12);
  line-height: 1;
}
.project-card__tag {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.project-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}
.project-card__desc {
  font-size: 0.86rem;
  color: var(--text-400);
  line-height: 1.65;
  flex: 1;
}
.project-card__footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-900);
  border-top: 1px solid var(--border-dark);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}
.footer__tagline {
  font-size: 0.83rem;
  color: var(--text-400);
}
.footer__links { display: flex; align-items: center; gap: 20px; }
.footer__links a {
  font-size: 0.86rem;
  color: var(--text-400);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--cyan); }
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-400);
}

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible { transform: none; }

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal-group].is-visible > * { opacity: 1; transform: none; }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.2s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.3s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.4s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.5s; }
[data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 0.6s; }
[data-reveal-group].is-visible > *:nth-child(8) { transition-delay: 0.7s; }
[data-reveal-group].is-visible > *:nth-child(9) { transition-delay: 0.8s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .grid-3      { grid-template-columns: repeat(2, 1fr); }
  .grid-split  { grid-template-columns: 1fr; gap: 40px; }
  .rss-grid    { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-2  { grid-template-columns: 1fr; }

  .hero__cta { flex-direction: column; align-items: flex-start; }

  .navbar__menu {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(30, 45, 74, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
  }
  .navbar__menu.open { display: flex; }
  .navbar__menu li a  { font-size: 1.2rem; padding: 12px 28px; }
  .navbar__toggle     { display: flex; }

  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .formation__visual { gap: 12px; }
  .projet-card { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section   { padding: 56px 0; }
  .hero__body { padding: 60px 0; }
}
