/*
Theme Name: Agence Horizons
Theme URI: https://agence-horizons.fr
Author: Agence Horizons
Author URI: https://agence-horizons.fr
Description: Thème minimaliste Apple-inspired pour Agence Horizons — R&D & Ingénierie industrielle
Version: 2.6.0
License: Proprietary
Text Domain: agence-horizons
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Couleurs */
  --color-bg:          #ffffff;
  --color-bg-alt:      #f5f5f7;
  --color-bg-dark:     #000000;
  --color-text:        #1d1d1f;
  --color-text-muted:  #6e6e73;
  --color-text-light:  #86868b;
  --color-accent:      #7C2A2E;
  --color-accent-dark: #5A1C1F;
  --color-border:      rgba(0, 0, 0, 0.08);
  --color-border-mid:  rgba(0, 0, 0, 0.15);

  /* Typographie */
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'SF Mono', 'Fira Mono', monospace;

  /* Espacements */
  --section-gap:  120px;
  --container-w:  1200px;
  --container-px: 48px;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;

  /* Transitions */
  --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:     0.2s;
  --dur-mid:      0.4s;
  --dur-slow:     0.7s;

  /* Nav */
  --nav-h:        72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--color-accent-dark); }

ul, ol { list-style: none; }

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

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-up,
.reveal-fade,
.reveal-scale {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal-up   { transform: translateY(40px); }
.reveal-fade { transform: translateY(12px); }
.reveal-scale{ transform: scale(0.96); }

.reveal-up.visible,
.reveal-fade.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Délais de cascade */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   NAVIGATION — Frosted Glass
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out);
}

#site-header.scrolled {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

#site-header .container { height: 100%; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}

.site-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

/* Nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.main-nav a:hover { color: var(--color-accent); }

.main-nav a.nav-cta {
  background: var(--color-text);
  color: #fff;
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.main-nav a.nav-cta:hover {
  background: var(--color-accent);
  transform: scale(1.03);
}

/* Burger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

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

/* ============================================================
   HERO — Full viewport dark avec parallax
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1a1a1e;
}

.hero-parallax-bg {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(124, 42, 46, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124, 42, 46, 0.2) 0%, transparent 55%),
    #1a1a1e;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: calc(var(--nav-h) + 20px) 24px 60px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 168, 124, 0.9);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #f5f5f7;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: rgba(201, 168, 124, 0.85);
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(245, 245, 247, 0.72);
  max-width: 600px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 980px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.btn-primary:hover {
  background: #fff;
  color: #1d1d1f;
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(245, 245, 247, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 980px;
  border: 1px solid rgba(245, 245, 247, 0.2);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-secondary:hover {
  color: #f5f5f7;
  border-color: rgba(245, 245, 247, 0.5);
  background: rgba(245, 245, 247, 0.05);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 245, 247, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: heroScrollBounce 2.4s var(--ease-out) infinite;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(245, 245, 247, 0.3));
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTION HEADER COMMUN
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   SERVICES — Wire Grid
   ============================================================ */
.services-section {
  padding: var(--section-gap) 0;
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--color-border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  padding: 48px 40px;
  border-right: 0.5px solid var(--color-border-mid);
  border-bottom: 0.5px solid var(--color-border-mid);
  transition: background var(--dur-mid) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg-alt);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.service-card:hover::before { opacity: 1; }
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }

.service-card-inner { position: relative; z-index: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ============================================================
   STATS — Chiffres clés
   ============================================================ */
.stats-section {
  padding: var(--section-gap) 0;
  background: var(--color-bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-item {
  background: var(--color-bg-alt);
  padding: 56px 40px;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-number span {
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ============================================================
   PROCESS — Timeline propre
   ============================================================ */
.process-section {
  padding: var(--section-gap) 0;
  background: var(--color-bg);
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-list::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 28px;
  bottom: 28px;
  width: 0.5px;
  background: var(--color-border-mid);
}

.process-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 0.5px solid var(--color-border);
  align-items: start;
}

.process-item:last-child { border-bottom: none; }

.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 0.5px solid var(--color-border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}

.process-item:hover .process-num {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.process-body { padding-top: 10px; }

.process-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.process-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ============================================================
   PROJETS — Cartes avec photo
   ============================================================ */
.projects-section {
  padding: var(--section-gap) 0;
  background: var(--color-bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 4px 10px;
  border: 0.5px solid rgba(124, 42, 46, 0.25);
  border-radius: 980px;
  width: fit-content;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.25;
}

.project-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: 4px;
  transition: gap var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.project-link:hover {
  color: var(--color-accent-dark);
  gap: 10px;
}

/* ============================================================
   À PROPOS — Deux colonnes
   ============================================================ */
.about-section {
  padding: var(--section-gap) 0;
  background: var(--color-bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: 4/5;
  max-width: 440px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.about-badge-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.about-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.about-badge-text span {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
}

.about-content {}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-content .section-eyebrow {
  display: block;
  text-align: left;
  margin-bottom: 12px;
}

.about-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.about-desc strong {
  color: var(--color-text);
  font-weight: 600;
}

.about-highlights {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about-highlight-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-highlight-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: var(--section-gap) 0;
  background: var(--color-bg-alt);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info {}

.contact-info .section-title {
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.contact-info .section-eyebrow {
  text-align: left;
  display: block;
  margin-bottom: 12px;
}

.contact-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.contact-detail-item a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}

.contact-detail-item a:hover { color: var(--color-accent); }

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-detail-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Formulaire */
.contact-form {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  width: 100%;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(124, 42, 46, 0.08);
  background: var(--color-bg);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-consent label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-consent a { color: var(--color-accent); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.btn-submit:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 42, 46, 0.3);
}

.btn-submit svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-notice {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* Messages retour formulaire */
.wpcf7-response-output {
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}

.wpcf7-mail-sent-ok  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng  { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #000;
  color: rgba(245, 245, 247, 0.6);
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 36px;
}

.footer-brand {}

.footer-brand .site-logo {
  color: rgba(245, 245, 247, 0.9);
  margin-bottom: 20px;
}

.footer-brand .logo-text {
  color: rgba(245, 245, 247, 0.9);
}

.footer-brand .logo-text span {
  color: rgba(245, 245, 247, 0.5);
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(245, 245, 247, 0.45);
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.85);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(245, 245, 247, 0.5);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover { color: rgba(245, 245, 247, 0.85); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(245, 245, 247, 0.35);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.78rem;
  color: rgba(245, 245, 247, 0.35);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-legal-links a:hover { color: rgba(245, 245, 247, 0.7); }



.cookie-banner.visible { transform: translateX(-50%) translateY(0); }

.cookie-text {
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-text a {
  color: rgba(245, 245, 247, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  background: #f5f5f7;
  color: #1d1d1f;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 980px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.cookie-accept:hover { background: #fff; }

.cookie-refuse {
  background: transparent;
  color: rgba(245, 245, 247, 0.5);
  border: 1px solid rgba(245, 245, 247, 0.2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.cookie-refuse:hover {
  color: rgba(245, 245, 247, 0.8);
  border-color: rgba(245, 245, 247, 0.4);
}

/* ============================================================
   PAGES LÉGALES
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.legal-hero {
  background: linear-gradient(140deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  padding: calc(var(--nav-h) + 80px) 0 68px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 90% at 95% 50%, rgba(201, 168, 124, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}

.legal-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.legal-breadcrumb a:hover { color: rgba(255, 255, 255, 0.9); }
.legal-breadcrumb span[aria-hidden] { opacity: 0.3; }

.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
}

.legal-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.01em;
}

/* ── Body & layout ────────────────────────────────────────── */
.legal-body {
  padding: 88px 0 128px;
  background: var(--color-bg);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  align-items: start;
}

/* ── TOC sidebar ──────────────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.legal-toc-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--color-border);
}

.legal-toc ul,
.legal-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc li a {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  line-height: 1.45;
}

.legal-toc li a:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.legal-toc li a.toc-active {
  background: rgba(124, 42, 46, 0.06);
  color: var(--color-accent);
  font-weight: 600;
  border-left-color: var(--color-accent);
}

/* ── Content ──────────────────────────────────────────────── */
.legal-content {
  min-width: 0;
}

.legal-intro {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid var(--color-border);
  max-width: 72ch;
}

.legal-identity {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 48px;
  border: 0.5px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-identity p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.legal-identity strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-identity a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal-identity a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Sections ─────────────────────────────────────────────── */
.legal-section {
  padding: 52px 0;
  border-bottom: 0.5px solid var(--color-border);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.legal-section-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 5px;
  letter-spacing: 0;
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  line-height: 1.25;
}

.legal-section p {
  font-size: 0.92rem;
  line-height: 1.82;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  max-width: 72ch;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  padding-left: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.legal-section li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  padding-left: 22px;
  position: relative;
  max-width: 68ch;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.55;
}

.legal-section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 0.5px;
}

.legal-section a:hover {
  text-decoration-thickness: 1.5px;
}

/* ============================================================
   PAGE 404
   ============================================================ */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}

.page-404 h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--color-bg-alt);
  line-height: 1;
  margin-bottom: 24px;
}

.page-404 h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --container-px: 32px;
    --section-gap: 96px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(3n) { border-right: 0.5px solid var(--color-border-mid); }
  .service-card:nth-child(2n) { border-right: none; }

  /* Projets et stats restent sur une seule ligne */
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats-grid    { grid-template-columns: repeat(4, 1fr); }

  .about-inner { gap: 56px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .legal-layout { grid-template-columns: 200px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root {
    --container-px: 24px;
    --section-gap: 72px;
    --nav-h: 64px;
  }

  /* Nav mobile */
  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px 32px;
    gap: 4px;
    transform: translateY(-110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--dur-mid) var(--ease-out), visibility 0s var(--dur-mid);
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
  }

  .main-nav.open { transform: translateY(0); visibility: visible; pointer-events: auto; transition: transform var(--dur-mid) var(--ease-out), visibility 0s 0s; }

  .main-nav a {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a:last-child { border-bottom: none; }

  .main-nav a.nav-cta {
    margin-top: 12px;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 14px;
    border-bottom: none;
  }

  .nav-toggle { display: flex; }

  /* Hero */
  .hero h1 { letter-spacing: -0.03em; }
  .hero-actions { flex-direction: column; align-items: center; }

  /* Grilles */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; }
  .service-card:nth-child(n) { border-bottom: 0.5px solid var(--color-border-mid); }
  .service-card:last-child { border-bottom: none; }

  /* Sur mobile : stats 2x2, projets empilés */
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form {
    padding: 32px 28px;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Legal */
  .legal-hero {
    padding: calc(var(--nav-h) + 48px) 0 48px;
  }

  .legal-body {
    padding: 56px 0 80px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-toc {
    position: static;
    border-bottom: 0.5px solid var(--color-border);
    padding-bottom: 24px;
    margin-bottom: 40px;
  }

  .legal-toc ul,
  .legal-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .legal-toc li a {
    padding: 5px 12px;
    background: var(--color-bg-alt);
    border-radius: 980px;
    white-space: nowrap;
    border-left: none;
    font-size: 0.78rem;
  }

  .legal-toc li a.toc-active {
    background: rgba(124, 42, 46, 0.1);
    border-left: none;
  }

  .legal-section {
    padding: 36px 0;
  }
}

@media (max-width: 480px) {
  :root {
    --container-px: 20px;
  }

  .hero h1 { letter-spacing: -0.025em; }
  .section-title { letter-spacing: -0.025em; }

  .service-card { padding: 36px 28px; }
  .stat-item { padding: 40px 28px; }
  .project-card { padding: 40px 32px; }
}



  .cookie-banner.visible {
    transform: translateY(0);
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================
   ADMIN BAR WORDPRESS — décale le header fixe
   ========================================================== */
.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
  .admin-bar .main-nav { top: calc(var(--nav-h) + 46px); }
}
@media screen and (max-width: 600px) {
  .admin-bar #site-header { top: 0; }
  .admin-bar .main-nav { top: var(--nav-h); }
}

/* ==========================================================
   COOKIE BANNER — mobile
   ========================================================== */
@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    bottom: 16px;
    left: 16px !important;
    right: 16px;
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    transform: translateY(200px) !important;
  }
  .cookie-banner.visible {
    transform: translateY(0) !important;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}