/* RA Immobilier — feuille de style 2026
   Palette d'origine conservée : nuit, brique, or, ivoire */
:root{
  --night:#0C0A08;
  --night-2:#151210;
  --night-3:#1D1912;
  --red:#B31B2E;
  --red-dark:#7A1020;
  --gold:#C8A24A;
  --gold-light:#E2C070;
  --ivory:#F4EDE0;
  --ivory-2:#E8DFCC;
  --stone:#8C7B68;
  --sand:#C4B49A;
  --ink:#231C15;          /* texte sur fond ivoire */
  --ink-soft:#5E5245;
  --line-dark:rgba(200,162,74,.22);
  --line-light:rgba(35,28,21,.14);

  --serif:'Cormorant Garamond', Georgia, serif;
  --sans:'Jost', 'Segoe UI', sans-serif;

  --wrap:1200px;
  --gutter:clamp(16px, 4vw, 48px);
  --header-h:76px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 12px);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--night);color:var(--ivory);font:300 17px/1.65 var(--sans);overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
h1,h2,h3,h4{margin:0;font-family:var(--serif);font-weight:500;line-height:1.08;letter-spacing:-.005em}
p{margin:0}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:8px;z-index:999;background:var(--gold);color:var(--night);padding:.5rem 1rem}
.skip:focus{left:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}

/* ---------- Boutons et liens ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.75rem 1.5rem;
  font:500 .95rem/1.2 var(--sans);letter-spacing:.02em;text-decoration:none;border:1px solid transparent;transition:background .2s,color .2s,border-color .2s}
.btn-sm{min-height:40px;padding:.5rem 1.1rem;font-size:.88rem}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:#9a1626}
.btn-gold{background:var(--gold);color:var(--night)}
.btn-gold:hover{background:var(--gold-light)}
.btn-line{border-color:var(--gold);color:var(--gold)}
.btn-line:hover{background:var(--gold);color:var(--night)}
.btn-line-dark{border-color:var(--ink);color:var(--ink)}
.btn-line-dark:hover{background:var(--ink);color:var(--ivory)}
.link{font:500 .92rem/1.4 var(--sans);color:var(--gold);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.link:hover{color:var(--gold-light)}
.section-light .link{color:var(--red)}
.section-light .link:hover{color:var(--red-dark)}

/* ---------- Bandeau + en-tête ---------- */
.topbar{background:var(--red);color:#fff;display:flex;justify-content:center;align-items:center;gap:1.5rem;padding:.45rem var(--gutter);font-size:.86rem;text-align:center}
.topbar a{font-weight:500;text-decoration:none;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.5)}

.header{position:sticky;top:0;z-index:50;height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  padding:0 var(--gutter);background:rgba(12,10,8,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line-dark)}
/* Logo en version claire, directement sur le fond sombre */
.logo{display:flex;align-items:center}
.logo img{height:62px;width:auto}
.nav{display:flex;gap:clamp(1rem,2vw,1.8rem)}
.nav a{font-size:.92rem;text-decoration:none;color:var(--sand);padding:.4rem 0;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.nav a:hover{color:var(--ivory);border-color:var(--gold)}
.header-actions{display:flex;align-items:center;gap:.75rem}
.burger{display:none;width:44px;height:44px;position:relative}
.burger span{position:absolute;left:10px;right:10px;height:1.5px;background:var(--ivory);transition:transform .25s}
.burger span:first-child{top:17px}.burger span:last-child{top:26px}
.burger[aria-expanded="true"] span:first-child{transform:translateY(4.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:last-child{transform:translateY(-4.5px) rotate(-45deg)}

.mobnav{position:fixed;inset:var(--header-h) 0 0 0;z-index:49;background:var(--night);padding:1.5rem var(--gutter) 2rem;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}
.mobnav[hidden]{display:none}
.mobnav nav{display:flex;flex-direction:column}
.mobnav nav a{font:500 1.9rem/1.2 var(--serif);text-decoration:none;padding:.55rem 0;border-bottom:1px solid var(--line-dark)}
.mobnav-foot{display:grid;gap:.75rem;margin-top:2rem}
.mobnav-tel{text-align:center;color:var(--sand);padding:.5rem}

@media (max-width:1080px){
  .nav{display:none}
  .burger{display:block}
}
@media (max-width:560px){
  :root{--header-h:64px}
  .header-actions .btn{display:none}
  .logo img{height:52px}
  .topbar{font-size:.8rem;gap:.75rem}
  .topbar a{display:none}
}

/* ---------- HERO 1 : entreprise, vidéo Ben Boulaïd en fond ---------- */
.intro{position:relative;min-height:calc(100svh - var(--header-h) - 36px);display:flex;align-items:flex-end;overflow:hidden;background:var(--night)}
.intro-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.intro-shade{position:absolute;inset:0;background:
  linear-gradient(to top,rgba(12,10,8,.95) 0%,rgba(12,10,8,.7) 38%,rgba(12,10,8,.3) 75%,rgba(12,10,8,.45) 100%),
  linear-gradient(to right,rgba(12,10,8,.65) 0%,rgba(12,10,8,0) 65%)}
.intro-content{position:relative;z-index:1;width:100%;padding-top:6rem;padding-bottom:clamp(2rem,5vw,3.5rem)}
.intro-kicker{color:var(--gold);font-size:1rem;margin-bottom:1rem}
.intro h1{font-size:clamp(2.8rem,6.4vw,5.8rem);line-height:.98;letter-spacing:-.015em;max-width:12em}
.intro-lead{margin:1.4rem 0 1.8rem;font-size:clamp(1rem,1.4vw,1.15rem);color:var(--ivory-2);max-width:40em}
.intro-figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:clamp(2rem,4vw,3rem) 0 0;border-top:1px solid var(--line-dark)}
.intro-figures div{padding:1rem 1rem 0 0;display:flex;flex-direction:column-reverse;gap:.15rem}
.intro-figures div+div{padding-left:1.2rem;border-left:1px solid var(--line-dark)}
.intro-figures dd{margin:0;font:500 clamp(2.2rem,4vw,3.2rem)/1 var(--serif);color:var(--gold)}
.intro-figures dt{font-size:.9rem;color:var(--sand)}
.intro-cap{position:absolute;z-index:1;top:1rem;left:var(--gutter);font-size:.8rem;color:rgba(244,237,224,.75)}
.intro-pause{position:absolute;z-index:1;top:.6rem;right:var(--gutter);font-size:.82rem;color:var(--ivory);border:1px solid rgba(244,237,224,.4);padding:.35rem .8rem;background:rgba(12,10,8,.4)}
.intro-pause:hover{border-color:var(--gold);color:var(--gold)}
@media (max-width:700px){
  .intro{min-height:calc(100svh - var(--header-h) - 52px)}
  .intro-figures{grid-template-columns:repeat(2,1fr)}
  .intro-figures div:nth-child(3){padding-left:0;border-left:0}
  .intro-figures div:nth-child(n+3){padding-top:.9rem}
  .intro .hero-cta .btn{flex:1 1 100%}
}

/* ---------- HERO Oussama ---------- */
.hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);min-height:min(100svh,880px);border-bottom:1px solid var(--line-dark);border-top:1px solid var(--line-dark)}
.hero-text{padding:clamp(2.5rem,6vw,5.5rem) clamp(1.5rem,4vw,4rem) clamp(2.5rem,5vw,4rem) max(var(--gutter), calc((100vw - var(--wrap))/2 + var(--gutter)));
  display:flex;flex-direction:column;justify-content:center;gap:1.4rem}
.hero-kicker{color:var(--gold);font-size:.98rem}
.hero .hero-title{font-size:clamp(3.2rem,7.2vw,6.6rem);font-weight:500;line-height:.95;letter-spacing:-.015em}
.hero-lead{font-size:1.08rem;color:var(--ivory-2);max-width:34em}
.hero-facts{display:flex;gap:0;margin:.4rem 0 0;border-top:1px solid var(--line-dark);border-bottom:1px solid var(--line-dark)}
.hero-facts div{flex:1;padding:.9rem 0}
.hero-facts div+div{padding-left:1.2rem;border-left:1px solid var(--line-dark)}
.hero-facts dt{font-size:.85rem;color:var(--stone)}
.hero-facts dd{margin:0;font:500 2.3rem/1 var(--serif);color:var(--gold)}
.hero-cta{display:flex;flex-wrap:wrap;gap:.75rem}
.hero-trust{font-size:.9rem;color:var(--stone)}

.hero-visual{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto;background:var(--night-2)}
.hero-frame{grid-column:1;grid-row:1 / span 2;position:relative;margin:0;overflow:hidden;min-height:420px}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;opacity:0;transition:opacity 1s ease}
.hero-img.is-on{opacity:1}
.hero-cap{position:absolute;left:1rem;bottom:1rem;font-size:.8rem;color:#fff;background:rgba(12,10,8,.6);padding:.25rem .6rem}

/* Jauge : un immeuble dont les étages se remplissent d'or */
.gauge{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.35rem;padding:2rem 1.4rem 1.2rem;border-left:1px solid var(--line-dark);min-width:118px}
.gauge-building{display:flex;flex-direction:column-reverse;gap:4px;width:62px}
.gauge-building span{height:14px;background:transparent;border:1px solid var(--line-dark);position:relative}
.gauge-building span::after{content:'';position:absolute;inset:-1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .5s ease var(--d,0ms)}
.gauge.is-filled .gauge-building span.on::after{transform:scaleX(1)}
.gauge-value{font:500 2.4rem/1 var(--serif);color:var(--gold);margin-top:.8rem}
.gauge-label{font-size:.85rem;color:var(--sand)}
.hero-thumbs{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:6px;padding:0 1.4rem 1.4rem;border-left:1px solid var(--line-dark)}
.hero-thumbs button{width:62px;height:62px;overflow:hidden;opacity:.55;border:1px solid transparent;transition:opacity .2s,border-color .2s;margin:0 auto}
.hero-thumbs button img{width:100%;height:100%;object-fit:cover}
.hero-thumbs button.is-on,.hero-thumbs button:hover{opacity:1;border-color:var(--gold)}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;min-height:0;max-height:none}
  .hero-visual{order:-1;grid-template-columns:minmax(0,1fr) auto;height:min(70svh,118vw)}
  .hero-frame{min-height:0;height:100%}
  .hero-text{padding:2rem var(--gutter) 2.75rem}
  .gauge{min-width:92px;padding:1.2rem .9rem .8rem}
  .gauge-building{width:46px}
  .gauge-building span{height:10px}
  .gauge-value{font-size:1.9rem}
  .hero-thumbs{padding:0 .9rem .9rem}
  .hero-thumbs button{width:48px;height:48px}
}
@media (max-width:420px){
  .hero-facts dd{font-size:1.9rem}
  .hero-facts div+div{padding-left:.8rem}
  .hero-cta .btn{flex:1 1 100%}
}

/* ---------- Chiffres ---------- */
.figures{max-width:var(--wrap);margin:0 auto;padding:2.2rem var(--gutter);display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.figure{display:flex;align-items:baseline;gap:.8rem}
.figure strong{font:500 3rem/1 var(--serif);color:var(--gold)}
.figure span{font-size:.92rem;color:var(--sand);line-height:1.35}
@media (max-width:820px){.figures{grid-template-columns:repeat(2,1fr);gap:1.4rem 1rem}.figure{flex-direction:column;gap:.25rem}.figure strong{font-size:2.5rem}}

/* ---------- Sections ---------- */
.section{padding:clamp(4rem,9vw,7.5rem) 0}
.section-dark{background:var(--night)}
.section-light{background:var(--ivory);color:var(--ink)}
.section-head{max-width:46rem;margin-bottom:clamp(2.5rem,5vw,4rem)}
.section-head h2{font-size:clamp(2.3rem,4.6vw,3.7rem)}
.section-head p{margin-top:1rem;font-size:1.06rem;color:var(--sand)}
.section-light .section-head p{color:var(--ink-soft)}
#en-cours{border-top:1px solid var(--line-dark)}

/* ---------- Projets en cours ---------- */
.project{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,5vw,4.5rem);align-items:center}
.project+.project{margin-top:clamp(4rem,8vw,6.5rem);padding-top:clamp(4rem,8vw,6.5rem);border-top:1px solid var(--line-dark)}
.project-flip .project-media{order:2}
.project-media{display:grid;gap:8px}
.project-cover{position:relative;display:block;overflow:hidden;aspect-ratio:4/5;width:100%}
.project-cover.square{aspect-ratio:1/1}
.project-cover img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.project-cover:hover img{transform:scale(1.03)}
.cover-tag{position:absolute;right:12px;bottom:12px;background:rgba(12,10,8,.75);color:var(--ivory);font-size:.82rem;padding:.3rem .7rem}
.project-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.project-strip button{aspect-ratio:1/1;overflow:hidden}
.project-strip img{width:100%;height:100%;object-fit:cover;opacity:.85;transition:opacity .2s}
.project-strip button:hover img{opacity:1}
.strip-more{position:relative}
.strip-more span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(12,10,8,.55);font:500 1.6rem/1 var(--serif);color:var(--ivory)}
.project-place{color:var(--gold);font-size:.95rem}
.project-body h3{font-size:clamp(2.2rem,4vw,3.2rem);margin:.4rem 0 1rem}
.project-body>p:not(.project-place):not(.videos-title){color:var(--ivory-2);max-width:36em}
.progress{margin:1.8rem 0 1.2rem}
.progress-row{display:flex;justify-content:space-between;font-size:.9rem;color:var(--sand);margin-bottom:.5rem}
.progress-row span:last-child{color:var(--gold);font-weight:500}
.progress-bar{height:6px;background:var(--night-3);border:1px solid var(--line-dark)}
.progress-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--red),var(--gold));transition:width 1.2s ease}
.progress-bar.is-filled i{width:var(--w)}
.specs{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 1.8rem;border-top:1px solid var(--line-dark);border-bottom:1px solid var(--line-dark)}
.specs div{padding:.85rem 0}
.specs div+div{padding-left:1rem;border-left:1px solid var(--line-dark)}
.specs dt{font-size:.85rem;color:var(--stone)}
.specs dd{margin:0;font:500 1.6rem/1.1 var(--serif);color:var(--ivory)}
.project-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.6rem}
.videos-title{font-size:.95rem;color:var(--sand);margin-bottom:.6rem}
.videos{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:1.8rem}
.video-card{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--night-3)}
.video-card img{width:100%;height:100%;object-fit:cover;opacity:.7;transition:opacity .2s}
.video-card:hover img{opacity:1}
.video-card span{position:absolute;left:0;right:0;bottom:0;padding:.35rem .5rem;font-size:.85rem;font-weight:500;background:linear-gradient(transparent,rgba(12,10,8,.9));text-align:left}
.video-card::before{content:'';position:absolute;z-index:1;top:50%;left:50%;width:34px;height:34px;margin:-22px 0 0 -17px;border-radius:50%;background:var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center/20px no-repeat}
@media (max-width:900px){
  .project{grid-template-columns:1fr}
  .project-flip .project-media{order:0}
  .project-cover{aspect-ratio:4/3}
  .project-cover.square{aspect-ratio:1/1}
}
@media (max-width:520px){.videos{grid-template-columns:repeat(2,1fr)}}

/* ---------- Réalisations : frise chronologique ---------- */
.timeline{list-style:none;margin:0;padding:0;position:relative}
.t-item{display:grid;grid-template-columns:8rem minmax(0,5fr) minmax(0,6fr);gap:clamp(1.2rem,3vw,2.6rem);padding:clamp(2rem,4vw,2.8rem) 0;border-top:1px solid var(--line-light);align-items:start}
.t-item:last-child{border-bottom:1px solid var(--line-light)}
.t-year{font:500 clamp(2.6rem,5vw,3.6rem)/.9 var(--serif);color:var(--red)}
.t-photo{display:block;overflow:hidden;aspect-ratio:4/3;width:100%;background:var(--ivory-2)}
.t-photo img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.t-photo:hover img{transform:scale(1.03)}
.t-body h3{font-size:clamp(1.9rem,3vw,2.5rem)}
.t-place{color:var(--ink-soft);font-size:.95rem;margin:.3rem 0 .9rem}
.t-body>p:not(.t-place):not(.t-units){max-width:34em}
.t-units{margin-top:1rem;color:var(--ink-soft)}
.t-units strong{font:600 1.8rem/1 var(--serif);color:var(--ink);margin-right:.2rem}
.t-actions{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;margin-top:1rem}
@media (max-width:860px){
  .t-item{grid-template-columns:1fr;gap:1rem}
  .t-year{font-size:2.6rem}
}

/* ---------- Finitions ---------- */
.fin-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(2rem,5vw,4.5rem);align-items:center}
.fin-text h2{font-size:clamp(2.3rem,4.4vw,3.5rem)}
.fin-text>p{margin:1rem 0 1.6rem;color:var(--sand)}
.fin-list{list-style:none;margin:0 0 2rem;padding:0}
.fin-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.fin-list li{padding:.65rem 0 .65rem 1.6rem;border-bottom:1px solid var(--line-dark);position:relative;color:var(--ivory-2)}
.fin-list li::before{content:'';position:absolute;left:0;top:1.15rem;width:10px;height:1px;background:var(--gold)}
.fin-mosaic{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(2,minmax(180px,22vw));gap:8px;max-height:640px}
.fin-mosaic button{position:relative;overflow:hidden}
.fin-mosaic img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.fin-mosaic button:hover img{transform:scale(1.03)}
.fin-mosaic span{position:absolute;left:0;bottom:0;background:rgba(12,10,8,.72);font-size:.8rem;padding:.25rem .6rem}
.fin-mosaic .m1{grid-column:1 / 5;grid-row:1}
.fin-mosaic .m2{grid-column:5 / 7;grid-row:1 / 3}
.fin-mosaic .m3{grid-column:1 / 3;grid-row:2}
.fin-mosaic .m4{grid-column:3 / 5;grid-row:2}
@media (max-width:900px){
  .fin-grid{grid-template-columns:1fr}
  .fin-mosaic{grid-template-rows:repeat(2,minmax(140px,38vw))}
}

/* ---------- Accompagnement : étapes ---------- */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);counter-reset:step;border-top:1px solid var(--line-light)}
.steps li{counter-increment:step;padding:1.8rem 1.6rem 2rem 0;border-bottom:1px solid var(--line-light)}
.steps li:not(:nth-child(3n+1)){padding-left:1.6rem;border-left:1px solid var(--line-light)}
.steps li::before{content:counter(step);display:block;font:500 2.2rem/1 var(--serif);color:var(--red);margin-bottom:.8rem}
.steps h3{font-size:1.65rem;margin-bottom:.5rem}
.steps p{color:var(--ink-soft);font-size:.98rem}
.banks{margin-top:2rem;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;color:var(--ink-soft)}
.banks span{border:1px solid var(--line-light);padding:.2rem .7rem;font-weight:500;color:var(--ink);font-size:.9rem}
@media (max-width:900px){
  .steps{grid-template-columns:1fr 1fr}
  .steps li,.steps li:not(:nth-child(3n+1)){padding:1.5rem 1.2rem 1.6rem 0;border-left:0}
  .steps li:nth-child(2n){padding-left:1.2rem;border-left:1px solid var(--line-light)}
}
@media (max-width:560px){
  .steps{grid-template-columns:1fr}
  .steps li:nth-child(2n){padding-left:0;border-left:0}
}

/* ---------- Histoire ---------- */
.story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--night-2)}
.story-img{margin:0;position:relative;min-height:420px}
.story-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.story-img figcaption{position:absolute;left:1rem;bottom:1rem;font-size:.82rem;background:rgba(12,10,8,.7);padding:.25rem .6rem}
.story-text{padding:clamp(3rem,7vw,6rem) clamp(1.5rem,5vw,5rem)}
.story-year{font:italic 500 1.4rem/1 var(--serif);color:var(--gold);margin-bottom:.8rem}
.story-text h2{font-size:clamp(2.3rem,4.4vw,3.5rem);margin-bottom:1.4rem}
.story-text>p{color:var(--ivory-2);margin-bottom:1rem;max-width:36em}
.story-list{list-style:none;padding:0;margin:1.6rem 0 2rem}
.story-list li{padding:.6rem 0;border-top:1px solid var(--line-dark);color:var(--sand)}
@media (max-width:900px){.story{grid-template-columns:1fr}.story-img{min-height:0;aspect-ratio:4/3}}

/* ---------- Actualités ---------- */
.news{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,3vw,2.5rem)}
.news-item img{aspect-ratio:3/2;width:100%;object-fit:cover;margin-bottom:1.1rem}
.news-date{font-size:.88rem;color:var(--stone)}
.news-item h3{font-size:1.65rem;margin:.35rem 0 .7rem}
.news-item p:not(.news-date){color:var(--sand);font-size:.98rem;margin-bottom:.9rem}
@media (max-width:900px){.news{grid-template-columns:1fr}.news-item{display:grid;grid-template-columns:40% 1fr;gap:0 1.2rem;align-items:start}.news-item img{grid-row:1 / 6;margin:0}}
@media (max-width:520px){.news-item{display:block}.news-item img{margin-bottom:1rem}}

/* ---------- Contact ---------- */
.contact{padding-bottom:0}
.contact-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(2rem,5vw,4.5rem);padding-bottom:clamp(3.5rem,7vw,5.5rem)}
.contact-info h2{font-size:clamp(2.3rem,4.4vw,3.5rem)}
.contact-info>p{margin:1rem 0 1.8rem;color:var(--ink-soft)}
.coords{margin:0 0 1.6rem}
.coords div{display:grid;grid-template-columns:10rem 1fr;gap:1rem;padding:.75rem 0;border-top:1px solid var(--line-light)}
.coords dt{font-size:.9rem;color:var(--ink-soft)}
.coords dd{margin:0;font-weight:400}
.coords a{color:var(--red);text-underline-offset:3px}
.socials{display:flex;gap:.6rem}
.socials .btn-line{border-color:var(--ink);color:var(--ink)}
.socials .btn-line:hover{background:var(--ink);color:var(--ivory)}
.form{background:#fff;padding:clamp(1.5rem,3.5vw,2.6rem);border:1px solid var(--line-light);align-self:start}
.form h3{font-size:2rem;margin-bottom:1.4rem}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:block;margin-bottom:1rem}
.field span{display:block;font-size:.88rem;color:var(--ink-soft);margin-bottom:.35rem}
.field input,.field select,.field textarea{width:100%;font:400 1rem/1.4 var(--sans);color:var(--ink);background:var(--ivory);border:1px solid var(--line-light);padding:.75rem .85rem;border-radius:0;appearance:none;-webkit-appearance:none}
.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23231C15' stroke-width='1.4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .85rem center;background-size:12px;padding-right:2.2rem}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 1px var(--red)}
.field input[aria-invalid="true"]{border-color:var(--red)}
.form-error{color:var(--red);font-size:.92rem;margin-bottom:.8rem}
.form-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.4rem}
.form-actions .btn{flex:1 1 200px}
.form-note{font-size:.85rem;color:var(--ink-soft);margin-top:1rem}
.map iframe{display:block;width:100%;height:380px;border:0;filter:grayscale(.35) contrast(1.05)}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}
@media (max-width:520px){.field-row{grid-template-columns:1fr;gap:0}.coords div{grid-template-columns:1fr;gap:.15rem}}

/* ---------- Pied de page ---------- */
.footer{background:var(--night);border-top:3px solid var(--red);padding:3.5rem 0 1.5rem;color:var(--sand);font-size:.95rem}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:2rem}
.foot-brand img{width:170px;margin-bottom:1rem}
.footer h4{font:500 1.35rem/1.2 var(--serif);color:var(--ivory);margin-bottom:.8rem}
.footer ul{list-style:none;margin:0;padding:0}
.footer li{padding:.2rem 0}
.footer a{text-decoration:none}
.footer a:hover{color:var(--gold)}
.foot-bottom{margin-top:2.5rem;padding-top:1.2rem;border-top:1px solid var(--line-dark);font-size:.85rem;color:var(--stone)}
@media (max-width:860px){.foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.foot-grid{grid-template-columns:1fr}}

/* ---------- WhatsApp flottant ---------- */
.wa-float{position:fixed;right:18px;bottom:18px;z-index:40;width:56px;height:56px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.wa-float svg{width:30px;height:30px}

/* ---------- Visionneuse ---------- */
.viewer{position:fixed;inset:0;z-index:100;background:rgba(8,6,5,.96);display:flex;align-items:center;justify-content:center}
.viewer[hidden]{display:none}
.v-stage{margin:0;max-width:min(92vw,1400px);max-height:88vh;display:flex;flex-direction:column;align-items:center}
.v-stage img,.v-stage video{max-width:100%;max-height:80vh;object-fit:contain}
.v-stage video{width:min(92vw,1100px);background:#000}
.v-stage figcaption{margin-top:.8rem;color:var(--sand);font-size:.92rem;text-align:center}
.v-close{position:absolute;top:10px;right:14px;font-size:2.4rem;line-height:1;width:52px;height:52px;color:var(--ivory)}
.v-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:72px;font-size:2.6rem;color:var(--ivory);background:rgba(255,255,255,.06)}
.v-nav:hover{background:rgba(200,162,74,.25)}
.v-prev{left:10px}.v-next{right:10px}
.v-nav[hidden]{display:none}
@media (max-width:600px){.v-nav{top:auto;bottom:14px;transform:none;height:52px}.v-stage{max-height:78vh}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
  html{scroll-behavior:auto}
}
