/* Nueva Tec — vert clair demandé par le client, vert profond et laiton pour le registre horloger */
:root {
  --vert-clair: #e4eee2;   /* fond du site */
  --vert-pale: #f4f8f2;    /* panneaux */
  --vert-profond: #0f2e24; /* texte, bandeaux */
  --vert-moyen: #2f5a48;
  --laiton: #a8854a;
  --laiton-clair: #cdb078;
  --trait: rgba(15, 46, 36, .16);
  --texte-doux: #3f5a4e;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --text: "Jost", "Segoe UI", system-ui, sans-serif;

  --page: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --block: clamp(56px, 7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--vert-clair);
  color: var(--vert-profond);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.2; }

:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: #fff; padding: 10px 16px; }
.skip:focus { top: 8px; }

/* ---------- Bandeau d'informations ---------- */
.infobar {
  background: var(--vert-profond); color: rgba(255,255,255,.82);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 36px;
  padding: 8px var(--gutter); font-size: .82rem; letter-spacing: .06em;
}
.infobar a { text-decoration: none; color: var(--laiton-clair); }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(244, 248, 242, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.wordmark { display: inline-grid; text-decoration: none; line-height: 1.1; justify-self: start; }
.wordmark span { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: .2em; white-space: nowrap; }
.wordmark small { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--laiton); margin-top: 3px; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a {
  text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease;
}
.nav a:hover { border-color: var(--laiton); color: var(--vert-moyen); }
.top-end { justify-self: end; display: flex; align-items: center; gap: 14px; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 28px;
  font: 500 .78rem/1 var(--text); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-solid { background: var(--vert-profond); color: #fff; }
.btn-solid:hover { background: var(--vert-moyen); }
.btn-outline { border-color: var(--vert-profond); color: var(--vert-profond); }
.btn-outline:hover { background: var(--vert-profond); color: #fff; }
.btn-gold { background: var(--laiton); color: #fff; }
.btn-gold:hover { background: #8f6f3a; }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--vert-profond); }
.top-cta { min-height: 40px; padding: 0 22px; }

.link {
  display: inline-block; margin-top: 12px; padding-bottom: 3px;
  font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--vert-profond); border-bottom: 1px solid var(--laiton); transition: color .2s ease;
}
.link:hover { color: var(--laiton); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(640px, 72svh);
  display: grid; place-items: center; text-align: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: var(--vert-profond) center / cover no-repeat;
  background-image: url("assets/hero-desktop.jpg");
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-video.is-playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: rgba(10, 32, 25, .72); }
.hero-body { max-width: 820px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.08; font-weight: 500; }
.hero-lead {
  margin: 22px auto 0; max-width: 34em;
  font-size: clamp(1rem, 1.25vw, 1.15rem); font-weight: 300; color: rgba(255,255,255,.88);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-body { animation: appear 1s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Engagements ---------- */
.facts {
  max-width: var(--page); margin: -44px auto 0; position: relative; z-index: 2;
  width: calc(100% - 2 * var(--gutter));
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--vert-pale); border: 1px solid var(--trait);
  box-shadow: 0 18px 40px -28px rgba(15, 46, 36, .45);
}
.facts > div { padding: 22px 16px; text-align: center; display: grid; gap: 2px; }
.facts > div + div { border-inline-start: 1px solid var(--trait); }
.facts strong { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--vert-profond); }
.facts span { font-size: .85rem; color: var(--texte-doux); }

/* ---------- Blocs ---------- */
.block { padding: var(--block) var(--gutter); }
.block > * { max-width: var(--page); margin-inline: auto; }
.block-white { background: var(--vert-pale); border-block: 1px solid var(--trait); }
.block-deep { background: var(--vert-profond); color: #fff; }
.block-head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.block-head::after { content: ""; display: block; width: 44px; height: 1px; background: var(--laiton); margin: 18px auto 0; }
.block-head p { max-width: 34em; margin: 12px auto 0; color: var(--texte-doux); }

/* ---------- Marques ---------- */
.brand-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--trait); border-inline-start: 1px solid var(--trait);
}
.brand-grid li {
  display: grid; place-content: center; text-align: center; gap: 4px;
  min-height: 112px; padding: 16px 12px;
  border-inline-end: 1px solid var(--trait); border-bottom: 1px solid var(--trait);
  background: rgba(244, 248, 242, .55); transition: background-color .25s ease;
}
.brand-grid li:hover { background: var(--vert-pale); }
/* Logos en noir sur blanc : le blanc disparaît sur le fond vert */
.brand-grid img {
  width: auto; height: auto; max-width: min(150px, 100%); max-height: 58px; object-fit: contain;
  mix-blend-mode: multiply; opacity: .78; transition: opacity .3s ease, transform .3s ease;
}
.brand-grid li:hover img { opacity: 1; transform: scale(1.06); }
.brand-grid img[src*="guess"], .brand-grid img[src*="jaguar"], .brand-grid img[src*="festina"], .brand-grid img[src*="beverly"] { max-height: 76px; }

/* ---------- Sélection ---------- */
.watch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.watch { text-align: center; }
.watch-media { display: block; aspect-ratio: 1; overflow: hidden; background: #fff; border: 1px solid var(--trait); margin-bottom: 16px; }
.watch-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.watch-media img.pos-top { object-position: 50% 12%; }
.watch:hover .watch-media img { transform: scale(1.04); }
.watch-brand { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton); }
.watch h3 { margin-top: 4px; }
.watch-spec { font-size: .9rem; color: var(--texte-doux); margin-top: 2px; }
.row-note { text-align: center; margin-top: 36px; font-size: .92rem; color: var(--texte-doux); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.service {
  grid-column: span 2; position: relative; overflow: hidden;
  padding: 30px 28px 32px; background: var(--vert-pale); border: 1px solid var(--trait);
  transition: background-color .45s ease, border-color .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.service:nth-child(n+4) { grid-column: span 3; }
/* filet laiton qui se déploie au survol */
.service::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--laiton); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.service-icon {
  width: 44px; height: 44px; margin-bottom: 18px;
  fill: none; stroke: var(--laiton); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .45s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.service h3 { transition: color .45s ease; }
.service p { margin-top: 8px; color: var(--texte-doux); font-size: .97rem; max-width: 30em; transition: color .45s ease; }
.service:hover, .service:focus-within {
  background: var(--vert-profond); border-color: var(--vert-profond);
  transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(15, 46, 36, .6);
}
.service:hover::after { transform: scaleX(1); }
.service:hover h3 { color: #fff; }
.service:hover p { color: rgba(255,255,255,.78); }
.service:hover .service-icon { stroke: var(--laiton-clair); transform: scale(1.12) rotate(-6deg); }

/* Apparition en cascade à l'arrivée dans l'écran, tracé progressif des icônes */
.js .service { opacity: 0; transform: translateY(28px); }
.js .service .service-icon > * { stroke-dasharray: 160; stroke-dashoffset: 160; }
.js .service.is-in { opacity: 1; transform: none; transition-delay: calc(var(--i) * 120ms); }
.js .service.is-in .service-icon > * { animation: draw 1.4s ease forwards; animation-delay: calc(var(--i) * 120ms + 200ms); }
.js .service.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- La maison ---------- */
.house { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.house-text h2::after { content: ""; display: block; width: 44px; height: 1px; background: var(--laiton-clair); margin-top: 18px; }
.house-text p { margin-top: 18px; color: rgba(255,255,255,.8); font-weight: 300; max-width: 32em; }
.house-text .btn { margin-top: 30px; }
.house-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 470px; justify-self: end; }
.house-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(255,255,255,.18); }
.house-photos figcaption { margin-top: 8px; font-size: .78rem; letter-spacing: .06em; color: rgba(255,255,255,.62); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.contact-list { background: var(--vert-pale); border: 1px solid var(--trait); padding: 12px clamp(20px, 3vw, 36px) 28px; }
.contact-list > div:not(.contact-actions) { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--trait); }
.contact-list dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--laiton); padding-top: 4px; }
.contact-list dd a { text-decoration: none; border-bottom: 1px solid var(--trait); }
.contact-list dd a:hover { border-color: var(--laiton); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-map { min-height: 380px; border: 1px solid var(--trait); background: var(--vert-pale); }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Pied de page ---------- */
.foot {
  background: var(--vert-profond); color: rgba(255,255,255,.75);
  padding: 48px var(--gutter) 96px; text-align: center;
  display: grid; justify-items: center; gap: 18px; font-size: .9rem;
}
.foot .wordmark { justify-self: center; color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.foot-links a { text-decoration: none; letter-spacing: .08em; }
.foot-links a:hover { color: var(--laiton-clair); }
.foot-legal { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #1faa59; box-shadow: 0 6px 20px rgba(15,46,36,.3); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Adaptation ---------- */
@media (max-width: 940px) {
  .top { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .watch-row { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .service, .service:nth-child(n+4) { grid-column: span 3; }
  .house { grid-template-columns: 1fr; }
  .house-photos { justify-self: start; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .infobar p:first-child { display: none; }
  .infobar { gap: 2px 20px; font-size: .76rem; }
  .wordmark span { font-size: 1.25rem; }
  .hero { background-image: url("assets/hero-mobile.jpg"); min-height: 70svh; }
  .hero .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .facts > div:nth-child(3) { border-inline-start: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid li { min-height: 92px; }
  .service, .service:nth-child(n+4) { grid-column: span 6; }
  .contact-list > div:not(.contact-actions) { grid-template-columns: 6em 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-body { animation: none; }
  .hero-video { display: none; }
  .watch-media img, .wa-float, .btn, .service, .service-icon { transition: none; }
  .js .service { opacity: 1; transform: none; }
  .js .service .service-icon > * { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* Le SVG Beverly Hills n'a pas de dimensions propres */
.brand-grid img[src*="beverly"] { width: 78px; height: 80px; }

/* ---------- Sélecteur de langue : pastille coulissante ---------- */
.lang-switch {
  --pos: 0;
  position: relative; display: grid; grid-template-columns: repeat(3, 40px); height: 40px;
  border: 1px solid var(--trait); border-radius: 999px; background: var(--vert-clair);
  padding: 3px; touch-action: none; user-select: none; cursor: grab;
}
.lang-switch.is-dragging { cursor: grabbing; }
.lang-thumb {
  position: absolute; top: 3px; left: 3px; width: 40px; height: 32px; border-radius: 999px;
  background: var(--vert-profond); box-shadow: 0 4px 10px -4px rgba(15, 46, 36, .6);
  transform: translateX(calc(var(--pos) * 100%));
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1);
}
.lang-switch.is-dragging .lang-thumb { transition: none; }
.lang-switch button {
  position: relative; z-index: 1; border: 0; background: none; padding: 0; cursor: inherit;
  font: 500 .74rem/1 var(--text); letter-spacing: .1em; color: var(--texte-doux);
  border-radius: 999px; transition: color .3s ease;
}
.lang-switch button[lang="ar"] { font: 700 1rem/1 "Tajawal", sans-serif; letter-spacing: 0; }
.lang-switch button[aria-pressed="true"] { color: #fff; }
main, .foot { will-change: auto; }

/* ---------- Arabe : polices, sens de lecture ---------- */
html[lang="ar"] {
  --display: "Amiri", "Cormorant Garamond", serif;
  --text: "Tajawal", "Jost", system-ui, sans-serif;
}
html[lang="ar"] body { font-size: 1.06rem; line-height: 1.8; }
/* l’espacement des lettres casse la liaison des caractères arabes */
html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] .wordmark span { letter-spacing: .2em !important; font-family: "Cormorant Garamond", serif; }
html[lang="ar"] .lang-switch button:not([lang="ar"]) { font-family: "Jost", sans-serif; letter-spacing: .1em !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; font-weight: 700; }
html[lang="ar"] .btn, html[lang="ar"] .nav a, html[lang="ar"] .link, html[lang="ar"] .contact-list dt, html[lang="ar"] .wordmark small { font-size: .95rem; }
html[lang="ar"] .watch-brand { font-family: "Jost", sans-serif; letter-spacing: .2em !important; }
[dir="rtl"] .service::after { transform-origin: right; }
[dir="rtl"] .service:hover .service-icon { transform: scale(1.12) rotate(6deg); }

@media (max-width: 620px) {
  .top-cta { display: none; }
  .lang-switch { grid-template-columns: repeat(3, 36px); height: 36px; }
  .lang-thumb { width: 36px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .lang-thumb { transition: none; } }

/* ---------- Instagram flottant, au-dessus de WhatsApp ---------- */
.ig-float {
  position: fixed; right: 18px; bottom: 82px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 6px 20px rgba(15,46,36,.3); transition: transform .2s ease;
}
.ig-float:hover { transform: scale(1.06); }
.ig-float svg { width: 27px; height: 27px; fill: none; stroke: #fff; stroke-width: 1.9; }
.ig-float svg .dot { fill: #fff; stroke: none; }
@media (prefers-reduced-motion: reduce) { .ig-float { transition: none; } }
