:root {
  --bg: linear-gradient(to bottom right, #5E5E5E, #1A1A1A);
  --card: #141416;
  --muted: #9aa0a6;
  --accent: #c59a3b;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #e9e9e9;
  height: 100%;
  background:
    linear-gradient(to bottom right, rgba(94,94,94,0.6), rgba(26,26,26,0.6)),
    url('/images/fond.jpg'),
    var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

h2 {
  margin-bottom: 1rem;
}


/* Text */
p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.lead {
  font-style: italic;
  margin-top: 0.5rem;
}

/* Layout */
.container { 
  max-width: var(--max-width); 
  margin: 0 auto; 
  padding: 2rem; 
}

/* Header */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 10;
  background: rgba(15,15,16,0.95);
  backdrop-filter: blur(6px); 
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}
.brand { 
  color: #fff; 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 1.6rem; 
}
.brand-script {
  font-family: 'Pacifico', cursive;
  color: var(--accent);
}
.main-nav { 
  display: flex; 
  gap: 1rem; 
}
.nav-link { 
  color: var(--muted); 
  text-decoration: none; 
  padding: 0.5rem 0.6rem; 
  border-radius: 6px; 
}
.nav-link:hover { 
  color: #fff; 
  background: rgba(255,255,255,0.03); 
}
.nav-link.active { 
  color: #fff; 
  border-bottom: 2px solid var(--accent); 
}
.nav-toggle { 
  display: none; 
  background: none; 
  border: 0; 
  color: #fff; 
  font-size: 1.2rem; 
}

/* Hero */
.title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 1rem auto;
  max-width: 600px;
}

.hero-inner { 
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.hero-text {
  flex: 1 1 50%;
  max-width: 600px;
}
.hero-media {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}
.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.btn.primary { background: var(--accent); color: #0b0b0b; }
.btn.secondary { background: rgba(255,255,255,0.1); color: #fff; }
.btn:hover { transform: scale(1.05); }
.hero-buttons .btn {
  max-width: 300px;
  margin: 0 auto;
}

/* Video blocks */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.video-wrap iframe {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* About section */
.about {
  margin-bottom: 1.5rem; /* ↓ réduit l'espace avant la section suivante */
}
.grid-2 {
  display: block;
  margin-top: 2rem;
}
.about-text h3,
.about-videos h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-style: italic;
}
.about-text,
.about-videos {
  width: 100%;
  margin-bottom: 1rem; /* ↓ réduit la marge verticale interne */
  gap: 0;
}
.grid-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* Featured project */
.featured {
  margin-top: 2rem; /* ↓ réduit la marge avant la section */
}
.teaser {
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.teaser h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.teaser .muted {
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Cards */
.card { 
  background: var(--card); 
  border-radius: 12px; 
  padding: 1.5rem; 
  margin-top: 2rem; 
}
.card-body h3 { margin-bottom: 0.5rem; }

.card-body {
  display: flex;
  flex-direction: column; /* boutons empilés verticalement */
  gap: 0.5rem;           /* espace entre les boutons */
  margin-top: 1rem;
  align-items: center; 
}

.card-body .btn {
  width: 60%;            /* prend toute la largeur de la carte */
  text-align: center;     /* texte centré */
  justify-content: center; 
  padding: 0.6rem 0;      /* uniformise le padding horizontal */
  box-sizing: border-box;
}
.card-body .youtube-embed {
  width: 100%;
}

/* Décalage horizontal selon le type */
.card-body .btn.primary {
  margin-left: -10%;
}

.card-body .btn.secondary {
  margin-right: -10%;
}

.card-body .btn.primary:hover {
  transform: translateX(-5%) scale(1.05); /* léger décalage à gauche + zoom */
}

.card-body .btn.secondary:hover {
  transform: translateX(5%) scale(1.05);  /* léger décalage à droite + zoom */
}


/* Footer */
.site-footer { 
  border-top: 1px solid rgba(255,255,255,0.03); 
  padding: 1rem 0; 
  margin-top: 3rem; 
  text-align: center; 
}
.site-footer .socials { 
  margin-top: 0.5rem; 
  display: flex; 
  gap: 1rem; 
  justify-content: center; 
}
.site-footer .socials img { 
  width: 24px; 
  height: 24px; 
}

/* Responsive */
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row; 
    text-align: left; 
    align-items: center; 
    gap: 4rem; 
  }
}
@media (max-width: 900px) {
  .hero-inner { 
    flex-direction: column; 
    text-align: center; 
  }
  .nav-toggle { display: block; }
  .main-nav { 
    position: absolute; 
    right: 1rem; 
    top: 64px; 
    background: var(--card); 
    padding: 1rem; 
    border-radius: 8px; 
    display: none; 
    flex-direction: column; 
  }
  .main-nav.show { display: flex; }
  .hero-buttons { flex-direction: column; gap: 0.8rem; }
  .grid-2 { flex-direction: column; }
}
@media (max-width: 600px) {
  .vid {
    flex: 1 1 100%;
  }
}
/* CONTACT PAGE */
.contact-main {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-intro {
  max-width: 700px;
  margin-bottom: 3rem;
}

.page-intro h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.page-intro p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Grid des deux blocs */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 800px;
}

/* Cartes */
.contact-card {
  background: rgba(20, 20, 22, 0.85);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.45);
}

.contact-card h3 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Formulaire */
form label {
  display: block;
  text-align: left;
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
form input,
form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 0.3rem;
  transition: background 0.2s, border 0.2s;
}
form input:focus,
form textarea:focus {
  outline: 1px solid var(--accent);
  background: rgba(255,255,255,0.1);
}
form button {
  margin-top: 1rem;
  background: var(--accent);
  color: #0b0b0b;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(197, 154, 59, 0.4);
}

/* Réseaux */
.contact-list {
  list-style: none;
  margin-bottom: 1.5rem;
}
.contact-list li {
  margin: 0.4rem 0;
  color: #e9e9e9;
  font-size: 1rem;
}
.contact-card a {
  color: white;
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* Liens globaux */
.credit {
  color: var(--accent);       /* couleur principale des liens */
  text-decoration: none;
}
.credit:hover {
  color: #f5e1b8;             /* couleur au survol */
}
.credit:visited {
  color: var(--accent);       /* liens visités */
}
.credit:active {
  color: #d4a15f;             /* clic */
}

/* --- Lightbox animée & responsive --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease;
}

.lightbox-overlay.show {
  display: flex;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { background: rgba(0, 0, 0, 0); }
  to   { background: rgba(0, 0, 0, 0.85); }
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  transform-origin: center center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.lightbox-overlay.show img {
  opacity: 1;
  transform: scale(1);
}

img.zoomable {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

img.zoomable:hover {
  transform: scale(1.03);
}
@media (max-width: 900px) {
  .hero-text {
    order: 1;
    width: 100%;
  }
  .hero-media {
    order: 2;
    width: 100%;
  }
  .video-wrap {
    width: 100%;
    max-width: 700px;
    margin: 1rem auto;
  }
}