/* ═══════════════════════════════════════════════════════════════════════
   Atelier Gautier — feuille de styles du site public.

   Reprise des styles en ligne de index.html et de pages.css du bundle de
   design, réunis ici. Trois écarts assumés avec la maquette, chacun
   commenté sur place : la palette brune retenue partout, la barre de
   navigation qui était restée anthracite, et --fg-muted relevé pour être
   lisible sur ce fond.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Le brun est la couleur que la maquette affiche réellement : le
     :root de index.html déclarait #0f0e0c, mais le panneau Tweaks
     l'écrasait à #583400 au chargement, et pages.css l'avait figé.
     bg2 et bg3 s'éclaircissent par paliers, comme le faisait la
     palette anthracite d'origine.                                    */
  --bg: #583400;
  --bg2: #633c04;
  --bg3: #6d4408;
  --fg: #f0ece4;
  /* #8a8278, la valeur d'origine, tombait à 2,9:1 sur ce brun — sous le
     seuil de lisibilité pour du texte courant, et c'est bien du texte
     courant : chapôs, descriptions, liens de pied de page. 5,4:1 ici,
     toujours nettement en retrait de --fg (9,3:1).                   */
  --fg-muted: #c0b5a4;
  --accent: oklch(78% 0.08 75);
  --accent-dark: oklch(60% 0.08 75);
  --border: rgba(240,236,228,0.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1380px;
  --section-pad: clamp(80px, 10vw, 140px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 80px);
  background: rgba(44,26,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s;
}
nav.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 10px 24px;
  text-decoration: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

/* Mobile nav */
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; }
.nav-burger span { display: block; width: 24px; height: 1px; background: var(--fg); transition: all 0.3s; }


/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-bg {
  /* Voile plus dense que dans la maquette : la photo de héros livrée est
     claire, et le voile d'origine était calibré pour un atelier sombre. Une
     photo bien exposée le supportera sans se ternir ; une photo claire
     redevient illisible sans lui.                                          */
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(15,14,12,0.78) 0%, rgba(15,14,12,0.45) 55%, rgba(15,14,12,0.12) 100%),
    linear-gradient(to bottom, rgba(15,14,12,0.5) 0%, rgba(15,14,12,0.5) 60%, rgba(88,52,0,0.96) 100%),
    url('/assets/img/hero.jpg') center/cover no-repeat;
  /* La maquette pointait sur une photo Unsplash distante ; la photo est
     servie en local. Remplacer public/assets/img/hero.jpg suffit à la
     changer : aucune autre règle ne nomme de fichier de héros.       */
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 0 clamp(24px, 6vw, 100px);
  max-width: 860px;
  text-shadow: 0 2px 24px rgba(15,14,12,0.55);
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 54px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s 0.55s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(240,236,228,0.9);
  max-width: 520px;
  margin: 0 auto 52px;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
  letter-spacing: 0.02em;
}
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}
.btn-primary {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 16px 40px;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(240,236,228,0.3);
  padding: 16px 40px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
  display: inline-block;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--fg); transform: translateY(-1px); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.hero-scroll span { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); }
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── SAVOIR-FAIRE ─── */
#savoir-faire {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  max-width: 600px;
}
.section-title em { font-style: italic; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 72px;
  border: 1px solid var(--border);
}
.skill-card {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.skill-card:last-child { border-right: none; }
.skill-card:hover { background: var(--bg3); }
.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 40px; right: 40px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.skill-card:hover::after { transform: scaleX(1); }
.skill-number {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.skill-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 14px;
}
.skill-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ─── RÉALISATIONS ─── */
#realisations {
  padding: var(--section-pad) 0;
  background: var(--bg2);
}
.realisations-header {
  padding: 0 clamp(24px, 5vw, 80px);
  max-width: var(--max-w);
  margin: 0 auto 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.gallery-filters {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.gallery-filters button {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.gallery-filters button.active,
.gallery-filters button:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  padding: 0 4px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-grid { grid-auto-rows: clamp(150px, 17vw, 230px); }
.gallery-item:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 7 / 10; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1; }
.gallery-item:nth-child(4) { grid-column: 7 / 13; grid-row: 2; }
.gallery-item:nth-child(5) { grid-column: 1 / 4; grid-row: 3; }
.gallery-item:nth-child(6) { grid-column: 4 / 7; grid-row: 3; }
.gallery-item:nth-child(7) { grid-column: 7 / 10; grid-row: 3; }
.gallery-item:nth-child(8) { grid-column: 10 / 13; grid-row: 3; }
a.gallery-item { display: block; text-decoration: none; color: inherit; }
.has-sub { position: relative; }
.has-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.sub {
  position: absolute; top: calc(100% + 14px); left: -20px; list-style: none; min-width: 220px;
  padding: 20px; background: var(--bg); border: 1px solid var(--border); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 13px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted);
  text-decoration: none; transition: color 0.3s; display: flex; justify-content: space-between; gap: 18px;
}
.sub a:hover { color: var(--fg); }
.sub .count { color: var(--accent-dark); letter-spacing: 0; }
.mobile-sub { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: -8px 0 4px; }
.mobile-sub a { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); text-decoration: none; }
.mobile-sub a:hover { color: var(--accent); }
.gallery-filters a {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted); text-decoration: none; padding-bottom: 4px;
  border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s;
}
.gallery-filters a:hover { color: var(--fg); border-bottom-color: var(--accent); }
.gallery-filters .count { color: var(--accent-dark); margin-left: 5px; letter-spacing: 0; }
.gallery-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(48px, 6vw, 72px); }
.gallery-more-note { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); }

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.gallery-item:hover .gallery-img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,14,12,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-info-cat {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.gallery-info-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

/* Placeholder images */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.gallery-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.025) 8px,
    rgba(255,255,255,0.025) 16px
  );
}
.placeholder-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about-compagnon {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 32px 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
.about-compagnon::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}
.about-compagnon-badge { flex-shrink: 0; margin-top: 2px; }
.about-compagnon-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--fg);
}
.about-compagnon-sub {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── À PROPOS ─── */
#a-propos {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 120px);
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 3/4;
}
.about-photo {
  width: 100%;
  height: 100%;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-badge {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 140px;
  height: 140px;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--bg);
  line-height: 1;
}
.about-badge-text {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  text-align: center;
  line-height: 1.5;
}
.about-text { }
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  line-height: 1.45;
  margin-top: 36px;
  margin-bottom: 28px;
}
.about-body {
  font-size: 15px;
  color: rgba(240,236,228,0.65);
  line-height: 1.85;
  margin-bottom: 28px;
}
.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ─── PROCESS ─── */
#process {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  background: var(--bg2);
}
.process-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 72px;
  position: relative;
}
.process-steps::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: var(--border);
}
.process-step {
  padding: 0 32px 0 0;
  position: relative;
}
.step-dot {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  background: var(--bg2);
}
.step-dot-inner {
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 14px;
}
.step-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.75; }

/* ─── BLOG ─── */
#blog {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-thumb {
  aspect-ratio: 16/10;
  background: var(--bg3);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}
.blog-thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.025) 8px,
    rgba(255,255,255,0.025) 16px
  );
}
.blog-cat {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.blog-card:hover .blog-title { color: var(--accent); }
.blog-excerpt { font-size: 13px; color: var(--fg-muted); line-height: 1.75; }
.blog-date { font-size: 11px; color: var(--fg-muted); margin-top: 14px; letter-spacing: 0.08em; }

.blog-card--small .blog-title { font-size: 18px; }

/* ─── CONTACT ─── */
#contact {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  background: var(--bg2);
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 6vw, 120px);
  align-items: start;
}
.contact-info { }
.contact-lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.5;
  margin-top: 36px;
  margin-bottom: 40px;
  color: rgba(240,236,228,0.75);
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.contact-item-val {
  font-family: var(--font-display);
  font-size: 18px;
}
.contact-item-val a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-item-val a:hover { color: var(--accent); }

/* Form */
.contact-form { }
.form-tabs {
  display: flex;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.form-tab {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: none;
  border: none;
  padding: 0 0 16px;
  margin-right: 32px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}
.form-tab.active { color: var(--fg); }
.form-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-field.full { grid-column: 1 / -1; }
.form-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8278' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-submit {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 18px 48px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-body);
}
.form-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.form-note { font-size: 12px; color: var(--fg-muted); margin-top: 14px; line-height: 1.6; }
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}
.form-success p { font-size: 14px; color: var(--fg-muted); }

/* ─── FOOTER ─── */
footer {
  padding: 64px clamp(24px, 5vw, 80px) 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-brand-name span { color: var(--accent); }
.footer-tagline { font-size: 13px; color: var(--fg-muted); line-height: 1.7; max-width: 260px; }
.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(240,236,228,0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 12px; color: var(--fg-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 11px; color: var(--fg-muted); text-decoration: none; letter-spacing: 0.08em; }
.footer-legal a:hover { color: var(--fg); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card:first-child { grid-column: 1 / -1; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 768px) {
  #a-propos { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; }
  .about-badge { bottom: -20px; right: -12px; width: 110px; height: 110px; }
  .about-badge-num { font-size: 36px; }
  .contact-inner { grid-template-columns: 1fr; }
  .gallery-grid { display: flex; flex-direction: column; grid-auto-rows: auto; }
  .gallery-item { aspect-ratio: 4/3 !important; }
  .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card:first-child { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 32px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
  position: absolute;
  top: 28px; right: clamp(24px, 5vw, 80px);
  background: none;
  border: none;
  color: var(--fg);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}


/* ═══ Pages galerie — repris de pages.css ═════════════════════════════ */

.nav-links a:hover, .nav-links a.current {
  color:var(--fg);
}
.page-head {
  padding:clamp(140px,16vw,200px) clamp(24px,5vw,80px) 0;
  max-width:var(--max-w);
  margin:0 auto;
}
.crumb {
  font-size:10px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--fg-muted);
  margin-bottom:26px;
}
.sub a:hover, .sub a.current {
  color:var(--fg);
}
.crumb a {
  color:var(--fg-muted);
  text-decoration:none;
}
.crumb a:hover {
  color:var(--accent);
}
.page-title {
  font-family:var(--font-display);
  font-size:clamp(36px,5vw,64px);
  font-weight:300;
  line-height:1.1;
  max-width:600px;
}
.page-title em {
  font-style:italic;
}
.page-lead {
  max-width:56ch;
  color:var(--fg-muted);
  margin-top:24px;
  font-size:17px;
}
.tabs {
  display:flex;
  gap:clamp(16px,3vw,32px);
  flex-wrap:wrap;
  list-style:none;
  margin-top:clamp(48px,6vw,72px);
  padding-bottom:18px;
  border-bottom:1px solid var(--border);
}
.tabs a {
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--fg-muted);
  text-decoration:none;
  padding-bottom:16px;
  border-bottom:1px solid transparent;
  transition:color .3s,border-color .3s;
}
.tabs a:hover {
  color:var(--fg);
}
.tabs a.current {
  color:var(--fg);
  border-bottom-color:var(--accent);
}
.tabs .count {
  color:var(--accent-dark);
  margin-left:6px;
  letter-spacing:0;
}
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:6px;
  max-width:var(--max-w);
  margin:clamp(40px,5vw,64px) auto 0;
  padding:0 clamp(24px,5vw,80px);
}
.tile {
  position:relative;
  overflow:hidden;
  cursor:pointer;
  aspect-ratio:4/3;
  border:none;
  padding:0;
  background:none;
  display:block;
  width:100%;
  opacity:0;
  transform:translateY(14px);
  animation:tileIn .7s forwards;
}
.tile[hidden] {
  display:none;
}
.tile:hover img {
  transform:scale(1.04);
}
.ph {
  width:100%;
  height:100%;
  background:linear-gradient(135deg,var(--bg3),var(--bg2));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:var(--fg-muted);
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  text-align:center;
  padding:16px;
  position:relative;
  overflow:hidden;
  transition:transform .8s cubic-bezier(.2,0,.2,1);
}
.ph::before {
  content:'';
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(115deg,transparent 0 22px,rgba(240,236,228,.022) 22px 24px);
}
.tile:hover .ph {
  transform:scale(1.03);
}
.ph-icon {
  width:34px;
  height:34px;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--accent-dark);
  position:relative;
  z-index:1;
}
.ph span {
  position:relative;
  z-index:1;
  max-width:22ch;
}
.tile-cap {
  position:absolute;
  inset:auto 0 0 0;
  padding:22px;
  background:linear-gradient(transparent,rgba(15,14,12,.88));
  opacity:0;
  transition:opacity .4s;
  text-align:left;
}
.tile:hover .tile-cap {
  opacity:1;
}
.tile-cap-t {
  font-family:var(--font-display);
  font-size:19px;
  color:var(--fg);
  line-height:1.25;
}
.tile-cap-c {
  font-size:9px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:5px;
}
.more-wrap {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:clamp(56px,7vw,88px) 24px;
}
.more-count {
  font-size:11px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--fg-muted);
}
.page-cta {
  border-top:1px solid var(--border);
  text-align:center;
  padding:clamp(72px,9vw,120px) 24px;
  background:var(--bg2);
}
.page-cta h2 {
  font-family:var(--font-display);
  font-size:clamp(32px,4.6vw,54px);
  font-weight:300;
  line-height:1.1;
  margin-bottom:14px;
}
.page-cta h2 em {
  font-style:italic;
  color:var(--accent);
}
.page-cta p {
  color:var(--fg-muted);
  margin-bottom:36px;
}
.lb {
  position:fixed;
  inset:0;
  z-index:300;
  background:rgba(10,9,8,.97);
  display:none;
  align-items:center;
  justify-content:center;
}
.lb.open {
  display:flex;
}
.lb-stage {
  width:min(1180px,88vw);
  height:min(78vh,860px);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.lb-stage img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.lb-stage .ph {
  width:100%;
  height:100%;
}
.lb-cap {
  position:absolute;
  left:0;
  right:0;
  bottom:clamp(24px,5vh,52px);
  text-align:center;
  pointer-events:none;
}
.lb-cap-t {
  font-family:var(--font-display);
  font-size:clamp(20px,2.6vw,30px);
  font-weight:300;
}
.lb-cap-c {
  font-size:10px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:6px;
}
.lb-idx {
  font-size:11px;
  letter-spacing:.2em;
  color:var(--fg-muted);
  margin-top:10px;
}
.lb-btn {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:1px solid var(--border);
  color:var(--fg);
  width:52px;
  height:52px;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  transition:border-color .3s,background .3s;
}
.lb-btn:hover {
  border-color:var(--fg);
  background:rgba(240,236,228,.05);
}
.lb-prev {
  left:clamp(12px,3vw,44px);
}
.lb-next {
  right:clamp(12px,3vw,44px);
}
.lb-close {
  position:absolute;
  top:24px;
  right:28px;
  background:none;
  border:none;
  color:var(--fg);
  font-size:30px;
  cursor:pointer;
  line-height:1;
}

@media(max-width:620px) {
  .grid {
    grid-template-columns:1fr;
    padding:0 16px;
  }
  .lb-btn {
    width:42px;
    height:42px;
  }
  .tile-cap {
    opacity:1;
  }
}

/* ═══ Ajouts — ce que la maquette ne pouvait pas montrer ═══════════════ */

/* Le piège à robots du formulaire de devis : hors de l'écran plutôt que
   display:none, que certains robots savent détecter.                     */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Erreurs de validation. La maquette n'avait qu'un formulaire décoratif :
   son « envoi » ne pouvait rien refuser.                                 */
.form-error {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--accent);
}
.form-help {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--fg-muted);
}

/* Une galerie vide. Le site part sans photo : les cent vignettes de la
   maquette étaient des cases de couleur, pas des images.                 */
.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  padding: clamp(40px, 8vw, 88px) clamp(24px, 5vw, 48px);
  text-align: center;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
  margin-bottom: 12px;
}
.empty-state p {
  color: var(--fg-muted);
  max-width: 46ch;
  margin: 0 auto;
  font-size: 15px;
}

/* La mosaïque de l'accueil est dessinée pour huit tuiles exactement. En
   deçà, les zones de grille nommées laisseraient des trous : on retombe
   sur une grille régulière.                                              */
.gallery-grid--loose {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: auto;
}
.gallery-grid--loose .gallery-item {
  grid-column: auto !important;
  grid-row: auto !important;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* Le corps d'un article : la maquette n'avait ni page article, ni index.
   Le vocabulaire vient des pages galerie (page-head, page-title, crumb). */
.article-body {
  max-width: 68ch;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 0 clamp(24px, 5vw, 80px);
}
.article-body p {
  margin-bottom: 1.6em;
  font-size: 17px;
  color: rgba(240, 236, 228, 0.88);
}
.article-figure {
  max-width: var(--max-w);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0 clamp(24px, 5vw, 80px);
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 22px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(28px, 3vw, 44px);
  max-width: var(--max-w);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* Pages légales : du texte long, rien d'autre. */
.prose {
  max-width: 72ch;
  margin: clamp(32px, 5vw, 56px) auto clamp(80px, 10vw, 140px);
  padding: 0 clamp(24px, 5vw, 80px);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 300;
  margin: 2.2em 0 0.7em;
}
.prose p,
.prose li {
  color: rgba(240, 236, 228, 0.88);
  margin-bottom: 1.1em;
}
.prose ul {
  padding-left: 1.2em;
  margin-bottom: 1.6em;
}
.todo {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 1px 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Message de succès du formulaire, posé par le rechargement qui suit
   l'envoi — la maquette le montrait en masquant le formulaire en JS.     */
.form-success { display: block; }

/* Les visiteurs qui ont demandé moins d'animation en sont dispensés :
   la maquette anime au défilement une dizaine de blocs par page.         */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions { opacity: 1; }
  .tile { opacity: 1; transform: none; }
}

/* Le focus clavier. La maquette ne le stylait nulle part : au clavier, on
   traversait la page sans savoir où l'on était.                          */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 0;
}
