/* ═══════════════════════════════════════════════════════════════
   style.css — Ethan Boulard Portfolio
   ═══════════════════════════════════════════════════════════════ */

/* ─── CUSTOM FONT ─────────────────────────────────────────────── */
@font-face {
  font-family: 'BlissTwin';
  src: url('assets/Blisstwin.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #0e0e12;
  --surface:   #16161d;
  --surface2:  #1e1e28;

  /* Borders */
  --border:    rgba(255, 255, 255, 0.07);
  --border-md: rgba(255, 255, 255, 0.12);

  /* Text */
  --text:      #dcdce6;
  --muted:     #6a6a7a;

  /* Accent — muted gold */
  --accent:    #d4c84a;
  --accent-glow: rgba(212, 200, 74, 0.18);
  --accent-subtle: rgba(212, 200, 74, 0.07);

  /* Violet */
  --accent2:   #8b5cf6;
  --accent2-glow: rgba(139, 92, 246, 0.18);
  --accent2-subtle: rgba(139, 92, 246, 0.08);

  /* Lavande clair */
  --lavender:  #c4b5fd;

  /* État danger */
  --danger:    #f87171;

  /* Purple palette */
  --dark-purple:   #14012a;
  --light-purple:  #3f1274;
  --accent-purple: #7348a3;

  /* Typographie */
  --ff-head: 'BlissTwin', sans-serif;
  --ff-mono: 'DM Mono', monospace;
  --ff-body: 'DM Sans', sans-serif;

  /* Rayons */
  --radius:    5px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #0e0e12;
}

/* ─── FONT AWESOME — espacements globaux ─────────────────────── */
.btn-primary-custom i,
.btn-ghost i,
.btn-card-violet i,
.btn-card-ghost i,
.btn-card-accent i,
.btn-card-expand i,
.footer-back i,
.contact-link-icon i {
  line-height: 1;
  vertical-align: middle;
}

/* ─── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--accent); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}

nav.scrolled {
  background: rgba(14, 14, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover           { color: var(--text); }
.nav-links a:hover::after    { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr; 
  align-items: center;
  padding: 120px 48px 100px; 
  position: relative;
  overflow: hidden;
  gap: 64px;    
  width: 100%;
}

/* Wrapper pour que le fond plein-largeur fonctionne toujours */
#hero-section-outer {
  position: relative;
  overflow: hidden;
}

/* Grille animée en fond — reste attachée au viewport */
#hero-section-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Halo accent — repositionné à droite du wrapper */
#hero-section-outer::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

/* Grille animée en fond */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Halo accent */
#hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

/* — Hero left ────────────────────────────────────────────────── */
.hero-left {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(212, 200, 74, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-tag::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f111';
  font-size: 0.42rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero-name {
  font-family: var(--ff-head);
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 12px;
}

.hero-name span { color: var(--accent); }

.hero-title {
  font-family: var(--ff-mono);
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-desc {
  max-width: 400px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

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

/* — Boutons hero ─────────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #0e0e12;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #0e0e12;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid var(--border-md);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-2px);
}

/* — Hero right : stack chips ─────────────────────────────────── */
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* — Hero Preview  ──────────────────────────────── */
.hero-preview {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: right;    
  gap: 16px;
  margin-left: 0;
  margin-right: 100px;
  justify-self: center;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(212, 200, 74, 0.22);
  padding: 5px 12px;
  border-radius: 100px;
}

.preview-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* Image brute — plus de shell téléphone */
.preview-img-wrap {
  position: relative;
  width: 240px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(212, 200, 74, 0.12),
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 60px var(--accent-glow);
}

.preview-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.preview-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, rgba(7, 7, 13, 0.5) 100%);
  pointer-events: none;
}

.preview-img-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 28px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

.preview-info-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border-md);
  border-radius: 12px;
  padding: 11px 14px;
  width: 220px;
  transition: border-color 0.3s, transform 0.3s;
}

.preview-info-card:hover {
  border-color: rgba(212, 200, 74, 0.3);
  transform: translateY(-2px);
}

.preview-info-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-subtle);
  border: 1px solid rgba(212, 200, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.preview-info-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.preview-info-name {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.03em;
}

.preview-info-stack {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.preview-info-pill {
  font-family: var(--ff-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
  background: var(--accent2-subtle);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 3px 7px;
  border-radius: 100px;
  flex-shrink: 0;
}

/* — Navigation vers section suivante ─────────────────────────── */
.page-section {
  position: relative;
}

.section-next-btn {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border-md);
  background: rgba(14, 14, 18, 0.7);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.section-next-btn i {
  font-size: 0.9rem;
  animation: arrowNudge 1.6s ease-in-out infinite;
}

.section-next-btn:hover {
  transform: translateX(-50%) translateY(-3px);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-glow);
}

.section-next-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes arrowNudge {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION WRAPPER & HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-wrap {
  padding: 120px 48px;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 72px;
}

.section-num {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 14px;
  flex-shrink: 0;
}

.section-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.section-title em {
  color: var(--accent);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════════ */
#skills { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skill-block {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.skill-block:hover             { background: var(--surface2); }
.skill-block:hover::after      { transform: scaleX(1); }

.skill-block-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: block;
}

.skill-block-title {
  font-family: var(--ff-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.skill-block-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.skill-tag {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag i {
  font-size: 0.7rem;
  line-height: 0.8;
  flex-shrink: 0;
  display: inline-block;
}

.skill-tag [class^="devicon-"] {
  font-size: 0.8rem;           /* icône légèrement plus grande que le texte */
  line-height: 1;
  flex-shrink: 0;
}

.skill-block:hover .skill-tag {
  border-color: rgba(212, 200, 74, 0.22);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════════ */
#projects { background: var(--surface); }

.project-category-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.project-category-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
}

/* — Grille unifiée projets ───────────────────────────────────── */
.all-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Mobile card — même taille que web card, layout interne conservé */
.mobile-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.mobile-card:hover {
  border-color: rgba(212, 200, 74, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* Zone image — même ratio 16/9 que .web-carousel */
.mobile-carousel {
  position: cover;
  width: 55%;
  min-height: 360px;
  aspect-ratio: auto;
  overflow: hidden;
  background: #07070d;
  flex-shrink: 0;
}

.mobile-carousel .carousel,
.mobile-carousel .carousel-inner,
.mobile-carousel .carousel-item { height: 100%; }

.mobile-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.mobile-carousel .carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.mobile-card .carousel-control-prev,
.mobile-card .carousel-control-next { opacity: 0; }
.mobile-card:hover .carousel-control-prev,
.mobile-card:hover .carousel-control-next { opacity: 1; }

/* Contenu — identique aux web cards */
.mobile-card .card-body-custom {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-card .card-project-desc {
  margin-bottom: 12px;
}

.mobile-card .card-features {
  gap: 5px;
  margin-bottom: 12px;
}

.mobile-card .card-features li {
  font-size: 0.78rem;
}

.mobile-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(212, 200, 74, 0.22);
  padding: 3px 9px;
  border-radius: 100px;
}

.mobile-badge::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f3cd';
  font-size: 0.55rem;
}

.mobile-badge-stage {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.web-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.web-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
  background: var(--accent2-subtle);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 3px 9px;
  border-radius: 100px;
}

.web-badge::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f0ac';
  font-size: 0.55rem;
}

.web-badge-stage {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
}

/* ─── Card titles — BlissTwin partout, taille harmonisée ──────── */
.card-project-title {
  font-family: var(--ff-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}

.mobile-card .card-project-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.mobile-card .card-features { margin-bottom: 0; }

.mobile-card .card-tags {
  margin-top: auto;
  padding-top: 12px;
  margin-bottom: 16px;
}

/* — Web projects (alias pour compatibilité) ──────────────────── */
.web-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.web-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.web-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.web-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a0d;
}

.web-carousel .carousel-inner,
.web-carousel .carousel-item { height: 100%; }

.web-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* — Card body partagé ────────────────────────────────────────── */
.card-body-custom {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-project-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-features {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.82rem;
  color: rgba(220, 220, 230, 0.6);
}

.card-features li::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f061';
  color: var(--accent);
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.web-card .card-features li::before { color: var(--lavender); }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  margin-top: auto;
  padding-top: 16px;
}

.card-tag {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* — Boutons carte ────────────────────────────────────────────── */
.btn-card-accent {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: #0e0e12;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.btn-card-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
  color: #0e0e12;
}

.btn-card-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-md);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.btn-card-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  color: #fff;
}

.btn-card-violet {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent2-subtle);
  color: var(--lavender);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.btn-card-violet:hover {
  background: rgba(139, 92, 246, 0.16);
  transform: translateY(-1px);
  color: var(--lavender);
}

.btn-card-expand {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.btn-card-expand:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* — Carousel controls ────────────────────────────────────────── */
.carousel-control-prev,
.carousel-control-next {
  width: 36px;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-card:hover .carousel-control-prev,
.mobile-card:hover .carousel-control-next,
.web-card:hover .carousel-control-prev,
.web-card:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  background-size: 60%;
  width: 32px; height: 32px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.carousel-indicators            { bottom: 8px; }
.carousel-indicators button     {
  width: 4px; height: 4px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
}
.carousel-indicators button.active { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   MODAL PROJET
   ═══════════════════════════════════════════════════════════════ */
.modal-project .modal-content {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  color: var(--text);
  overflow: hidden;
}

.modal-project .modal-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px;
}

.modal-project .modal-title {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.modal-project .btn-close {
  filter: invert(1) opacity(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.modal-project .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-project .modal-body {
  padding: 32px 28px;
}

.modal-carousel {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: #0a0a0d;
}

.modal-carousel.portrait { aspect-ratio: 9/16; max-width: 340px; margin-left: auto; margin-right: auto; }
.modal-carousel.landscape { aspect-ratio: 16/9; }

.modal-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.modal-carousel .carousel-inner,
.modal-carousel .carousel-item { height: 100%; }

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.modal-section-label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem;
  color: rgba(220, 220, 230, 0.75);
}

.modal-features li::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f061';
  color: var(--accent);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal-tag {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-md);
  border-radius: 6px;
  color: var(--lavender);
}

.modal-project .modal-footer {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 18px 28px;
  gap: 10px;
}

.modal-backdrop.show { opacity: 0.75; }

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
#contact { background: var(--bg); }

.contact-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-wrap::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.contact-wrap::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent2-glow) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  pointer-events: none;
}

.contact-heading {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.05;
}

.contact-heading em {
  color: var(--accent);
  font-style: normal;
}

.contact-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.contact-link:hover {
  border-color: var(--accent);
  background: rgba(212, 200, 74, 0.04);
  transform: translateX(6px);
  color: var(--text);
}

.contact-link-left {
  display: flex; align-items: center; gap: 14px;
}

.contact-link-icon {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text);
  flex-shrink: 0;
}

.contact-link-arrow {
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}

.contact-link:hover .contact-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.contact-deco {
  font-family: var(--ff-head);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
}

.contact-deco span           { display: block; }
.contact-deco .accent-word   { -webkit-text-stroke-color: rgba(212, 200, 74, 0.15); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-back {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-back:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible          { opacity: 1; transform: none; }
.reveal-delay-1          { transition-delay: 0.1s; }
.reveal-delay-2          { transition-delay: 0.2s; }
.reveal-delay-3          { transition-delay: 0.3s; }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 80px;  
  }
  .hero-right         { display: none; }
  .hero-preview       { display: none; }
  .section-next-btn   { width: 42px; height: 42px; bottom: 14px; }
  .section-wrap       { padding: 80px 24px; }
  .skills-grid        { grid-template-columns: 1fr; }
  .all-projects       { grid-template-columns: 1fr; }
  .web-projects       { grid-template-columns: 1fr; }
  .contact-wrap       { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }
  .contact-right      { display: none; }
  nav                 { padding: 16px 24px; }
  nav.scrolled        { padding: 12px 24px; }
  footer              { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
  .modal-meta         { grid-template-columns: 1fr; gap: 16px; }

  .mobile-card        { flex-direction: column; }
  .mobile-carousel    { width: 100%; height: 260px; }
  .mobile-card .card-body-custom {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}