/* ==========================================================================
   AKPRIM — Feuille de style
   Marque : terracotta rosé #A05256
   Typo   : Cormorant Garamond (titres) + Manrope (texte)
   ========================================================================== */

:root {
  --brand:        #A05256;
  --brand-dark:   #7A3B3F;
  --brand-deep:   #5A2B2E;
  --brand-soft:   #C98A8D;
  --ink:          #241E1D;
  --ink-soft:     #4A423F;
  --muted:        #8A807C;
  --cream:        #FAF6F2;
  --sand:         #F1E9E2;
  --line:         #E6DBD3;
  --white:        #ffffff;

  --max:   1200px;
  --pad:   clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(60, 40, 38, .06);
  --shadow-md: 0 16px 40px rgba(60, 40, 38, .12);
  --shadow-lg: 0 30px 70px rgba(50, 30, 28, .18);

  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; letter-spacing: .3px; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4.5vw, 3.1rem); color: var(--ink); }
.section-title em { font-style: italic; color: var(--brand); }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; margin-top: 1rem; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.8rem; border-radius: 100px; font-weight: 600; font-size: .95rem;
  letter-spacing: .02em; border: 1.5px solid transparent; transition: all .35s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(160,82,86,.32); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(160,82,86,.42); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color:#fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: .5rem;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-logo { height: 62px; width: auto; transition: height .4s var(--ease), filter .4s var(--ease); }
/* Logo lisible sur le hero sombre */
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  position: relative; padding: .55rem .9rem; font-size: .93rem; font-weight: 500;
  color: #fff; border-radius: 8px; transition: color .3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .38rem; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); }
.nav-cta::after { display: none; }
.nav-cta:hover { background: #fff; color: var(--brand-dark); }

/* État défilé : fond crème */
.site-header.scrolled { background: rgba(250,246,242,.92); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.site-header.scrolled .brand-logo { height: 50px; }
.site-header.scrolled .nav-link { color: var(--ink); }
.site-header.scrolled .nav-cta { background: var(--brand); color: #fff; border-color: var(--brand); }
.site-header.scrolled .nav-cta:hover { background: var(--brand-dark); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* Burger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(40,22,22,.78) 0%, rgba(50,28,28,.45) 45%, rgba(60,34,34,.25) 100%);
}
.hero-content { position: relative; padding-top: 6rem; max-width: 820px; }
.hero-eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brand-soft); margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5.3rem); font-weight: 500; line-height: 1.04; }
.hero-title em { font-style: italic; color: #fff; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; margin: 1.8rem 0 2.6rem; color: rgba(255,255,255,.9); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 4px; transform: translateX(-50%); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ==========================================================================
   INTRO / STATS
   ========================================================================== */
.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro-text p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 1.2rem; }
.intro-text strong { color: var(--ink); font-weight: 600; }
.intro-text em { color: var(--brand); font-style: italic; }

.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--cream); padding: 1.8rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.stat-wide { grid-column: 1 / -1; }
.stat-num { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 600; color: var(--brand); line-height: 1; }
.stat-num::after { content: "+"; font-size: 1.6rem; color: var(--brand-soft); }
.stat-wide .stat-num::after, .stat-text::after { content: none; }
.stat-text { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brand); font-weight: 600; }
.stat-label { font-size: .82rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; font-weight: 600; }

/* ==========================================================================
   MÉTIERS
   ========================================================================== */
.metiers { background: var(--cream); }
.metier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.metier-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.metier-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.metier-media { aspect-ratio: 4/3; overflow: hidden; }
.metier-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.metier-card:hover .metier-media img { transform: scale(1.07); }
.metier-body { padding: 1.7rem 1.6rem 2rem; }
.metier-body h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: .6rem; }
.metier-body p { color: var(--ink-soft); font-size: .98rem; }

/* ==========================================================================
   PROJETS
   ========================================================================== */
.projects-dev { background: var(--white); }
.projects-com { background: var(--sand); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.projects-com .project-grid { grid-template-columns: repeat(4, 1fr); }

.project-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.project-media { position: relative; aspect-ratio: 3/2; overflow: hidden; }

/* Carrousel : piste défilable (glissement tactile + accroche) */
.pm-track {
  display: flex; height: 100%; width: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.pm-track::-webkit-scrollbar { display: none; }
.pm-track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover;
  scroll-snap-align: center; cursor: pointer;
}

/* Flèches (apparaissent au survol sur ordinateur) */
.pm-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.88); color: var(--ink);
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  opacity: 0; transition: opacity .3s var(--ease), background .3s var(--ease);
}
.project-media:hover .pm-arrow { opacity: 1; }
.pm-arrow:hover { background: #fff; }
.pm-prev { left: .6rem; } .pm-next { right: .6rem; }
.pm-arrow[hidden] { display: none; }

/* Points indicateurs */
.pm-dots {
  position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; gap: .4rem;
}
.pm-dots:empty { display: none; }
.pm-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.pm-dots button.active { background: #fff; transform: scale(1.35); }

/* Sur écran tactile, on montre discrètement les flèches en permanence */
@media (hover: none) {
  .pm-arrow { opacity: .9; }
}
.project-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 100px; color: #fff; backdrop-filter: blur(4px);
}
.badge-dev { background: rgba(160,82,86,.9); }
.badge-com { background: rgba(52,42,40,.82); }
.project-body { padding: 1.4rem 1.4rem 1.7rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.project-title { font-size: 1.45rem; color: var(--ink); }
.project-meta { color: var(--brand); font-weight: 600; font-size: .92rem; }
.project-desc { color: var(--ink-soft); font-size: .92rem; margin-top: .2rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--brand-deep); color: #fff; position: relative; }
.contact .eyebrow { color: var(--brand-soft); }
.contact .section-title { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-intro { color: rgba(255,255,255,.82); font-size: 1.08rem; margin: 1rem 0 2.2rem; max-width: 40ch; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.1); border-radius: 12px; font-size: 1.1rem; }
.contact-label { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-soft); margin-bottom: .2rem; font-weight: 600; }
.contact-list a { color: rgba(255,255,255,.95); transition: color .3s; }
.contact-list a:hover { color: #fff; text-decoration: underline; }

.contact-social { display: flex; gap: .8rem; margin-top: 2.2rem; }
.social-link { padding: .55rem 1.2rem; border: 1px solid rgba(255,255,255,.3); border-radius: 100px; font-size: .88rem; font-weight: 500; transition: all .3s var(--ease); }
.social-link:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }

/* Formulaire */
.contact-form-wrap { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .45rem; color: rgba(255,255,255,.85); }
.field .opt { color: var(--brand-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .98rem; transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-soft); background: rgba(255,255,255,.1); }
.field textarea { resize: vertical; min-height: 120px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: rgba(255,255,255,.78); margin: .4rem 0 1.4rem; cursor: pointer; }
.consent input { margin-top: .25rem; accent-color: var(--brand-soft); flex: none; }
.consent a { color: #fff; text-decoration: underline; }

.form-status { margin-top: 1rem; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #8ff0c0; }
.form-status.err { color: #ffb4b4; }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-logo { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .95rem; max-width: 32ch; }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a, .footer-contact a { transition: color .3s; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { margin-bottom: .9rem; font-size: .95rem; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   ANIMATIONS AU DÉFILEMENT
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.metier-grid .reveal:nth-child(2), .project-grid .reveal:nth-child(2) { transition-delay: .1s; }
.metier-grid .reveal:nth-child(3), .project-grid .reveal:nth-child(3) { transition-delay: .2s; }
.project-grid .reveal:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; }
  .metier-grid { grid-template-columns: 1fr 1fr; }
  .project-grid, .projects-com .project-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem;
    background: var(--cream); padding: 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .45s var(--ease); z-index: 105;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { color: var(--ink); font-size: 1.15rem; width: 100%; }
  .nav-cta { background: var(--brand); color: #fff; margin-top: .6rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-toggle span { background: var(--ink); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .metier-grid, .project-grid, .projects-com .project-grid { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-content { padding-top: 5rem; }
}

/* ==========================================================================
   PAGES DE TEXTE (mentions légales, confidentialité)
   ========================================================================== */
.doc-header { background: var(--brand-deep); color: #fff; padding: 8rem 0 3rem; }
.doc-header .brand-logo { filter: brightness(0) invert(1); height: 56px; margin-bottom: 1.5rem; }
.doc-header h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc-back { display: inline-block; margin-top: 1rem; color: var(--brand-soft); font-size: .9rem; font-weight: 600; }
.doc-back:hover { color: #fff; }
.doc { max-width: 780px; padding-block: clamp(3rem, 6vw, 5rem); }
.doc h2 { font-size: 1.6rem; color: var(--brand); margin: 2.4rem 0 .8rem; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: .9rem; }
.doc ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.doc a { color: var(--brand); text-decoration: underline; }
.doc .todo { background: #FBF3E7; border-left: 3px solid #D9A441; padding: .6rem 1rem; border-radius: 6px; font-size: .9rem; color: #8a6d2f; }

/* ==========================================================================
   LIGHTBOX (agrandissement des photos de projet)
   ========================================================================== */
/* Indice cliquable au survol d'une photo de projet */
.project-media { cursor: pointer; }
.project-media::after {
  content: "";
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20,12,12,.55) center / 20px 20px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease);
  backdrop-filter: blur(2px); pointer-events: none;
}
.project-card:hover .project-media::after { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3.5rem);
  background: rgba(18,10,10,.92); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-figure {
  margin: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  max-width: 100%; max-height: 100%;
  transform: scale(.92); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.lightbox.open .lightbox-figure { transform: scale(1); opacity: 1; }

.lightbox-img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 40px 90px rgba(0,0,0,.55);
  transition: opacity .3s var(--ease);
}
.lightbox-figure.swapping .lightbox-img { opacity: 0; }

.lightbox-caption { text-align: center; color: #fff; max-width: 60ch; }
.lightbox-caption strong { display: block; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500; }
.lightbox-caption span { display: block; color: var(--brand-soft); font-weight: 600; font-size: .92rem; margin-top: .2rem; }

.lightbox-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.lightbox-btn:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); font-size: 1.4rem; }
.lightbox-prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-counter { position: absolute; bottom: clamp(.6rem,2vw,1.4rem); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .82rem; letter-spacing: .1em; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 620px) {
  .lightbox-prev { left: .4rem; } .lightbox-next { right: .4rem; }
  .lightbox-btn { width: 44px; height: 44px; font-size: 1.3rem; }
  .lightbox-img { max-height: 68vh; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-figure, .lightbox-img { transition: opacity .2s linear; }
  .lightbox-figure { transform: none; }
}

.lightbox-btn[hidden] { display: none; }

/* ==========================================================================
   SECTION INSTAGRAM / REELS (vidéos verticales)
   ========================================================================== */
.reels { background: var(--cream); }
.reels .section-sub a { color: var(--brand); font-weight: 600; text-decoration: none; }
.reels .section-sub a:hover { text-decoration: underline; }

.reels-row {
  display: flex; gap: 1.4rem; overflow-x: auto; padding-bottom: 1rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  scroll-padding-left: var(--pad);
}
.reels-row::-webkit-scrollbar { height: 6px; }
.reels-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.reel {
  position: relative; flex: 0 0 auto; width: min(74vw, 264px); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; scroll-snap-align: start;
  background: #000; box-shadow: var(--shadow-md);
}
.reel-video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }

/* Bouton lecture central */
.reel-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; z-index: 2;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; transition: transform .3s var(--ease), opacity .3s var(--ease);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.reel-play::before {
  content: ""; margin-left: 4px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--brand-deep);
}
.reel-play:hover { transform: scale(1.08); }
.reel.playing .reel-play { opacity: 0; pointer-events: none; }

/* Bouton son */
.reel-sound {
  position: absolute; bottom: .8rem; right: .8rem; z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1rem; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(3px);
  transition: background .3s var(--ease);
}
.reel-sound:hover { background: rgba(0,0,0,.75); }
.reel-sound[hidden] { display: none; }

/* Carte « Suivre sur Instagram » */
.reel-follow {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  text-align: center; padding: 1.5rem; color: #fff;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  transition: transform .4s var(--ease);
}
.reel-follow:hover { transform: translateY(-4px); }
.reel-follow-ig { width: 52px; height: 52px; }
.reel-follow-ig svg { width: 100%; height: 100%; }
.reel-follow strong { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.reel-follow-cta { font-size: .9rem; color: rgba(255,255,255,.85); font-weight: 500; }

@media (max-width: 600px) {
  .reel { width: 72vw; }
}

/* ==========================================================================
   CARTE INTERACTIVE (Leaflet)
   ========================================================================== */
.map-section { background: var(--white); }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
#map { height: clamp(360px, 55vh, 560px); width: 100%; z-index: 1; background: var(--sand); }
.leaflet-container { font-family: var(--font-sans); }
.leaflet-control-zoom a { color: var(--ink) !important; }

.map-legend {
  position: absolute; bottom: 1rem; left: 1rem; z-index: 500;
  background: rgba(255,255,255,.94); backdrop-filter: blur(4px);
  border-radius: 10px; padding: .6rem .9rem; display: flex; flex-direction: column; gap: .35rem;
  font-size: .82rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
}
.map-legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.dot-dev { background: var(--brand); }
.dot-com { background: var(--ink); }

.map-pin { display: grid; place-items: center; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.map-pin svg { display: block; }

.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: .85rem 1.1rem; }
.map-popup strong { font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink); display: block; margin-bottom: .35rem; }
.map-popup ul { list-style: none; padding: 0; margin: 0 0 .5rem; }
.map-popup li { color: var(--ink-soft); font-size: .9rem; padding: .1rem 0; }
.map-popup .st { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 6px; color: #fff; }
.map-popup .st-dev { background: var(--brand); }
.map-popup .st-com { background: var(--ink); }

/* Popup carte enrichie (photo + description + bouton) */
.map-popup-img { width: 100%; height: 132px; object-fit: cover; border-radius: 8px; margin-bottom: .6rem; display: block; }
.map-popup .map-meta { display: block; color: var(--brand); font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.map-popup p { color: var(--ink-soft); font-size: .85rem; line-height: 1.5; margin: 0 0 .6rem; }
.map-open {
  display: inline-block; margin-left: .5rem; vertical-align: middle;
  background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: .4rem .75rem; font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background .3s var(--ease);
}
.map-open:hover { background: var(--brand-dark); }
