:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --bg-soft: #f2f2f6;
  --card: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-strong: rgba(0, 113, 227, 0.16);
  --accent-secondary: #34c759;
  --text-main: #1d1d1f;
  --text-soft: #515154;
  --text-softer: #86868b;
  --text-strong: #000000;
  --danger: #ff3b30;
  --radius-lg: 12px;
  --radius-full: 10px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #f5f5f7 52%, #f5f5f7);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #ffffff 0, #f5f5f7 60%, #f5f5f7);
}

.section-header {
  max-width: 680px;
  margin-bottom: 3rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--text-strong);
}

.section-subtitle {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 247, 0.96),
    rgba(245, 245, 247, 0.92),
    rgba(245, 245, 247, 0.85)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: conic-gradient(from 210deg, #0071e3, #34c759, #5856d6, #0071e3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-softer);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-softer);
  padding: 0.25rem 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.14s ease-out;
}

.nav a:hover {
  color: var(--text-main);
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-cta-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

/* HERO - Full page, fond SSII */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Fond de secours si l'image ne charge pas */
  background-color: #f5f7fa;
  background-image:
    linear-gradient(90deg, rgba(248, 249, 252, 0.92) 0%, rgba(248, 249, 252, 0.75) 35%, rgba(245, 247, 252, 0.45) 65%, rgba(240, 243, 249, 0.25) 100%),
    url("assets/hero-portrait.png");
  background-size: cover, cover;
  background-position: center, 55% center;
  background-repeat: no-repeat, no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 113, 227, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 113, 227, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
  pointer-events: none;
}

.hero-simple {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  color: var(--text-strong);
}

.hero-simple h1 {
  margin-bottom: 1.5rem;
  display: block;
}

.hero-simple h1 .accent {
  display: block;
  margin-top: 0.3rem;
}

.hero-simple .hero-subtitle {
  max-width: 100%;
  margin-bottom: 2rem;
}

.accent {
  background: linear-gradient(120deg, #0071e3, #0a84ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 38rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.hero-tags span {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
}

.scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-soft);
  transition: all 0.2s ease;
  animation: bounce 2s infinite;
}

.scroll-down:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 1);
  transform: translateY(4px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.scroll-down svg {
  width: 20px;
  height: 20px;
}

.scroll-down-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 3rem;
}

.scroll-down-wrap .scroll-down {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-softer);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.75rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-available {
  background: rgba(52, 199, 89, 0.14);
  color: #1c7c38;
  border: 1px solid rgba(52, 199, 89, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.14s ease-out,
    background 0.14s ease-out, border-color 0.14s ease-out;
}

.btn.primary {
  background: linear-gradient(120deg, #0071e3, #0a84ff);
  color: #ffffff;
  box-shadow: none;
}

.btn.primary:hover {
  transform: translateY(0);
  box-shadow: none;
}

.btn.ghost {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 1);
}

.btn.fullwidth {
  width: 100%;
}

.hero-card {
  background: radial-gradient(circle at top, #ffffff, #f5f5f7 60%, #f5f5f7);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.hero-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  object-fit: cover;
  max-height: 220px;
}

.hero-card h2 {
  margin: 0 0 0.2rem;
  font-size: 1.3rem;
}

.hero-role {
  margin: 0 0 1.3rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-availability {
  color: var(--accent);
  font-weight: 500;
}

.hero-impact {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: grid;
  gap: 0.85rem;
}

.hero-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.84rem;
}

.hero-list .label {
  color: var(--text-softer);
}

.hero-list .value {
  text-align: right;
  color: var(--text-main);
}

/* CARDS, LISTS */

.card {
  background: radial-gradient(circle at top left, #ffffff, #f5f5f7 60%, #f5f5f7);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.card-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
  max-height: 200px;
}

.card p {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.card-compact {
  padding: 1.4rem 1.3rem;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-list li {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-soft);
}

.pill-list.small li {
  font-size: 0.76rem;
}

/* EXPERIENCES GRID */

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.experience-card {
  background: radial-gradient(circle at top left, #ffffff, #f5f5f7 60%, #f5f5f7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.75rem;
  border-radius: 8px;
  font-size: 0.76rem;
  background: var(--accent-soft);
  color: #0f172a;
  font-weight: 500;
}

.experience-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.experience-card-header.no-logo .experience-logo {
  display: none;
}

.experience-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px;
}

.experience-card-header h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.experience-period {
  font-size: 0.82rem;
  color: var(--text-softer);
  margin: 0;
}

.experience-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-strong);
}

.experience-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .experiences-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .experiences-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CONTACT */

.contact-simple {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: center;
}

.contact-email {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  border: 2px solid var(--accent);
  transition: all 0.2s ease;
}

.contact-email:hover {
  background: var(--accent);
  color: #ffffff;
}

.contact-linkedin {
  font-size: 1rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  transition: all 0.2s ease;
}

.contact-linkedin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.contact-image {
  width: 100%;
  border-radius: 10px;
  margin: 0.5rem 0 1.5rem;
  object-fit: cover;
  max-height: 260px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.contact-list .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-softer);
}

.contact-list .value {
  font-size: 0.9rem;
  color: var(--text-main);
}

.contact-card {
  background: radial-gradient(circle at top left, #ffffff, #f5f5f7 60%, #f5f5f7);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.contact-note {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.82rem;
  color: var(--text-main);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-softer);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.6rem 0 2rem;
  background: radial-gradient(circle at top, #ffffff, #f5f5f7 60%, #f5f5f7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-softer);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.footer-main a {
  color: var(--text-soft);
}

.footer-main a:hover {
  color: var(--accent);
}

.footer-separator {
  color: var(--text-softer);
}

.back-to-top {
  padding: 0.3rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.back-to-top:hover {
  border-color: var(--accent);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .header-inner {
    padding-inline: 0.25rem;
  }

  .nav {
    display: flex;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 2.2rem, 640px);
  }

  .section {
    padding-block: 3.6rem;
  }

  .hero {
    padding-top: 3.4rem;
    min-height: 100vh;
  }

  .hero-simple h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    padding: 1.3rem 1.2rem;
  }

  .card {
    padding: 1.3rem 1.2rem;
  }

  .contact-card {
    padding: 1.3rem 1.2rem;
  }

  .contact-email {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }

  .scroll-down {
    width: 44px;
    height: 44px;
    margin-top: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

