:root {
  --bg: #070a12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --gap: 18px;
  --radius: 18px;
  --accent: #66e3ff;
  --accent-2: #a78bfa;
  --focus: rgba(102, 227, 255, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  min-height: 100vh;
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  display: grid;
  place-items: center;
}

.jersey {
  width: min(560px, 70vw);
  height: auto;
  opacity: 0.85;
  transform: translateY(6px);
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.55));
}

.content {
  width: 100%;
  height: 100vh;
  min-height: 0;
  padding: 0;
  position: relative;
}

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.app__topbar {
  padding: 14px 14px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tabbar {
  display: flex;
  gap: 18px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.25);
}

.tab {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  background: transparent;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.tab svg {
  width: 20px;
  height: 20px;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.app__main {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.page-index .tab--index,
body.page-apropos .tab--apropos,
body.page-competences .tab--competences,
body.page-projets .tab--projets,
body.page-contact .tab--contact {
  background: rgba(102, 227, 255, 0.14);
  color: var(--text);
}

.tab--index svg,
.tab--apropos svg,
.tab--competences svg,
.tab--projets svg,
.tab--contact svg {
  fill: currentColor;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  max-width: none;
  margin: 0;
}

.panel {
  border: 0; /* aucune bordure visible (demande) */
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(2px);
}

.panel--full {
  grid-column: auto;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel__title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
  line-height: 1.1;
}

.hero__lead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.55;
}

.activity-summary {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.activity-summary__title {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.activity-summary__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(102, 227, 255, 0.16);
  border: 0;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.btn:hover {
  background: rgba(102, 227, 255, 0.22);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
}

.btn--full {
  width: 100%;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.card {
  grid-column: span 12;
  background: var(--panel-2);
  border-radius: calc(var(--radius) - 4px);
  padding: 16px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.card__text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.card__link {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.card__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Compétences : appliquer la même touche de design que les cards "unique-feature" */
.page-competences .subpanel--skills .cards .card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
  padding: 18px;
  align-self: stretch;
}

.page-competences .subpanel--skills .cards {
  flex: 1;
  height: 100%;
  align-items: stretch;
  align-content: stretch;
  grid-auto-rows: 1fr;
}

.page-competences .subpanel--skills .cards .card::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: url("https://i.imgur.com/HFikUs2.png");
  background-size: cover;
  /* Décale l'image vers le haut pour que l'extrait visible colle au schéma */
  background-position: center 20%;
  opacity: 0.1;
  pointer-events: none;
  transform: scale(1.05);
  z-index: 0;
}

.page-competences .subpanel--skills .cards .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 0;
}

.page-competences .subpanel--skills .cards .card > * {
  position: relative;
  z-index: 1;
}

/* Compétences : agrandir les textes "Approche" */
.page-competences .subpanel--skills .cards .card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.page-competences .subpanel--skills .cards .card__text {
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Encadrer la zone "Technos" comme une card du site */
.page-competences .subpanel--hero .chips {
  position: relative;
  overflow: hidden;
  padding: 14px 12px;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
  flex: 1;
  height: 100%;
  align-content: center;
}

.page-competences .subpanel--hero .chips::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: url("https://i.imgur.com/HFikUs2.png");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  transform: scale(1.05);
  z-index: 0;
}

.page-competences .subpanel--hero .chips > * {
  position: relative;
  z-index: 1;
}

.page-competences .subpanel--hero .chips__wrap {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
  justify-content: center;
}

.contact__text {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.is-hidden {
  display: none !important;
}

/* Login "sans sauvegarde" (prénom dans la requête) */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 10, 18, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.login-modal {
  width: min(520px, 92vw);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  padding: 18px;
}

.login__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.login__subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login__input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.login__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.page-contact .subpanel--skills .contact__chat {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: calc(var(--radius) - 4px);
  padding: 14px 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-contact .subpanel--skills .contact__chat::-webkit-scrollbar {
  width: 10px;
}

.page-contact .subpanel--skills .contact__chat::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.page-contact .subpanel--skills .contact__chat::-webkit-scrollbar-thumb {
  background: rgba(102, 227, 255, 0.35);
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.page-contact .subpanel--skills .chat__row {
  display: flex;
}

.page-contact .subpanel--skills .chat__row--client {
  justify-content: flex-start;
}

.page-contact .subpanel--skills .chat__row--jos {
  justify-content: flex-end;
}

.page-contact .subpanel--skills .chat__bubble {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}

.page-contact .subpanel--skills .chat__bubble--client {
  background: rgba(255, 255, 255, 0.05);
}

.page-contact .subpanel--skills .chat__bubble--jos {
  background: rgba(102, 227, 255, 0.14);
  border-color: rgba(102, 227, 255, 0.28);
}

.page-contact .subpanel--skills .chat__name {
  font-weight: 800;
  font-size: 0.92rem;
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}

.page-contact .subpanel--skills .chat__text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1rem;
}

.page-contact .subpanel--skills .contact__discord {
  flex: 1;
  min-height: 0;
  border-radius: calc(var(--radius) - 4px);
  padding: 14px 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-contact .subpanel--skills .discord__title {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.page-contact .subpanel--skills .discord__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-contact .subpanel--skills .discord__label {
  color: var(--muted);
  font-weight: 700;
}

.page-contact .subpanel--skills .discord__value {
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
  font-weight: 800;
}

.page-contact .subpanel--skills .discord__hint {
  color: var(--muted);
  line-height: 1.6;
}

.page-contact .subpanel--skills .discord__actions {
  margin-top: auto;
  display: flex;
}

.contact__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 14px;
}

/* Gros boutons "Liens" (Contact) */
.page-contact .contact__actions .btn {
  padding: 22px 18px;
  border-radius: 18px;
  min-height: 64px;
  font-size: 1.12rem;
  font-weight: 900;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.page-contact .contact__actions .btn__label {
  position: relative;
  z-index: 2;
}

.page-contact .contact__actions .btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: url("https://i.imgur.com/HFikUs2.png");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  transform: scale(1.05);
  pointer-events: none;
  z-index: 0;
}

.page-contact .contact__actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

.page-contact .contact__actions .btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-contact .contact__actions .btn--full {
  border: 1px solid rgba(102, 227, 255, 0.2);
}

@media (max-width: 720px) {
  .contact__actions {
    grid-template-columns: 1fr;
  }

  .page-contact .contact__actions .btn {
    min-height: 58px;
  }
}

.footer__note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Supprime visuellement toutes les démos dans la page Projets */
body.page-projets .btn--demo {
  display: none !important;
}

/* Soon - remplacement de la zone Projets */
.subpanel--projects .cards {
  display: none;
}

.soon-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 0;
  text-align: center;
}

.soon-jersey {
  width: min(340px, 64vw);
  height: auto;
  opacity: 1;
  animation: jerseySpin 900ms linear infinite;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.55));
}

.soon-title {
  font-family: "Roboto Condensed", Impact, Haettenschweiler, "Arial Narrow",
    sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  color: var(--accent);
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent);
}

.soon-subtitle {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .soon-jersey {
    animation: none;
  }
}

@media (min-width: 860px) {
  .card {
    grid-column: span 4;
  }
  .contact__actions {
    grid-template-columns: 1fr 1fr;
  }
}

.layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: stretch;
  height: 100%;
  grid-auto-rows: 1fr;
}

.subpanel {
  background: var(--panel-2);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.subpanel__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

/* Compétences : centrer le titre dans le panneau */
.subpanel--skills .subpanel__title {
  text-align: center;
  width: 100%;
}

.subpanel--hero {
  grid-column: span 12;
}

.subpanel--skills {
  grid-column: span 12;
}

/* Scrollbar (Compétences) */
.subpanel--skills {
  overflow-y: auto;
  overflow-x: hidden;
}

.subpanel--skills::-webkit-scrollbar {
  width: 10px;
}

.subpanel--skills::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.subpanel--skills::-webkit-scrollbar-thumb {
  background: rgba(102, 227, 255, 0.35);
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.subpanel--skills::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 227, 255, 0.55);
}

.subpanel--skills {
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 227, 255, 0.55) rgba(255, 255, 255, 0.04);
}

.subpanel--projects {
  grid-column: span 12;
}

.unique-features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.unique-feature-card {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
}

.unique-feature-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: url("https://i.imgur.com/HFikUs2.png");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  transform: scale(1.05);
}

/* Override ciblé : uniquement le bloc "À propos" (et pas toutes les cartes) */
.page-apropos .unique-feature-card--about::before {
  background-image: url("https://i.imgur.com/NHUi6aj.png");
}

.unique-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.unique-feature-card__logo {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
}

.unique-feature-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-family: "Roboto Condensed", Impact, Haettenschweiler, "Arial Narrow",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  font-size: 1.1rem;
}

.unique-feature-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.unique-features--skills {
  gap: 12px;
}

.unique-feature-card--small {
  grid-column: span 6;
  padding: 14px 12px;
}

.unique-feature-card__logo--small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.unique-feature-card--small .unique-feature-card__title {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.unique-feature-card--small .unique-feature-card__text {
  font-size: 0.88rem;
  margin-top: 6px;
  margin-bottom: 0;
}

.unique-features--about {
  gap: var(--gap);
}

.unique-feature-card--about {
  grid-column: span 12;
  padding: 22px 18px;
}

.unique-feature-card__logo--about {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  margin-bottom: 12px;
}

.unique-feature-card--about .unique-feature-card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.unique-feature-card--about .unique-feature-card__text {
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .unique-feature-card {
    grid-column: span 12;
  }

  .unique-feature-card--small {
    grid-column: span 12;
  }
}

.subpanel--hero .hero__cta {
  margin-top: auto;
  justify-content: center;
  width: 100%;
  align-items: stretch;
}

.hero__cta-icon {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  margin-right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.hero__cta .btn {
  white-space: nowrap;
  flex: 1 1 260px;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 860px) {
  .activity-summary__grid {
    grid-template-columns: 1fr;
  }
}

.subpanel--skills .chips {
  overflow: auto;
  padding-right: 6px;
  max-height: 100%;
}

.subpanel--projects .cards {
  overflow: auto;
  padding-right: 6px;
  max-height: 100%;
}

.loading-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
  background: rgba(7, 10, 18, 0.18);
  backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 450ms ease;
}

@keyframes jerseySpin {
  from {
    transform: translateY(6px) rotate(0deg) scale(1.03);
  }
  to {
    transform: translateY(6px) rotate(360deg) scale(1.03);
  }
}

@keyframes jerseyFloat {
  0% {
    transform: translateY(6px) rotate(0deg) scale(1.03);
  }
  50% {
    transform: translateY(2px) rotate(-1.2deg) scale(1.038);
  }
  100% {
    transform: translateY(6px) rotate(0deg) scale(1.03);
  }
}

body.is-loading .loading-screen {
  opacity: 1;
}

body:not(.is-loading) .loading-screen {
  opacity: 0;
}

body.is-loading .jersey {
  opacity: 1;
  animation: jerseySpin 900ms linear infinite;
}

body:not(.is-loading) .jersey {
  opacity: 0.85;
  animation: jerseyFloat 2.3s ease-in-out infinite;
  transition: opacity 450ms ease;
}

.app {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms ease, transform 450ms ease;
}

body.is-loading .app {
  opacity: 0;
  transform: translateY(8px);
}

@media (min-width: 860px) {
  .subpanel--hero {
    grid-column: span 7;
  }
  .subpanel--skills {
    grid-column: span 5;
  }
  .subpanel--projects {
    grid-column: span 12;
  }
}

.card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn--demo {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.demo-modal__panel {
  position: relative;
  width: min(1240px, 94vw);
  height: min(920px, 88vh);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(10px);
  transition: transform 220ms ease;
}

.demo-modal.is-open .demo-modal__panel {
  transform: translateY(0);
}

.demo-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-modal__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
  max-width: 720px;
}

.demo-modal__search-prefix {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.demo-modal__search-tld {
  color: color-mix(in srgb, var(--accent) 80%, white 5%);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.demo-modal__search-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: none;
  font-size: 0.95rem;
  min-width: 0;
}

.demo-modal__search-input::selection {
  background: rgba(102, 227, 255, 0.25);
}

.demo-modal__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.demo-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-modal__close:hover {
  background: rgba(255, 255, 255, 0.11);
}

.demo-modal__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.demo-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
}

/* Infos (modal) pour les minisites dans les iframes */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.info-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.info-modal__panel {
  position: relative;
  width: min(820px, 94vw);
  max-height: min(640px, 86vh);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-modal__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.info-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.info-modal__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 16px;
}

.info-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.info-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.schema-box {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.schema-title {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.schema-svg {
  width: 100%;
  height: auto;
}

