/* ============================================================
   Global CSS — Portfolio RAOUX Lino
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@font-face {
  font-family: 'Thunder';
  src: url('../assets/fonts/Thunder-ExtraBoldLC.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'Thunder';
  src: url('../assets/fonts/Thunder-SemiBoldLC.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Thunder';
  src: url('../assets/fonts/Thunder-ExtraBoldLCItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

/* Zrnic — place le fichier zrnic.ttf dans assets/fonts/ */
@font-face {
  font-family: 'Zrnic';
  src: url('../assets/fonts/zrnic.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ---- Variables ---- */
:root {
  --bg:          #0a0a0a;
  --bg-card:     #141414;
  --bg-form:     #111111;
  --pink:        #FB9CE4;
  --pink-dark:   #e085cc;
  --white:       #F7F7FF;
  --gray:        #777777;
  --gray-light:  #bbbbbb;
  --border:      rgba(247, 247, 255, 0.12);
  --border-card: rgba(247, 247, 255, 0.08);
  --footer-bg:   #161616;
  --radius-card: 14px;
  --radius-btn:  50px;
  --shadow:      0 4px 24px rgba(0,0,0,0.6);

  --font-title: 'Thunder', sans-serif;
  --font-sub:   'Zrnic', 'Inter', sans-serif;
  --font-body:  'Inter', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: url('../assets/page-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }

/* ---- Navbar — transparente en haut, fond au scroll ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  height: 52px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--pink); }

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.2s, border-color 0.2s;
  border: none;
  position: relative;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn-pink {
  background: var(--pink);
  color: #0a0a0a;
  box-shadow: 0 4px 18px rgba(251,156,228,0.35);
  overflow: hidden;
}

.btn-pink::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.45) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: btn-shimmer 7s infinite;
}

@keyframes btn-shimmer {
  0%   { left: -75%; }
  20%  { left: 130%; }
  100% { left: 130%; }
}

.btn-pink:hover {
  background: var(--pink-dark);
  box-shadow: 0 6px 28px rgba(251,156,228,0.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(247,247,255,0.4);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(247,247,255,0.08);
  border-color: var(--white);
  box-shadow: 0 4px 18px rgba(247,247,255,0.08);
}

/* ---- Page header banner ---- */
.page-header {
  position: relative;
  padding: 52px 72px 0; /* compense la navbar fixed */
}

.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 0 20px;
  border-bottom: 2px solid var(--white);
}

/* Petits losanges décoratifs aux extrémités (style Figma) */
.page-header-inner::before,
.page-header-inner::after {
  display: none;
}

.page-header-inner .page-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 110px);
  line-height: 0.9;
  color: var(--white);
}

.page-header-inner .page-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 110px);
  line-height: 0.9;
  text-transform: uppercase;
  text-align: right;
  color: var(--white);
}

/* ---- Cards ---- */
.card {
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(251,156,228,0.3);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: #1e1e1e;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: #2a2a2a;
}

.card-body { padding: 16px; }

.card-title {
  font-family: var(--font-sub);
  font-size: 17px;
  font-weight: normal;
  margin-bottom: 6px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px 4px;
  background: var(--pink);
  color: #0a0a0a;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}

/* ---- Grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Burger menu ---- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 110;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none !important;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 768px) {
  .mobile-menu.open { display: flex !important; }
}

.mobile-menu a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--pink); }

.mobile-menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ---- Footer mobile ---- */
@media (max-width: 768px) {
  .footer {
    margin: 0 16px 16px;
    border-radius: 20px;
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-nav a {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
  .navbar { padding: 0 20px; }
  .page-header { padding: 52px 20px 0; }

  /* Cacher nav-links et nav-actions, afficher burger */
  .nav-links { display: none !important; }
  .nav-actions { display: none !important; }
  .burger { display: flex !important; }
}

/* ---- Section label ---- */
.section-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 0 20px;
  border-bottom: 2px solid var(--white);
  margin-bottom: 36px;
  position: relative;
}

.section-num {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(72px, 10vw, 130px);
  line-height: 0.9;
  color: var(--white);
}

.section-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(72px, 10vw, 130px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
}

/* ---- Footer compact et très arrondi ---- */
.footer {
  margin: 0 72px 16px;
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-light);
  font-weight: 500;
}

.footer-nav { display: flex; gap: 28px; }

.footer-nav a {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--pink); }

.footer-icons { display: flex; gap: 10px; }

.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(251,156,228,0.35);
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
}

.footer-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.45) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: btn-shimmer 7s infinite;
  animation-delay: 0.8s;
}

.footer-icon:hover {
  background: var(--pink-dark);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 22px rgba(251,156,228,0.55);
}

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 72px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-32 { margin-bottom: 32px; }

.text-pink  { color: var(--pink); }
.text-gray  { color: var(--gray); }
.text-small { font-size: 12px; }

.flash-msg {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.flash-success { background: rgba(100,200,100,0.12); border: 1px solid rgba(100,200,100,0.35); color: #7dffb3; }
.flash-error   { background: rgba(251,156,228,0.12); border: 1px solid rgba(251,156,228,0.35); color: var(--pink); }
