/* =========== RESET & BASE =========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --accent: #868bdf;
  --accent-soft: #e0e2ff;
  --accent-dark: #6c71d2;
  --text-main: #050505;
  --text-main-alt: #08080a;
  --text-muted: #6b7280;
  --text-nav: #4b5563;
  --text-black: #111827;
  --border-soft: #d4d7f5;
  --border-btn: #c3c6f0;
  --border-tag: #d6d8ff;
  --border-mobile: #c7caf8;
  --panel: #ffffff;
  --bg-main: #f3f4ff;
  --bg-soft: #ebedff;
  --bg-soft-alt: #f4f5ff;
  --bg-service: #f7f7ff;
  --bg-tag: #f5f5ff;
  --bg-footer-mid: #e4e6ff;
  --bg-footer-bot: #dde0ff;
  --btn-outline-text: #686bb3;

  /* Like/Heart colors */
  --color-heart: #ff6b9d;
  --color-heart-dark: #c94b7f;
  --color-heart-hover: #ff5a8e;
  --color-heart-hover-dark: #b73d6f;

  /* Color swatches */
  --color-swatch-main: #8a4bff;
  --color-swatch-secondary: #3540ff;
  --color-swatch-shadow: #15132b;
  --color-swatch-highlight: #f5e9ff;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-main);
  color: var(--text-main-alt);
  line-height: 1.7;
}

/* Accessibilité focus */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.btn {
  font-family: "SUSE", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: -0.03em;
}

/* Container & sections */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(60px, 10vw, 110px) 0;
  background: transparent;
}

.section-soft {
  padding: clamp(60px, 10vw, 110px) 0;
  background-color: var(--bg-soft);
  background-image: radial-gradient(
    circle,
    rgba(134, 139, 223, 0.45) 1px,
    transparent 1px
  );
  background-size: 36px 36px;
}

/* =========== HEADER =========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.2s ease, border-color 0.2s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(243, 244, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(208, 213, 255, 0.9);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
}

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-nav);
  position: relative;
  padding-bottom: 3px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.18s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-main);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-black);
  margin: 0 auto;
}

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease,
    color 0.12s ease, border-color 0.12s ease;
}

.btn i,
.contact-btn i {
  margin-right: 8px;
  font-size: 0.9em;
}

.btn-primary {
  background: var(--accent);
  color: var(--panel);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-btn);
  color: var(--btn-outline-text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* =========== HERO =========== */
.hero {
  padding: 120px 0 110px;
  background: linear-gradient(
    135deg,
    var(--bg-main) 0,
    var(--panel) 40%,
    var(--bg-main) 100%
  );
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.hero-left h1 {
  font-size: clamp(2.6rem, 3.7vw, 3.6rem);
  margin: 0 0 18px;
  color: var(--text-main);
  line-height: 1.04;
}

.hero-text {
  margin: 0 0 30px;
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tag);
  border: 1px solid var(--border-tag);
}

/* HERO RIGHT */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-panel {
  width: 100%;
  max-width: 380px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--panel) 0, var(--bg-soft-alt) 60%, var(--bg-soft) 100%);
  border: 1px solid var(--border-soft);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HERO – clients card */
.hero-clients-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.hero-clients-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-clients-grid {
  display: flex;
  gap: 12px;
}

.client-logo {
  flex: 1 1 0;
  height: 64px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}

.client-logo img {
  max-height: 45px;
  width: auto;
  display: block;
}

.hero-clients-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========== GENERIC SECTION HEADERS =========== */
.section-header {
  margin-bottom: 40px;
}

.section-kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--text-main);
}

.section-icon {
  margin-right: 8px;
  color: var(--accent);
  font-size: 0.9em;
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========== PROJECTS =========== */
.projects-header {
  max-width: 100%;
}

.projects-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.projects-header .section-header-row {
  max-width: 720px;
}

.projects-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-dark);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.projects-all-btn i {
  font-size: 0.9em;
}

.projects-all-btn:hover {
  background: var(--accent);
  color: var(--panel);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 16px 16px 18px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(134, 139, 223, 0.15);
}

.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(134, 139, 223, 0.15);
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-card > a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-media {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-info p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
}

.project-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* =========== SERVICES =========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-service);
  border-radius: 22px;
  padding: 22px 20px 20px;
  border: 1px solid var(--border-soft);
}

.service-pill {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card h3 {
  margin: 0 0 8px;
  color: var(--text-main);
}

.service-card p {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-list li + li {
  margin-top: 4px;
}

/* =========== TESTIMONIALS =========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--panel);
  border-radius: 22px;
  padding: 22px 20px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
}

.testimonial-text {
  margin: 0 0 16px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-name {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
}

.testimonial-role {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-rating {
  display: inline-flex;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--accent);
}

/* =========== CONTACT =========== */
.contact-section {
  border-top: 1px solid rgba(208, 213, 255, 0.9);
  background: var(--bg-main);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.contact-text-block h2 {
  margin-top: 6px;
}

.contact-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 480px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease,
    transform 0.12s ease;
}

/* Behance button */
.contact-btn-behance {
  background: var(--accent);
  color: var(--panel);
}

.contact-btn-behance:hover {
  background: var(--accent-dark);
}

/* Discord button */
.contact-btn-discord {
  background: var(--bg-service);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.contact-btn-discord:hover {
  background: var(--accent-soft);
}

/* Mail button */
.contact-btn-mail {
  background: var(--panel);
  border-color: var(--border-btn);
  color: var(--btn-outline-text);
}

.contact-btn-mail:hover {
  border-color: var(--accent);
}

/* =========== FOOTER =========== */
.site-footer {
  padding: 32px 0 28px;
  background: linear-gradient(
    180deg,
    var(--bg-main) 0,
    var(--bg-footer-mid) 40%,
    var(--bg-footer-bot) 100%
  );
  border-top: 1px solid rgba(208, 213, 255, 0.9);
  color: var(--text-main);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  font-family: "SUSE", system-ui, sans-serif;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 6px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-columns {
  display: flex;
  gap: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.footer-heading {
  margin: 0 0 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.footer-column a {
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.footer-column a i {
  font-size: 0.9em;
  color: var(--accent);
}

.footer-column a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(208, 213, 255, 0.9);
  padding-top: 10px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========== SCROLL TOP =========== */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: rgba(243, 244, 255, 0.9);
  backdrop-filter: blur(14px);
  color: var(--accent);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0;
  z-index: 100;
  transition: background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
}

.scroll-top:hover {
  background: var(--accent);
  color: var(--panel);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

/* =========== PROJECTS PAGE =========== */
.projects-page-intro .section-header {
  margin-bottom: 18px;
}

.projects-page-title {
  margin: 0;
  font-size: 2.4rem;
  color: var(--text-main);
}

.projects-page-sub {
  margin: 8px 0 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 620px;
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.projects-filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.projects-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projects-filter-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tag);
  border: 1px solid var(--border-tag);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* projects page grid: a bit more air */
.projects-grid-page {
  margin-top: 12px;
}

.projects-grid-page .project-card {
  min-height: 100%;
}

/* "View project" link */
.project-detail-link-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.project-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-dark);
}

.project-detail-link i {
  font-size: 0.85em;
}

.project-detail-link:hover {
  color: var(--accent);
}

/* =========== SINGLE PROJECT =========== */
.project-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(
    135deg,
    var(--bg-main) 0,
    var(--panel) 40%,
    var(--bg-main) 100%
  );
}

.project-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: center;
}

.project-title {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  color: var(--text-main);
}

.project-intro {
  margin: 0 0 22px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
}

.project-meta {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  font-size: 0.86rem;
}

.project-meta-item dt {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-meta-item dd {
  margin: 0;
  color: var(--text-main);
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--accent-dark);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-back-link:hover {
  color: var(--accent);
}

.project-hero-media {
  display: flex;
  justify-content: flex-end;
  position: relative; /* pour positionner la bulle au-dessus */
}

.project-hero-image {
  width: 100%;
  max-width: 460px;
  border-radius: 26px;
  overflow: hidden;           /* le cadre ne bouge pas */
  cursor: zoom-in;            /* feedback visuel */
}

.project-hero-image img {
  width: 100%;
  display: block;
  border-radius: 26px;
  transition: transform 0.15s ease-out, transform-origin 0.05s linear;
  transform: scale(1);
}

.project-zoom-hint {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -120%);
  background: var(--panel);
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: zoomHintEnter 0.4s ease-out 0.25s both;
  pointer-events: none; /* ⬅️ important : ne bloque pas la souris */
}

.project-zoom-hint i {
  color: var(--accent);
  font-size: 0.9em;
}

.project-zoom-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, -140%);
}

@keyframes zoomHintEnter {
  from {
    opacity: 0;
    transform: translate(-50%, -140%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -120%);
  }
}

/* BODY */
.project-content {
  padding-top: 70px;
  padding-bottom: 100px;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-section h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.project-section p {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.project-section ul,
.project-section ol {
  margin: 6px 0 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.project-section li + li {
  margin-top: 4px;
}

.project-section-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* Palette */
.project-palette-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.project-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.project-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-swatch-color {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.project-swatch-main {
  background: var(--color-swatch-main);
}

.project-swatch-secondary {
  background: var(--color-swatch-secondary);
}

.project-swatch-shadow {
  background: var(--color-swatch-shadow);
}

.project-swatch-highlight {
  background: var(--color-swatch-highlight);
}

.project-swatch-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Steps list */
.project-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.project-steps li {
  position: relative;
  padding-left: 28px;
}

.project-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========== RESPONSIVE =========== */

/* Tablet landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .projects-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .hero-panel {
    max-width: 100%;
  }

  .project-hero-image {
    max-width: 380px;
  }
}

@media (max-width: 992px) {
  /* Hero home */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-right {
    justify-content: flex-start;
  }

  /* Single project */
  .project-hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-hero-media {
    justify-content: flex-start;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  /* Grids */
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.4rem;
  }

  /* Touch targets: minimum 44px for mobile */
  .btn {
    padding: 16px 28px;
    min-height: 44px;
    min-width: 44px;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }

  /* Responsive typography */
  .logo {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  .project-section-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .projects-page-title {
    font-size: 2rem;
  }

  .projects-filter {
    align-items: flex-start;
  }

  .footer-main {
    flex-direction: column;
    gap: 20px;
  }

  /* Contact page responsive */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-container {
    padding: 30px 24px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(243, 244, 255, 0.98);
    backdrop-filter: blur(18px);
    padding: 14px 1.5rem 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    border-bottom: 1px solid var(--border-mobile);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
  }

  .section,
  .section-soft {
    padding: 90px 0;
  }

  .projects-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 40px;
  }

  .projects-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-buttons {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-layout {
    gap: 32px;
  }
}

/* =========== SYSTÈME DE LIKES =========== */
.like-button-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--panel);
  border: 2px solid var(--border-btn);
  border-radius: 50px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(134, 139, 223, 0.08);
}

.like-button:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(134, 139, 223, 0.15);
}

.like-button:active {
  transform: translateY(0);
}

.like-button .heart-icon {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.like-button.liked {
  background: linear-gradient(135deg, var(--color-heart) 0%, var(--color-heart-dark) 100%);
  border-color: var(--color-heart);
  color: white;
}

.like-button.liked:hover {
  background: linear-gradient(135deg, var(--color-heart-hover) 0%, var(--color-heart-hover-dark) 100%);
  border-color: var(--color-heart-hover);
}

.like-button.liked .heart-icon {
  animation: heartBeat 0.5s ease;
}

.like-count {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.like-button.liked .like-count {
  color: white;
}

/* Version simplifiée du bouton like (pour les pages projets) */
.like-button-simple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--panel);
  border: 2px solid var(--border-btn);
  border-radius: 50px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(134, 139, 223, 0.08);
}

.like-button-simple:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(134, 139, 223, 0.15);
}

.like-button-simple:active {
  transform: translateY(0);
}

.like-button-simple i {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.like-button-simple.liked {
  background: linear-gradient(135deg, var(--color-heart) 0%, var(--color-heart-dark) 100%);
  border-color: var(--color-heart);
  color: white;
}

.like-button-simple.liked:hover {
  background: linear-gradient(135deg, var(--color-heart-hover) 0%, var(--color-heart-hover-dark) 100%);
  border-color: var(--color-heart-hover);
}

.like-button-simple.liked i {
  animation: heartBeat 0.5s ease;
}

.like-button-simple.loading {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Animation du cœur */
@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.2);
  }
}

/* Loading state */
.like-button.loading {
  opacity: 0.6;
  cursor: not-allowed;
}

.like-button.loading .heart-icon {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* =========== LIKES SUR LES CARDS =========== */

.project-card-like {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-card-like:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--accent);
  transform: scale(1.05);
}

.project-card-like i {
  font-size: 1rem;
  color: var(--color-heart);
  transition: transform 0.2s ease;
}

.project-card-like:hover i {
  transform: scale(1.1);
}

.project-card-like .like-count-badge {
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
  .like-button-container {
    margin-top: 20px;
    padding-top: 20px;
  }

  .like-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .like-button .heart-icon {
    font-size: 1.1rem;
  }

  .project-card-like {
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .project-card-like i {
    font-size: 0.9rem;
  }
}

/* =========== CONTACT PAGE =========== */
.contact-page {
  padding: 80px 0 100px;
  min-height: calc(100vh - 72px - 400px);
}

.contact-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-page-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin: 0 0 16px;
  color: var(--text-main);
}

.contact-page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-container {
  background: var(--panel);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 16px rgba(134, 139, 223, 0.08);
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.contact-form label i {
  margin-right: 8px;
  color: var(--accent);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-btn);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(134, 139, 223, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-top: 8px;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  text-align: center;
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-info-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text-main);
}

.contact-info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-info-card a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.alert i {
  font-size: 1.2rem;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* =========== ACCESSIBILITY: REDUCED MOTION =========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}