/* ════════════════════════════════════════════════════════════════════════════
   style.css — Gabriel LIÉBAUT · Portfolio BTS SIO SISR
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:      #060608;
  --bg2:     #0d0d10;
  --bg3:     #13131a;
  --accent:  #ffffff;
  --red:     #ff3d5a;
  --text:    #e8e8f0;
  --muted:   #5a5a72;
  --border:  rgba(255,255,255,.06);
  --mono:    'Space Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --body:    'Inter', sans-serif;
  --trans:   .2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html   { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom cursor ──────────────────────────────────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s ease, height .2s ease, background .2s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .2s ease, height .2s ease;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 20px; height: 20px; }

/* Appareils tactiles (téléphones/tablettes) : pas de curseur personnalisé */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none !important; }
}

/* ── Scan‑lines overlay ─────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,.08) 2px, rgba(0,0,0,.08) 4px
  );
  pointer-events: none; z-index: 1000;
}

/* ── Grid background ────────────────────────────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,135,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,252,249,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
nav.scrolled {
  background: rgba(6,6,8,.92);
  border-color: var(--border);
  backdrop-filter: blur(20px);
}

/* Logo */
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img {
  display: block;
  filter: invert(1) drop-shadow(0 0 0 transparent);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .3s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.18);
  filter: invert(1) drop-shadow(0 0 8px rgba(255,255,255,.35));
}

/* Nav links */
.nav-links {
  display: flex; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; position: relative;
  transition: color var(--trans);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--trans);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ════════════════════════════════════════════════════════════════════════════
   MENU MOBILE — se déroule au clic sur le logo (caché sur grand écran)
   ════════════════════════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(-24px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.mobile-menu.open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.mobile-menu-close {
  position: absolute; top: 1.6rem; right: 1.8rem;
  width: 44px; height: 44px;
  background: none; border: none;
  color: var(--text); font-size: 2.4rem; line-height: 1;
  cursor: pointer;
}
.mobile-menu-nav { width: 100%; }
.mobile-menu-links {
  list-style: none; padding: 0; margin: 0;
  width: 100%;
  text-align: center;
}
.mobile-menu-links li { margin: 1.1rem 0; }
.mobile-menu-links a {
  font-family: var(--display);
  font-size: 2.4rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  color: var(--muted);
  transition: color .2s ease;
}
.mobile-menu-links a:hover { color: var(--text); }
.mobile-menu-links a.active { color: var(--accent); }

/* Sécurité : le menu mobile n'existe que sur petit écran */
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: .35rem .75rem;
  border-radius: 2px;
}
.lang-btn {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .15em; text-decoration: none;
  color: var(--muted);
  transition: color var(--trans);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: var(--accent);
  font-weight: 700;
}
.lang-sep {
  color: var(--border);
  font-size: .65rem;
  user-select: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTIONS — COMMON
   ════════════════════════════════════════════════════════════════════════════ */
section {
  position: relative; z-index: 10;
  padding: 8rem 3rem;
}
.section-label {
  font-family: var(--mono);
  font-size: .65rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before {
  content: '';
  display: inline-block; width: 40px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(3rem,7vw,6rem);
  line-height: .9; letter-spacing: .02em;
  color: var(--text); margin-bottom: 3rem;
}
.inner { max-width: 1300px; margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .9rem 2rem; text-decoration: none;
  border: 1px solid; transition: all .25s ease;
  cursor: none; display: inline-block;
}
.btn-primary {
  background: var(--accent); color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost  {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); }

/* ════════════════════════════════════════════════════════════════════════════
   PROFIL
   ════════════════════════════════════════════════════════════════════════════ */
#profil { background: var(--bg2); }
.profil-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.profil-visual { position: relative; }
.profil-photo-wrap {
  width: 100%; aspect-ratio: 3/4; position: relative;
  overflow: hidden; background: var(--bg3);
  border: 1px solid var(--border);
}
.profil-photo-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 60%);
  z-index: 1;
}
.profil-tag-corner {
  position: absolute; top: 1.5rem; right: -1.5rem;
  background: var(--accent); color: #000;
  padding: .4rem 1rem;
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
  transform: rotate(90deg); transform-origin: right top;
  white-space: nowrap;
}
.profil-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  margin-top: 2rem; border: 1px solid var(--border);
}
.profil-stat { background: var(--bg2); padding: 1.5rem; text-align: center; }
.profil-stat-num {
  font-family: var(--display); font-size: 2.5rem;
  color: var(--accent); line-height: 1; margin-bottom: .3rem;
}
.profil-stat-label {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .15em; color: var(--muted); text-transform: uppercase;
}
.profil-info { display: flex; flex-direction: column; gap: 2rem; }
.info-line {
  display: flex; flex-direction: column; gap: .3rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.info-line:last-child { border-bottom: none; }
.info-label {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.info-value { font-size: 1rem; color: var(--text); font-weight: 400; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2); color: var(--accent);
  padding: .3rem .8rem;
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════════════════
   PARCOURS
   ════════════════════════════════════════════════════════════════════════════ */
#parcours { border-top: 1px solid var(--border); }
.timeline { position: relative; padding-left: 4rem; }
.timeline::before {
  content: '';
  position: absolute; left: 1.2rem; top: .5rem; bottom: .5rem;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(255,255,255,.1));
}
.timeline-item {
  position: relative; padding-bottom: 4rem;
  opacity: 0; transform: translateX(-20px);
  transition: opacity .6s ease, transform .6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.75rem; top: .3rem;
  width: 12px; height: 12px;
  border: 2px solid var(--accent); border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 15px rgba(255,255,255,.4);
}
.timeline-year {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .2em; color: var(--accent);
  text-transform: uppercase; margin-bottom: .5rem;
}
.timeline-title {
  font-family: var(--display); font-size: 2rem;
  color: var(--text); margin-bottom: .3rem;
}
.timeline-org {
  font-family: var(--mono); font-size: .75rem;
  color: var(--muted); margin-bottom: 1rem;
}
.timeline-desc {
  font-size: .9rem; line-height: 1.7;
  color: var(--muted); max-width: 600px;
}

/* ════════════════════════════════════════════════════════════════════════════
   CERTIFICATS
   ════════════════════════════════════════════════════════════════════════════ */
#certificats { background: var(--bg2); border-top: 1px solid var(--border); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.5rem;
}
.cert-card {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2rem; position: relative; overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease, border-color .3s ease;
}
.cert-card.visible { opacity: 1; transform: translateY(0); }
.cert-card:hover   { border-color: rgba(255,255,255,.3); transform: translateY(-4px) !important; }
.cert-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(0,255,135,.06) 0%, transparent 70%);
}
.cert-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.2rem;
}
.cert-name {
  font-family: var(--display); font-size: 1.3rem;
  color: var(--text); margin-bottom: .5rem;
}
.cert-issuer {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.cert-date {
  font-family: var(--mono); font-size: .65rem;
  color: var(--accent); letter-spacing: .1em;
}
.cert-status {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .2rem .6rem; border: 1px solid;
}
.cert-status.valid      { color: var(--accent); border-color: rgba(0,255,135,.3); }
.cert-status.in-progress{ color: #ffa500; border-color: rgba(255,165,0,.3); }
.cert-proof-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .25s ease;
}
.cert-proof-link:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════════
   COMPÉTENCES
   ════════════════════════════════════════════════════════════════════════════ */
#competences { border-top: 1px solid var(--border); }
.skills-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem;
}
.skill-group { margin-bottom: 3rem; }
.skill-group-title {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 2rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}
.tech-stack {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem;
}
.tech-tag {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .8rem; border: 1px solid var(--border);
  color: var(--muted); cursor: none;
  transition: all var(--trans);
}
.tech-tag:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(255,255,255,.03);
}

/* Tags de la page Compétences — rendus plus visibles que le tech-tag par défaut */
.skill-tag {
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  font-size: .7rem;
  padding: .5rem 1rem;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,255,255,.08);
}

/* ════════════════════════════════════════════════════════════════════════════
   PROJETS
   ════════════════════════════════════════════════════════════════════════════ */
#projets { background: var(--bg2); border-top: 1px solid var(--border); }
.projects-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 4rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  grid-auto-rows: 280px; gap: 1.5rem;
}
.project-card {
  background: var(--bg3); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem; cursor: none;
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease, border-color .3s ease;
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover   { border-color: rgba(255,255,255,.25); }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; }
.project-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg3), var(--bg));
  transition: opacity .4s ease;
}
.project-bg-accent {
  position: absolute; inset: 0; opacity: .04;
  transition: opacity .4s ease;
}
.project-card:hover .project-bg-accent { opacity: .08; }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.04);
  opacity: 0; transition: opacity .3s ease;
  display: flex; align-items: center; justify-content: center;
}
.project-overlay-icon {
  width: 50px; height: 50px;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.2rem;
  transform: scale(.8) rotate(-45deg);
  transition: transform .3s ease;
}
.project-card:hover .project-overlay-icon { transform: scale(1) rotate(0); }
.project-num {
  position: absolute; top: 1.5rem; left: 2rem;
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; color: var(--muted);
}
.project-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: .75rem; position: relative; z-index: 1;
}
.project-tag {
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .2rem .5rem;
  border: 1px solid rgba(255,255,255,.22); color: var(--accent);
}
.project-title {
  font-family: var(--display); font-size: 2rem;
  line-height: 1; color: var(--text);
  margin-bottom: .5rem; position: relative; z-index: 1;
}
.project-desc {
  font-size: .8rem; line-height: 1.5;
  color: var(--muted); position: relative; z-index: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════════════════ */
#contact { border-top: 1px solid var(--border); }
.contact-form    { display: flex; flex-direction: column; gap: 0; }
.form-field {
  border-bottom: 1px solid var(--border); position: relative;
  transition: border-color var(--trans);
}
.form-field:focus-within { border-color: var(--accent); }
.form-field label {
  display: block;
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 1.2rem 0 .3rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; background: transparent;
  border: none; outline: none;
  color: var(--text); font-family: var(--body);
  font-size: .95rem; font-weight: 300;
  padding: 0 0 1.2rem; resize: none;
}
.form-field textarea  { min-height: 56px; }
.form-field select option { background: var(--bg2); }
.form-msg {
  font-family: var(--mono); font-size: .7rem;
  opacity: 0; transition: opacity .3s;
}
.form-msg.show   { opacity: 1; color: var(--accent); }
.form-msg.error  { opacity: 1; color: var(--red); }

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════════ */
footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-left {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; color: var(--muted);
}
.footer-right { font-family: var(--mono); font-size: .65rem; color: var(--muted); }
.footer-right span { color: var(--red); }

/* ════════════════════════════════════════════════════════════════════════════
   CAPTCHA PAGE
   ════════════════════════════════════════════════════════════════════════════ */
.captcha-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative; z-index: 10;
}
.captcha-box {
  width: 100%; max-width: 480px;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 3rem;
  animation: fadeIn .6s ease forwards;
}
.captcha-header {
  text-align: center; margin-bottom: 2.5rem;
}
.captcha-lock {
  font-size: 2rem; margin-bottom: 1rem;
}
.captcha-title {
  font-family: var(--display); font-size: 2.5rem;
  color: var(--text); margin-bottom: .5rem;
}
.captcha-sub {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; color: var(--muted);
  line-height: 1.6;
}
.captcha-type-badge {
  display: inline-block;
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .2rem .6rem; border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); margin-bottom: 2rem;
}

/* Math captcha */
.captcha-equation {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-bottom: 2rem;
  font-family: var(--display); color: var(--text);
}
.captcha-num  { font-size: 3.5rem; line-height: 1; }
.captcha-op   { font-size: 2.5rem; color: var(--red); }
.captcha-eq   { font-size: 2.5rem; color: var(--muted); }
.captcha-blank {
  width: 70px; height: 60px;
  border-bottom: 3px solid var(--accent);
  font-size: 3rem; text-align: center; line-height: 1;
}

/* Text captcha */
.captcha-code-display {
  display: flex; align-items: center; justify-content: center;
  gap: .3rem; margin-bottom: 1rem;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative; overflow: hidden;
  /* Noise overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.captcha-code-display::before,
.captcha-code-display::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,.06);
}
.captcha-code-display::before { top: 30%; }
.captcha-code-display::after  { top: 65%; }
.captcha-char {
  font-family: var(--mono); font-weight: 700;
  display: inline-block; user-select: none;
}

/* Grid captcha */
.captcha-grid-label {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .05em; color: var(--muted);
  margin-bottom: 1.2rem; line-height: 1.6;
}
.captcha-grid-label strong { color: var(--text); }
.captcha-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 6px; margin-bottom: 1.5rem;
}
.captcha-cell {
  aspect-ratio: 1; background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
  position: relative;
}
.captcha-cell:hover   { border-color: rgba(255,255,255,.2); }
.captcha-cell.selected {
  border-color: var(--accent);
  background: rgba(255,255,255,.06);
}
.captcha-cell.selected::after {
  content: '✓';
  position: absolute; top: 4px; right: 6px;
  font-size: .6rem; color: var(--accent);
}

/* Shapes */
.captcha-shape { flex-shrink: 0; }
.shape-0 { /* circle → bleu */
  width: 36px; height: 36px;
  border-radius: 50%; background: #3b82f6;
}
.shape-1 { /* triangle → vert */
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 32px solid #22c55e;
}
.shape-2 { /* square → jaune */
  width: 34px; height: 34px;
  background: #fbbf24;
}
.shape-3 { /* diamond → rouge */
  width: 30px; height: 30px;
  background: #ef4444;
  transform: rotate(45deg);
}

/* Captcha input */
.captcha-input-wrap { margin-bottom: 1.5rem; }
.captcha-input-wrap label {
  display: block; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .75rem;
}
.captcha-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--border);
  outline: none; color: var(--text);
  font-family: var(--mono); font-size: 1.1rem;
  letter-spacing: .3em; text-transform: uppercase;
  padding: .5rem 0 .75rem;
  transition: border-color var(--trans);
}
.captcha-input:focus { border-color: var(--accent); }
.captcha-actions {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.captcha-btn {
  background: var(--accent); color: #000;
  border: 1px solid var(--accent);
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .9rem 2rem; cursor: pointer;
  transition: all .25s ease;
}
.captcha-btn:hover { background: transparent; color: var(--accent); }
.captcha-refresh {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; color: var(--muted);
  text-decoration: none; transition: color var(--trans);
}
.captcha-refresh:hover { color: var(--text); }
.captcha-error {
  background: rgba(255,61,90,.1); border: 1px solid rgba(255,61,90,.3);
  padding: .75rem 1rem; margin-bottom: 1.5rem;
  font-family: var(--mono); font-size: .7rem; color: var(--red);
  letter-spacing: .05em;
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes fadeIn     { to { opacity: 1; } }
@keyframes pulse      { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }          /* remplacé par le menu mobile (clic sur logo) */
  .cursor, .cursor-ring { display: none; }   /* pas de curseur personnalisé sur mobile */
  section { padding: 5rem 1.5rem; }
  .profil-grid,
  .skills-layout { grid-template-columns: 1fr; gap: 3rem; }
  .project-card:nth-child(n) { grid-column: span 12; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .project-card { min-height: 220px; }
  footer { flex-direction: column; gap: .5rem; text-align: center; }
  .profil-tag-corner { display: none; }
  .timeline { padding-left: 2.5rem; }
}
@media (max-width: 480px) {
  .captcha-box { padding: 2rem 1.5rem; }
  .captcha-num  { font-size: 2.5rem; }
  .captcha-op, .captcha-eq { font-size: 2rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO — VERSION CINÉMATIQUE
   ════════════════════════════════════════════════════════════════════════════ */

/* Surcharge des anciennes règles hero trop rapides */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 5rem; overflow: hidden; position: relative;
}

/* ── Lignes verticales de fond ───────────────────────────────────────────────── */
.hero-vlines {
  position: absolute; inset: 0;
  display: flex; justify-content: space-evenly;
  pointer-events: none; z-index: 1;
}
@keyframes vlineAppear { to { opacity: 1; } }

/* ── Tag typewriter ──────────────────────────────────────────────────────────── */
.hero-tag-wrap {
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .3em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-tag-wrap.visible { opacity: 1; }

.tag-diamond { opacity: .6; }

.hero-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
  animation: cursorBlink .7s step-end infinite;
}
.hero-cursor.hidden { display: none; }
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Nom lettre par lettre ───────────────────────────────────────────────────── */
.hero-name {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: .88; letter-spacing: .02em;
  margin-bottom: 0;
}
.hero-name-line {
  display: block; overflow: hidden;
  padding-bottom: .05em; /* évite le clipping des descenders */
}

/* Chaque lettre injectée par JS */
.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) skewX(-4deg);
  animation: letterReveal .8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Deuxième ligne : accent rouge */
#heroLine2 .hero-letter { color: var(--accent); }

@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0) skewX(0deg); }
}

/* ── Divider qui se trace ────────────────────────────────────────────────────── */
.hero-divider {
  position: relative;
  width: 100%;          /* BUGFIX : sans ça, width=0 car tous les enfants sont absolute */
  max-width: 420px;
  height: 2px;
  margin: 2.2rem 0 2.5rem;
  background: rgba(255,255,255,.08);
  overflow: visible;
  align-self: flex-start; /* reste aligné à gauche dans le flex */
}
.hero-divider-fill {
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-divider-dot {
  position: absolute; right: 0; top: 50%;
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  transform: translate(50%, -50%);
  box-shadow: 0 0 16px var(--accent), 0 0 32px rgba(255,255,255,.3);
  opacity: 0;
  transition: opacity .3s ease;
}
.hero-divider.draw .hero-divider-fill  { transform: scaleX(1); }
.hero-divider.draw .hero-divider-dot   { opacity: 1; transition-delay: 1.3s; }

/* ── Description ─────────────────────────────────────────────────────────────── */
.hero-desc {
  max-width: 400px;
  font-size: .9rem; line-height: 1.8; color: var(--muted);
  font-weight: 300;
  opacity: 0; filter: blur(6px);
  transition: opacity 1.2s ease, filter 1.2s ease;
}
.hero-desc strong { color: var(--text); font-weight: 400; }
.hero-desc.visible { opacity: 1; filter: blur(0); }

/* ── CTA boutons ─────────────────────────────────────────────────────────────── */
.hero-cta {
  display: flex; gap: 1rem; align-items: center;
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-cta.visible { opacity: 1; transform: translateY(0); }

/* ── Scroll indicator ────────────────────────────────────────────────────────── */
.hero-scroll {
  position: absolute; bottom: 3rem; right: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; color: var(--muted);
  writing-mode: vertical-rl;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-scroll.visible { opacity: 1; }
.hero-scroll::after {
  content: '';
  width: 1px; height: 0;
  background: linear-gradient(var(--muted), transparent);
  transition: height 1s ease .3s;
}
.hero-scroll.visible::after { height: 60px; }

/* ════════════════════════════════════════════════════════════════════════════
   ICÔNES IT ANIMÉES — fond partagé toutes pages
   ════════════════════════════════════════════════════════════════════════════ */

/* Base commune */
.hico {
  position: absolute;
  color: #ffffff;
  opacity: var(--op, .08);
  left: var(--x); top: var(--y);
  animation: var(--anim) var(--dur) ease-in-out var(--delay) infinite;
  user-select: none; line-height: 1;
}

/* ── Positions & paramètres individuels ───────────────────────────────────── */
/*                        x       y     size     op    dur    delay  anim         */
.hico--code     { --x:63%; --y:6%;  font-family:var(--mono);font-size:5.5rem;font-weight:700; --op:.10; --dur:9s;  --delay:0s;   --anim:hFloat;  }
.hico--braces   { --x:8%;  --y:14%; font-family:var(--mono);font-size:3.8rem;font-weight:700; --op:.08; --dur:11s; --delay:1.5s; --anim:hDrift;  }
.hico--prompt   { --x:80%; --y:52%; font-family:var(--mono);font-size:2.6rem;font-weight:700; --op:.10; --dur:7s;  --delay:0.4s; --anim:hPulse;  }
.hico--binary   { --x:87%; --y:7%;  font-family:var(--mono);font-size:.85rem;letter-spacing:.2em;line-height:2.2; --op:.07; --dur:4s;  --delay:0s;   --anim:hScrollUp; }
.hico--hash     { --x:28%; --y:3%;  font-family:var(--display);font-size:7rem; --op:.06; --dur:13s; --delay:1s;   --anim:hDrift;  }
.hico--terminal { --x:1%;  --y:8%;  --op:.07; --dur:10s; --delay:2s;   --anim:hFloat;  }
.hico--chip     { --x:70%; --y:22%; --op:.09; --dur:8s;  --delay:0.5s; --anim:hDrift;  }
.hico--shield   { --x:18%; --y:58%; --op:.07; --dur:12s; --delay:1.2s; --anim:hFloat;  }
.hico--network  { --x:44%; --y:28%; --op:.06; --dur:22s; --delay:3s;   --anim:hSpin;   }
.hico--wifi     { --x:52%; --y:5%;  --op:.09; --dur:5s;  --delay:2s;   --anim:hPulse;  }
.hico--lock     { --x:4%;  --y:38%; --op:.08; --dur:9s;  --delay:0.8s; --anim:hFloat;  }
.hico--database { --x:90%; --y:40%; --op:.08; --dur:11s; --delay:3.5s; --anim:hFloat;  }
.hico--cloud    { --x:36%; --y:57%; --op:.06; --dur:15s; --delay:1.5s; --anim:hDrift;  }

/* Tailles SVG */
.hico--terminal svg { width:90px;  height:60px;  }
.hico--chip     svg { width:75px;  height:75px;  }
.hico--shield   svg { width:50px;  height:58px;  }
.hico--network  svg { width:100px; height:100px; }
.hico--wifi     svg { width:60px;  height:46px;  }
.hico--lock     svg { width:50px;  height:58px;  }
.hico--database svg { width:55px;  height:70px;  }
.hico--cloud    svg { width:90px;  height:58px;  }

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes hFloat {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-24px); }
}
@keyframes hDrift {
  0%   { transform: translate(0px,    0px);   }
  25%  { transform: translate(14px,  -18px);  }
  50%  { transform: translate(8px,   -30px);  }
  75%  { transform: translate(-10px, -14px);  }
  100% { transform: translate(0px,    0px);   }
}
@keyframes hSpin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}
@keyframes hPulse {
  0%,100% { opacity: var(--op,.08); transform: scale(1);    }
  50%     { opacity: calc(var(--op,.08)*2.2); transform: scale(1.14); }
}
@keyframes hScrollUp {
  0%   { transform: translateY(0);   opacity: var(--op,.07); }
  75%  { transform: translateY(-50px); opacity: 0; }
  76%  { transform: translateY(20px);  opacity: 0; }
  100% { transform: translateY(0);     opacity: var(--op,.07); }
}

.site-bg-icons {
  position: fixed;
  inset: 0;
  z-index: 2;          /* au-dessus de la grille (z:0), sous le contenu (z:10) */
  pointer-events: none;
  overflow: hidden;
}

/* Les .hico et leurs variantes sont déjà définis plus haut —
   on surcharge uniquement ce qui doit changer pour le mode global */
.site-bg-icons .hico {
  position: absolute;
}

/* Légère atténuation sur les pages autres que l'index
   pour ne pas concurrencer le contenu textuel dense */
body:not(.page-index) .site-bg-icons .hico {
  opacity: calc(var(--op, .08) * 0.65);
}

/* ══ Captcha — page spécifique ══ */
/* overflow-y:scroll garanti par <html> inline sur la page captcha */
/* ── Speed captcha ── */
.speed-arena {
  position: relative; width: 100%; height: 200px;
  background: var(--bg3); border: 1px solid var(--border);
  margin-bottom: 1.2rem; overflow: hidden; cursor: crosshair;
  user-select: none;
}
.speed-target {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
  box-shadow: 0 0 18px var(--red), 0 0 40px rgba(255,61,90,.3);
  animation: targetPulse .45s ease infinite alternate;
  transition: left .08s ease, top .08s ease;
}
.speed-target.hit {
  animation: none;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  transform: scale(1.3);
  transition: transform .1s, background .1s;
}
@keyframes targetPulse { from{transform:scale(1)} to{transform:scale(1.18)} }
.speed-hud {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .8rem;
  font-family: var(--mono); font-size: .7rem;
}
.speed-hits  { color: var(--accent); letter-spacing: .1em; }
.speed-timer { color: var(--red);    letter-spacing: .1em; }
.speed-bar   {
  height: 3px; background: var(--border);
  margin-bottom: 1.5rem; overflow: hidden;
}
.speed-bar-fill {
  height: 100%; background: var(--red);
  width: 100%;
}
/* ── Puzzle captcha ── */
.puzzle-seq {
  display: flex; gap: 6px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.puzzle-tile {
  width: 52px; height: 52px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.4rem; color: var(--text);
}
.puzzle-tile.puzzle-missing {
  border: 2px solid var(--accent); color: var(--accent);
  background: rgba(255,255,255,.04);
  font-size: 1.8rem;
  animation: pulse 1.2s ease infinite;
}
.puzzle-choices {
  display: flex; gap: 1rem; justify-content: center;
  margin-bottom: 1.5rem;
}
.puzzle-btn {
  min-width: 80px; height: 60px; padding: 0 1rem;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--display); font-size: 1.6rem;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.puzzle-btn:hover   { border-color: rgba(255,255,255,.3); }
.puzzle-btn.selected{
  border-color: var(--accent); background: rgba(255,255,255,.06);
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO — LAYOUT DEUX COLONNES + PANEL ICÔNES
   ════════════════════════════════════════════════════════════════════════════ */

/* Grille gauche / droite */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: end;
  padding: 0 3rem 5rem;
  position: relative;
  z-index: 10;
}
.hero-left { display: flex; flex-direction: column; }

/* ── Panel droite ────────────────────────────────────────────────────────────── */
.hero-right {
  height: 520px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.09);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
  backdrop-filter: blur(4px);
}
.hero-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Coins style reticle */
.hip-corner {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 4;
}
.hip-corner--tl { top: -1px;  left: -1px;  border-top:    2px solid var(--accent); border-left:  2px solid var(--accent); }
.hip-corner--tr { top: -1px;  right: -1px; border-top:    2px solid var(--accent); border-right: 2px solid var(--accent); }
.hip-corner--bl { bottom:-1px;left: -1px;  border-bottom: 2px solid var(--accent); border-left:  2px solid var(--accent); }
.hip-corner--br { bottom:-1px;right:-1px;  border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

/* En-tête */
.hip-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 3; background: rgba(0,0,0,.2);
}
.hip-title {
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .22em; color: var(--muted); text-transform: uppercase;
}
.hip-counter {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .15em; color: var(--accent);
  transition: opacity .3s;
}

/* Scène */
.hip-stage {
  position: absolute;
  top: 44px; bottom: 74px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Items individuels */
.hip-item {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
  pointer-events: none; color: white;
}
.hip-item.active  { opacity: 1; transform: translateY(0); }
.hip-item.exiting { opacity: 0; transform: translateY(-40px);
  transition: opacity .35s ease, transform .35s ease; }

/* Texte-icônes */
.hip-text--xl {
  font-family: var(--mono); font-weight: 700;
  font-size: 4.5rem; line-height: 1; color: white;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.15));
}
.hip-text--sm {
  font-family: var(--mono); font-size: 1.5rem;
  line-height: 2.2; letter-spacing: .3em;
  text-align: center; color: white;
}

/* SVG icons */
.hip-svg       { width: 110px; height: 110px; color: white;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.1)); }
.hip-svg--wide { width: 140px; height: 110px; }
.hip-svg--tall { width: 85px;  height: 110px; }

/* Glow subtil sur l'icône active */
.hip-item.active .hip-text--xl,
.hip-item.active .hip-svg {
  animation: hipGlow 2s ease-in-out infinite alternate;
}
@keyframes hipGlow {
  from { filter: drop-shadow(0 0 8px  rgba(255,255,255,.08)); }
  to   { filter: drop-shadow(0 0 22px rgba(255,255,255,.22)); }
}

/* Barre de label */
.hip-label-bar {
  position: absolute; bottom: 42px; left: 0; right: 0;
  text-align: center; padding: 0 1.5rem;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .4s;
}

/* Footer - points */
.hip-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .75rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: center; align-items: center;
  background: rgba(0,0,0,.2);
}
.hip-dots { display: flex; gap: 5px; align-items: center; }
.hip-dot  {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background .35s ease, transform .35s ease, width .35s ease;
}
.hip-dot--active {
  background: var(--accent);
  transform: scale(1.5);
  width: 10px; border-radius: 2px; /* devient une pastille allongée */
}

/* Ligne de scan animée */
.hip-scan {
  position: absolute; left: 0; right: 0;
  height: 40px; pointer-events: none; z-index: 3;
  background: linear-gradient(to bottom,
    transparent, rgba(255,255,255,.025), transparent);
  animation: hipScanMove 4s ease-in-out infinite;
}
@keyframes hipScanMove {
  0%   { top: 44px;   opacity: 1; }
  85%  { top: calc(100% - 120px); opacity: .4; }
  100% { top: calc(100% - 120px); opacity: 0; }
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr 300px; gap: 2.5rem; }
  .hero-right  { height: 460px; }
  .hip-text--xl{ font-size: 3.5rem; }
  .hip-svg     { width: 90px; height: 90px; }
  .hip-svg--wide{ width: 115px; }
  .hip-svg--tall{ width: 70px; }
}
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; padding: 0 1.5rem 4rem; }
  .hero-right  { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO — CENTRAGE LAYOUT + TEXTE
   ════════════════════════════════════════════════════════════════════════════ */

/* Grid centré horizontalement dans le viewport */
.hero-layout {
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* Colonne texte centrée */
.hero-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Tag centré — espacement réduit pour tenir sur une ligne sur petit écran */
.hero-tag-wrap {
  justify-content: center;
  letter-spacing: .12em;
  font-size: .6rem;
  gap: .6rem;
}

/* Nom centré */
.hero-name-line { text-align: center; width: 100%; }

/* Trait centré */
.hero-divider {
  margin-left: auto;
  margin-right: auto;
}

/* Description centrée */
.hero-desc {
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

/* Boutons centrés */
.hero-cta { justify-content: center; }

/* Panel icônes centré verticalement */
.hero-right {
  align-self: center;
  margin: 0 auto;
}

/* Scroll indicator repositionné */
.hero-scroll { right: 1.5rem; }

/* Responsive : colonne unique centrée */
@media (max-width: 900px) {
  .hero-layout {
    max-width: 100%;
    padding: 0 1.5rem 4rem;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO — REPOSITIONNEMENT : texte au centre, panel icons plus grand
   ════════════════════════════════════════════════════════════════════════════ */

/* Grille recentrée — texte colonne fixe, panel remplit le reste */
.hero-layout {
  display: grid !important;
  grid-template-columns: 480px 1fr !important;
  max-width: 1350px !important;
  margin: 0 auto !important;
  gap: 5rem !important;
  padding: 0 4rem 5rem !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Texte : colonne de largeur fixe, centré verticalement */
.hero-left {
  width: 100%;
  max-width: 480px;
  align-items: flex-start !important;   /* texte aligné à gauche dans sa colonne */
  text-align: left !important;
}

/* Annuler le centrage texte des règles précédentes */
.hero-tag-wrap        { justify-content: flex-start !important; }
.hero-name-line       { text-align: left !important; }
.hero-divider         { margin-left: 0 !important; margin-right: 0 !important; }
.hero-desc            { text-align: left !important; margin: 0 !important; }
.hero-cta             { justify-content: flex-start !important; }

/* Panel icons : remplit toute la colonne droite, plus grand */
.hero-right {
  width: 100% !important;
  max-width: 100% !important;
  height: 580px !important;
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr 380px !important;
    gap: 3rem !important;
    padding: 0 2rem 4rem !important;
  }
}
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr !important;
    padding: 0 1.5rem 4rem !important;
  }
  .hero-right { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO — REPOSITIONNEMENT : texte → zone rouge / panel → zone verte
   ════════════════════════════════════════════════════════════════════════════ */

/* Réduction du max-width pour centrer l'ensemble vers le milieu de l'écran */
.hero-layout {
  max-width: 1020px !important;
  grid-template-columns: 1fr 400px !important;
  gap: 3rem !important;
  align-items: center !important;
  padding: 0 2rem 5rem !important;
}

/* Texte : revenir aligné à gauche (comme dans la zone rouge) */
.hero-left {
  align-items: flex-start !important;
  text-align: left !important;
}
.hero-tag-wrap   { justify-content: flex-start !important; }
.hero-name-line  { text-align: left !important; }
.hero-desc       { text-align: left !important; margin: 0 !important; }
.hero-cta        { justify-content: flex-start !important; }
.hero-divider    { margin-left: 0 !important; margin-right: 0 !important; }

/* Panel icônes : remplit toute la colonne verte */
.hero-right {
  width: 100% !important;
  height: 530px !important;
  align-self: center !important;
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-layout {
    max-width: 900px !important;
    grid-template-columns: 1fr 340px !important;
  }
  .hero-right { height: 470px !important; }
}
@media (max-width: 900px) {
  .hero-layout  { grid-template-columns: 1fr !important; max-width: 100% !important; }
  .hero-right   { display: none !important; }
  .hero-left    { align-items: center !important; text-align: center !important; }
  .hero-tag-wrap{ justify-content: center !important; }
  .hero-desc    { text-align: center !important; margin: 0 auto !important; }
  .hero-cta     { justify-content: center !important; }
  .hero-divider { margin: 2.2rem auto !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO — ESPACEMENT + POINTS DE PROGRESSION
   ════════════════════════════════════════════════════════════════════════════ */

/* Plus grand espace entre texte et panel icônes */
.hero-layout {
  gap: 7rem !important;
}

/* Points de progression : plus grands et plus espacés */
.hip-dots {
  gap: 10px !important;
}
.hip-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.2) !important;
  transition: background .35s ease, transform .35s ease, width .4s ease, border-radius .4s ease !important;
}
.hip-dot--active {
  width: 24px !important;
  border-radius: 4px !important;
  background: var(--accent) !important;
  transform: scale(1) !important;
  box-shadow: 0 0 8px rgba(255,255,255,.3) !important;
}

/* Footer légèrement plus haut pour respirer */
.hip-footer {
  padding: 1rem 1.4rem !important;
}

@media (max-width: 1100px) {
  .hero-layout { gap: 4rem !important; }
}

/* ── Réduction taille police "GABRIEL LIÉBAUT" ── */
.hero-name {
  font-size: clamp(2.8rem, 6vw, 6.5rem) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   PROFIL — ESPACEMENT RÉDUIT + CARTE CONFIG PC
   ════════════════════════════════════════════════════════════════════════════ */

/* Titre profil plus compact */
.profil-title-compact {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  margin-bottom: 1.5rem !important;
}

/* Lignes d'info compactes */
.info-line--compact {
  padding-bottom: .7rem !important;
  margin-bottom: 0 !important;
  gap: .2rem !important;
}
.info-line--compact .info-value {
  font-size: .9rem !important;
}

/* Réduire le gap global de profil-info */
.profil-info {
  gap: .8rem !important;
}

/* ── Carte Config PC ─────────────────────────────────────────────────────── */
.pc-config-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem !important;
  position: relative;
  overflow: hidden;
}
.pc-config-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.pc-config-title {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.pc-config-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pc-spec-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.pc-spec-row:last-child { border-bottom: none; }

.pc-spec-label {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.pc-spec-value {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text);
  letter-spacing: .03em;
}

/* ════════════════════════════════════════════════════════════════════════════
   PARCOURS — SOUS-TITRE EXPÉRIENCE PRO
   ════════════════════════════════════════════════════════════════════════════ */
.exp-subtitle-wrap {
  margin: 5rem 0 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.exp-subtitle {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: .02em;
  color: var(--text);
  display: flex; align-items: center; gap: 1.2rem;
}
.exp-subtitle::before {
  content: '';
  display: inline-block;
  width: 36px; height: 3px;
  background: var(--white);
}
/* Point rouge pour distinguer l'expérience pro de la formation */
.timeline-dot--xp {
  border-color: var(--white) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGE DÉTAIL PROJET (projet.php)
   ════════════════════════════════════════════════════════════════════════════ */
.proj-detail-back {
  display: inline-block;
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color var(--trans);
}
.proj-detail-back:hover { color: var(--accent); }

.proj-detail-header { margin-bottom: 2.5rem; }
.proj-detail-num {
  font-family: var(--display); font-size: 1.2rem;
  color: var(--accent); letter-spacing: .1em;
}
.proj-detail-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1rem 0;
}
.proj-detail-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1; color: var(--text);
  margin-bottom: 1rem;
}
.proj-detail-tagline {
  font-size: 1.05rem; line-height: 1.6;
  color: var(--muted); max-width: 700px;
}

/* Bandeau visuel */
.proj-detail-banner {
  width: 100%; height: 280px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* Métadonnées */
.proj-detail-meta {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}
.proj-meta-item {
  background: var(--bg2); padding: 1.2rem 1.5rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.proj-meta-label {
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.proj-meta-value {
  font-family: var(--mono); font-size: .85rem; color: var(--text);
}
.proj-meta-status { display: inline-block; width: fit-content; }
.proj-meta-status--done { color: var(--accent); }
.proj-meta-status--wip  { color: #ffa500; }

/* Contenu deux colonnes */
.proj-detail-content {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.proj-detail-section-title {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.proj-detail-text {
  font-size: .95rem; line-height: 1.8; color: var(--muted);
}
.proj-detail-features {
  list-style: none; display: flex; flex-direction: column; gap: .8rem;
}
.proj-detail-features li {
  position: relative; padding-left: 1.8rem;
  font-size: .9rem; line-height: 1.5; color: var(--text);
}
.proj-detail-features li::before {
  content: '▹';
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-size: 1rem;
}
.proj-detail-side {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 1.5rem;
}

/* Navigation projet */
.proj-detail-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .proj-detail-content { grid-template-columns: 1fr; gap: 2rem; }
  .proj-detail-meta    { grid-template-columns: 1fr; }
  .proj-detail-banner  { height: 180px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   STAGE — EMPLACEMENT LOGO ENTREPRISE
   ════════════════════════════════════════════════════════════════════════════ */
.stage-logo-wrap {
  width: 100%; height: 120px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 1rem;
}
.stage-logo-img {
  max-width: 90%; max-height: 90%;
  object-fit: contain;
}

/* ════════════════════════════════════════════════════════════════════════════
   THÈME CLAIR — surcharge des variables + éléments à couleur fixe
   ════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:      #e7e5e0;   /* fond de page : gris doux légèrement chaud (fini le blanc éclatant) */
  --bg2:     #f5f3ee;   /* cartes/surfaces : blanc cassé doux (fini le #fff éblouissant) */
  --bg3:     #edeae3;   /* gris clair chaud */
  --accent:  #2c2c33;   /* gris foncé pour accents (fini le noir pur) */
  --red:     #d6405d;   /* rouge légèrement adouci */
  --text:    #3a3a41;   /* gris foncé pour le texte (contraste plus doux que le noir) */
  --muted:   #777781;   /* gris atténué */
  --border:  rgba(0,0,0,.09);
}

/* Logo : PNG noir → pas d'inversion en clair */
[data-theme="light"] .nav-logo-img { filter: none; }
[data-theme="light"] .nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(0,0,0,.25));
}

/* Navbar au scroll : fond clair */
[data-theme="light"] nav.scrolled { background: rgba(245,243,238,.92); }

/* Scan-lines plus discrètes */
[data-theme="light"] body::before {
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,.025) 2px, rgba(0,0,0,.025) 4px);
}

/* Grille de fond en sombre léger */
[data-theme="light"] .grid-bg {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}

/* Icônes flottantes : sombres au lieu de blanches */
[data-theme="light"] .hico { color: #16161f; }

/* Panel "TECH UNIVERSE" : textes et SVG en sombre */
[data-theme="light"] .hip-item,
[data-theme="light"] .hip-text--xl,
[data-theme="light"] .hip-text--sm,
[data-theme="light"] .hip-svg { color: #16161f; }
[data-theme="light"] .hero-right { background: rgba(245,243,238,.6); }

/* Bouton principal : fond sombre → texte clair */
[data-theme="light"] .btn-primary { color: #fff; }
[data-theme="light"] .btn-primary:hover { color: var(--accent); background: transparent; }

/* Curseur custom : en clair, inverser pour rester visible */
[data-theme="light"] .cursor { mix-blend-mode: normal; background: #16161f; }
[data-theme="light"] .cursor-ring { border-color: rgba(0,0,0,.4); }

/* Photo placeholder & cartes : ombrage doux */
[data-theme="light"] .profil-photo-wrap::before {
  background: linear-gradient(135deg, rgba(0,0,0,.06) 0%, transparent 60%);
}

/* Transition douce lors du changement de thème */
body, nav, .hero-right, .cert-card, .pc-config-card,
.profil-photo-wrap, .timeline-desc {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}

/* ── Bouton toggle thème ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer; color: var(--text);
  transition: all var(--trans);
  padding: 0;
}
[data-theme="light"] .theme-toggle { background: rgba(0,0,0,.03); }
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Regroupe lang + thème dans la nav */
.nav-controls {
  display: flex; align-items: center; gap: .75rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGE VEILLE TECHNOLOGIQUE
   ════════════════════════════════════════════════════════════════════════════ */
.veille-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start; margin-bottom: 2rem;
}
.veille-intro {
  font-size: 1rem; line-height: 1.85; color: var(--muted);
}
.veille-block-title {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.veille-method-card {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 2rem;
}
.veille-method-text {
  font-size: .9rem; line-height: 1.7; color: var(--muted);
  margin-bottom: 1.5rem;
}
.veille-meta-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 1rem; padding: .7rem 0; align-items: baseline;
  border-bottom: 1px solid var(--border);
}
.veille-meta-label {
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}
.veille-meta-value {
  font-family: var(--mono); font-size: .72rem; color: var(--text);
}

/* Grille d'articles */
.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.veille-card {
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  min-height: 240px;
}
.veille-card-accent {
  position: absolute; inset: 0; pointer-events: none;
}
.veille-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem; position: relative; z-index: 1;
}
.veille-card-icon { font-size: 1.6rem; }
.veille-cat {
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .25rem .7rem; border: 1px solid;
}
.veille-cat--cyber   { color: var(--red);    border-color: rgba(255,61,90,.3); }
.veille-cat--network { color: #2e9fff;       border-color: rgba(46,159,255,.3); }
.veille-cat--system  { color: var(--accent); border-color: var(--border); }
.veille-cat--cloud   { color: #00c8c8;       border-color: rgba(0,200,200,.3); }

.veille-card-title {
  font-family: var(--display); font-size: 1.4rem;
  line-height: 1.1; color: var(--text);
  margin-bottom: .8rem; position: relative; z-index: 1;
}
.veille-card-desc {
  font-size: .85rem; line-height: 1.6; color: var(--muted);
  margin-bottom: 1.5rem; position: relative; z-index: 1; flex-grow: 1;
}
.veille-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
  position: relative; z-index: 1; gap: 1rem;
}
.veille-card-source {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; color: var(--muted);
}
.veille-card-link {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; white-space: nowrap;
  transition: opacity var(--trans);
}
.veille-card-link:hover { opacity: .65; }

@media (max-width: 800px) {
  .veille-top  { grid-template-columns: 1fr; gap: 2rem; }
  .veille-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════════════
   PAGE PROJET — IMAGE, BOUTON LIEN, APERÇU IFRAME
   ════════════════════════════════════════════════════════════════════════════ */
/* Image dans le bandeau */
.proj-detail-banner { padding: 0; position: relative; }
.proj-detail-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Bouton CTA (visiter / voir modèle) */
.proj-detail-cta {
  margin-bottom: 3rem;
  display: flex; gap: 1rem;
}

/* Aperçu en direct du site (iframe) */
.proj-detail-preview {
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
}
.proj-preview-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.proj-preview-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--muted); opacity: .4;
}
.proj-preview-dot:nth-child(1) { background: #ff5f56; opacity: .6; }
.proj-preview-dot:nth-child(2) { background: #ffbd2e; opacity: .6; }
.proj-preview-dot:nth-child(3) { background: #27c93f; opacity: .6; }
.proj-preview-url {
  margin-left: 1rem;
  font-family: var(--mono); font-size: .65rem;
  color: var(--muted); letter-spacing: .05em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-preview-frame {
  width: 100%; height: 480px;
  border: none; display: block;
  background: #fff;
}

/* Vignette image sur les cartes de la liste projets */
.project-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: .12;
  transition: opacity .4s ease;
  z-index: 0;
}
.project-card:hover .project-card-img { opacity: .22; }

@media (max-width: 800px) {
  .proj-preview-frame { height: 320px; }
}

/* ── Aperçu projet : bouton plein écran + note ── */
.proj-preview-expand {
  margin-left: auto;
  color: var(--muted); text-decoration: none;
  font-size: .9rem; padding: 0 .4rem;
  transition: color var(--trans);
}
.proj-preview-expand:hover { color: var(--accent); }
.proj-preview-hint {
  font-family: var(--mono); font-size: .62rem;
  line-height: 1.6; color: var(--muted);
  padding: .8rem 1rem; background: var(--bg3);
  border-top: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════════════════════
   STAGE — TABLEAU SEMAINES (une ligne par semaine)
   ════════════════════════════════════════════════════════════════════════════ */
.stage-timeline {
  background: var(--bg3);
  border: 1px solid var(--border);
}
.stage-timeline-row {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}
.stage-timeline-row.is-last { border-bottom: none; }
.stage-timeline-row:hover { background: rgba(255,255,255,.02); }
.stage-timeline-week {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; color: var(--accent);
  text-transform: uppercase; white-space: nowrap;
  min-width: 55px; font-weight: 700;
}
.stage-timeline-desc {
  font-size: .85rem; color: var(--muted); line-height: 1.4;
}

/* Sections 2 colonnes de la page Stage (fiche+contexte, compétences+bilan) */
.stage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}
/* Sur mobile : une seule colonne (sinon le contenu se tasse / se chevauche) */
@media (max-width: 900px) {
  .stage-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   MODE CLAIR — contours des cases & barres visibles (compétences + stage)
   ════════════════════════════════════════════════════════════════════════════ */
/* Cases tech-tag : contour plus marqué */
[data-theme="light"] .tech-tag {
  border-color: rgba(0,0,0,.28);
  color: #44445a;
}
[data-theme="light"] .tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Cartes (missions de stage, certificats) : contour plus net */
[data-theme="light"] .cert-card {
  border-color: rgba(0,0,0,.18);
}

/* Projets en mode clair : bordure des tags + overlay foncés (cartes claires) */
[data-theme="light"] .project-tag { border-color: rgba(0,0,0,.18); }
[data-theme="light"] .project-overlay { background: rgba(0,0,0,.03); }

/* Tableau semaines de stage : lignes plus visibles */
[data-theme="light"] .stage-timeline,
[data-theme="light"] .stage-timeline-row {
  border-color: rgba(0,0,0,.15);
}
[data-theme="light"] .stage-timeline-row:hover {
  background: rgba(0,0,0,.02);
}

/* Titres de groupe de compétences : trait de séparation visible */
[data-theme="light"] .skill-group-title {
  border-bottom-color: rgba(0,0,0,.18);
}

/* Mode clair — badge "BTS SIO SISR" : fond foncé donc texte blanc */
[data-theme="light"] .profil-tag-corner {
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════════════════
   PHOTO DE PROFIL — protégée contre la copie facile
   ════════════════════════════════════════════════════════════════════════════ */
.profil-photo {
  position: absolute; inset: 0;
  /* La photo est en arrière-plan CSS (pas de balise <img> à enregistrer) */
  background-image: url('../img/photo.jpg');
  background-size: cover;
  background-position: center top;
  /* Empêche la sélection et le glisser-déposer */
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
  pointer-events: none;
}
/* Couche transparente au-dessus : intercepte clic droit / glisser */
.profil-photo-guard {
  position: absolute; inset: 0; z-index: 2;
  background: transparent;
  -webkit-user-select: none; user-select: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGE CONTACT — nouvelle mise en page (carte centrée, inspirée maquette)
   ════════════════════════════════════════════════════════════════════════════ */
/* En-tête centré */
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1; letter-spacing: .01em;
  color: var(--text); margin: 1rem 0 0;
}
.contact-title-accent { color: var(--text); }
[data-theme="light"] .contact-title-accent { color: #000; }

/* Carte contenant le formulaire */
.contact-card {
  max-width: 880px; margin: 0 auto;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
}

/* Nom + Email côte à côte */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}

/* Champs en boîtes arrondies (surcharge le style minimaliste par défaut) */
.contact-card .form-field {
  border: none; padding: 0; margin-bottom: 1.5rem; background: none;
}
.contact-card .form-field:focus-within { border: none; }
.contact-card .form-field label {
  display: block;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); font-weight: 700;
  margin-bottom: .6rem; opacity: .85;
}
.contact-card .form-field input,
.contact-card .form-field select,
.contact-card .form-field textarea {
  width: 100%; box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1rem;
  color: var(--text);
  font-family: var(--body); font-size: .9rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-card .form-field input::placeholder,
.contact-card .form-field textarea::placeholder { color: var(--muted); }
.contact-card .form-field input:focus,
.contact-card .form-field select:focus,
.contact-card .form-field textarea:focus {
  outline: none; border-color: #7a7a8a;
  box-shadow: 0 0 0 3px rgba(150,150,170,.15);
}
.contact-card .form-field textarea { min-height: 150px; resize: vertical; }
.contact-card .form-field select option { background: var(--bg2); color: var(--text); }

/* Gros bouton d'envoi (pleine largeur, couleur d'accent) */
.contact-submit-btn {
  width: 100%; box-sizing: border-box;
  background: #44444f; color: #fff;
  border: none; border-radius: 10px;
  padding: 1.1rem;
  font-family: var(--display); font-size: 1.15rem;
  letter-spacing: .04em; cursor: pointer;
  transition: background .2s ease, transform .08s ease;
  margin-top: .5rem;
}
.contact-submit-btn:hover { background: #55555f; }
.contact-submit-btn:active { transform: scale(.99); }
[data-theme="light"] .contact-submit-btn { background: #6b6b85; }
[data-theme="light"] .contact-submit-btn:hover { background: #5a5a72; }

/* Responsive : empile les colonnes sur petit écran */
@media (max-width: 680px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { padding: 1.75rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   GRANDS ÉCRANS — élargit et agrandit le contenu pour combler le vide noir
   sur les grands moniteurs (écrans larges / 4K)
   ════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1600px) {
  html { font-size: 17px; }
  .inner { max-width: 1500px; }
  .hero-layout { max-width: 1440px; grid-template-columns: 1fr 400px; }
  .hero-right { height: 560px; }
}
@media (min-width: 1920px) {
  html { font-size: 18px; }
  .inner { max-width: 1680px; }
  .hero-layout { max-width: 1600px; grid-template-columns: 1fr 440px; }
  .hero-right { height: 600px; }
  .hero-name { font-size: clamp(6rem, 12vw, 14rem); }
}
@media (min-width: 2400px) {
  html { font-size: 19px; }
  .inner { max-width: 1900px; }
  .hero-layout { max-width: 1820px; grid-template-columns: 1fr 480px; }
}
