/* =========================================================
   Au grès de vos envies — feuille de style
   Palette inspirée de la terre, du feu et des émaux
   ========================================================= */

:root {
  --cream: #f8f3eb;
  --sand: #efe5d6;
  --sand-deep: #e3d4bf;
  --clay: #b4602f;
  --clay-dark: #8c4521;
  --ember: #d9853b;
  --glaze: #2f6f72;
  --glaze-light: #d7e7e6;
  --ink: #2a211c;
  --ink-soft: #4a3f38;
  --muted: #74675e;
  --ash: #26201c;
  --white: #fffdf9;
  --line: rgba(42, 33, 28, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(60, 35, 20, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(60, 35, 20, 0.35);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--clay-dark); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
em.accent, .accent { font-style: italic; color: var(--clay); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--clay); color: var(--white); box-shadow: 0 8px 20px -8px rgba(180, 96, 47, .7); }
.btn-primary:hover { background: var(--clay-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--clay-dark);
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 243, 235, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; white-space: nowrap; }
.brand-sub { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.97rem; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--sand); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--clay-dark); background: var(--sand); }
.main-nav .nav-cta a { background: var(--clay); color: var(--white); margin-left: 8px; padding-inline: 20px; }
.main-nav .nav-cta a:hover { background: var(--clay-dark); color: var(--white); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .main-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
  .brand-sub { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ash); color: #eadfd2; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--ember); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #c9bbab; }

/* ---------- Héros accueil ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(closest-side, rgba(217,133,59,.22), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent { display: inline-block; }
.hero .lead { max-width: 34ch; margin-bottom: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--clay-dark); line-height: 1.1; }
.hero-facts span { font-size: 0.88rem; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 4 / 4.4; }
.hero-visual .main-img {
  position: absolute; inset: 0 0 12% 10%;
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-visual .main-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .float-img {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 8px solid var(--cream); box-shadow: var(--shadow);
}
.hero-visual .float-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; right: -8px; bottom: 18%;
  background: var(--white); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.3;
}
.hero-badge .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--glaze-light); display: grid; place-items: center; color: var(--glaze); flex: none; }
.hero-badge .dot svg { width: 20px; height: 20px; }
.hero-badge strong { display: block; font-size: 1rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; order: -1; aspect-ratio: 1 / 0.95; }
  .hero-badge { right: 0; }
}

/* ---------- En-tête de page intérieure ---------- */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 100px) clamp(40px, 6vw, 70px); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(217,133,59,.18), transparent); pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--clay); }
.page-hero-img { margin-top: clamp(32px, 5vw, 56px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; box-shadow: var(--shadow); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .page-hero-img { aspect-ratio: 4 / 3; } }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(60,35,20,.5);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
/* Carte à deux photos : la seconde apparaît au survol */
.card-img.duo { position: relative; }
.card-img.duo img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.card:hover .card-img.duo img + img, .card:focus-within .card-img.duo img + img { opacity: 1; }
@media (hover: none) { .card-img.duo img + img { animation: duoSwap 8s ease-in-out infinite; } }
@keyframes duoSwap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-body .link-arrow { margin-top: auto; }
.card-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--glaze); background: var(--glaze-light); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.card-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--clay-dark); margin-bottom: 12px; }
.card-price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); }

/* Tuiles techniques */
.tech-tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; color: var(--white); text-decoration: none; isolation: isolate;
}
.tech-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.tech-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,14,10,0) 35%, rgba(20,14,10,.85) 100%);
}
.tech-tile:hover img { transform: scale(1.07); }
.tech-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.tech-tile h3 { color: var(--white); margin-bottom: 4px; }
.tech-tile p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.82); line-height: 1.5; }
.tech-tile .temp {
  position: absolute; top: 16px; left: 16px; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  background: rgba(255,253,249,.92); color: var(--ink); padding: 5px 10px; border-radius: 999px;
}
@media (max-width: 640px) { .tech-tile { aspect-ratio: 4 / 3; } }

/* Split image / texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split-media .stamp {
  position: absolute; right: -14px; bottom: -22px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--clay); color: var(--white); display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-size: .95rem; line-height: 1.2; padding: 16px; box-shadow: var(--shadow);
  transform: rotate(-8deg);
}
.split-media .stamp strong { display: block; font-size: 1.9rem; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media .stamp { right: 8px; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%;
  background: var(--glaze-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Citation */
.quote-block { text-align: center; max-width: 860px; margin-inline: auto; }
.quote-block blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.35; color: var(--white);
}
.quote-block blockquote::before { content: "“"; display: block; font-size: 4.5rem; line-height: .6; color: var(--ember); margin-bottom: 18px; }
.quote-block cite { display: block; margin-top: 1.6rem; font-style: normal; color: #c9bbab; letter-spacing: .05em; }

/* Bande galerie défilante */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 240px; width: auto; border-radius: 14px; object-fit: cover; aspect-ratio: 3 / 2.2; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track > :nth-child(n+9) { display: none; }
}
@media (max-width: 640px) { .marquee img { height: 170px; } }

/* Infos pratiques */
.info-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.info-band > div { background: var(--white); padding: 28px; display: flex; gap: 16px; align-items: flex-start; }
.info-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--sand); color: var(--clay-dark); display: grid; place-items: center; flex: none; }
.info-icon svg { width: 22px; height: 22px; }
.info-band h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.info-band p { margin: 0; color: var(--muted); font-size: .97rem; }
.info-band a { font-weight: 600; }
@media (max-width: 880px) { .info-band { grid-template-columns: 1fr; } }

/* Bandeau d'appel à l'action */
.cta-banner {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; isolation: isolate;
  padding: clamp(40px, 7vw, 80px); color: var(--white);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(38,24,16,.92) 20%, rgba(38,24,16,.55)); }
.cta-banner h2 { color: var(--white); margin-bottom: .3em; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; max-width: 46ch; }
.cta-banner .btn-row { justify-content: flex-end; }
@media (max-width: 880px) { .cta-banner { grid-template-columns: 1fr; } .cta-banner .btn-row { justify-content: flex-start; } }

/* ---------- Tarifs (page cours) ---------- */
.price-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 0 var(--line), 0 16px 40px -28px rgba(60,35,20,.6); display: flex; flex-direction: column; position: relative; }
.price-card.featured { background: var(--ash); color: #eadfd2; }
.price-card.featured h3, .price-card.featured .price { color: var(--white); }
.price-card.featured .price-note, .price-card.featured li { color: #d6c8b8; }
.price-card .ribbon { position: absolute; top: 20px; right: 20px; background: var(--ember); color: var(--ash); font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.price { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--clay-dark); margin: 10px 0 4px; }
.price small { font-family: var(--font-body); font-size: 1rem; color: inherit; opacity: .7; }
.price-note { color: var(--muted); font-size: .93rem; margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .97rem; }
.price-card.featured ul { border-color: rgba(255,255,255,.14); }
.price-card li { display: flex; gap: 10px; color: var(--ink-soft); }
.price-card li::before { content: "•"; color: var(--clay); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-pair { max-width: 860px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); }
table.rates { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.rates th, table.rates td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.rates th { background: var(--sand); font-weight: 600; }
table.rates tr:last-child td { border-bottom: 0; }
table.rates td:last-child { font-weight: 600; color: var(--clay-dark); white-space: nowrap; }

.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm);
  background: #fff6e6; border: 1px solid #f0d6a8; color: #6b4a14; font-size: .96rem;
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice p { margin: 0; }

/* Étapes / frise */
.steps { counter-reset: step; display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-bottom: 32px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 2px solid var(--clay);
  color: var(--clay-dark); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; z-index: 1;
}
.step:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--sand-deep); }
.step h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin: 12px 0 6px; }
.step p { color: var(--muted); margin: 0; }
.step .time { font-size: .82rem; font-weight: 700; color: var(--glaze); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Techniques (page détaillée) ---------- */
.tech-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(248,243,235,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tech-nav ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tech-nav ul::-webkit-scrollbar { display: none; }
.tech-nav a { display: block; white-space: nowrap; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; border: 1px solid var(--line); background: var(--white); }
.tech-nav a:hover, .tech-nav a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

html:has(.tech-nav) { scroll-padding-top: calc(var(--header-h) + 72px); }
.tech-section { padding-block: clamp(56px, 8vw, 100px); border-bottom: 1px solid var(--line); }
.tech-section:last-of-type { border-bottom: 0; }
.tech-header { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(32px, 5vw, 52px); }
.tech-header .lead { margin: 0; }
.tech-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.chip { font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); }
.chip.hot { background: #fbe7d8; border-color: #f2c7a6; color: var(--clay-dark); }
@media (max-width: 880px) { .tech-header { grid-template-columns: 1fr; } }

.prose { max-width: 70ch; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 64px); }
@media (max-width: 880px) { .prose-cols { grid-template-columns: 1fr; } }

details.more { margin-top: 1.4rem; border-top: 1px solid var(--line); }
details.more summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--clay-dark);
  display: flex; align-items: center; justify-content: space-between;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.6rem; line-height: 1; transition: transform .25s ease; }
details.more[open] summary::after { transform: rotate(45deg); }

.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 2rem; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.photo-strip figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (max-width: 880px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }

/* Photos agrandissables (page Techniques) */
img[data-full] { cursor: zoom-in; }
.photo-strip figure { position: relative; }
.photo-strip img[data-full] {
  position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; transform-origin: center bottom;
}
@media (hover: hover) and (min-width: 881px) {
  .photo-strip figure:hover { z-index: 5; }
  .photo-strip figure:hover img[data-full] { transform: scale(1.75); box-shadow: 0 24px 50px -12px rgba(30,18,10,.55); border-radius: 8px; }
  .photo-strip figure:first-child img[data-full] { transform-origin: left bottom; }
  .photo-strip figure:last-child img[data-full] { transform-origin: right bottom; }
}
@media (hover: hover) and (max-width: 880px) {
  .photo-strip figure:hover { z-index: 5; }
  .photo-strip figure:hover img[data-full] { transform: scale(1.25); box-shadow: var(--shadow); }
}
.split-media img[data-full] { transition: transform .5s ease, box-shadow .5s ease; }
.split-media:hover img[data-full] { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.zoom-hint {
  position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,253,249,.92); color: var(--ink); display: grid; place-items: center; pointer-events: none;
  opacity: 0; transition: opacity .3s ease; box-shadow: var(--shadow);
}
.zoom-hint svg { width: 18px; height: 18px; }
.split-media:hover .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  font: 600 .95rem/1 var(--font-body); padding: 11px 18px; border-radius: 999px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-btn .count { opacity: .55; margin-left: 4px; font-weight: 500; }

.masonry { columns: 4 260px; column-gap: 16px; }
.masonry .tile {
  break-inside: avoid; margin: 0 0 16px; position: relative; display: block; width: 100%;
  border: 0; padding: 0; background: var(--sand); border-radius: 14px; overflow: hidden; cursor: zoom-in;
  animation: fadeUp .5s ease both;
}
.masonry .tile img { width: 100%; height: auto; transition: transform .6s ease, filter .3s ease; }
.masonry .tile:hover img { transform: scale(1.04); }
.masonry .tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(20,14,10,.78)); color: var(--white); font-size: .88rem;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.masonry .tile:hover figcaption, .masonry .tile:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .masonry .tile figcaption { opacity: 1; transform: none; } }
@media (max-width: 520px) { .masonry { columns: 2; column-gap: 10px; } .masonry .tile { margin-bottom: 10px; } .masonry .tile figcaption { font-size: .78rem; padding: 22px 10px 8px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Visionneuse */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(18,13,10,.94);
  display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #e8ddd0; margin-top: 16px; text-align: center; font-size: .98rem; }
.lightbox figcaption span { color: #a8998a; margin-left: 10px; font-size: .88rem; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--white); display: grid; place-items: center; transition: background-color .2s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn[hidden] { display: none; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 60px 10px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); }
}

/* ---------- Actualités ---------- */
.event-list { display: grid; gap: 16px; }
.event {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 22px 26px; box-shadow: 0 1px 0 var(--line);
}
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.event-date .m { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.event-date .d { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.event h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.event p { margin: 0; color: var(--muted); font-size: .96rem; }
.event .place { font-size: .88rem; color: var(--glaze); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) {
  .event { grid-template-columns: 80px 1fr; gap: 16px; padding: 18px; }
  .event .place { grid-column: 2; white-space: normal; }
  .event-date { padding-right: 12px; }
}

.journal-card .card-img { aspect-ratio: 16 / 10; }
.journal-card time { font-size: .82rem; font-weight: 700; color: var(--clay); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.journal-card h3 { font-size: 1.25rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: 0 1px 0 var(--line), 0 16px 40px -28px rgba(60,35,20,.6); }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line h3 { font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-line p { margin: 0; }
.contact-line .big { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; color: var(--ink); }
.contact-line .big:hover { color: var(--clay); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .93rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--sand-deep);
  background: var(--cream); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); background: var(--white); box-shadow: 0 0 0 4px rgba(180,96,47,.15); }
.field.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); }
.field.consent input { margin-top: 5px; accent-color: var(--clay); }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: var(--glaze-light); color: #1d4a4c; }
.form-status.warn { background: #fff6e6; color: #6b4a14; }

.map-wrap { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21 / 8; background: var(--sand); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-wrap { aspect-ratio: 4 / 3.4; } }

.access-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.access-list div { background: var(--white); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 0 var(--line); }
.access-list strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--clay-dark); font-weight: 500; }
.access-list span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .access-list { grid-template-columns: 1fr; } }

/* ---------- Page légale ---------- */
.legal h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.legal .todo { background: #fff1c9; padding: 0 4px; border-radius: 4px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ash); color: #cdbfb0; padding: clamp(56px, 7vw, 88px) 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #cdbfb0; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand-sub { color: #a8998a; display: block; }
.site-footer p { font-size: .95rem; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem; color: #a8998a; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Bouton d'appel flottant (mobile) */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none;
  width: 58px; height: 58px; border-radius: 50%; background: var(--clay); color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(140,69,33,.7); place-items: center;
}
.call-fab svg { width: 24px; height: 24px; }
@media (max-width: 720px) { .call-fab { display: grid; } }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .masonry .tile { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Utilitaires */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
