/* ============================================
   PORTFOLIO — LOU
   Palette : Crème & Orange brûlé
   Polices : Barlow Condensed + DM Sans
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ---- VARIABLES ---- */
:root {
  --creme:      #FAF7F2;
  --brun:       #1C1008;
  --orange:     #D4522A;
  --beige:      #E8D5B0;
  --beige-dark: #C9B99A;
  --brun-light: #5a3e2b;
  --white:      #ffffff;

  --font-titre: 'Barlow Condensed', sans-serif;
  --font-texte: 'DM Sans', sans-serif;

  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --shadow: 0 8px 40px rgba(28,16,8,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  background-color: var(--creme);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(212,82,42,0.09), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(212,82,42,0.06), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(232,213,176,0.35), transparent 50%);
  background-attachment: fixed;
  color: var(--brun);
  font-family: var(--font-texte);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain subtil sur tout le site pour un fond plus "travaillé" */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--beige);
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-titre);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--orange);
  transition: text-shadow var(--transition);
}

.nav-logo:hover span { text-shadow: 0 0 14px rgba(212,82,42,0.55); }

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

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brun-light);
  transition: color var(--transition);
  position: relative;
}

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

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--brun);
  transition: all var(--transition);
}

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

.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0;
  width: 100%;
  background: var(--creme);
  border-bottom: 1px solid var(--beige);
  padding: 30px 5%;
  z-index: 999;
  flex-direction: column;
  gap: 24px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-titre);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brun);
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--orange); }

/* ============================================
   LAYOUT
   ============================================ */

main { padding-top: 70px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-premium);
}

.btn-primary:hover::before,
.btn-secondary:hover::before { left: 125%; }

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--brun);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,82,42,0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--brun);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 30px;
  border: 1.5px solid var(--beige-dark);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ============================================
   PHOTO PLACEHOLDER
   ============================================ */

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.photo-placeholder .icon { font-size: 40px; opacity: 0.4; }

.photo-placeholder .label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brun-light);
  opacity: 0.7;
  line-height: 1.6;
}

.photo-placeholder .hint {
  font-size: 11px;
  color: var(--orange);
  opacity: 0.8;
}

/* ============================================
   HERO — ACCUEIL
   ============================================ */

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
  padding: 80px 5%;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
}

/* Halos lumineux du hero */
.hero-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
  animation: haloFloat 12s ease-in-out infinite;
}

.hero-halo-1 {
  width: 460px; height: 460px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(212,82,42,0.35), transparent 70%);
}

.hero-halo-2 {
  width: 400px; height: 400px;
  bottom: -160px; right: -120px;
  background: radial-gradient(circle, rgba(232,213,176,0.6), transparent 70%);
  animation-delay: -6s;
}

.hero-halo-3 {
  width: 260px; height: 260px;
  top: 40%; left: 42%;
  background: radial-gradient(circle, rgba(212,82,42,0.14), transparent 70%);
  animation-delay: -3s;
}

@keyframes haloFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate(24px, -22px) scale(1.1); opacity: 1; }
}

/* Mot fantôme en arrière-plan pour renforcer la composition */
.hero-bg-word {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-titre);
  font-size: clamp(110px, 15vw, 240px);
  font-weight: 700;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(28,16,8,0.05);
  letter-spacing: 2px;
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.hero-text { position: relative; z-index: 1; min-width: 0; }

.hero-name {
  font-family: var(--font-titre);
  font-size: 18px;
  font-weight: 700;
  color: var(--brun);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 28px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(212,82,42,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(212,82,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,82,42,0); }
}

.hero-title {
  font-family: var(--font-titre);
  font-size: clamp(60px, 9vw, 130px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--orange);
  font-style: italic;
  font-weight: 300;
  text-shadow: 0 0 50px rgba(212,82,42,0.35);
}

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--brun-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 420px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--beige);
}

.stat-item {
  text-align: center;
  cursor: default;
  transition: transform 0.35s var(--ease-premium);
}

.stat-item:hover { transform: translateY(-4px); }

.stat-number {
  font-family: var(--font-titre);
  font-size: 36px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  transition: text-shadow 0.35s var(--ease-premium);
}

.stat-item:hover .stat-number { text-shadow: 0 0 24px rgba(212,82,42,0.45); }

.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brun-light);
}

/* Entrée animée du hero */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text > * {
  animation: fadeInUp 0.9s var(--ease-premium) both;
}

.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text > *:nth-child(3) { animation-delay: 0.25s; }
.hero-text > *:nth-child(4) { animation-delay: 0.35s; }
.hero-text > *:nth-child(5) { animation-delay: 0.45s; }
.hero-text > *:nth-child(6) { animation-delay: 0.55s; }

.hero-image {
  animation: fadeInUp 1.1s var(--ease-premium) 0.3s both;
}

/* Photo hero */
.hero-image {
  position: relative;
  z-index: 1;
  min-width: 0;
  perspective: 1200px;
}

.hero-photo-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    0 0 0 1px rgba(212,82,42,0.12),
    0 40px 90px -25px rgba(212,82,42,0.4),
    0 16px 48px rgba(28,16,8,0.15);
  transition: box-shadow 0.5s var(--ease-premium), transform 0.4s ease-out;
}

.hero-photo-wrapper:hover {
  box-shadow:
    0 0 0 1px rgba(212,82,42,0.22),
    0 50px 110px -25px rgba(212,82,42,0.5),
    0 20px 56px rgba(28,16,8,0.2);
}

.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-deco1 {
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  opacity: 0.3;
  box-shadow: 0 0 40px 8px rgba(212,82,42,0.2);
  z-index: -1;
  animation: haloFloat 9s ease-in-out infinite;
}

.hero-deco2 {
  position: absolute;
  bottom: -15px; left: -15px;
  width: 70px; height: 70px;
  background: var(--beige);
  border-radius: 50%;
  box-shadow: 0 0 50px 12px rgba(232,213,176,0.5);
  z-index: -1;
  animation: haloFloat 9s ease-in-out infinite;
  animation-delay: -4s;
}

/* Indicateur de scroll */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--beige-dark);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color var(--transition);
  z-index: 1;
}

.scroll-cue:hover { border-color: var(--orange); }

.scroll-cue span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--orange);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================
   SECTION À PROPOS
   ============================================ */

.about-section {
  position: relative;
  background: var(--brun);
  padding: 100px 5%;
  overflow: hidden;
}

.about-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
  animation: haloFloat 14s ease-in-out infinite;
}

.about-halo-1 {
  width: 440px; height: 440px;
  top: -140px; left: -110px;
  background: radial-gradient(circle, rgba(212,82,42,0.28), transparent 70%);
}

.about-halo-2 {
  width: 400px; height: 400px;
  bottom: -140px; right: -100px;
  background: radial-gradient(circle, rgba(232,213,176,0.14), transparent 70%);
  animation-delay: -7s;
}

.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.about-title {
  font-family: var(--font-titre);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--creme);
}

.about-title span { color: var(--orange); }

.about-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--beige);
  margin-bottom: 32px;
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skills-category {
  background: rgba(232,213,176,0.08);
  border: 1px solid rgba(232,213,176,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.skills-category-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  font-weight: 600;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid rgba(232,213,176,0.3);
  color: var(--beige);
  transition: all var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ============================================
   PAGE PROJETS VITRINE
   ============================================ */

.projets-hero {
  padding: 100px 5% 60px;
  text-align: center;
}

.page-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.page-title {
  font-family: var(--font-titre);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 20px;
}

.page-title span {
  color: var(--orange);
  font-style: italic;
  font-weight: 300;
}

.page-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--brun-light);
  max-width: 500px;
  margin: 0 auto;
}

.projets-grid {
  padding: 40px 5% 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.projet-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.projet-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(28,16,8,0.15);
}

.projet-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.projet-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projet-card:hover .projet-card-img img { transform: scale(1.05); }

.projet-card-body { padding: 28px; }

.projet-card-type {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.projet-card-title {
  font-family: var(--font-titre);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 10px;
}

.projet-card-desc {
  font-size: 13px;
  color: var(--brun-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.projet-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap var(--transition);
}

.projet-card-link:hover { gap: 14px; }

/* ============================================
   PAGE PROJET DÉTAIL
   ============================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brun-light);
  margin-bottom: 40px;
  transition: color var(--transition);
}

.back-link:hover { color: var(--orange); }

.projet-type-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.projet-detail-title {
  font-family: var(--font-titre);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
}

.projet-detail-title span { color: var(--orange); }

.projet-detail-intro {
  font-size: 16px;
  font-weight: 300;
  color: var(--brun-light);
  max-width: 600px;
  line-height: 1.8;
}

.projet-main-img {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}

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

.projet-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 80px;
}

.projet-body h2 {
  font-family: var(--font-titre);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 40px 0 12px;
}

.projet-body h2:first-child { margin-top: 0; }

.projet-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--brun-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.projet-body ul { list-style: none; margin-bottom: 16px; }

.projet-body ul li {
  font-size: 15px;
  font-weight: 300;
  color: var(--brun-light);
  line-height: 1.9;
  padding-left: 20px;
  position: relative;
}

.projet-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* Sidebar */
.projet-sidebar { position: sticky; top: 90px; }

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-family: var(--font-titre);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--beige);
}

.sidebar-item { margin-bottom: 16px; }
.sidebar-item:last-child { margin-bottom: 0; }

.sidebar-item-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--beige-dark);
  margin-bottom: 4px;
}

.sidebar-item-value {
  font-size: 14px;
  font-weight: 500;
}

/* Galerie */
.gallery-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.pdf-section { margin-top: 16px; }

.pdf-toggle-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brun);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pdf-toggle-btn:hover { opacity: 0.85; }

.pdf-viewer { margin-top: 20px; }

/* ============================================
   PAGE CONTACT
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 5%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}

.contact-title {
  font-family: var(--font-titre);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 24px;
}

.contact-title span { color: var(--orange); }

.contact-intro {
  font-size: 15px;
  font-weight: 300;
  color: var(--brun-light);
  line-height: 1.9;
  margin-bottom: 40px;
}

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

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  transition: color var(--transition);
}

.contact-link-item:hover { color: var(--orange); }

.contact-link-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact-link-item:hover .contact-link-icon { background: var(--orange); }

.contact-form-box {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.contact-form-box h3 {
  font-family: var(--font-titre);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brun-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--beige);
  border-radius: 8px;
  background: var(--creme);
  color: var(--brun);
  font-family: var(--font-texte);
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); }

.form-group textarea { height: 120px; resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--brun);
  color: var(--beige);
  padding: 36px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-titre);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--creme);
}

.footer-logo span { color: var(--orange); }
.footer-copy { font-size: 12px; opacity: 0.5; }

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }
  .hero-bg-word,
  .scroll-cue,
  .hero-halo-3 { display: none; }
  .hero-image { order: -1; max-width: 280px; margin: 0 auto; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .projets-grid { grid-template-columns: 1fr; padding: 40px 5% 60px; }
  .projet-content { grid-template-columns: 1fr; }
  .projet-sidebar { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; min-height: auto; padding: 80px 5%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-form-box { padding: 28px; }
  footer { flex-direction: column; text-align: center; }
}/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(28,16,8,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 24px; right: 32px;
  color: #FAF7F2;
  font-size: 32px;
  cursor: pointer;
  font-family: var(--font-texte);
  font-weight: 300;
  line-height: 1;
}
.gallery-item.portrait {
  aspect-ratio: 4/3;
}

.gallery-item.portrait img {
  object-fit: contain;
  background: #FAF7F2;
}

/* ============================================
   PAGE PROJET — ÉLÉMENTS HARMONISÉS
   (utilisés sur tous les projets détaillés)
   ============================================ */

/* Barre d'infos clés (client, lieu, date, participants...) */
.projet-meta-bar {
  display: flex;
  flex-wrap: wrap;
  margin: 32px 0 0;
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
}

.meta-item {
  flex: 1 1 140px;
  padding: 16px 22px;
  border-right: 1px solid var(--beige);
}

.meta-item:last-child { border-right: none; }

.meta-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--beige-dark);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--brun);
}

/* Chiffres clés */
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 24px;
  margin: 8px 0 32px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chiffre-item { text-align: center; }

.chiffre-number {
  font-family: var(--font-titre);
  font-size: 34px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.chiffre-label {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brun-light);
  line-height: 1.4;
}

/* Structure organisationnelle (organigramme) */
.orgchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 24px 0 36px;
}

.orgchart-connector {
  width: 1.5px;
  height: 28px;
  background: var(--beige-dark);
}

.orgchart-level {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.orgchart-node {
  background: var(--white);
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 160px;
}

.orgchart-node strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: var(--brun);
}

.orgchart-node span {
  font-size: 11px;
  color: var(--brun-light);
}

.orgchart-node.highlight {
  border-color: var(--orange);
  background: var(--beige);
}

.orgchart-node.highlight strong { color: var(--orange); }

/* Liste de responsabilités numérotées */
.resp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}

.resp-item {
  display: flex;
  gap: 16px;
}

.resp-number {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--orange);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resp-item-content strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: var(--brun);
}

.resp-item-content p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* Obstacles & solutions */
.obstacles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.obstacle-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.obstacle-item .obstacle-label,
.obstacle-item .solution-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.obstacle-item .obstacle-label { color: var(--orange); }
.obstacle-item .solution-label { color: var(--brun-light); margin-top: 14px; }

.obstacle-item p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* Artistes / intervenants en vedette */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--orange);
}

.featured-card strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.featured-card span {
  font-size: 12px;
  color: var(--brun-light);
}

/* Couverture presse */
.press-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.press-list li a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brun);
  line-height: 1.6;
  transition: color var(--transition);
}

.press-list li a::before {
  content: '↗';
  color: var(--orange);
  flex-shrink: 0;
}

.press-list li a:hover { color: var(--orange); }

/* Marqueur "à compléter" pour les sections à enrichir plus tard */
.todo-flag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(212, 82, 42, 0.1);
  padding: 2px 9px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* CTA de fin de page projet */
.projet-cta {
  text-align: center;
  padding: 56px 0 8px;
  margin-top: 8px;
  border-top: 1px solid var(--beige);
}

.projet-cta p {
  font-size: 15px;
  font-weight: 300;
  color: var(--brun-light);
  margin-bottom: 24px;
}

.projet-cta .hero-btns {
  justify-content: center;
  margin-bottom: 0;
}

/* Placeholder image générique dans une zone photo */
.projet-main-img .photo-placeholder,
.gallery-item .photo-placeholder {
  border-radius: inherit;
}

@media (max-width: 900px) {
  .meta-item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--beige); }
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
  .orgchart-node { min-width: 130px; }
}

@media (max-width: 540px) {
  .meta-item { flex: 1 1 100%; }
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 18px; }
  .orgchart-level { gap: 12px; }
  .orgchart-node { min-width: 110px; padding: 12px 14px; }
}

/* ============================================
   MODE ÉDITION (local uniquement — n'apparaît
   jamais sur le site publié)
   ============================================ */

#edit-toolbar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-texte);
}

#edit-toggle-btn,
#edit-save-btn,
#edit-cancel-btn {
  font-family: var(--font-texte);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(28,16,8,0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

#edit-toggle-btn { background: var(--brun); color: var(--creme); }
#edit-save-btn { background: var(--orange); color: var(--white); }
#edit-cancel-btn { background: var(--white); color: var(--brun); border: 1px solid var(--beige-dark); }

#edit-toggle-btn:hover,
#edit-save-btn:hover,
#edit-cancel-btn:hover { transform: translateY(-2px); }

#edit-actions {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 8px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(28,16,8,0.15);
}

#edit-status {
  font-size: 11px;
  font-weight: 500;
  color: var(--brun-light);
  padding: 0 8px;
  white-space: nowrap;
  max-width: 220px;
}

body.edit-mode [data-eid] {
  outline: 1.5px dashed transparent;
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-color 0.15s ease, background 0.15s ease;
  cursor: text;
}

body.edit-mode [data-eid]:hover {
  outline-color: rgba(212,82,42,0.55);
  background: rgba(212,82,42,0.06);
}

body.edit-mode [data-eid]:focus {
  outline: 1.5px solid var(--orange);
  outline-offset: 3px;
  background: rgba(212,82,42,0.08);
}

@media (max-width: 540px) {
  #edit-toolbar { right: 12px; bottom: 12px; left: 12px; flex-wrap: wrap; }
  #edit-status { max-width: 140px; }
}

