/* ===========================================================
   CANU RENOV' TOUT — Design System (Vanilla CSS)
   =========================================================== */

/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --primary: #1f2937;
  --primary-light: #4b5563;
  --primary-dark: #111827;
  --accent: #10b981;
  --accent-dark: #059669;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --white: #ffffff;
  --red: #dc2626;
  --green: #16a34a;

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.14);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--accent); }
.text-dark { color: var(--dark); }
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--gray-50); }
.bg-dark { background-color: var(--dark); }
.max-w-md { max-width: 48rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2.5rem; }
.mb-lg { margin-bottom: 2rem; }
.mb-xl { margin-bottom: 2.5rem; }
.ml-sm { margin-left: 0.5rem; }
.mr-sm { margin-right: 0.5rem; }
.fw-medium { font-weight: 500; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.w-full { width: 100%; }
.d-none { display: none !important; }
.resize-none { resize: none; }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.text-shadow-md { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.hover-up { transition: transform 0.3s ease; }
.hover-up:hover { transform: translateY(-4px); }
.hover-primary:hover { color: var(--primary); transition: color 0.2s; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.2); }
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 1rem 2.5rem;
  box-shadow: var(--shadow-lg);
}
.btn-white:hover { box-shadow: var(--shadow-hover); }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  padding: 0.2rem 0;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0;
}
.navbar-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; transition: color 0.3s; }
.navbar.scrolled .logo { color: var(--dark); }
.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); transition: color 0.2s; display: inline-flex; align-items: center; }
.nav-link:hover { color: var(--white); }
.navbar.scrolled .nav-link { color: var(--gray-600); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }
.nav-cta { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.menu-btn { display: none; font-size: 1.25rem; color: var(--white); transition: color 0.3s; }
.navbar.scrolled .menu-btn { color: var(--dark); }
.mobile-menu {
  position: fixed; inset: 0; background: var(--white); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: translateX(100%); transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0); }
.close-menu-btn { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; color: var(--dark); }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-link { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 500; color: var(--dark); transition: color 0.2s; }
.mobile-link:hover { color: var(--accent); }
.mobile-link.btn { color: var(--white); font-size: 1.1rem; }
.mobile-link.btn:hover { color: var(--white); }

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .menu-btn { display: block; }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.hero-content { position: relative; z-index: 10; color: var(--white); padding: 6rem 1.5rem 4rem; }
.badge {
  display: inline-block; padding: 0.35rem 1rem; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; margin-bottom: 1.5rem; color: var(--white);
}
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; color: var(--white); text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 400; max-width: 40rem; margin: 0 auto 2.5rem; opacity: 0.92; line-height: 1.7; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-btn-outline { padding: 0.75rem 2rem; }
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65); font-size: 1.4rem; animation: bounce 2s infinite; transition: color 0.2s; z-index: 10;
}
.scroll-indicator:hover { color: var(--white); }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.subtitle { display: block; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--dark); }
.section-text { font-size: 1.05rem; color: var(--gray-600); line-height: 1.75; }
.divider { width: 4rem; height: 3px; background: var(--primary); border-radius: var(--radius-full); margin: 1.25rem auto 1.75rem; }

/* ─── SERVICES GRID ──────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card { border-radius: var(--radius-xl); overflow: hidden; background: var(--white); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); transition: box-shadow 0.35s ease, transform 0.35s ease; }
.card:hover { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); }
.card-img-wrapper { position: relative; height: 16rem; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent); opacity: 0; transition: opacity 0.35s; }
.card:hover .card-gradient { opacity: 1; }
.card-body { padding: 2rem; }
.icon-wrapper { width: 3rem; height: 3rem; border-radius: var(--radius-full); background: rgba(16, 185, 129, 0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 1.25rem; }
.card-title { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--dark); }
.card-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; }

/* ─── REALISATIONS ──────────────────── */
.projects-container { display: flex; flex-direction: column; gap: 3rem; text-align: left; }
.project-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); padding: 2.5rem; transition: box-shadow 0.3s ease; }
.project-card:hover { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); }
.project-header { margin-bottom: 2rem; }
.project-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--dark); margin-bottom: 0.5rem; }
.project-desc { color: var(--gray-600); font-size: 1.05rem; line-height: 1.6; }
.project-gallery { display: grid; gap: 1.5rem; }

/* Grilles dynamiques */
.project-gallery[data-photos="1"] { grid-template-columns: 1fr; }
.project-gallery[data-photos="2"] { grid-template-columns: 1fr 1fr; }
.project-gallery[data-photos="3"] { grid-template-columns: repeat(3, 1fr); }
.project-gallery[data-photos="4"] { grid-template-columns: repeat(4, 1fr); }

.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  cursor: zoom-in;
}
/* Retirer le zoom sur les vidéos */
.gallery-item.video-item { cursor: default; }

.gallery-item::before {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.25);
  opacity: 0; transition: opacity 0.3s ease; z-index: 1; pointer-events: none;
}
.gallery-item::after {
  content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
  color: var(--white); font-size: 2.5rem; opacity: 0; transition: all 0.3s ease;
  z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); pointer-events: none;
}
/* Annuler l'overlay sur les items vidéo */
.gallery-item.video-item::before, .gallery-item.video-item::after { display: none; }

.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:not(.video-item):hover .gallery-img { transform: scale(1.05); }

.gallery-label {
  position: absolute; bottom: 0.75rem; left: 0.75rem; background: rgba(31, 41, 55, 0.85);
  color: var(--white); padding: 0.35rem 0.85rem; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 500; backdrop-filter: blur(4px); z-index: 3; pointer-events: none;
}

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.95); z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.3s ease;
}
.lightbox-content { max-width: 90%; max-height: 80vh; border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem; color: var(--white); font-size: 2rem;
  cursor: pointer; z-index: 1001; transition: color 0.2s; background: none; border: none;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1);
  color: var(--white); border: none; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background 0.2s, transform 0.2s;
}
.lightbox-nav:hover { background: var(--accent); transform: translateY(-50%) scale(1.05); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-caption { color: var(--white); margin-top: 1rem; font-size: 1.1rem; font-weight: 500; letter-spacing: 0.05em; }

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section { padding: 5rem 0; background: var(--primary); position: relative; overflow: hidden; color: var(--white); }
.cta-blob { position: absolute; width: 20rem; height: 20rem; border-radius: 50%; filter: blur(80px); }
.cta-blob.top-right { top: -5rem; right: -5rem; background: rgba(255, 255, 255, 0.05); }
.cta-blob.bottom-left { bottom: -5rem; left: -5rem; background: rgba(0, 0, 0, 0.10); }
.cta-content { position: relative; z-index: 10; }
.cta-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.25rem; color: var(--white); }
.cta-subtitle { font-size: 1.1rem; font-weight: 300; opacity: 0.9; max-width: 38rem; margin: 0 auto 2.5rem; line-height: 1.7; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-container { display: flex; gap: 4rem; align-items: flex-start; }
.contact-info { flex: 0 0 33%; }
.contact-form-wrapper { flex: 1; background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; }
.info-list { margin-top: 1rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon { width: 3rem; height: 3rem; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; font-size: 1rem; }
.info-title { font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 0.15rem; }
.info-text { font-size: 0.9rem; color: var(--gray-600); }

/* ─── FORM ───────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.5rem; }
.form-input {
  width: 100%; padding: 0.8rem 1.25rem; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.9rem;
  color: var(--dark); background: var(--gray-50); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.form-input::placeholder { color: var(--gray-400); }
.form-status { font-size: 0.9rem; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer { color: var(--white); padding-top: 4rem; padding-bottom: 2rem; border-top: 4px solid var(--accent); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.footer-desc { color: var(--gray-400); font-size: 0.9rem; font-weight: 300; max-width: 18rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.footer-link { color: var(--gray-400); font-size: 0.9rem; transition: color 0.2s; }
.footer-link:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gray-500); }
.footer-legal { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.separator { color: var(--gray-500); }

/* ─── LEGAL PAGES ────────────────────────────────────────── */
.legal-body .navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.legal-body .logo,
.legal-body .menu-btn { color: var(--dark); }
.legal-body .nav-link { color: var(--gray-600); }
.legal-body .nav-link:hover { color: var(--primary); }
.legal-page {
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - 18rem);
}
.legal-shell {
  width: 100%;
  max-width: 960px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--accent-dark); }
.legal-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 3rem;
}
.legal-heading {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}
.legal-updated {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.legal-section {
  padding-top: 2rem;
}
.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.legal-section p {
  color: var(--gray-600);
  line-height: 1.8;
}
.legal-section p + p {
  margin-top: 1rem;
}
.legal-list {
  display: grid;
  gap: 0.85rem;
}
.legal-list li {
  color: var(--gray-600);
  line-height: 1.7;
}
.legal-list strong {
  color: var(--dark);
}
.legal-content a {
  color: var(--accent-dark);
  font-weight: 600;
}
.legal-content a:hover { color: var(--primary); }
.legal-body .reveal-up {
  opacity: 1;
  transform: none;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .contact-container { flex-direction: column; gap: 2.5rem; }
  .contact-info { flex: none; width: 100%; }
  .project-gallery[data-photos="3"], .project-gallery[data-photos="4"] { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-nav { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 20rem; }
  .project-card { padding: 1.5rem; }
  .legal-page { padding-top: 6.5rem; }
  .legal-content { padding: 1.5rem; }
  .legal-section { padding-top: 1.5rem; }
  .project-gallery[data-photos="2"], .project-gallery[data-photos="3"], .project-gallery[data-photos="4"] { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 16/9; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-nav { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
}
