/* =========================================================
   NASUD IMMOBILIER — CSS NETTOYÉ
   Critiques 8 + 9
   - ancienne génération CSS dupliquée supprimée
   - composants uniques conservés
   - carrousel Plans restructuré sans @media imbriqué
   - menu mobile intégré sans top:106px
   ========================================================= */


/* =========================================================
   STYLES CENTRALISÉS DEPUIS index.html
   Ordre conservé pour éviter toute régression visuelle.
   ========================================================= */

:root{
  --bg:#f5f2ec;
  --surface:#fff;
  --ink:#171717;
  --muted:#696761;
  --line:rgba(23,23,23,.12);
  --dark:#121212;
  --accent:#b49668;
  /* Aliases conservés pour les composants NASUD spécifiques */
  --cream-2:#ebe5da;
  --gold:#b89250;
  --gold-dark:#98733b;
  --white:#fff;
  --shadow-soft:0 10px 28px rgba(16,35,30,.08);
  --radius:22px;
  --shadow:0 20px 60px rgba(0,0,0,.10);
  --container:min(1240px, calc(100% - 48px));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family: Arial, Helvetica, sans-serif;line-height:1.6;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{cursor:pointer}
::selection{background:var(--accent);color:#fff}

.announcement{height:34px;display:flex;align-items:center;justify-content:center;padding:0 16px;background:#0d0d0d;color:#fff;font-size:11px;font-weight:700;letter-spacing:.18em;text-align:center}
.site-header{position:sticky;top:0;z-index:1000;width:100%;height:82px;display:grid;grid-template-columns:180px 1fr auto;align-items:center;gap:24px;padding:0 max(24px, calc((100vw - 1240px)/2));background:rgba(245,242,236,.88);border-bottom:1px solid transparent;backdrop-filter:blur(16px);transition:.3s ease}
.site-header.scrolled{height:70px;border-color:var(--line);box-shadow:0 8px 30px rgba(0,0,0,.04)}
.brand img{width:150px;max-height:54px;object-fit:contain}
.nav{display:flex;justify-content:center;align-items:center;gap:clamp(18px,2.5vw,34px);font-weight:600;font-size:14px}
.nav a{position:relative;padding:10px 0}
.nav a::after{content:"";position:absolute;left:0;right:100%;bottom:4px;height:1px;background:var(--ink);transition:.25s ease}
.nav a:hover::after,.nav a.active::after{right:0}
.header-cta,.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--ink);background:var(--ink);color:#fff;padding:13px 20px;font-size:13px;font-weight:700;letter-spacing:.03em;transition:.25s ease}
.header-cta:hover,.btn:hover{background:transparent;color:var(--ink)}
.menu-toggle{display:none;width:46px;height:46px;border:0;background:transparent;padding:10px}
.menu-toggle span{display:block;width:25px;height:1.5px;background:var(--ink);margin:7px auto;transition:.25s ease}

.hero{position:relative;min-height:calc(100svh - 116px);display:flex;align-items:flex-end;overflow:hidden;background:#111}
.hero-media{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  transform:scale(1.02);
}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.65) 0%,rgba(0,0,0,.32) 48%,rgba(0,0,0,.12) 100%),linear-gradient(0deg,rgba(0,0,0,.36),transparent 45%)}
.hero-content{position:relative;z-index:2;width:var(--container);margin:0 auto;padding:120px 0 90px;color:#fff}
.eyebrow,.section-label{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.hero .eyebrow{font-size:clamp(13px,1.25vw,17px);margin-bottom:18px}
h1,h2,h3,p{margin-top:0}
h1,h2{font-family:"Playfair Display",serif;font-weight:500;line-height:.98;letter-spacing:-.035em}
h1{max-width:880px;margin-bottom:28px;font-size:clamp(58px,8.2vw,116px)}
h1 i,h2 i{font-weight:500}
.hero-content>p{max-width:650px;font-size:clamp(16px,1.45vw,20px);color:rgba(255,255,255,.86)}
.hero-actions{display:flex;align-items:center;gap:26px;margin-top:36px}
.hero .btn{border-color:#fff;background:#fff;color:#111}
.hero .btn:hover{background:transparent;color:#fff}
.link-light{font-size:14px;font-weight:700;border-bottom:1px solid rgba(255,255,255,.55);padding-bottom:4px}
.hero-scroll{position:absolute;right:28px;bottom:32px;z-index:2;color:#fff;font-size:10px;letter-spacing:.16em;writing-mode:vertical-rl;display:flex;align-items:center;gap:12px}
.hero-scroll span{width:1px;height:52px;background:rgba(255,255,255,.6)}

.section{width:var(--container);margin:0 auto;padding:120px 0}
.section-label{color:var(--muted);margin-bottom:34px}
.section h2{font-size:clamp(48px,6vw,82px);margin-bottom:0}
.intro-grid,.expertise-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(50px,8vw,120px);align-items:start}
.intro .lead{font-size:clamp(20px,2vw,28px);line-height:1.4;color:var(--ink)}
.intro p:not(.lead){color:var(--muted);max-width:720px}
.intro-signature{margin:30px 0 26px;padding-left:18px;border-left:2px solid var(--accent);display:flex;flex-direction:column}
.intro-signature span{color:var(--muted)}
.text-link{display:inline-flex;gap:12px;align-items:center;font-weight:700;font-size:14px;border-bottom:1px solid var(--ink);padding-bottom:4px}

.projects{padding-top:80px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:48px}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.project-card{background:var(--surface);overflow:hidden;border:1px solid var(--line);transition:transform .3s ease,box-shadow .3s ease}
.project-card:hover{transform:translateY(-8px);box-shadow:var(--shadow)}
.project-photo{position:relative;aspect-ratio:4/5;background-position:center;background-size:cover;overflow:hidden}
.project-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.35),transparent 42%)}
.project-photo.p1{background-image:url('../images/projet-1.jpg')}
.project-photo.p2{background-image:url('../images/projet-2.jpg')}
.project-photo.p3{background-image:url('../images/projet-3.jpg')}
.project-status{position:absolute;z-index:2;top:18px;left:18px;padding:8px 11px;background:rgba(255,255,255,.92);color:#111;font-size:10px;font-weight:800;letter-spacing:.10em;backdrop-filter:blur(8px)}
.project-status.sold{background:#1b1b1b;color:#fff}
.project-status.building{background:#d9c29e}
.project-meta{display:flex;align-items:center;justify-content:space-between;padding:22px}
.project-meta small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.project-meta h3{margin:6px 0 0;font-family:"Playfair Display",serif;font-size:29px;font-weight:500}
.project-meta b{font-size:26px;font-weight:400;transition:.2s ease}
.project-card:hover .project-meta b{transform:translate(3px,-3px)}

.statement{position:relative;min-height:620px;display:flex;align-items:center;overflow:hidden;background:#111;color:#fff}
.statement-bg{position:absolute;inset:0;background:url('../images/statement.jpg') center/cover no-repeat;opacity:.48}
.statement::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.20))}
.statement-content{position:relative;z-index:2;width:var(--container);margin:auto}
.statement h2{font-size:clamp(58px,7vw,96px);margin:18px 0 0}

.expertise-item{display:grid;grid-template-columns:48px 1fr;gap:24px;padding:28px 0;border-top:1px solid var(--line)}
.expertise-item:last-child{border-bottom:1px solid var(--line)}
.expertise-item>span{color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.08em}
.expertise-item h3{margin-bottom:8px;font-size:22px}
.expertise-item p{margin:0;color:var(--muted)}

.gallery{padding-top:80px}
.gallery .section-head p{max-width:430px;color:var(--muted)}
.gallery-grid{display:grid;grid-template-columns:1.25fr .75fr .75fr;grid-template-rows:310px 310px;gap:16px}
.gallery-item{position:relative;overflow:hidden;border:0;padding:0;background:#ddd;cursor:zoom-in}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.gallery-item:hover img{transform:scale(1.045)}
.gallery-item:nth-child(1){grid-row:1/3}
.gallery-item:nth-child(4){grid-column:2/4}
.gallery-item::after{content:"↗";position:absolute;right:16px;bottom:14px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.88);font-size:17px;opacity:0;transform:translateY(8px);transition:.25s ease}
.gallery-item:hover::after{opacity:1;transform:none}

.numbers{display:grid;grid-template-columns:repeat(4,1fr);background:var(--dark);color:#fff;padding:58px max(24px, calc((100vw - 1240px)/2))}
.numbers div{padding:0 28px;border-right:1px solid rgba(255,255,255,.16)}
.numbers div:first-child{padding-left:0}.numbers div:last-child{border-right:0}
.numbers strong{display:block;font-family:"Playfair Display",serif;font-size:clamp(42px,5vw,68px);font-weight:500;line-height:1}
.numbers span{display:block;margin-top:10px;color:rgba(255,255,255,.66);font-size:13px}

.contact{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(50px,8vw,110px)}
.contact-copy p{max-width:520px;color:var(--muted);font-size:17px;margin-top:26px}
.contact-details{display:flex;flex-direction:column;gap:9px;margin-top:32px;font-weight:600}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.contact-form label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.contact-form label:nth-child(4),.contact-form .form-actions{grid-column:1/-1}
.contact-form input,.contact-form textarea{width:100%;border:0;border-bottom:1px solid #bdb8ae;background:transparent;padding:12px 0;color:var(--ink);outline:0;text-transform:none;letter-spacing:normal;border-radius:0;transition:border-color .2s}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--ink)}
.contact-form textarea{resize:vertical;min-height:120px}
.form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:4px}
.form-note{margin:0;color:var(--muted);font-size:11px;max-width:390px}

.footer{background:#0d0d0d;color:#fff;padding:72px max(24px, calc((100vw - 1240px)/2)) 24px}
.footer-top{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:40px;padding-bottom:56px}
.footer-logo{width:148px;filter:brightness(0) invert(1)}
.footer p,.footer span{color:rgba(255,255,255,.58)}
.footer h4{margin:0 0 16px;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.footer a,.footer span{display:block;margin:9px 0;font-size:14px}
.footer a:hover{color:var(--accent)}
.footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid rgba(255,255,255,.14);padding-top:24px;font-size:12px}

.whatsapp{position:fixed;right:22px;bottom:22px;z-index:900;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#25D366;color:#fff;font-size:12px;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.20);transition:.25s ease}
.whatsapp:hover{transform:translateY(-4px) scale(1.03)}

.lightbox{position:fixed;inset:0;z-index:2000;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.92);padding:30px}
.lightbox.open{display:flex}
.lightbox img{max-width:min(1100px,92vw);max-height:86vh;object-fit:contain}
.lightbox-close,.lightbox-prev,.lightbox-next{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;width:48px;height:48px;border-radius:50%;font-size:24px}
.lightbox-close{right:24px;top:24px}.lightbox-prev{left:24px}.lightbox-next{right:24px}

.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}*{animation:none!important;transition:none!important}}

@media (max-width:980px){
  :root{--container:min(100% - 36px, 900px)}
  body.menu-open{overflow:hidden}
  .site-header{grid-template-columns:1fr auto;height:72px;padding:0 18px}
  .brand img{width:135px}
  .menu-toggle{display:block;z-index:1002}
  .header-cta{display:none}
  .nav{position:absolute;top:100%;left:0;right:0;bottom:auto;width:100%;max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;padding:32px 24px 40px;background:var(--bg);border-bottom:1px solid var(--line);transform:translateY(-130%);opacity:0;visibility:hidden;pointer-events:none;transition:.3s ease;z-index:999}
  .nav.open{transform:none;opacity:1;visibility:visible;pointer-events:auto}
  .nav a{width:100%;padding:15px 0;border-bottom:1px solid var(--line);font-size:18px}
  .menu-toggle.active span:first-child{transform:translateY(4px) rotate(45deg)}
  .menu-toggle.active span:last-child{transform:translateY(-4px) rotate(-45deg)}
  .hero{min-height:760px}
  .hero-content{padding:100px 0 70px}
  .intro-grid,.expertise-grid,.contact{grid-template-columns:1fr}
  .project-grid{grid-template-columns:1fr 1fr}
  .project-card:last-child{grid-column:1/-1;max-width:calc(50% - 11px)}
  .gallery-grid{grid-template-columns:1fr 1fr;grid-template-rows:360px 260px 260px}
  .gallery-item:nth-child(1){grid-column:1/3;grid-row:auto}
  .gallery-item:nth-child(4){grid-column:1/3}
  .numbers{grid-template-columns:1fr 1fr;gap:34px 0}
  .numbers div:nth-child(2){border-right:0}.numbers div:nth-child(3){padding-left:0}
  .footer-top{grid-template-columns:1fr 1fr}
}

@media (max-width:640px){
  :root{--container:calc(100% - 32px)}
  /* =========================
     HERO MOBILE
  ========================= */

  .hero{
    min-height:690px;
  }

  .hero-media{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    transform:none;
    background-size:cover;
    background-repeat:no-repeat;
    background-position:center center;
  }

   .announcement{
    font-size:9px;
    letter-spacing:.12em;
  }

  .site-header{
    top:0;
  }

  .hero-shade{
    background:
      linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.25)),
      linear-gradient(0deg,rgba(0,0,0,.40),transparent 46%);
  }
  h1{
    font-size:clamp(50px,17vw,72px);
  }
  .hero-actions{
    align-items:flex-start;
    flex-direction:column;
    gap:18px;
  }
  .hero-scroll{
    display:none;
  }

  .section{padding:88px 0}
  .section h2{font-size:clamp(44px,14vw,62px)}
  .section-head{align-items:flex-start;flex-direction:column}
  .section-head>.text-link{margin-top:-18px}
  .project-grid{grid-template-columns:1fr}
  .project-card:last-child{grid-column:auto;max-width:none}
  .project-photo{aspect-ratio:4/4.5}
  .statement{min-height:520px}
  .statement h2{font-size:clamp(50px,15vw,68px)}
  .gallery-grid{display:grid;grid-template-columns:1fr;grid-template-rows:none}
  .gallery-item,.gallery-item:nth-child(1),.gallery-item:nth-child(4){grid-column:auto;grid-row:auto;aspect-ratio:4/3}
  .numbers{grid-template-columns:1fr 1fr;padding:44px 16px}
  .numbers div{padding:0 16px}.numbers div:nth-child(3){padding-left:16px}
  .contact-form{grid-template-columns:1fr}.contact-form label:nth-child(4),.contact-form .form-actions{grid-column:auto}
  .form-actions{align-items:flex-start;flex-direction:column}
  .footer-top{grid-template-columns:1fr 1fr}.footer-top>div:first-child{grid-column:1/-1}
  .footer-bottom{flex-direction:column}
  .lightbox-prev{left:10px}.lightbox-next{right:10px}.lightbox-close{right:10px;top:10px}
}

/* ===== Bilingual AR / FR layer — premium RTL refinement ===== */
.language-switch{
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em
}
.language-switch button{
  border:0;
  background:transparent;
  color:inherit;
  padding:7px 3px;
  cursor:pointer;
  opacity:.55;
  font:inherit;
  transition:opacity .25s ease,color .25s ease,transform .25s ease
}
.language-switch button:hover{opacity:.86}
.language-switch button.active{opacity:1;color:var(--accent,#b49668)}
.language-switch .lang-sep{opacity:.35}

/* Arabic typography */
html[dir="rtl"] body{
  font-family:"IBM Plex Sans Arabic","DM Sans",sans-serif;
  text-align:right;
  line-height:1.85;
  font-weight:400
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .project-meta h3,
html[dir="rtl"] .section-title{
  font-family:"Noto Kufi Arabic","IBM Plex Sans Arabic",sans-serif;
  letter-spacing:0;
  font-style:normal
}
html[dir="rtl"] h1{
  line-height:1.18;
  font-weight:600;
  max-width:900px
}
html[dir="rtl"] h2{
  line-height:1.25;
  font-weight:600
}
html[dir="rtl"] h3{
  line-height:1.4;
  font-weight:600
}
html[dir="rtl"] h1 i,
html[dir="rtl"] h2 i{
  font-style:normal;
  font-weight:500
}
html[dir="rtl"] p{
  line-height:1.95
}
html[dir="rtl"] .lead{
  line-height:1.75
}
html[dir="rtl"] .announcement,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .section-label,
html[dir="rtl"] .project-status,
html[dir="rtl"] .contact-form label,
html[dir="rtl"] .footer h4{
  letter-spacing:0;
  text-transform:none
}

/* Header / navigation */
html[dir="rtl"] .site-header{direction:rtl}
html[dir="rtl"] .brand{direction:ltr}
html[dir="rtl"] .nav{
  direction:rtl;
  gap:clamp(20px,2.25vw,32px)
}
html[dir="rtl"] .nav a{
  font-weight:600
}
html[dir="rtl"] .nav a::after{
  left:auto;
  right:0;
  width:0;
  transition:width .25s ease
}
html[dir="rtl"] .nav a:hover::after,
html[dir="rtl"] .nav a.active::after{
  width:100%
}
html[dir="rtl"] .header-cta,
html[dir="rtl"] .btn{
  font-family:"IBM Plex Sans Arabic","DM Sans",sans-serif;
  letter-spacing:0;
  font-weight:600;
  transition: background .25s ease,
            color .25s ease,
            transform .25s ease,
            box-shadow .25s ease;
}
html[dir="rtl"] .header-cta:hover,
html[dir="rtl"] .btn:hover{
  transform:translateY(-2px)
}

/* Hero */
html[dir="rtl"] .hero-content,
html[dir="rtl"] .section,
html[dir="rtl"] .footer,
html[dir="rtl"] .project-hero-content{
  text-align:right
}
html[dir="rtl"] .hero-content{
  left:auto;
  right:auto;
  padding-top:132px;
  padding-bottom:94px
}
html[dir="rtl"] .hero .eyebrow{
  margin-bottom:20px;
  font-weight:600
}
html[dir="rtl"] .hero-content>p{
  max-width:700px;
  font-size:clamp(17px,1.35vw,20px);
  line-height:1.9
}
html[dir="rtl"] .hero-actions{
  flex-direction:row;
  justify-content:flex-start;
  gap:22px
}
html[dir="rtl"] .hero .btn{
  box-shadow:0 10px 30px rgba(0,0,0,.14)
}
html[dir="rtl"] .hero .btn:hover{
  box-shadow:none
}
html[dir="rtl"] .hero-scroll{
  right:auto;
  left:28px;
  letter-spacing:0
}

/* Section rhythm */
html[dir="rtl"] .section-label{
  font-family:"IBM Plex Sans Arabic",sans-serif;
  font-size:12px;
  font-weight:600;
  color:var(--accent);
  margin-bottom:30px
}
html[dir="rtl"] .intro-signature{
  padding-left:0;
  padding-right:18px;
  border-left:0;
  border-right:2px solid var(--accent,#b49668)
}
html[dir="rtl"] .intro-signature strong{
  font-weight:700
}
html[dir="rtl"] .text-link,
html[dir="rtl"] .link-light{
  font-family:"IBM Plex Sans Arabic",sans-serif;
  font-weight:600
}
html[dir="rtl"] .text-link span,
html[dir="rtl"] .link-light span{
  margin-left:0;
  margin-right:10px;
  transition:transform .25s ease
}
html[dir="rtl"] .text-link:hover span,
html[dir="rtl"] .link-light:hover span{
  transform:translateX(-4px)
}

/* Project cards */
html[dir="rtl"] .project-card{
  transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease
}
html[dir="rtl"] .project-card:hover{
  transform:translateY(-7px);
  box-shadow:0 22px 55px rgba(0,0,0,.10);
  border-color:rgba(180,150,104,.32)
}
html[dir="rtl"] .project-card .project-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .55s cubic-bezier(.2,.65,.3,1)
}
html[dir="rtl"] .project-card:hover .project-photo img{
  transform:scale(1.035)
}
html[dir="rtl"] .project-status{
  left:auto;
  right:18px;
  padding:8px 13px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  backdrop-filter:blur(10px);
  box-shadow:0 5px 18px rgba(0,0,0,.08)
}
html[dir="rtl"] .project-meta{
  direction:rtl
}
html[dir="rtl"] .project-meta small{
  letter-spacing:0;
  text-transform:none;
  line-height:1.6
}
html[dir="rtl"] .project-meta h3{
  margin-top:8px;
  font-size:27px
}
html[dir="rtl"] .project-meta b{
  transform:scaleX(-1);
  transition:transform .25s ease
}
html[dir="rtl"] .project-card:hover .project-meta b{
  transform:scaleX(-1) translate(-3px,-3px)
}

/* Expertise */
html[dir="rtl"] .expertise-item{
  grid-template-columns:48px 1fr;
  direction:rtl
}
html[dir="rtl"] .expertise-item>span{
  letter-spacing:0;
  font-family:"DM Sans",sans-serif
}

/* Gallery */
html[dir="rtl"] .gallery-item::after{
  right:auto;
  left:16px
}
html[dir="rtl"] .gallery-item{
  transition:box-shadow .3s ease
}
html[dir="rtl"] .gallery-item:hover{
  box-shadow:0 16px 42px rgba(0,0,0,.10)
}

/* Numbers */
html[dir="rtl"] .numbers{
  direction:rtl
}
html[dir="rtl"] .numbers div{
  border-right:0;
  border-left:1px solid rgba(255,255,255,.16)
}
html[dir="rtl"] .numbers div:first-child{
  padding-left:28px
}
html[dir="rtl"] .numbers div:last-child{
  border-left:0
}
html[dir="rtl"] .numbers strong{
  font-family:"DM Sans",sans-serif
}
html[dir="rtl"] .numbers span{
  font-family:"IBM Plex Sans Arabic",sans-serif
}

/* Contact */
html[dir="rtl"] .contact-form{
  direction:rtl
}
html[dir="rtl"] .contact-form label{
  text-align:right;
  font-weight:600
}
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea{
  text-align:right;
  direction:rtl
}
html[dir="rtl"] .contact-form input[type="email"],
html[dir="rtl"] .contact-form input[type="tel"]{
  direction:ltr;
  text-align:left
}
html[dir="rtl"] .form-actions{
  justify-content:flex-start
}

/* Footer */
html[dir="rtl"] .footer-top{
  direction:rtl
}
html[dir="rtl"] .footer-logo{
  direction:ltr
}
html[dir="rtl"] .footer-bottom{
  direction:rtl
}

/* WhatsApp */
html[dir="rtl"] .whatsapp{
  right:auto;
  left:22px
}

/* Refined reveal for Arabic */
html[dir="rtl"] .reveal{
  transform:translateY(22px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.65,.3,1)
}
html[dir="rtl"] .reveal.visible{
  transform:none
}

@media(max-width:1100px){
  .language-switch{margin-inline-start:auto}
  .nav .language-switch{margin:8px 0}
}

@media(max-width:980px){
  html[dir="rtl"] .site-header{
    grid-template-columns:1fr auto;
    direction:rtl
  }
  html[dir="rtl"] .nav{
    align-items:stretch;
    text-align:right
  }
  html[dir="rtl"] .nav a{
    text-align:right
  }
  html[dir="rtl"] .hero-content{
    padding:108px 0 76px
  }
}

@media(max-width:900px){
  .language-switch{font-size:10px}
  .nav .language-switch{width:100%;justify-content:center}
}

@media(max-width:640px){
  html[dir="rtl"] body{
    line-height:1.8
  }
  html[dir="rtl"] .announcement{
    font-size:10px;
    line-height:1.5;
    padding-inline:12px
  }
  html[dir="rtl"] h1{
    font-size:clamp(42px,12vw,58px);
    line-height:1.24;
    margin-bottom:24px
  }
  html[dir="rtl"] .section h2{
    font-size:clamp(38px,11vw,54px);
    line-height:1.3
  }
  html[dir="rtl"] .statement h2{
    font-size:clamp(40px,11.5vw,56px)
  }
  html[dir="rtl"] .hero{
    min-height:680px
  }
  html[dir="rtl"] .hero-content{
    padding:92px 0 64px
  }
  html[dir="rtl"] .hero-content>p{
    font-size:16px;
    line-height:1.9
  }
  html[dir="rtl"] .hero-actions{
    flex-direction:column;
    align-items:flex-start;
    gap:16px
  }
  html[dir="rtl"] .project-meta{
    padding:20px
  }
  html[dir="rtl"] .project-meta h3{
    font-size:25px
  }
  html[dir="rtl"] .numbers{
    grid-template-columns:1fr 1fr
  }
  html[dir="rtl"] .numbers div{
    border-left:0;
    padding-inline:16px
  }
  html[dir="rtl"] .numbers div:nth-child(odd){
    border-left:1px solid rgba(255,255,255,.16)
  }
  html[dir="rtl"] .footer-top,
  html[dir="rtl"] .footer-bottom{
    text-align:right
  }
}

/* =========================================================
   NASUD IMMOBILIER — COUCHE FRANÇAISE PREMIUM UNIQUEMENT
   Aucune règle ci-dessous ne s'applique à la version arabe.
========================================================= */

html[lang="fr"] body{
  font-family:"DM Sans",sans-serif;
  direction:ltr;
  text-align:left;
  line-height:1.65;
}

/* Header */
html[lang="fr"] .site-header{
  direction:ltr;
}

html[lang="fr"] .nav{
  direction:ltr;
  gap:clamp(18px,2vw,30px);
}

html[lang="fr"] .nav a{
  font-size:13px;
  font-weight:600;
  letter-spacing:.01em;
}

html[lang="fr"] .header-cta{
  white-space:nowrap;
  font-weight:700;
}

/* Hero français — zone texte à l'extrême gauche */
html[lang="fr"] .hero-content{
  position:absolute;
  z-index:3;
  left:20px;
  right:auto;
  top:50%;
  transform:translateY(-50%);
  width:420px;
  max-width:420px;
  margin:0;
  padding:0;
  text-align:left;
  color:#fff;
}

html[lang="fr"] .hero .eyebrow{
  width:100%;
  max-width:420px;
  margin:0 0 18px;
  font-size:11px;
  line-height:1.4;
  letter-spacing:.16em;
  font-weight:700;
  text-align:left;
  color:#e2cda8;
}

html[lang="fr"] .hero h1{
  width:100%;
  max-width:420px;
  margin:0 0 24px;
  font-size:clamp(42px,4.2vw,58px);
  line-height:1.03;
  letter-spacing:-.035em;
  text-align:left;
}

html[lang="fr"] .hero-content>p{
  width:100%;
  max-width:410px;
  margin:0;
  font-size:15px;
  line-height:1.65;
  text-align:left;
  color:rgba(255,255,255,.88);
}

html[lang="fr"] .hero-actions{
  display:flex;
  flex-direction:row;
  justify-content:flex-start;
  align-items:center;
  gap:22px;
  margin-top:30px;
}

html[lang="fr"] .hero-scroll{
  right:28px;
  left:auto;
}

@media(max-width:980px){
  html[lang="fr"] .hero-content{
    left:20px;
    width:390px;
    max-width:390px;
  }

  html[lang="fr"] .hero h1{
    max-width:390px;
    font-size:46px;
  }

  html[lang="fr"] .hero-content>p{
    max-width:380px;
    font-size:14px;
  }
}

/* Sections */
html[lang="fr"] .section,
html[lang="fr"] .footer{
  text-align:left;
}

html[lang="fr"] .section-label{
  letter-spacing:.16em;
  text-transform:uppercase;
}

html[lang="fr"] .section h2,
html[lang="fr"] .statement h2{
  letter-spacing:-.035em;
}

html[lang="fr"] .intro .lead{
  font-size:clamp(21px,1.85vw,27px);
  line-height:1.45;
}

html[lang="fr"] .intro-signature{
  padding-left:18px;
  padding-right:0;
  border-left:2px solid var(--accent);
  border-right:0;
}

html[lang="fr"] .text-link span,
html[lang="fr"] .link-light span{
  margin-left:8px;
  margin-right:0;
}

/* Projets */
html[lang="fr"] .project-meta{
  direction:ltr;
}

html[lang="fr"] .project-status{
  left:18px;
  right:auto;
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

html[lang="fr"] .project-meta small{
  text-transform:uppercase;
  letter-spacing:.07em;
}

html[lang="fr"] .project-meta h3{
  font-family:"Playfair Display",serif;
}

/* Expertise */
html[lang="fr"] .expertise-item{
  direction:ltr;
}

/* Chiffres */
html[lang="fr"] .numbers{
  direction:ltr;
}

/* Contact */
html[lang="fr"] .contact-form{
  direction:ltr;
}

html[lang="fr"] .contact-form label,
html[lang="fr"] .contact-form input,
html[lang="fr"] .contact-form textarea{
  text-align:left;
}

html[lang="fr"] .contact-form input[type="email"],
html[lang="fr"] .contact-form input[type="tel"]{
  direction:ltr;
}

/* Footer */
html[lang="fr"] .footer-top,
html[lang="fr"] .footer-bottom{
  direction:ltr;
}

html[lang="fr"] .whatsapp{
  right:22px;
  left:auto;
}

/* Mobile FR */
@media(max-width:640px){
  html[lang="fr"] .hero-content{
    left:18px;
    right:18px;
    width:auto;
    max-width:none;
    top:50%;
    transform:translateY(-50%);
    margin:0;
    padding:0;
  }

  html[lang="fr"] .hero .eyebrow{
    max-width:360px;
    font-size:9px;
  }

  html[lang="fr"] .hero h1{
    width:70%;
    max-width:360px;
    font-size:clamp(34px,10vw,46px);
    line-height:1.04;
  }

  html[lang="fr"] .hero-content>p{
    width:88%;
    max-width:360px;
    font-size:14px;
    line-height:1.6;
  }

  html[lang="fr"] .hero-actions{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    margin-top:24px;
  }

  html[lang="fr"] .section h2{
    font-size:clamp(40px,12vw,56px);
  }
}

/* =========================================
   HERO MOBILE — VERSION FINALE
========================================= */

@media (max-width: 640px) {

  .hero {
    position: relative;
    height: calc(100svh - 106px);
    min-height: 600px;
    max-height: 720px;
    overflow: hidden;
    background: #111;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: none;
  }

  .hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }

  html[dir="rtl"] .hero-content {
    padding: 92px 16px 64px;
  }

}
/* ========================================
   LOCALISATION DU PROJET
======================================== */

.project-location{
  width:100%;
  padding:20px 0 115px;
}

.location-container{
  width:min(1200px,calc(100% - 48px));
  margin:0 auto;
}

/* En-tête */
.location-header{
  max-width:760px;
  margin:0 auto 42px;
  text-align:center;
}

.location-header .section-label{
  margin-bottom:18px;
  color:var(--gold);
}

.location-header h2{
  margin:0 0 18px;
  font-family:"Playfair Display",serif;
  font-size:clamp(42px,5vw,64px);
  font-weight:500;
  line-height:1.05;
  letter-spacing:-.03em;
}

.location-header p{
  max-width:620px;
  margin:0 auto;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

/* Carte */
.location-map{
  position:relative;
  width:100%;
  height:500px;
  overflow:hidden;
  background:#e8e4dc;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.07);
}

.location-map iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}

/* Localisation sous la carte */
.location-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin-top:20px;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
}

.location-pin{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--white);
  color:var(--gold);
}


/* TABLETTE */
@media(max-width:900px){

  .project-location{
    padding:10px 0 90px;
  }

  .location-container{
    width:calc(100% - 36px);
  }

  .location-header{
    margin-bottom:34px;
  }

  .location-map{
    height:430px;
    border-radius:12px;
  }
}


/* MOBILE */
@media(max-width:620px){

  .project-location{
    padding:5px 0 72px;
  }

  .location-container{
    width:calc(100% - 30px);
  }

  .location-header{
    margin-bottom:28px;
  }

  .location-header .section-label{
    margin-bottom:14px;
    font-size:10px;
  }

  .location-header h2{
    margin-bottom:14px;
    font-size:clamp(34px,10vw,44px);
    line-height:1.08;
  }

  .location-header p{
    max-width:100%;
    font-size:14px;
    line-height:1.65;
  }

  .location-map{
    height:340px;
    border-radius:10px;
    box-shadow:0 12px 32px rgba(0,0,0,.06);
  }

  .location-footer{
    margin-top:16px;
    font-size:12px;
  }

  .location-pin{
    width:26px;
    height:26px;
  }
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.social-links a i {
  display: inline-block;
  width: auto;
  font-size: 17px;
}

.social-links a span {
  display: inline-block;
  margin: 0;
}

/* =========================================
   PLANS 3D — VERSION CANONIQUE
========================================= */
.plans-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:42px;
}
.plan-card{background:var(--white);border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow-soft)}
.plan-image{
  position:relative;
  width:100%;
  background:var(--cream-2);
  overflow:hidden;
}
.plan-image img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  transition:transform .45s ease;
}
.plan-card:hover .plan-image img{transform:scale(1.025)}
.plan-content{padding:24px}
.plan-content>span{display:block;margin-bottom:9px;color:var(--gold);font-size:9px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase}
.plan-content h3{margin:0 0 10px;font:500 25px/1.15 "Playfair Display",serif;color:var(--ink)}
.plan-content p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}

@media (max-width:900px){
  .plans-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}

@media (max-width:620px){

  .plans-section h2{
    font-size:clamp(34px,10vw,42px);
    line-height:1.08;
    margin-bottom:16px;
  }

  .plans-section>p{
    font-size:14px;
    line-height:1.7;
    margin-bottom:8px;
  }

  .plans-grid{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    max-width:100%;
    margin:32px 0 0;
    padding:0;
    gap:24px;

    /* suppression du carrousel */
    overflow:visible;
  }

  .plan-card{
    width:100%;
    max-width:100%;
    flex:none;
    overflow:hidden;
  }

  .plan-image{
    width:100%;
    height:auto;
    aspect-ratio:auto;
    overflow:hidden;
    background:var(--cream-2);
  }

  .plan-image img{
    display:block;
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
    object-position:center;
  }

  .plan-content{
    padding:18px 16px 20px;
  }

  .plan-content>span{
    margin-bottom:7px;
    font-size:8px;
    letter-spacing:1.4px;
  }

  .plan-content h3{
    margin-bottom:8px;
    font-size:21px;
  }

  .plan-content p{
    font-size:12px;
    line-height:1.6;
  }
}

