/*
Theme Name: IFYVision
Theme URI: https://ifyvision.fr
Author: IFYVision
Author URI: https://ifyvision.fr
Description: Thème WordPress personnalisé IFYVision - dark theme avec accents violet/bleu
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ifyvision
*/

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --color-bg:          #0a0a0a;
  --color-bg-card:     #1a1a1a;
  --color-bg-card2:    #222222;
  --color-surface:     #444444;
  --color-border:      rgba(255,255,255,0.10);
  --color-purple:      #7B5CF5;
  --color-purple-dark: #5A3FD4;
  --color-blue:        #4F8EF7;
  --color-accent:      #7B5CF5;
  --color-text:        #ffffff;
  --color-text-muted:  #aaaaaa;
  --color-text-light:  #cccccc;
  --font-heading:      'Barlow Condensed', sans-serif;
  --font-body:         'DM Sans', sans-serif;
  --font-mono:         'Space Mono', monospace;
  --radius:            8px;
  --radius-lg:         16px;
  --transition:        0.3s ease;
  --max-width:         1440px;
  --container:         1200px;
  --header-h:          64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-purple); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ============================================================
   CONTENEUR
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-purple-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123,92,245,0.4);
}

.btn-outline {
  border: 1px solid var(--color-purple);
  color: var(--color-purple);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-purple);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-purple);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: -0.5px;
}
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

/* Burger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   SECTION TITRES COMMUNS
   ============================================================ */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  color: #fff;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   PAGE HERO (pages intérieures)
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(123,92,245,0.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .section-label { justify-content: center; display: flex; }
.page-hero h1 { font-size: clamp(48px, 7vw, 96px); }

/* ============================================================
   CARDS PROJET
   ============================================================ */
.project-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px;
  transition: all var(--transition);
}
.project-card:hover {
  border-color: rgba(123,92,245,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.project-card.reverse { flex-direction: row-reverse; }

.project-card .card-media {
  flex: 0 0 420px;
  height: 280px;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.project-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card .card-media .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 52px; height: 52px;
  background: rgba(123,92,245,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.project-card .card-media .play-btn::after {
  content: '';
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

.project-card .card-content { flex: 1; }
.project-card .card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-purple);
  background: rgba(123,92,245,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}
.project-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.project-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ============================================================
   GRILLE RÉALISATIONS
   ============================================================ */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.realisation-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.realisation-card:hover {
  border-color: rgba(123,92,245,0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.realisation-card .card-thumb {
  aspect-ratio: 9/16;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.realisation-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.realisation-card:hover .card-thumb img { transform: scale(1.05); }
.realisation-card .card-thumb .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px;
  background: rgba(123,92,245,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.realisation-card .card-thumb .play-icon::after {
  content: '';
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}
.realisation-card .card-info {
  padding: 16px;
}
.realisation-card .card-info h4 {
  font-size: 14px;
  margin-bottom: 6px;
}
.realisation-card .card-info p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ============================================================
   FILTRES
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}

/* ============================================================
   ÉQUIPE - MEMBRES
   ============================================================ */
.team-member {
  text-align: center;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.team-member:hover {
  border-color: rgba(123,92,245,0.4);
  transform: translateY(-4px);
}
.team-member .avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--color-surface);
  margin: 0 auto 16px;
  overflow: hidden;
  border: 2px solid var(--color-purple);
}
.team-member h4 { font-size: 18px; margin-bottom: 4px; }
.team-member .role { font-size: 13px; color: var(--color-purple); margin-bottom: 12px; }
.team-member p { font-size: 13px; color: var(--color-text-muted); }

/* ============================================================
   FAQ ACCORDÉON
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: none;
  cursor: pointer;
  transition: color var(--transition);
  gap: 16px;
}
.faq-question:hover { color: var(--color-purple); }
.faq-question .icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: all var(--transition);
  color: var(--color-text-muted);
}
.faq-item.open .faq-question .icon {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { font-size: 15px; color: var(--color-text-muted); line-height: 1.7; }

/* ============================================================
   DOCUMENTS
   ============================================================ */
.doc-section { margin-bottom: 48px; }
.doc-section h3 {
  font-size: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.doc-section h3::before {
  content: '';
  width: 4px; height: 24px;
  background: var(--color-purple);
  border-radius: 2px;
  display: block;
}

.doc-card {
  display: flex;
  gap: 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.doc-card .doc-thumb {
  flex: 0 0 200px;
  height: 140px;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-card .doc-info { flex: 1; }
.doc-card .doc-info h4 { font-size: 20px; margin-bottom: 8px; }
.doc-card .doc-info p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 20px; }
.doc-card .doc-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   ARTICLES GRID
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.article-card:hover {
  border-color: rgba(123,92,245,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.article-card .article-thumb {
  aspect-ratio: 16/9;
  background: var(--color-surface);
  overflow: hidden;
}
.article-card .article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-card .article-body { padding: 24px; }
.article-card .article-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: 10px;
}
.article-card h4 { font-size: 20px; margin-bottom: 10px; }
.article-card p { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-purple);
  background: rgba(123,92,245,0.05);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.contact-info-item:hover { border-color: rgba(123,92,245,0.4); }
.contact-info-item .info-icon {
  width: 44px; height: 44px;
  background: rgba(123,92,245,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-item .info-text { font-size: 15px; color: var(--color-text-light); }
.contact-info-item .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(123,92,245,0.12) 0%, rgba(79,142,247,0.06) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(123,92,245,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(36px, 5vw, 72px); margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: var(--color-text-muted); margin-bottom: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}
.footer-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 6px 14px;
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--color-text-muted); }

/* ============================================================
   PAGE OFFSET (fixed header)
   ============================================================ */
.page-content { padding-top: var(--header-h); }
.section { padding: 80px 0; }
.section-lg { padding: 120px 0; }

/* ============================================================
   VALEURS
   ============================================================ */
.values-list { display: flex; flex-direction: column; gap: 0; }
.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.value-item:last-child { border-bottom: none; }
.value-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: rgba(123,92,245,0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}
.value-content h4 { font-size: 20px; margin-bottom: 8px; }
.value-content p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notice {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 16px;
  display: none;
}
.notice.success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.notice.error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .realisations-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .project-card { flex-direction: column; }
  .project-card.reverse { flex-direction: column; }
  .project-card .card-media { flex: none; width: 100%; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Header mobile */
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.open a { padding: 12px 16px; font-size: 16px; }

  .realisations-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .doc-card { flex-direction: column; }
  .doc-card .doc-thumb { flex: none; width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .realisations-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ============================================================
   HERO HOME SPÉCIFIQUE (géré dans page-accueil.php)
   ============================================================ */
.hero-home {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-home .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.hero-home video,
.hero-home .hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-home .hero-content {
  position: relative;
  z-index: 2;
}
.hero-home h1 {
  font-size: clamp(48px, 8vw, 110px);
  color: #fff;
  margin-bottom: 8px;
}
.hero-home h1 span {
  color: var(--color-purple);
  display: block;
}
.hero-home .hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.watch-trailer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.watch-trailer:hover { color: #fff; }
.watch-trailer .play-circle {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.watch-trailer:hover .play-circle {
  background: var(--color-purple);
  border-color: var(--color-purple);
}
.watch-trailer .play-circle::after {
  content: '';
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}

/* Bannière équipe */
.team-banner {
  width: 100%;
  height: 360px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 64px;
}
.team-banner img {
  width: 100%; height: 100%; object-fit: cover;
}
