/* style.css — Federico Renov
   Thème: blanc cassé / noir / or
*/

/* ==========================
   Variables + base
========================== */
:root{
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #0F1115;
  --muted: #5C616D;
  --line: rgba(15,17,21,.10);

  --gold: #B8932F;
  --gold-2: #D7B35A;

  --shadow: 0 18px 50px rgba(15,17,21,.10);
  --radius: 18px;
  --radius2: 24px;

  --max: 1160px;

  --bg-beige: #F7F3EC;
  --bg-white: #FFFFFF;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; overflow-x:hidden; }

body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }

.header, .topbar, .hero, .section, .footer{ width:100%; }

/* ==========================
   UI bits
========================== */
.divider{
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.18);
  display: inline-block;
  margin: 0 12px;
}

.pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn--gold{
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  box-shadow: 0 14px 30px rgba(184,147,47,.20);
}
.btn--gold:hover{ box-shadow: 0 18px 40px rgba(184,147,47,.26); }

.btn--ghost{
  background: rgba(255,255,255,.70);
  border-color: rgba(15,17,21,.12);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(15,17,21,.08);
}

.btn--onDark{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

.btn--full{ width: 100%; }

/* ==========================
   Topbar
========================== */
.topbar{
  background: #0F1115;
  color: rgba(255,255,255,.88);
  font-size: 13px;
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 14px;
}
.topbar__left,
.topbar__right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toplink{
  color: rgba(255,255,255,.90);
  font-weight: 600;
}
.toplink:hover{ color: #fff; }

/* ==========================
   Header + nav + mobile menu
========================== */
.header{
  position: sticky;
  top: 0;
  z-index: 9998;
  background: rgba(247,243,236,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header::after{
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184,147,47,.9), transparent);
  opacity: .6;
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
  min-width: 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand--logoOnly{ gap: 26px; }

.brand__logo{
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand__logo--big{
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.brand__text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand__name{ font-weight: 900; letter-spacing: .4px; }
.brand__tag{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.nav{
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__link{
  font-weight: 700;
  font-size: 14px;
  color: rgba(15,17,21,.80);
  position: relative;
  padding: 8px 2px;
}
.nav__link:hover{ color: var(--ink); }
.nav__link.is-active::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Burger */
.burger{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,17,21,.12);
  background: rgba(255,255,255,.70);
  display: none;              /* desktop */
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.burger span{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(15,17,21,.84);
  border-radius: 2px;
}

/* Mobile menu */
.mobile{
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(247,243,236,.92);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 9999;
}
.mobile.is-open{ display: block; }
.mobile__inner{
  padding: 14px 0 18px;
  display: grid;
  gap: 10px;
}
.mobile__link{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,17,21,.10);
  font-weight: 800;
}
.mobile__link.is-active{
  border-color: rgba(184,147,47,.40);
  box-shadow: 0 14px 30px rgba(184,147,47,.12);
}
.mobile__cta{ padding-top: 6px; }

/* ==========================
   Hero
========================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 54px 0 34px;
  background: var(--bg-beige);
}

.hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(247,243,236,.78), rgba(247,243,236,.62));
  pointer-events: none;
}

.hero__bgLayer{
  position: absolute;
  inset: -16px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease;
  will-change: transform, opacity;
}
.hero__bgLayer.is-on{ opacity: 1; }
.hero__bgLayer.is-anim{ animation: heroZoom 10s linear forwards; }

@keyframes heroZoom{
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}

.hero__inner{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: start;
}

.kicker{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(15,17,21,.74);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(15,17,21,.10);
}

.hero__title{
  margin: 14px 0 6px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.hero__subtitle{
  margin: 0 0 14px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 800;
  color: rgba(15,17,21,.86);
}
.hero__text{
  margin: 0 0 18px;
  color: rgba(15,17,21,.78);
  max-width: 60ch;
}

/* ==========================
   Cards + form
========================== */
.card{
  background: var(--paper);
  border-radius: var(--radius2);
  border: 1px solid rgba(15,17,21,.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card--glass{
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
}
.hero__card .card--glass{
  background: #FFFFFF;
  backdrop-filter: none;
}
.hero__card{
  align-self: start;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.hero__card .card{ width: 100%; max-width: 520px; }

.card__head{ padding: 18px 18px 10px; }
.card__title{ margin: 0; font-size: 18px; font-weight: 900; }
.card__desc{ margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: 13px; }

.form{ padding: 0 18px 18px; display: grid; gap: 12px; }

.field{ display: grid; gap: 6px; }
.field > span{
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,17,21,.78);
}

input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,17,21,.14);
  background: rgba(255,255,255,.88);
  outline: none;
  font-weight: 650;
}
input:focus, select:focus{
  border-color: rgba(184,147,47,.65);
  box-shadow: 0 0 0 4px rgba(184,147,47,.18);
}

.form__hint{
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(15,17,21,.64);
}
.form__hint a{
  text-decoration: underline;
  text-decoration-color: rgba(184,147,47,.6);
}

/* ==========================
   Sections + grids
========================== */
.section{
  padding: 54px 0;
  background: var(--bg-white);
}
.section--soft{
  background: var(--bg-beige);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section:not(.section--soft){
  box-shadow: inset 0 -1px 0 var(--line);
}

.section__head{ margin-bottom: 18px; }
.section__head h2{
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.01em;
  font-weight: 900;
}
.section__head::after{
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, rgba(184,147,47,.9), transparent);
}

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

/* Réalisations masonry */
.real-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  align-items: start;
}

/* ==========================
   Services / badges / shots (pages autres)
========================== */
.section .grid.grid--4{ gap: 18px; }
.section .grid + .grid{ margin-top: 40px; }

.service{
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,17,21,.08);
  box-shadow:
    0 14px 40px rgba(15,17,21,.08),
    0 1px 0 rgba(255,255,255,.7) inset;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
}
.service::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: radial-gradient(1200px 420px at 20% 0%, rgba(184,147,47,.18), transparent 55%);
  opacity: .55;
  pointer-events: none;
}
.service::after{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(184,147,47,.85), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.service:hover{
  transform: translateY(-4px);
  border-color: rgba(184,147,47,.22);
  box-shadow:
    0 22px 58px rgba(15,17,21,.12),
    0 1px 0 rgba(255,255,255,.75) inset;
}
.service:hover::after{ opacity: .75; transform: translateY(0); }
.service:active{ transform: translateY(-2px); }
.service:focus{ outline: none; }
.service:focus-visible{
  box-shadow:
    0 0 0 4px rgba(184,147,47,.18),
    0 22px 58px rgba(15,17,21,.12);
  border-color: rgba(184,147,47,.38);
}

.service__icon{
  width: 100%;
  margin: 4px 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.service__icon svg{
  width: 36px;
  height: 36px;
  stroke: rgba(15,17,21,.85);
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .25s ease;
}
.service:hover .service__icon svg{ stroke: rgba(184,147,47,.95); }

.service__title{
  margin-top: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.service__text{
  margin-top: 8px;
  color: rgba(15,17,21,.72);
  font-weight: 600;
  line-height: 1.5;
  font-size: 14px;
}
.service__more{
  margin-top: 12px;
  font-weight: 900;
  color: rgba(184,147,47,.95);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service__more::after{
  content: "→";
  transition: transform .2s ease;
}
.service:hover .service__more::after{ transform: translateX(4px); }

.badge{
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F3EC 100%);
  border: 1px solid rgba(15,17,21,.08);
  box-shadow:
    0 12px 36px rgba(15,17,21,.08),
    0 1px 0 rgba(255,255,255,.9) inset;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.badge:hover{
  transform: translateY(-4px);
  border-color: rgba(184,147,47,.22);
  box-shadow:
    0 20px 54px rgba(15,17,21,.12),
    0 1px 0 rgba(255,255,255,.95) inset;
}
.badge__icon{
  margin: 0 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.badge__icon svg{
  width: 34px;
  height: 34px;
  stroke: rgba(15,17,21,.85);
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .25s ease;
}
.badge:hover .badge__icon svg{ stroke: rgba(184,147,47,.95); }
.badge__title{
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.badge__text{
  margin-top: 6px;
  color: rgba(15,17,21,.72);
  font-weight: 600;
  line-height: 1.45;
  font-size: 14px;
}

.shot{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15,17,21,.10);
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 40px rgba(15,17,21,.10);
  transition: transform .14s ease, box-shadow .18s ease;
}
.shot:hover{ transform: translateY(-2px); box-shadow: 0 22px 52px rgba(15,17,21,.12); }
.shot__img{ height: 210px; background-size: cover; background-position: center; }
.shot__cap{
  padding: 14px 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.shot__cap strong{ font-weight: 900; }

/* ==========================
   CTA + Footer
========================== */
.cta{
  padding: 44px 0;
  background: #0F1115;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.10);
}
.cta__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cta h2{
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.cta p{ margin: 0; color: rgba(255,255,255,.82); font-weight: 600; }
.cta__actions{ display: flex; gap: 12px; flex-wrap: wrap; }

.footer{
  background: var(--bg-beige);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.footer__inner{
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 18px;
  align-items: start;
}
.footer__brand{
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer__logo{ width: 46px; height: 46px; object-fit: contain; }
.footer__name{ font-weight: 900; }
.footer__cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.footer__title{ font-weight: 900; margin-bottom: 8px; }
.footer a{ color: rgba(15,17,21,.78); font-weight: 700; }
.footer a:hover{ color: var(--ink); }

.footer__bottom{
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: rgba(15,17,21,.70);
  font-weight: 600;
  font-size: 13px;
}
.footer__bottomInner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toTop{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,17,21,.12);
  background: rgba(255,255,255,.70);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
}

.toTopBtn{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,17,21,.72);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
  backdrop-filter: blur(10px);
}
.toTopBtn.is-show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================
   Avant / Après (overlay fluide)
   Base = AFTER plein, BEFORE overlay clipé
========================== */
.ba{
  position: relative;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15,17,21,.10);
  box-shadow: 0 16px 40px rgba(15,17,21,.10);
  background: #fff;
}

.ba__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: clip-path .35s ease, transform .35s ease;
  will-change: clip-path, transform;
  backface-visibility: hidden;
}

.ba__img--after{
  z-index: 1;
  clip-path: inset(0 0 0 0);
}
.ba__img--before{
  z-index: 2;
  clip-path: inset(0 90% 0 0); /* 10% visible au départ */
}

/* zones hover desktop */
.ba__zone{
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  background: transparent;
}
.ba__zone--before{ left: 0; width: 10%; }
.ba__zone--after{ left: 10%; width: 90%; }

/* poignée desktop */
.ba__handle{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10%;
  width: 2px;
  transform: translateX(-1px);
  z-index: 6;
  transition: left .35s ease;
  background: rgba(255,255,255,.80);
  box-shadow: 0 0 0 1px rgba(15,17,21,.12);
}
.ba__handle::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:46px;
  height:46px;
  transform: translate(-50%,-50%);
  border-radius:999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,17,21,.12);
  box-shadow: 0 14px 30px rgba(15,17,21,.14);
}

@media (min-width: 721px){
  .ba__handle::before{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:18px;
    height:12px;
    transform: translate(-50%,-50%);
    background:
      linear-gradient(rgba(15,17,21,.55), rgba(15,17,21,.55)) 0 0/100% 2px no-repeat,
      linear-gradient(rgba(15,17,21,.55), rgba(15,17,21,.55)) 0 50%/100% 2px no-repeat,
      linear-gradient(rgba(15,17,21,.55), rgba(15,17,21,.55)) 0 100%/100% 2px no-repeat;
    z-index: 7;
  }
}

/* labels */
.ba__labels{
  position:absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display:flex;
  justify-content: space-between;
  z-index: 8;
  pointer-events: none;
}
.ba__label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,17,21,.10);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease, filter .22s ease;
}

/* hover split */
.ba__zone--before:hover ~ .ba__img--before{ clip-path: inset(0 0 0 0); }
.ba__zone--before:hover ~ .ba__handle{ left: 3%; }

.ba__zone--after:hover  ~ .ba__img--before{ clip-path: inset(0 100% 0 0); }
.ba__zone--after:hover  ~ .ba__handle{ left: 97%; }

.ba__zone:hover ~ .ba__img{ transform: scale(1.01); }

/* pastilles état (JS) */
.ba.is-before .ba__label--before,
.ba.is-after  .ba__label--after{
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(184,147,47,.26), rgba(255,255,255,.95));
  border-color: rgba(184,147,47,.55);
  box-shadow: 0 18px 34px rgba(15,17,21,.12);
  color: rgba(15,17,21,.95);
}
.ba.is-before .ba__label--after,
.ba.is-after  .ba__label--before{
  background: rgba(255,255,255,.45);
  border-color: rgba(15,17,21,.10);
  color: rgba(15,17,21,.45);
  filter: grayscale(1) blur(.2px);
  box-shadow: none;
}

/* flèches mobile (pilotées JS) */
.ba__arrows{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 120px;
  height: 52px;
  pointer-events: none;
}
.ba__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,17,21,.12);
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 30px rgba(15,17,21,.14);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  color: rgba(15,17,21,.72);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease;
}
.ba__arrow--left{ left: 0; }
.ba__arrow--right{ right: 0; }
.ba__arrow:active{ transform: translateY(-50%) scale(0.98); }

/* couche z-index des éléments BA sous le menu */
.ba__arrows, .ba__handle, .ba__labels{ z-index: 2; }

/* Mobile BA */
@media (max-width: 720px){
  .ba{
    height: 240px;
    touch-action: pan-y; /* laisser le scroll vertical */
    cursor: ew-resize;
    -webkit-user-select: none;
    user-select: none;
  }
  .ba__zone{ display:none; }
  .ba__handle{ display:none; }
  .ba__arrows{ display:block; }

  .ba__img{ pointer-events:none; -webkit-user-drag:none; user-drag:none; }
}

/* Desktop BA */
@media (min-width: 721px){
  .ba__arrows{ display:none; }
  .ba__handle{ display:block; }
  .ba__zone{ display:block; }
}

/* ==========================
   Vidéo (fond noir + play overlay)
========================== */
.media{
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000; /* fond noir */
}

.card.is-video .media{
  height: var(--video-h, auto);
}

.media__video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Play overlay (bouton) */
.media__play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0,0,0,.25);
  cursor: pointer;
  z-index: 5;
}
.media__play span{
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.92);
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.media.is-playing .media__play{
  opacity: 0;
  pointer-events: none;
}
.media__play:active span{ transform: scale(0.98); }

/* ==========================
   Galerie photos (carrousel)
========================== */
.gal{
  position: relative;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15,17,21,.10);
  box-shadow: 0 16px 40px rgba(15,17,21,.10);
  background: #fff;
}
.gal__viewport{ position: relative; width: 100%; height: 100%; }

.gal__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
.gal__img.is-active{
  opacity: 1;
  transform: scale(1.00);
  pointer-events: auto;
}

.gal__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,17,21,.12);
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 30px rgba(15,17,21,.14);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: rgba(15,17,21,.72);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 6;
}
.gal__btn--prev{ left: 12px; }
.gal__btn--next{ right: 12px; }
.gal__btn:active{ transform: translateY(-50%) scale(.98); }

.gal__count{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,17,21,.10);
}

/* ==========================
   Responsive
========================== */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; }
  .footer__cols{ grid-template-columns: 1fr; }
  .hero__card{ justify-self: start; max-width: 100%; }
  .hero__card .card{ max-width: 100%; }
}

@media (max-width: 860px){
  .nav{ display: none; }

  .brand{
    min-width: 0;
    max-width: 70%;
  }

  .burger{
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
    margin-left: 8px;
  }
}

@media (max-width: 720px){
  .real-grid{ grid-template-columns: 1fr; }
  .grid.grid--2{ grid-template-columns: 1fr !important; gap: 18px; }
  .grid.grid--2 .card{ border-radius: 24px; }

  .gal{ height: 240px; }
}

@media (max-width: 520px){
  .container{ width: min(var(--max), calc(100% - 28px)); }
  .topbar__inner{ justify-content: center; }

  .header__inner{
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
  }

  .brand{
    flex: 1;
    justify-content: center;
    max-width: 75%;
    min-width: 0;
  }
  .brand__text{ display: none; } /* logo seul */
  .brand__logo--big{ width: 95px; height: auto; }

  .header__actions{ gap: 6px; }
  .header__actions .btn--ghost{ display: none; }

  .header__actions .btn--gold{
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
  }

  .burger{ width: 40px; height: 40px; padding: 8px; }

  .footer__bottomInner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}

/* === Hauteurs médias (BA + Galerie) === */
:root{
  --media-h: 560px;        /* 560 * 1.5 */
  --media-h-mobile: 480px; /* 480 * 1.5 */
}

/* Avant / Après */
.ba{ height: var(--media-h); }
@media (max-width: 720px){
  .ba{ height: var(--media-h-mobile); }
}

/* Galerie carrousel */
.gal{ height: var(--media-h); }
@media (max-width: 720px){
  .gal{ height: var(--media-h-mobile); }
}

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

@media (max-width: 980px){
  .grid--2{
    grid-template-columns: 1fr; /* 1 par ligne en tablette/mobile */
  }
}

.photo-frame {
  display: inline-block;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    #C9A24D,
    #E6D39A
  );
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.photo-frame img {
  display: block;
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
  background: #fff;
}

.photo-frame::after {
  content: "Artisan certifié";
  display: block;
  text-align: center;
  font-size: 12px;
  color: black;
  margin-top: 6px;
  letter-spacing: 0.5px;
}


/* Intro photo + texte */
.hero__intro{
  display:flex;
  align-items:flex-start;
  gap:24px;
  margin-top:16px;
}

/* Colonne photo */
.hero__profile{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  flex-shrink:0;
}

.photo-frame{
  padding:6px;
  border-radius:14px;
  background:linear-gradient(135deg,#C9A24D,#E6D39A);
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.photo-frame img{
  width:150px;
  height:150px;
  object-fit:cover;
  border-radius:10px;
  display:block;
}

.profile-badge{
  font-size:13px;
  padding:6px 10px;
  background:#F6F1E9;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
}

/* Texte à droite */
.hero__text p{
  margin:0;
  line-height:1.7;
  max-width:520px;
}

/* Pastilles */
.hero__proof--pills{
  display:flex;
  gap:14px;
  margin-top:18px;
  flex-wrap:wrap;
}

.proof-pill{
  display:flex;
  align-items:center;
  gap:12px;
  background:#F6F1E9;
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  padding:10px 16px;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

.proof-pill__icon{
  font-weight:700;
  color:#C9A24D;
  font-size:18px;
  min-width:36px;
  text-align:center;
}

.proof-pill__text{
  display:flex;
  flex-direction:column;
  font-size:14px;
  line-height:1.2;
}
.proof-pill__text span{
  font-size:12px;
  color:#6A6A6A;
}

/* Responsive */
@media (max-width:768px){
  .hero__intro{
    flex-direction: row;
    align-items: flex-start;
  }
  .hero__proof--pills{
    flex-direction:column;
  }
}

.hero__inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: flex-start;
}

.hero__card{
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px){
  .hero__inner{
    grid-template-columns: 1fr;
  }
}

/* FIX HERO — garder la carte devis à droite */
.hero__inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
}

@media (max-width: 1024px){
  .hero__inner{
    grid-template-columns: 1fr;
  }
}

/* FORCE 2 colonnes jusqu'à 980px */
@media (max-width: 980px){
  .hero__inner{
    grid-template-columns: minmax(0, 1fr) 0.75fr;
  }
}

/* Empile seulement plus bas */
@media (max-width: 860px){
  .hero__inner{
    grid-template-columns: 1fr;
  }
  .hero__card{ justify-self: start; max-width: 100%; }
  .hero__card .card{ max-width: 100%; }
}

