*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ── MODE JOUR : palette bleue-ardoise ── */
  --bg:     #C9D8DC;
  --ink:    #3B5A64;
  --muted:  #6D8D97;
  --accent: #3B5A64;
  --line:   rgba(59,90,100,0.15);
  --transition-theme: background 0.6s ease, color 0.6s ease;
}

body.dark {
  /* ── MODE NUIT : palette forêt nocturne ── */
  --bg:     #273e46;
  --ink:    #EFFBDB;
  --muted:  #8FA464;
  --accent: #8FA464;
  --line:   rgba(239,251,219,0.12);
}

html, body {
  height: 100%;
  overflow: hidden !important;
  max-height: 100vh;
  scrollbar-width: none !important;   /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  display: none !important;
} /* Chrome/Edge/Safari */
#pages-container {
  scrollbar-width: none;
}
#pages-container::-webkit-scrollbar { width: 0; display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  transition: var(--transition-theme);
}

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  width: 52px; height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.toggle-track {
  width: 52px; height: 28px;
  border-radius: 14px;
  background: rgba(26,24,20,0.15);
  border: 1px solid rgba(26,24,20,0.2);
  position: relative;
  transition: background 0.4s, border-color 0.4s;
  display: flex; align-items: center;
  padding: 0 4px;
}
body.dark .toggle-track {
  background: rgba(232,228,220,0.12);
  border-color: rgba(232,228,220,0.2);
}
.toggle-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), background 0.4s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.dark .toggle-thumb { transform: translateX(24px); }
.icon-sun  { position: absolute; right: 7px; font-size: 11px; opacity: 1; transition: opacity 0.3s; }
.icon-moon { position: absolute; left: 7px;  font-size: 11px; opacity: 0; transition: opacity 0.3s; }
body.dark .icon-sun  { opacity: 0; }
body.dark .icon-moon { opacity: 1; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; justify-content: space-between; align-items: stretch;
  padding: 0;
  background: transparent;
  pointer-events: none;
  transition: transform .4s ease, opacity .4s ease;
}
nav > * { pointer-events: all; }
nav.dark  { background: transparent; }
body.dark nav.dark { background: transparent; }
nav.on-contact { background: transparent !important; }
nav.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
/* ─── LOGO (zone verte — 100% identique à l'original) ─── */
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: 1.1rem;
  letter-spacing: .25em; text-transform: uppercase;
  text-decoration: none;
  pointer-events: all;
  transition: color .3s;
  color: white;
  display: flex; align-items: center;
  padding: 1.1rem 0 1.1rem 3rem;
  width: 35%;       /* valeur initiale — remplacée dynamiquement par JS */
  flex-shrink: 0;
}
nav.dark .logo { color: var(--ink); }
nav.on-contact .logo { color: #EFFBDB !important; }
body:not(.dark) nav.on-contact .logo { color: #273e46 !important; }
/* ─── LIENS NAV — zone jaune : bandeau sombre, étalé sur toute la largeur restante ─── */
.nav-links {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  padding: 0 2rem;
  margin: 0;
  background: transparent;
  border-bottom: none;
}
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,.75);
  transition: color .3s; position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .4s ease;
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
nav.dark .nav-links a { color: rgba(255,255,255,.75); }
nav.dark .nav-links a::after { background: var(--accent); }
nav.dark .nav-links a:hover, nav.dark .nav-links a.active { color: white; }

/* ─── BURGER ─── */
.burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  cursor: pointer; pointer-events: all;
  background: none; border: none; padding: 4px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: white;
  transition: transform .35s ease, opacity .35s ease, background .3s;
}
nav.dark .burger span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE DRAWER ─── */
.mobile-drawer {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem 2.5rem 3rem;
  opacity: 0;
  pointer-events: none;
  display: flex;
  transition: opacity .4s ease, background .6s ease;
}
body.dark .mobile-drawer { background: #273e46; }
.mobile-drawer.open { opacity: 1; pointer-events: all; }
.mobile-drawer ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 0;
  width: 100%;
}
.mobile-drawer ul li { border-bottom: 1px solid var(--line); }
.mobile-drawer ul li:first-child { border-top: 1px solid var(--line); }
.mobile-drawer ul a {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
  padding: 1.2rem 0;
  transition: color .3s, padding-left .3s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-drawer ul a:hover,
.mobile-drawer ul a.active { color: var(--accent); padding-left: .75rem; }
.mobile-drawer-footer {
  margin-top: auto;
  font-family: 'Space Mono', monospace; font-size: .55rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}

/* ─── PAGES ─── */
#pages-container {
  position: fixed; inset: 0;
  overflow: hidden; /* les pages actives scroll elles-mêmes via overflow-y: auto */
}
.page {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
  overflow: hidden;       /* pages inactives : pas de scroll */
  touch-action: none;     /* pages inactives : pas de geste tactile */
}
.page.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  overflow-y: auto;                     /* seulement la page active scrolle */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  scrollbar-width: none;                /* Firefox — cache la scrollbar */
}
.page.active::-webkit-scrollbar {
  display: none;                        /* Chrome/Edge/Safari — cache la scrollbar */
  width: 0;
}
.page.exit {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* ═══════════════════════════════
   PAGE HOME
═══════════════════════════════ */
#page-home {
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 5rem;
  background: #3B5A64;
  transition: background 0.6s ease;
}
body.dark #page-home { background: #050e14; }

.tri-scene {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.tri-scene .t {
  position: absolute;
  width: 102vmax; height: 102vmax;
  will-change: transform;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.t0 {
  position: absolute; inset: -50%;
  width: 200%; height: 200%;
  clip-path: none;
  background: #4a6e7a;
  z-index: -1;
  transition: background 0.6s ease;
}
.t1 { background: #3B5A64; top: -30vmax; left: -10vmax; transform-origin: 60% 55%; animation: spin1 21.2s ease-in-out 2 forwards; }
.t2 { background: #6D8D97; top: -20vmax; right: -20vmax; transform-origin: 45% 60%; animation: spin2 25.9s ease-in-out 2 forwards; }
.t3 { background: #C9D8DC; bottom: -40vmax; left: 10vmax; transform-origin: 50% 40%; animation: spin3 32.9s ease-in-out 2 forwards; }
.t4 { background: #2d4a54; bottom: -10vmax; right: -30vmax; transform-origin: 40% 45%; animation: spin2 23.5s ease-in-out 2 forwards; }
.t5 { background: #567d89; top: 20vmax; left: -20vmax; transform-origin: 55% 50%; animation: spin3 35s ease-in-out 2 forwards; }

body.dark .t0 { background: #060f14; }
body.dark .t1 { background: #0d1f28; }
body.dark .t2 { background: #1a3a2a; }
body.dark .t3 { background: #2a4a1a; }
body.dark .t4 { background: #081218; }
body.dark .t5 { background: #102a1a; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.5) 100%);
}

@keyframes spin1 {
  0%   { transform: rotate(0deg); }    3%  { transform: rotate(10deg); }
  7%   { transform: rotate(10deg); }   37% { transform: rotate(128deg); }
  41%  { transform: rotate(128deg); }  70% { transform: rotate(248deg); }
  74%  { transform: rotate(248deg); }  100%{ transform: rotate(360deg); }
}
@keyframes spin2 {
  0%   { transform: rotate(0deg); }    3%  { transform: rotate(-10deg); }
  7%   { transform: rotate(-10deg); }  37% { transform: rotate(-128deg); }
  41%  { transform: rotate(-128deg); } 70% { transform: rotate(-248deg); }
  74%  { transform: rotate(-248deg); } 100%{ transform: rotate(-360deg); }
}
@keyframes spin3 {
  0%   { transform: rotate(15deg); }   3%  { transform: rotate(26deg); }
  7%   { transform: rotate(26deg); }   37% { transform: rotate(148deg); }
  41%  { transform: rotate(148deg); }  70% { transform: rotate(265deg); }
  74%  { transform: rotate(265deg); }  100%{ transform: rotate(375deg); }
}
.hero-content { position: relative; z-index: 2; }
.hero-index {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .2em; color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 1s ease .4s forwards;
}
.hero-title {
  font-weight: 300; font-size: clamp(3rem,7.5vw,8.5rem);
  line-height: .95; letter-spacing: -.02em; color: white;
  text-shadow: 0 2px 30px rgba(0,0,0,.15);
  opacity: 0; transform: translateY(40px);
  animation: fadeUp 1.2s ease .6s forwards;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,.75); }
.hero-bottom {
  margin-top: 3rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  opacity: 0; animation: fadeUp 1s ease 1s forwards;
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
  font-size: 1rem; color: rgba(255,255,255,.65); line-height: 1.8; max-width: 320px;
}
/* ─── HERO SKETCH ─── */
.hero-sketch {
  position: absolute;
  top: 0; right: 0;
  width: 65%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.hero-sketch img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .12;
  mix-blend-mode: luminosity;
  filter: invert(1) contrast(1.2);
}
body.dark .hero-sketch img {
  filter: invert(0) contrast(1.1);
  opacity: .08;
}
@media (max-width: 768px) {
  .hero-sketch { width: 100%; height: 55%; opacity: .9; }
}

/* ═══════════════════════════════
   INNER PAGES
═══════════════════════════════ */
.inner-page {
  background: var(--bg);
  min-height: 100vh;
  padding: 5.5rem 3rem 4rem;
  transition: var(--transition-theme);
}
body.dark .inner-page { background: #273e46; }

.page-label {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .25em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem;
}
.page-label::before { content:''; display:block; width:30px; height:1px; background:var(--accent); }

.page-title {
  font-size: clamp(3rem,6vw,7rem); font-weight: 300;
  line-height: .95; letter-spacing: -.02em; margin-bottom: 5rem;
}
.page-title em { font-style: italic; color: var(--muted); }

/* ═══════════════════════════════
   PAGE ÉTATS DES LIEUX
═══════════════════════════════ */
.services-intro {
  max-width: 560px; font-size: 1.05rem; line-height: 1.9;
  color: var(--muted); font-weight: 300; margin-bottom: 4rem;
}
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 3rem;
  padding: 2.5rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s ease;
  /* reset button */
  background: none; border-top: none; border-left: none; border-right: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%;
}
.service-row:hover { padding-left: 1.5rem; }
.service-num { font-family:'Space Mono',monospace; font-size:.6rem; color:var(--muted); letter-spacing:.1em; }
.service-name { font-size: clamp(1.5rem,2.5vw,2.8rem); font-weight: 300; letter-spacing:-.01em; }
.service-desc { font-family:'Space Mono',monospace; font-size:.6rem; letter-spacing:.1em; color:var(--muted); text-transform:uppercase; }

/* ═══════════════════════════════
   PAGE TARIFS
═══════════════════════════════ */
.tarifs-intro {
  max-width: 560px; font-size: 1.05rem; line-height: 1.9;
  color: var(--muted); font-weight: 300; margin-bottom: 4rem;
}
.tarifs-note {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .1em; color: var(--muted); margin-bottom: 3rem;
  padding: 1.2rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: rgba(59,90,100,0.06);
  line-height: 1.8;
}
body.dark .tarifs-note { background: rgba(143,164,100,0.06); }
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 2rem;
}
.tarif-card {
  /* reset button — les vrais bordures viennent après */
  display: flex; flex-direction: column; align-items: flex-start;
  border: none; background: none;
  -webkit-appearance: none; appearance: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  width: 100%; align-self: stretch;
  /* styles réels */
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background .4s;
}
.tarif-card::after {
  content: ''; position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s cubic-bezier(.76,0,.24,1);
  z-index: 0;
}
.tarif-card:hover::after { transform: scaleY(1); }
.tarif-card > * { position: relative; z-index: 1; }
.tarif-card:hover { color: var(--bg); }
.tarif-type {
  font-family: 'Space Mono', monospace; font-size: .55rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  transition: color .4s;
}
.tarif-card:hover .tarif-type { color: rgba(245,237,216,.5); }
.tarif-name {
  font-size: clamp(1.4rem,2vw,2rem); font-weight: 300;
  line-height: 1.2; margin-bottom: 1.5rem;
}
.tarif-price {
  font-size: clamp(2rem,4vw,3.5rem); font-weight: 300;
  letter-spacing: -.03em; line-height: 1;
  margin-bottom: .5rem;
}
.tarif-price--devis {
  font-size: clamp(2rem,4vw,3.5rem);
  letter-spacing: -.03em;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
}
.tarif-price span {
  font-family: 'Space Mono', monospace; font-size: .7rem;
  letter-spacing: .1em; color: var(--muted);
  font-weight: 400; vertical-align: super;
  transition: color .4s;
}
.tarif-card:hover .tarif-price span { color: rgba(245,237,216,.5); }
.tarif-detail {
  font-size: .85rem; color: var(--muted); line-height: 1.9;
  margin-top: 1.5rem; font-weight: 300;
  transition: color .4s;
}
.tarif-detail em { font-style: normal; color: var(--ink); transition: color .4s; }
.tarif-card:hover .tarif-detail { color: rgba(245,237,216,.5); }
.tarif-card:hover .tarif-detail em { color: rgba(245,237,216,.85); }
.tarif-divider {
  width: 30px; height: 1px; background: var(--line);
  margin: 1.5rem 0; transition: background .4s;
}
.tarif-card:hover .tarif-divider { background: rgba(245,237,216,.2); }
/* Dark mode : fond hover = #EFFBDB (clair) → textes en foncé */
body.dark .tarif-card:hover                   { color: var(--bg); }
body.dark .tarif-card:hover .tarif-type       { color: rgba(39,62,70,.55); }
body.dark .tarif-card:hover .tarif-price span { color: rgba(39,62,70,.55); }
body.dark .tarif-card:hover .tarif-detail     { color: rgba(39,62,70,.55); }
body.dark .tarif-card:hover .tarif-detail em  { color: rgba(39,62,70,.85); }
body.dark .tarif-card:hover .tarif-divider    { background: rgba(39,62,70,.2); }
.tarifs-footer-note {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .1em; color: var(--muted);
  line-height: 1.8; margin-top: 1rem;
}

/* ─── États des lieux : page complète sans scroll ─── */
#page-etats .inner-page      { padding-top: 4rem; padding-bottom: 2rem; }
#page-etats .page-title      { margin-bottom: 2rem; }
#page-etats .services-intro  { font-size: .9rem; line-height: 1.7; margin-bottom: 2rem; }
#page-etats .service-row     { padding: 1.5rem 0; gap: 2rem; }
#page-etats .service-name    { font-size: clamp(1.3rem, 2vw, 2.2rem); }

/* ─── À propos : page complète sans scroll ─── */
#page-apropos .inner-page      { padding-top: 4rem; padding-bottom: 2rem; }
#page-apropos .page-title      { font-size: clamp(2rem,4vw,4.5rem); margin-bottom: 2rem; }
#page-apropos .about-grid      { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
#page-apropos .about-body      { font-size: 1.04rem; line-height: 1.7; }
#page-apropos .about-body p    { margin-bottom: .6rem; }
#page-apropos .about-highlight { font-size: 1rem; padding: .75rem 1.25rem; margin: .75rem 0; }
#page-apropos .certif-badge    { margin-top: .75rem; font-size: .69rem; }
#page-apropos .about-stats     { gap: 1.5rem; }
#page-apropos .stat            { padding-top: 1rem; }
#page-apropos .stat-num        { font-size: clamp(2.3rem,3.45vw,3.45rem); }
#page-apropos .stat-label      { font-size: .69rem; }

/* ─── Tarifs : page complète sans scroll ─── */
#page-tarifs .inner-page      { padding-top: 4rem; padding-bottom: 2rem; }
#page-tarifs .page-title      { font-size: clamp(2rem,4vw,4rem); margin-bottom: 1.5rem; }
#page-tarifs .tarifs-intro    { font-size: .9rem; margin-bottom: 1.5rem; }
#page-tarifs .tarifs-grid     { margin-bottom: .75rem; }
#page-tarifs .tarif-name      { font-size: clamp(1.1rem,1.5vw,1.5rem); margin-bottom: .4rem; }
#page-tarifs .tarif-divider   { margin: .5rem 0; }
#page-tarifs .tarif-price     { font-size: clamp(1.6rem,2.5vw,2.5rem); margin-bottom: .25rem; }
#page-tarifs .tarif-price--devis { font-size: clamp(1.4rem,2vw,2rem); }
#page-tarifs .tarif-detail    { font-size: .9rem; line-height: 1.7; margin-top: .4rem; }
#page-tarifs .tarifs-footer-note { margin-top: .5rem; line-height: 1.6; }
#page-tarifs .tarifs-note     { margin-bottom: .5rem; }
#page-tarifs .tarif-card      { padding: 1.5rem; }

/* ═══════════════════════════════
   PAGE À PROPOS
═══════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 6rem; align-items: start;
}
.about-body { font-size: 1.05rem; line-height: 1.9; color: var(--muted); font-weight: 300; }
.about-body p+p { margin-top: 1.5rem; }
.about-highlight {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-left: 2px solid var(--accent);
  font-style: italic; font-size: 1.15rem; line-height: 1.7;
  color: var(--ink);
}
.about-stats { display: flex; flex-direction: column; gap: 3rem; }
.stat { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.stat-num { font-size: clamp(3rem,5vw,5rem); font-weight:300; letter-spacing:-.03em; line-height:1; }
.stat-label { font-family:'Space Mono',monospace; font-size:.6rem; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); margin-top:.5rem; }
.certif-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-top: 2rem;
  padding: .75rem 1.25rem;
  border: 1px solid var(--line);
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.certif-badge::before {
  content: '✓'; color: var(--accent); font-family: inherit; font-size: .8rem;
}

/* ═══════════════════════════════
   PAGE RENDEZ-VOUS — CTA
═══════════════════════════════ */
.rdv-cta-list {
  margin-top: 3rem;
  max-width: 520px;
}
.rdv-cta-list .contact-row {
  width: 100%;
  font-size: 1.3rem;
}

/* ═══════════════════════════════
   PAGE CONTACT — thème propre
   Nuit par défaut, jour possible
═══════════════════════════════ */
#page-contact {
  --c-bg:      #273e46;
  --c-ink:     #EFFBDB;
  --c-accent:  #8FA464;
  --c-muted:   rgba(239,251,219,.5);
  --c-line:    rgba(143,164,100,.2);
}
body:not(.dark) #page-contact {
  --c-bg:      #C9D8DC;
  --c-ink:     #3B5A64;
  --c-accent:  #3B5A64;
  --c-muted:   #6D8D97;
  --c-line:    rgba(59,90,100,0.15);
}

#page-contact .inner-page {
  background: var(--c-bg);
  color: var(--c-ink);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  transition: background .6s ease, color .6s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}
#page-contact .page-label { color: var(--c-accent); margin-bottom: 1rem; }
#page-contact .page-label::before { background: var(--c-accent); }
#page-contact .page-title { color: var(--c-ink); margin-bottom: 2rem; }
#page-contact .page-title em { color: var(--c-accent); }
#page-contact .contact-intro { color: var(--c-muted); }
#page-contact .contact-row { color: var(--c-ink); border-color: var(--c-line); transition: color .3s, border-color .6s; }
#page-contact .contact-row:first-child { border-color: var(--c-line); }
#page-contact a.contact-row:hover, #page-contact button.contact-row:hover { color: var(--c-accent); }
#page-contact .contact-icon { color: var(--c-accent); }
#page-contact .contact-sep { color: var(--c-line); }
#page-contact .page-footer { border-color: var(--c-line); }
#page-contact .page-footer span { color: var(--c-muted); }

/* Nav sur page contact — fond désormais uniforme #273e46 */
nav.on-contact .logo { color: white !important; }
nav.on-contact .burger span { background: white !important; }
nav.on-contact .nav-links a { color: rgba(255,255,255,.75) !important; }
nav.on-contact .nav-links a:hover,
nav.on-contact .nav-links a.active { color: white !important; }
nav.on-contact .nav-links a::after { background: var(--accent) !important; }
body:not(.dark) nav.on-contact .logo { color: var(--ink) !important; }
body:not(.dark) nav.on-contact .burger span { background: var(--ink) !important; }
body:not(.dark) nav.on-contact .nav-links a { color: rgba(59,90,100,.75) !important; }

/* ═══════════════════════════════
   PAGE CONTACT
═══════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(max-content, 50%);
  gap: 4rem;
  align-items: start;
}
.contact-intro { font-size: 1rem; line-height: 1.8; color: var(--muted); font-weight: 300; pointer-events: none; }
.contact-list { grid-column: 3; display: flex; flex-direction: column; gap: 0; }
.contact-row {
  display: flex; align-items: center; gap: 1.8rem;
  width: 100%;
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300;
  color: var(--ink); text-decoration: none;
  transition: color .3s;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:first-child { border-top: 1px solid var(--line); }
a.contact-row:hover, button.contact-row:hover { color: var(--accent); }
/* Téléphone : cliquable sur mobile (composeur), désactivé sur desktop */
@media (hover: hover) {
  .contact-row--tel { cursor: default; pointer-events: none; }
}
.contact-row::after {
  content: '';
  position: absolute;
  inset: 0;
}
button.contact-row {
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.contact-icon {
  width: 32px; height: 32px;
  display: flex; justify-content: center; align-items: center;
  color: var(--accent); flex-shrink: 0;
}
.contact-sep { color: var(--line); font-weight: 200; font-size: 1.6rem; flex-shrink: 0; }
.contact-val { letter-spacing: .02em; flex: 1; min-width: 0; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.page-footer {
  margin-top: 6rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.page-footer span { font-family:'Space Mono',monospace; font-size:.6rem; letter-spacing:.15em; color:var(--muted); text-transform:uppercase; }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

/* NOISE */
body::before {
  content:''; position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.025; pointer-events:none; z-index:9997;
}

/* ─── RESPONSIVE MOBILE ─── */
@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
    justify-content: space-between;
  }
  .logo { display: block; font-size: .8rem; letter-spacing: .15em; white-space: nowrap; padding-left: 0; }
  .nav-links { display: none !important; }
  .burger { display: flex; }

  #page-home { padding: 0 1.5rem 5rem; }
  .hero-sketch { height: 40%; }
  .hero-title { font-size: clamp(2rem, 9vw, 3.5rem); }
  .hero-bottom { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .hero-tagline { font-size: .9rem; max-width: 100%; }

  .inner-page { padding: 5rem 1.5rem 3rem; }
  .page-title { font-size: clamp(1.8rem, 7vw, 3rem); margin-bottom: 2rem; }

  .service-row { grid-template-columns: 40px 1fr; gap: 1rem; }
  .service-desc { display: none; }
  .service-name { font-size: clamp(1.1rem, 5vw, 1.6rem); }

  .tarifs-grid { grid-template-columns: 1fr; }
  .tarif-card { padding: 1.8rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-list { grid-column: 1; }
  .contact-intro { font-size: .95rem; }
  .contact-row { font-size: 1rem; gap: 1rem; padding: 1.2rem 0; }
  .contact-val { word-break: break-all; }

  .page-footer { flex-direction: column; gap: .5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
}
