:root {
  --bg: #0f172a;
  --bg-soft: #111c34;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-dark: #94a3b8;
  --blue: #4da3ff;
  --blue-dark: #1d4ed8;
  --cyan: #22d3ee;
  --green: #64d391;
  --warm: #f5b96b;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.24), transparent 34rem),
    radial-gradient(circle at top right, rgba(100, 211, 145, 0.18), transparent 32rem),
    linear-gradient(180deg, #0f172a 0%, #111827 55%, #0b1120 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.section-padding {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.78);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #07111f;
  box-shadow: 0 10px 30px rgba(77, 163, 255, 0.35);
}

.brand-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 76px);
}

.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.35rem);
  max-width: 900px;
  letter-spacing: -0.065em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.045em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.hero-text {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #07111f;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 35px rgba(77, 163, 255, 0.28);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  max-width: 760px;
}

.hero-stats div {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  padding: 1rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
}

.hero-stats span {
  display: block;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.profile-card,
.feature-card,
.value-card,
.engagement-card,
.contact-box {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 70%);
}

.profile-photo-wrap {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.25), rgba(100, 211, 145, 0.2)),
    #172033;
  border: 1px dashed rgba(255, 255, 255, 0.32);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo[src$="photo-patrice.jpg"] {
  opacity: 0;
}

.profile-photo-wrap::after {
  content: "";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  padding: 2rem;
}

.profile-info {
  position: relative;
  z-index: 1;
  padding: 1.4rem 0.5rem 0.4rem;
}

.profile-label {
  color: var(--green);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.profile-info p:last-child {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.value-grid,
.engagement-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card,
.engagement-card {
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

.value-card p,
.engagement-card p,
.feature-content p,
.feature-card li,
.contact-card p,
.quote-section p {
  color: var(--muted);
}

.icon,
.engagement-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(77, 163, 255, 0.14);
  color: var(--cyan);
  font-size: 1.45rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2rem;
  align-items: center;
  border-radius: var(--radius-lg);
  padding-inline: clamp(1.2rem, 4vw, 3rem);
  margin-block: 2rem;
}

.blue-panel {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.23), rgba(14, 165, 233, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.animal-panel {
  background:
    linear-gradient(135deg, rgba(245, 185, 107, 0.16), rgba(100, 211, 145, 0.12)),
    rgba(255, 255, 255, 0.03);
}

.reverse .feature-content {
  order: 2;
}

.logo-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.logo-line .eyebrow {
  margin-bottom: 0;
}

.section-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  padding: 0.5rem;
}

.section-logo[src$="logo-informaticien-public.png"],
.section-logo[src$="logo-nos-amies-les-betes.png"] {
  opacity: 0.35;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.tag-list span {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.feature-card.warm {
  background: rgba(245, 185, 107, 0.1);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.engagement-card {
  background: rgba(255, 255, 255, 0.055);
}

.quote-section {
  text-align: center;
  max-width: 940px;
}

.quote-section blockquote {
  font-size: clamp(1.6rem, 4vw, 3.1rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 1rem;
}

.contact-box {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.22), transparent 24rem),
    rgba(255, 255, 255, 0.075);
}

.contact-intro {
  max-width: 760px;
}

.contact-intro p:not(.eyebrow) {
  color: var(--muted);
}

.contact-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 1.45rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(77, 163, 255, 0.36);
}

.contact-card h3 {
  font-size: 1.05rem;
}

.contact-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-dark);
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 980px) {
  .hero,
  .feature {
    grid-template-columns: 1fr;
  }

  .reverse .feature-content {
    order: initial;
  }

  .value-grid,
  .engagement-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-card {
    max-width: 540px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .navbar {
    min-height: 68px;
  }

  .brand-text {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-stats,
  .value-grid,
  .engagement-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .logo-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}
