/* ═══════════════════════════════════════════
   PORTFOLIO — Tony Fernandez  |  2026
   Design éditorial · Bold · Immersif
   ═══════════════════════════════════════════ */

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

:root {
  --bg:        #06101d;
  --bg2:       #0c1525;
  --light:     #f8f6f2;
  --orange:    #f36421;
  --orange2:   #ff8c45;
  --navy:      #0e1d35;
  --text:      #1c2b3a;
  --muted:     #5f748a;
  --white:     #ffffff;
  --border:    #e4e7ec;
  --bdark:     rgba(255,255,255,0.08);
  --radius:    12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CURSEUR PERSONNALISÉ ── */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.1s;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(243, 100, 33, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s;
}

body.cursor-hover .cursor-ring {
  width: 58px; height: 58px;
  border-color: var(--orange);
}

/* ── BARRE DE PROGRESSION SCROLL ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  z-index: 1001;
  transition: width 0.08s linear;
}

/* ── NAVBAR ── */
.pf-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.pf-nav.scrolled {
  background: rgba(6, 16, 29, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bdark);
}

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px; font-weight: 800;
  color: var(--white); letter-spacing: 0.3px;
}
.nav-brand em { color: var(--orange); font-style: normal; }

.nav-links {
  display: flex; gap: 4px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px; font-weight: 500;
  padding: 7px 16px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links .nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
}
.nav-links .nav-cta:hover { background: var(--orange2) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: 110px 48px 70px;
}

/* Grille de points en fond */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Halo orange derrière la photo */
.hero::after {
  content: '';
  position: absolute;
  right: 12%; top: 50%;
  transform: translateY(-50%);
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(243,100,33,0.1) 0%, transparent 68%);
  border-radius: 50%; pointer-events: none;
}

.hero-inner {
  max-width: 1220px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 58fr 42fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

/* ─ côté texte ─ */
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 36px; height: 2px; background: var(--orange);
  flex-shrink: 0;
}

.hero-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(60px, 9.5vw, 115px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -3px;
  margin-bottom: 26px;
}

.hero-name .line {
  display: block; overflow: hidden;
}
.hero-name .line span {
  display: block;
  transform: translateY(110%);
  animation: slideUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  color: var(--white);
}
.hero-name .line:nth-child(1) span { animation-delay: 0.25s; }
.hero-name .line:nth-child(2) span { animation-delay: 0.42s; color: var(--orange); }

@keyframes slideUp {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.5);
  line-height: 1.75; margin-bottom: 30px; max-width: 540px;
}
.hero-loc { display: block; margin-top: 4px; font-size: 13.5px; }

.hero-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 38px;
}
.hero-pill {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.11);
  padding: 5px 13px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.hero-pill:hover {
  border-color: rgba(243,100,33,0.5);
  color: var(--orange2);
  background: rgba(243,100,33,0.07);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─ côté visuel ─ */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; padding: 40px;
}

.photo-wrap {
  position: relative;
  width: 290px; height: 290px;
}

.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  border: 3px solid var(--orange);
  position: relative; z-index: 1; display: block;
  box-shadow: 0 0 40px rgba(243,100,33,0.2);
}

.photo-ring {
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(243,100,33,0.28);
  animation: slowSpin 28s linear infinite;
}

@keyframes slowSpin { to { transform: rotate(360deg); } }

.photo-deco {
  position: absolute;
  background: var(--orange);
  border-radius: 10px;
}
.photo-deco-1 { width: 54px; height: 54px; bottom: 10px; right: -18px; opacity: 0.1; transform: rotate(14deg); }
.photo-deco-2 { width: 22px; height: 22px; top: 30px; left: -6px; opacity: 0.2; transform: rotate(-12deg); }

/* badges flottants */
.float-badge {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 13px 18px;
  text-align: center; line-height: 1.3;
  animation: floatIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.float-badge strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 900;
  color: var(--orange);
}
.float-badge span { font-size: 11px; color: rgba(255,255,255,0.55); }
.b1 { bottom: -8px; left: -10px; animation-delay: 0.7s; }
.b2 { top: 14px; right: -20px; animation-delay: 0.9s; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* scroll hint */
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  animation: breathe 2.8s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 38px; background: rgba(255,255,255,0.14); }

@keyframes breathe {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.35; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 0.9; }
}

/* ── STRUCTURE SECTIONS ── */
.section { padding: 100px 0; }
.section.light { background: var(--light); }
.section.dark  { background: var(--bg); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }

.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}

.section-h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800; line-height: 1.15; margin-bottom: 56px;
}
.section.light .section-h2 { color: var(--text); }
.section.dark  .section-h2 { color: var(--white); }

/* ── À PROPOS ── */
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

.about-h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 800; color: var(--text);
  line-height: 1.15; margin-bottom: 26px;
}
.about-h2 em { color: var(--orange); font-style: normal; }

.story-pivot {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px; flex-wrap: wrap;
}
.pivot-item {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--white); border: 1px solid var(--border);
  padding: 13px 16px; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.pivot-year { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--orange); text-transform: uppercase; }
.pivot-role { font-size: 13px; font-weight: 500; color: var(--text); }
.pivot-arrow { font-size: 22px; color: var(--orange); font-weight: 700; flex-shrink: 0; }

.about-left p {
  font-size: 14.5px; color: var(--muted); line-height: 1.9; margin-bottom: 14px;
}
.about-left p strong { color: var(--text); }
.about-left p:last-of-type { margin-bottom: 0; }

/* stats */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.stat-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-block:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
.stat-n {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px; font-weight: 900; color: var(--orange); line-height: 1;
  margin-bottom: 5px;
}
.stat-l { font-size: 12px; color: var(--muted); }

.info-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.info-icon { font-size: 18px; flex-shrink: 0; }
.info-card strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.info-card > div > span { font-size: 12.5px; color: var(--muted); }
.info-link {
  font-size: 13.5px; color: var(--text); font-weight: 500;
  transition: color 0.2s; display: flex; align-items: center; gap: 8px;
}
.info-link:hover { color: var(--orange); }

/* ── STACK ── */
.stack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--bdark);
}

.stack-col {
  padding: 40px 36px;
  border-right: 1px solid var(--bdark);
  position: relative; overflow: hidden;
}
.stack-col:last-child { border-right: none; }

/* trait orange en haut qui se dessine au scroll */
.stack-col::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.stack-col.visible::before { width: 100%; }

.col-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px; font-weight: 900;
  color: rgba(255,255,255,0.05);
  line-height: 1; margin-bottom: 4px;
  user-select: none;
}
.col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 22px;
}
.col-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stag {
  display: inline-block; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.6); padding: 5px 13px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 100px;
  transition: all 0.22s; cursor: default;
}
.stag:hover {
  background: var(--orange); border-color: var(--orange);
  color: var(--white); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(243,100,33,0.35);
}
.stag.hot {
  background: rgba(243,100,33,0.1);
  border-color: rgba(243,100,33,0.28);
  color: var(--orange2);
}
.stag.hot:hover {
  background: var(--orange); border-color: var(--orange); color: var(--white);
}

/* ── EXPÉRIENCE ── */
.exp-list { display: flex; flex-direction: column; }

.exp-item {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 52px; padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:first-child { border-top: 1px solid var(--border); }

.exp-left { padding-top: 4px; }
.exp-dates {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.exp-company {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.3;
}
.exp-company span { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 400; color: var(--muted); }

.exp-title {
  font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 16px;
}
.exp-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px;
}
.exp-bullets li {
  font-size: 13.5px; color: var(--muted); line-height: 1.75;
  display: flex; align-items: flex-start; gap: 10px;
}
.exp-bullets li::before {
  content: '→'; color: var(--orange); font-size: 12px;
  flex-shrink: 0; margin-top: 4px;
}
.exp-bullets li strong { color: var(--text); }

.exp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.exp-tag {
  font-size: 11px; font-weight: 500; color: var(--muted);
  background: var(--white); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 4px;
}

/* ── FORMATION ── */
.edu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 740px;
}
.edu-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--bdark);
  border-radius: var(--radius); padding: 30px;
  transition: border-color 0.3s, background 0.3s;
}
.edu-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(243,100,33,0.25);
}
.edu-icon { font-size: 28px; margin-bottom: 16px; }
.edu-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; font-weight: 800; color: var(--white); margin-bottom: 6px;
}
.edu-sub { font-size: 12.5px; color: rgba(255,255,255,0.4); margin-bottom: 14px; line-height: 1.6; }
.edu-year {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--orange); text-transform: uppercase;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--orange);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 900; color: var(--white); margin-bottom: 12px;
}
.cta-section p { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── BOUTONS ── */
.btn-prime {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  font-size: 14px; font-weight: 700;
  padding: 13px 26px; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(243,100,33,0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-prime:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(243,100,33,0.45); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.75);
  font-size: 14px; font-weight: 700;
  padding: 13px 26px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: var(--white); border-color: rgba(255,255,255,0.42); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--orange);
  font-size: 14px; font-weight: 700;
  padding: 13px 28px; border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,0.14); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-size: 14px; font-weight: 700;
  padding: 13px 28px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.38);
  transition: all 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ── FOOTER ── */
.pf-footer {
  background: var(--bg2); color: rgba(255,255,255,0.38);
  padding: 38px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; font-weight: 800; color: var(--white);
}
.footer-brand em { color: var(--orange); font-style: normal; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; }

/* ── COOKIE ── */
.cookieContainer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg2); color: rgba(255,255,255,0.75);
  font-size: 13px; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; z-index: 200;
  border-top: 1px solid var(--bdark);
}
.cookieContainer.hidden { display: none; }
.cookieContainer a { color: var(--orange2); text-decoration: underline; }
.cookieBtn {
  background: var(--orange); color: var(--white); border: none;
  padding: 7px 20px; border-radius: 6px; font-size: 13px;
  font-weight: 600; cursor: none; white-space: nowrap;
}

/* ── ANIMATIONS RÉVÉLATION ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── PAGE HERO (pages internes) ── */
.page-hero {
  padding: 130px 0 68px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
  text-align: center;
}
.page-hero-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange2); margin-bottom: 10px;
}
.page-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900; color: var(--white); line-height: 1.1;
}
.page-hero-title span { color: var(--orange); }
.page-hero-sub { font-size: 15px; color: rgba(255,255,255,0.55); margin-top: 10px; }

/* ── RESPONSIVE ── */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .exp-item { grid-template-columns: 140px 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .pf-nav { padding: 0 24px; }
  .hero { padding: 95px 24px 70px; }
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg2); padding: 16px 24px;
    border-bottom: 1px solid var(--bdark);
  }
  .stack-grid { grid-template-columns: 1fr; }
  .stack-col { border-right: none; border-bottom: 1px solid var(--bdark); }
  .stack-col:last-child { border-bottom: none; }
  .exp-item { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .edu-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-name .line span { animation: none; transform: none; }
  .photo-ring { animation: none; }
  .hero-scroll { animation: none; }
  .float-badge { animation: none; opacity: 1; }
}

/* ── CARTES PROJETS (page Projets.html) ── */
.proj-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  margin-bottom: 28px; margin-top: 56px;
  display: flex; align-items: center; gap: 12px;
}
.proj-section-label:first-of-type { margin-top: 0; }
.proj-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.proj-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}

.proj-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.11); }
.proj-card-bar { height: 4px; background: linear-gradient(90deg, var(--orange), var(--orange2)); flex-shrink: 0; }
.proj-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

/* image preview */
.proj-img {
  height: 178px; overflow: hidden; background: var(--bg2); flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.proj-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform 0.45s ease;
}
.proj-card:hover .proj-img img { transform: scale(1.04); }

/* double image côte à côte */
.proj-img.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.proj-img.dual img { height: 178px; object-fit: cover; object-position: top; }

/* image plus haute pour les screenshots portrait (apps mobiles) */
.proj-img.tall { height: 300px; }
.proj-img.tall img { object-position: top; }

.proj-icon {
  width: 46px; height: 46px; background: var(--light);
  border: 1px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.proj-title  { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.proj-sub    { font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.proj-desc   { font-size: 13px; color: var(--muted); line-height: 1.75; flex: 1; margin-bottom: 16px; }
.proj-tags   { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-tag    {
  font-size: 10.5px; font-weight: 500; color: var(--muted);
  background: var(--light); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 4px;
}
.proj-links {
  display: flex; gap: 10px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.proj-link {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 5px; transition: color 0.2s;
}
.proj-link:hover { color: var(--orange); }

@media (max-width: 900px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

/* ── CONTACT (page Contact.html) ── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 60px; align-items: start;
}

.contact-h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800; color: var(--text); margin-bottom: 12px;
}
.contact-sub { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 28px; }

.contact-details { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.cd-icon {
  width: 38px; height: 38px; background: var(--light);
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.cd-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.cd-value { font-size: 14px; font-weight: 500; color: var(--text); margin-top: 2px; }

.contact-socials { display: flex; gap: 10px; }
.social-link {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all 0.2s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.social-link:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-2px); }

/* formulaire */
.contact-form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-label { font-size: 11.5px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.8px; }
.form-input,
.form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--text); background: var(--light);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243,100,33,0.1);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit {
  margin-top: 22px; width: 100%; padding: 14px;
  background: var(--orange); color: var(--white); border: none;
  border-radius: 10px; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700; cursor: none;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--orange2); transform: translateY(-1px); }

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .contact-form-card { padding: 22px; } }
