/* =============================================
   FOUSSCO LAB — style.css
   ============================================= */

/* === FONTS (auto-hébergées — aucune requête externe) === */
@font-face {
  font-family: 'Bebas Neue';
  src: url('assets/fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dancing Script';
  src: url('assets/fonts/DancingScript-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === VARIABLES === */
:root {
  --orange:     #FF6B00;
  --noir:       #0A0A0A;
  --noir-2:     #111111;
  --noir-3:     #1A1A1A;
  --ivoire:     #F5F5F0;
  --blanc:      #FFFFFF;
  --gris:       #999999;
  --border:     #222222;
  --font-head:  'Bebas Neue', sans-serif;
  --font-body:  'Inter', sans-serif;
  --radius:     6px;
  --t:          0.25s ease;
  --max-w:      1200px;
  --nav-h:      68;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { font-family: var(--font-body); background: var(--noir); color: var(--blanc); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* === TYPOGRAPHY UTILITIES === */
h1, h2 { font-family: var(--font-head); line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
h1 { font-size: clamp(48px, 8vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.accent { color: var(--orange); }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-sub { color: var(--gris); font-size: 15px; margin-bottom: 56px; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: opacity var(--t), transform var(--t);
}
.btn:hover, .btn:focus-visible { opacity: 0.85; transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--blanc); }
.btn-outline { border: 2px solid var(--blanc); color: var(--blanc); }
.btn-outline:hover { background: var(--blanc); color: var(--noir); opacity: 1; }

/* === NAV === */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 20px; letter-spacing: 3px; color: var(--orange); }
.nav-logo-img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gris); transition: color var(--t); }
.nav-links a:hover { color: var(--blanc); }
.nav-cta { padding: 10px 20px; font-size: 12px; }
.nav-hamburger { display: none; color: var(--blanc); font-size: 28px; padding: 4px; align-items: center; }
.nav-mobile { background: var(--noir-2); border-top: 1px solid var(--border); padding: 28px 24px; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 20px; }
.nav-mobile a { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: var(--gris); transition: color var(--t); }
.nav-mobile a:hover { color: var(--orange); }

/* === HERO === */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--noir); padding-top: 68px; overflow: hidden;
}
#hero::after {
  content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 3px;
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
}
#hero .container { position: relative; z-index: 1; }
#hero .section-label { margin-bottom: 20px; }
#hero h1 { max-width: 900px; margin-bottom: 20px; }
.hero-sub { color: var(--gris); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--gris); font-size: 24px; animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* === À PROPOS === */
#apropos { background: #ffffff; color: var(--noir); }
#apropos .section-label { color: var(--orange); }
#apropos h2 { color: var(--noir); margin-bottom: 24px; }
.apropos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.apropos-photo { position: relative; }

.apropos-logo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.apropos-text { color: #555; font-size: 16px; line-height: 1.75; margin-bottom: 24px; }
.apropos-signature { font-family: 'Dancing Script', cursive; font-size: 48px; color: var(--orange); margin-bottom: 32px; }
.competences { display: flex; gap: 24px; flex-wrap: wrap; }
.competences li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.competences li i { font-size: 30px; color: var(--orange); }

/* === SERVICES === */
#services { background: var(--noir); }
.materiel { margin-top: 32px; }
.materiel-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.materiel-list { display: flex; flex-wrap: wrap; gap: 10px; }
.materiel-list li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #555; background: #eeeeee; padding: 6px 12px; border-radius: 100px; }
.materiel-list li i { font-size: 15px; color: var(--orange); }

#services h2 { margin-bottom: 12px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { background: var(--noir-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; transition: border-color var(--t), transform var(--t); }
.service-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.service-icon { font-size: 36px; color: var(--orange); display: block; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 16px; color: var(--blanc); }
.service-card ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.service-card li { font-size: 14px; color: var(--gris); padding-left: 14px; position: relative; }
.service-card li::before { content: '·'; position: absolute; left: 0; color: var(--orange); }
.price { font-family: var(--font-head); font-size: 34px; color: var(--orange); line-height: 1; }
.price span { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gris); margin-bottom: 4px; }
.price .price-unit { display: inline; font-family: var(--font-head); font-size: 20px; letter-spacing: 0; }
.price--devis { font-size: 24px; }

/* === RÉALISATIONS === */
#realisations { background: #ffffff; color: var(--noir); }
#realisations h2 { color: var(--noir); margin-bottom: 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; border-radius: 100px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: transparent; border: 2px solid #bbb; color: #666; transition: all var(--t); }
.filter-btn:hover, .filter-btn.active { background: var(--orange); border-color: var(--orange); color: var(--blanc); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-item { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: #ddd; }
.portfolio-item img,
.portfolio-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.portfolio-item:hover img,
.portfolio-item:hover .portfolio-thumb { transform: scale(1.05); }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--t); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay i { font-size: 64px; color: var(--orange); filter: drop-shadow(0 0 12px rgba(255,107,0,0.4)); }
.portfolio-item.hidden { display: none; }

/* === LIGHTBOX === */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); cursor: pointer; }
.lightbox-content { position: relative; z-index: 1; aspect-ratio: 9/16; max-height: 85vh; width: auto; }
.lightbox-close { position: absolute; top: -48px; right: 0; color: var(--blanc); font-size: 32px; padding: 8px; transition: color var(--t); }
.lightbox-close:hover { color: var(--orange); }
#lightbox-iframe { width: 100%; height: 100%; border-radius: var(--radius); }

#lightbox-video { width: 100%; height: 100%; border-radius: var(--radius); background: #000; }

/* === CONTACT === */
#contact { background: var(--noir); }
.contact-direct-wrap { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-direct-header h2 { margin-bottom: 16px; }
.contact-sub { color: var(--gris); font-size: 15px; margin-bottom: 48px; line-height: 1.7; }
.contact-direct { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.contact-direct-link {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px 36px;
  background: var(--noir-2); border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 18px; font-weight: 700; color: var(--blanc);
  transition: border-color var(--t), color var(--t), transform var(--t);
  min-width: 320px;
}
.contact-direct-link:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.contact-direct-link i { font-size: 28px; color: var(--orange); flex-shrink: 0; }

/* === FOOTER === */
footer { background: #050505; border-top: 1px solid var(--border); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo-img { height: 72px; width: 72px; border-radius: 50%; object-fit: cover; }
.footer-tagline { font-size: 14px; color: var(--gris); font-style: italic; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { font-size: 22px; color: var(--gris); transition: color var(--t); }
.footer-socials a:hover { color: var(--orange); }
.footer-copy { font-size: 12px; color: #444; }
.footer-legal { color: #666; transition: color var(--t); }
.footer-legal:hover { color: var(--orange); }

/* === SCROLL ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .apropos-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-direct-link { min-width: 0; width: 100%; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  h1 { font-size: clamp(40px, 10vw, 64px); }
  h2 { font-size: clamp(32px, 7vw, 48px); }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .competences { gap: 16px; }
  .lightbox-content { width: 95vw; }
}

/* === ACCESSIBILITY — REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
