*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; }

/* ─── PAGE 1 : hero-title comme intro overlay ─── */
#hero-title.intro-active {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  padding-bottom: 5rem;
  background:
    radial-gradient(ellipse 120% 80% at 50% 50%, rgba(35,4,4,.07) 0%, rgba(35,4,4,.02) 55%, rgba(35,4,4,.005) 75%, transparent 100%) fixed,
    #0b0a0a;
  will-change: opacity;
  transition: opacity 1s ease-in-out;
}
#hero-title.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.intro-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(240, 237, 232, .96);
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  text-shadow: 0 0 12px rgba(240, 237, 232, .35);
}
#hero-title.h1-revealed .intro-scroll-hint {
  opacity: 1;
  transition-delay: 1.25s;
}
.intro-scroll-hint.visible {
  opacity: 1;
  transition-delay: 0s;
}
.intro-scroll-arrow {
  width: 16px;
  height: 16px;
  animation: intro-bounce 1.8s ease-in-out infinite;
  opacity: .95;
  filter: drop-shadow(0 0 8px rgba(240, 237, 232, .45));
}
@keyframes intro-bounce {
  0%, 100% { transform: translateY(0);   opacity: .4; }
  50%       { transform: translateY(5px); opacity: .8; }
}
/* ─── PAGE 2 : hero/sphère comme overlay ─── */
#hero.page-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  will-change: opacity;
  transition: opacity 1s ease-in-out;
}
#hero.page-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
body.page-lock { overflow: hidden; }

/* ─── Transition thème ─── */
html { transition: background .6s ease; }
body { transition: background .6s ease, color .6s ease; }
nav  { transition: background .6s ease, border-color .3s; }
.nav-logo, .nav-links a, .nav-phone-btn button, .nav-cta,
.nav-lang-btn, .nav-mobile a, .nav-burger span,
.svc-title, .svc-desc, .svc-icon svg,
.presence-sub, .footer-copy, .footer-link,
.ccm-label, .ccm-toggle, h1, h2 { transition: color .6s ease; }
.nav-phone-dropdown, .nav-lang-dropdown,
.nav-contact-row, .nav-lang-option { transition: background .6s ease; }
.svc-card, .contact-card-mobile { transition: background .6s ease, border-color .6s ease, transform .3s; }
#sphere-hint { transition: opacity .8s ease, color .6s ease; }

:root {
  --bg:       #0a0a0a;
  --bg2:      #0e0e0e;
  --bg3:      #141414;
  --card:     #111111;
  --border:   #1e1e1e;
  --red:      #c92927;
  --red-dim:  #8a1c1c;
  --text:     #f0ede8;
  --muted:    #6e6b66;
  --muted2:   #9e9a94;
  --nav-height: 50px;
  --mobile-vh: 100svh;
}

html { scroll-behavior: smooth; background: #0b0a0a; }

body {
  background:
    radial-gradient(ellipse 120% 80% at 50% 50%, rgba(35,4,4,.07) 0%, rgba(35,4,4,.02) 55%, rgba(35,4,4,.005) 75%, transparent 100%) fixed,
    #0b0a0a;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film grain */
body::after {
  content: '';
  position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .025; pointer-events: none; z-index: 9999;
  animation: grain .4s steps(1) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)}10%{transform:translate(-2%,-3%)}20%{transform:translate(3%,1%)}30%{transform:translate(-1%,3%)}40%{transform:translate(2%,-2%)}50%{transform:translate(-3%,1%)}60%{transform:translate(1%,3%)}70%{transform:translate(-2%,-1%)}80%{transform:translate(3%,2%)}90%{transform:translate(-1%,-3%)}
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: none; }


/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 50px; display: flex; align-items: center;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(6px) saturate(1.6) brightness(0.85);
  -webkit-backdrop-filter: blur(6px) saturate(1.6) brightness(0.85);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .35s ease, border-color .3s, transform .3s ease, opacity .2s ease;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
nav#navbar.is-landscape-hidden {
  transform: translate3d(0, calc(-100% - env(safe-area-inset-top, 0px)), 0);
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 701px) {
  body.is-p3 nav#navbar {
    background: rgba(0,0,0,.72);
  }
}
nav::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .035;
  pointer-events: none;
  z-index: 0;
}
nav.scrolled { border-color: var(--border); }
.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; gap: 2rem;
  position: relative; z-index: 1;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Oswald', sans-serif; font-size: 1.05rem;
  font-weight: 700; letter-spacing: .04em; color: var(--text); text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  display: block;
  height: 35px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.nav-logo-text span { color: var(--red); }
.nav-links { display: flex; gap: 2rem; list-style: none; flex: 1; }
.nav-links a {
  font-size: .82rem; font-weight: 300; letter-spacing: .06em;
  color: #b5b1aa; text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-phone-btn {
  position: relative; flex-shrink: 0; margin-left: -1rem;
}
.nav-phone-btn button {
  background: none; border: none; cursor: pointer;
  padding: .4rem; display: flex; align-items: center; gap: .35rem;
  color: #b5b1aa; transition: color .2s;
}
.nav-phone-btn button:hover { color: var(--text); }
.nav-phone-label {
  display: none;
  font-size: .82rem;
  font-weight: 300;
  letter-spacing: .06em;
}
.nav-phone-trigger-icon {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
}
.nav-phone-dropdown {
  position: absolute; top: calc(100% + .6rem); right: 0;
  background: #111; border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 200px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.nav-phone-btn.open .nav-phone-dropdown {
  opacity: 1; pointer-events: auto; transform: none;
}
.nav-contact-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .7rem 1rem; transition: background .15s;
}
.nav-contact-row + .nav-contact-row { border-top: 1px solid var(--border); }
.nav-contact-row:hover { background: #1a1a1a; }
.nav-contact-row > span {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .08em; color: var(--muted);
  text-transform: uppercase; flex-shrink: 0; padding-top: .1rem;
}
.nav-contact-links { display: flex; flex-direction: column; gap: .2rem; align-items: flex-end; margin-left: auto; }
.nav-contact-links a {
  font-size: .78rem; font-weight: 500; color: var(--text);
  text-decoration: none; letter-spacing: .03em;
  display: flex; align-items: center; gap: .35rem;
}
.nav-contact-links a:hover { color: var(--red); }
.contact-icon {
  width: 11px; height: 11px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 701px) {
  .nav-phone-label {
    display: inline;
  }
  .nav-phone-trigger-icon {
    display: none;
  }
  .nav-phone-btn button {
    padding: 0;
  }
  .nav-phone-dropdown .contact-icon {
    width: 10px;
    height: 10px;
  }
  .nav-phone-dropdown .contact-icon-mail {
    width: 10.8px;
    height: 10.8px;
    transform: translateY(0.4px);
  }
}
.nav-cta {
  font-size: .82rem; font-weight: 300; letter-spacing: .06em;
  color: #b5b1aa; background: none; border: none; margin-left: auto;
  text-decoration: none; transition: color .2s;
  white-space: nowrap; flex-shrink: 0; cursor: pointer;
}
.nav-cta:hover { color: var(--text); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#landscapeNavReveal {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: calc(env(safe-area-inset-right, 0px) + 34px);
  left: auto;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 130;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
#landscapeNavReveal.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
#landscapeNavReveal.in-navbar {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  margin-left: .5rem;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 6px;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  z-index: 2;
}
#landscapeNavReveal.in-navbar span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#landscapeNavReveal.in-navbar span:nth-child(2) { opacity: 0; }
#landscapeNavReveal.in-navbar span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; inset: 50px 0 0 0;
  background: var(--bg); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: 'Oswald', sans-serif; font-size: 1.35rem; font-weight: 400; color: var(--text); text-decoration: none; }
.nav-mobile a:hover { color: var(--red); }

/* ─── LANG SELECTOR ─── */
.nav-lang {
  position: relative; flex-shrink: 0; margin-left: -1rem;
}
.nav-lang-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; padding: .38rem .65rem;
  display: flex; align-items: center; gap: .3rem;
  color: #b5b1aa; transition: color .2s, border-color .2s;
  font-size: .78rem; font-weight: 500; letter-spacing: .06em; font-family: 'Oswald', sans-serif;
}
.nav-lang-btn:hover { color: var(--text); border-color: var(--muted); }
.flag { width: 18px; height: auto; display: inline-block; vertical-align: middle; border-radius: 1px; flex-shrink: 0; }
.flag-outline { outline: 1.5px solid rgba(255,255,255,.3); }
.nav-lang-btn .flag { width: 16px; }
.nav-lang-dropdown {
  position: absolute; top: calc(100% + .6rem); right: 0;
  background: #111; border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  min-width: 148px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.nav-lang.open .nav-lang-dropdown { opacity: 1; pointer-events: auto; transform: none; }
.nav-lang-option {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: .78rem; font-weight: 500; font-family: 'Oswald', sans-serif;
  color: var(--muted2); transition: background .15s, color .15s;
}
.nav-lang-option + .nav-lang-option { border-top: 1px solid var(--border); }
.nav-lang-option:hover { background: #1a1a1a; color: var(--text); }
.nav-lang-option.active { color: var(--text); }
.nav-lang-option .flag { width: 18px; }
.nav-lang-option[aria-disabled="true"] {
  opacity: .42;
  cursor: not-allowed;
  pointer-events: none;
}
.nav-login-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: -1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #b5b1aa;
  text-decoration: none;
  flex-shrink: 0;
  transition: color .2s, border-color .2s, background-color .2s;
}
.nav-login-desktop svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-login-desktop:hover {
  color: var(--text);
  border-color: var(--muted);
  background: rgba(255,255,255,.03);
}
@media (max-width: 700px) { .nav-lang { display: none; } }

/* ─── LANG SELECTOR MOBILE ─── */
.nav-mobile-lang {
  display: flex; gap: .75rem; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.nav-mobile-lang-opt {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; padding: .4rem .9rem;
  display: flex; align-items: center; gap: .4rem;
  color: var(--muted2); font-size: .85rem; font-weight: 600; font-family: 'Oswald', sans-serif;
  transition: color .2s, border-color .2s;
}
.nav-mobile-lang-opt.active { color: var(--text); border-color: var(--muted); }
.nav-mobile-lang-opt:hover { color: var(--text); }
.nav-mobile-lang-opt[aria-disabled="true"] {
  opacity: .42;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── INTER : navbar & cartes ─── */
nav, .nav-mobile, .nav-mobile-lang,
.svc-title, .svc-desc,
.contact-card-mobile { font-family: 'Inter', sans-serif; }

/* ─── MOBILE ─── */
@media (max-width: 700px) {
  html { background: #0a0a0a; }
  body::after { z-index: 90; }
  /* La nav part du bord physique (top: 0) et couvre la safe-area */
  nav {
    top: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    align-items: center;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Masque anti-gap au-dessus de la nav (Chrome mobile scroll rapide) */
  nav::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * (env(safe-area-inset-top, 0px) + 16px));
    height: calc(env(safe-area-inset-top, 0px) + 16px);
    background: #0a0a0a;
    pointer-events: none;
  }
  nav::after { display: none; }
  .nav-logo-icon { height: 33px; width: auto; max-width: 120px; }
  /* Le menu burger s'ouvre juste sous la nav (hauteur totale incluant safe-area) */
  .nav-mobile {
    inset: calc(var(--nav-height) + env(safe-area-inset-top, 0px)) 0 0 0;
  }
  /* Le titre démarre juste sous la nav avec la safe-area */
  #hero-title { padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px)); }
  html, body {
    overscroll-behavior-y: auto;
    background: #0a0a0a;
  }
  body.page-lock {
    overscroll-behavior-y: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: var(--mobile-vh);
  }
}

/* ─── PAGE 1 : Titre ─── */
#hero-title {
  height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* ─── PAGE 2 : Sphère ─── */
#hero {
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 120% 80% at 50% 50%, rgba(35,4,4,.07) 0%, rgba(35,4,4,.02) 55%, rgba(35,4,4,.005) 75%, transparent 100%) fixed,
    #0b0a0a;
}
#services { background: #0b0a0a; }
.hero-bg { position: absolute; inset: 0; }

.hero-top { position: relative; z-index: 2; }
h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 5.2vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
}
#hero-title h1 {
  color: #000;
  transition: none;
}
#hero-title.h1-revealed h1 {
  color: var(--text);
  transition: color 3.6s ease;
}
h1::before { content: '\201C'; }
h1::after  { content: '\201D'; }
h1 em { font-style: normal; color: var(--red); }

.hero-brand {
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  font-size: clamp(1.04rem, 2.28vw, 1.95rem);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--text);
  margin-top: 3.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-brand.visible { opacity: 1; }
.hero-brand-t { color: var(--red); }

#sphere-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  z-index: 1;
}
#sphere-hotspot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  cursor: grab;
  z-index: 2;
}
#sphere-hotspot:active { cursor: grabbing; }
#sphere-mobile-zone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  clip-path: circle(50%);
  z-index: 2;
  touch-action: none;
}
.hero-svc-label { display: none; }

/* ─── SPHERE HINT ─── */
#sphere-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
#sphere-hint.visible  { opacity: 1; }
#sphere-hint.fadeout  { opacity: 0; }
#sphere-hint-text { transition: opacity 1s ease; }
#sphere-hint-text.fade { opacity: 0; }
#sphere-hint-icon {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  transition: opacity .5s ease;
}
#sphere-hint-icon svg {
  width: 100%; height: 100%;
  animation: intro-bounce 1.8s ease-in-out infinite;
}

@media (max-width: 767px) {
  /* Nav : logo collé à gauche */
  .nav-inner { padding: 0 1rem; gap: 0; }
  .nav-logo { margin-right: auto; }

  /* Titre pleine largeur — 5% de marge de chaque côté */
  .hero-top { padding-left: 5%; padding-right: 5%; }
  h1 { font-size: 10vw; line-height: 1.13; }
  .hero-brand { font-size: 4.6vw; margin-top: 12vw; }

  /* Page 1 : espacement scroll-hint proportionnel */
  #hero-title.intro-active { padding-bottom: 8vh; }
  .intro-scroll-hint { bottom: 2vh; }
  #sphere-hint { bottom: 2vh; }

  /* Sphère : démarre juste sous le titre, centre au milieu du gap titre/label */
  #sphere-container { flex: 1; height: auto; margin-top: 0.4rem; margin-bottom: 0; }
  .hero-svc-label {
    display: block;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .06em; color: var(--red);
    text-transform: uppercase;
    padding: .8rem 0;
    flex-shrink: 0;
    position: relative; z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: auto;
  }
  .services-header { display: none; }
}

/* ─── SERVICES ─── */
#services {
  min-height: 100svh;
  padding: 5rem 0;
  display: flex;
  align-items: center;
}
#services .container { width: 100%; }
.services-header { text-align: center; margin-bottom: 3rem; }
.services-header h2 {
  font-family: 'Oswald', sans-serif; font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600; letter-spacing: .06em; color: var(--red);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: none;
  border: none;
}
.svc-card {
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-top: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  padding: calc(2rem + 18px + 1.4rem) 1.8rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s, border-color .3s, transform .3s;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
/* Image de fond */
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .95;
  filter: brightness(1.22);
  z-index: 0;
  transition: transform .4s ease, opacity .3s ease;
}
/* Scrim gradient pour lisibilité du texte */
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.52) 50%,
    rgba(0,0,0,.78) 100%
  );
  z-index: 1;
}
.svc-card > * { position: relative; z-index: 2; }
.svc-aerien::before    { background-image: var(--svc-bg-aerien, url('../../image_card/transport_aerien.jpg')); }
.svc-routier::before   { background-image: var(--svc-bg-routier, url('../../image_card/transport_routier.jpg')); background-position: center 35%; }
.svc-maritime::before  { background-image: var(--svc-bg-maritime, url('../../image_card/Transport_maritime.jpg')); background-position: center 80%; }
.svc-logistique::before{ background-image: var(--svc-bg-logistique, url('../../image_card/Logistique_national.jpg')); }
.svc-decors::before    { background-image: var(--svc-bg-decors, url('../../image_card/decor_costumes.jpg')); }
.svc-douanes::before   { background-image: var(--svc-bg-douanes, url('../../image_card/douanes_et_conseil.jpg')); }
.svc-card:hover {
  box-shadow: 0 14px 44px rgba(0,0,0,.7);
  border-color: rgba(255,255,255,.22);
  border-top-color: rgba(255,255,255,.45);
  transform: scale(1.025);
}
.svc-card:hover::before {
  transform: scale(1.06);
  opacity: 1;
  filter: brightness(1.27);
}
.svc-title {
  font-size: .86rem; font-weight: 500;
  color: #fff; margin-bottom: .5rem;
  letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.svc-desc {
  font-size: .76rem; color: rgba(255,255,255,.82); line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
@media (max-width: 700px) {
  #services, #presence, footer { border-top: none; }
  .svc-card:hover { transform: none; }
  .svc-card.centered {
    border-color: rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.38);
    transform: scale(1.025);
  }
}
@media (max-width: 767px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.15rem;
    row-gap: 1.61rem;
  }
  .svc-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    padding: 1.4rem;
    align-items: start;
  }
  .svc-icon {
    grid-row: 1 / 3;
    align-self: center;
    margin-bottom: 0;
    opacity: .5;
  }
  .svc-icon svg { width: 28px; height: 28px; }
  .svc-title { grid-column: 2; grid-row: 1; }
  .svc-desc  { grid-column: 2; grid-row: 2; }

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

/* ─── CONTACT CARD MOBILE ─── */
.contact-card-mobile { display: none; }

/* ─── MODAL CONTACT ─── */
#contactModal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center;
}
#contactModal.open { display: flex; }
.cm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cm-card {
  position: relative; z-index: 1;
  width: min(88vw, 340px);
  background: linear-gradient(160deg, rgba(18,18,18,.95) 0%, rgba(8,8,8,.98) 100%);
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  overflow: hidden;
  animation: cm-in .22s ease;
}
@keyframes cm-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.cm-close {
  position: absolute; top: .7rem; right: .9rem;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.45); font-size: .85rem;
  line-height: 1; padding: .2rem .4rem;
  transition: color .2s;
}
.cm-close:hover { color: #fff; }
.cm-title {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  padding: 1rem 1.4rem .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cm-body .nav-contact-row {
  flex-direction: column; gap: .3rem; align-items: flex-start;
  padding: .85rem 1.4rem;
}
.cm-body .nav-contact-row + .nav-contact-row {
  border-top: 1px solid rgba(255,255,255,.07);
}
.cm-body .nav-contact-row > span {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--red);
}
.cm-body .nav-contact-links { flex-direction: column; gap: .25rem; margin-left: 0; }
.cm-body .nav-contact-links a {
  font-size: .82rem; color: rgba(255,255,255,.72);
  text-decoration: none; letter-spacing: .01em;
  display: flex; align-items: center; gap: .4rem;
}
.cm-body .nav-contact-links a:active { color: var(--red); }
@media (max-width: 700px) {
  .cm-body .contact-icon-mail {
    transform: translateY(0.45px);
  }
}
@media (max-width: 767px) {
  .contact-card-mobile {
    display: block;
    width: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,.82) 0%, rgba(8,8,8,.92) 100%);
    border: 1px solid rgba(255,255,255,.25);
    border-top: 1px solid rgba(255,255,255,.45);
    border-radius: 0;
    margin-bottom: 1.2rem;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
  }
  .ccm-header {
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem 1.4rem;
    cursor: pointer;
    user-select: none;
  }
  .ccm-icon svg {
    width: 20px; height: 20px;
    stroke: rgba(255,255,255,.6); fill: none;
    stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    display: block;
  }
  .ccm-label {
    font-size: .78rem; font-weight: 400;
    letter-spacing: .04em; color: rgba(255,255,255,.9);
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    flex: 1;
  }
  .ccm-toggle {
    font-size: .9rem; color: rgba(255,255,255,.55);
    transition: transform .3s;
    line-height: 1;
  }
  .contact-card-mobile.open .ccm-toggle { transform: rotate(45deg); color: var(--red); }
  .ccm-body {
    overflow: hidden; max-height: 0;
    transition: max-height .35s ease, opacity .3s;
    opacity: 0;
    border-top: 0px solid rgba(255,255,255,.12);
  }
  .contact-card-mobile.open .ccm-body {
    max-height: 320px; opacity: 1;
    border-top-width: 1px;
  }
  .ccm-body a {
    display: block;
    padding: .65rem 1.2rem;
    font-size: .85rem; font-weight: 500;
    color: var(--text); text-decoration: none;
    letter-spacing: .04em;
  }
  .ccm-body a + a { border-top: 1px solid rgba(255,255,255,.08); }
  .ccm-body a:active { color: var(--red); }
  .ccm-name {
    display: inline-block;
    font-size: .65rem; font-weight: 600;
    letter-spacing: .08em; color: var(--muted);
    text-transform: uppercase;
    margin-right: .7rem;
  }
  /* Contact row dans la card mobile : layout colonne, aligné à gauche */
  .ccm-body .nav-contact-row {
    flex-direction: column; gap: .35rem; align-items: flex-start;
  }
  .ccm-body .nav-contact-row > span {
    font-size: .6rem;
  }
  .ccm-body .nav-contact-links {
    align-items: flex-start; margin-left: 0; width: 100%;
  }
  .ccm-body .nav-contact-links a {
    font-size: .78rem; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 100%;
  }
}

/* ─── PRESENCE MONDIALE ─── */
#presence {
  padding: 5rem 0;
  text-align: center;
  position: relative; overflow: hidden;
}
@media (min-width: 768px) {
  #services {
    min-height: 92svh;
    padding-bottom: 3.5rem;
  }
  #presence {
    padding-top: 4rem;
  }
}
.presence-content { position: relative; z-index: 2; text-align: center; }
.presence-title {
  font-family: 'Oswald', sans-serif; font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600; letter-spacing: .06em; color: var(--red);
  margin-bottom: .9rem;
}
.presence-sub {
  font-size: .88rem; color: var(--muted2); max-width: 500px;
  margin: 0 auto 3rem; line-height: 1.75;
}

/* ─── FOOTER ─── */
footer {
  padding: 2rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.footer-copy {
  font-size: .75rem; color: var(--muted); letter-spacing: .04em;
}
.footer-link {
  font-family: 'Oswald', sans-serif;
  font-size: .82rem; font-weight: 300; letter-spacing: .06em;
  color: var(--muted2); text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: var(--text); }
@media (max-width: 500px) {
  .footer-inner { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 700px) {
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .nav-login-desktop { display: none; }
  .nav-burger { display: flex; margin-left: 0; }
  .nav-phone-btn { order: 6; margin-left: 0; margin-right: 6px; }
  .nav-phone-label { display: none; }
  .nav-phone-trigger-icon { display: block; }
  .nav-burger    { order: 7; margin-left: .3rem; }
  .svc-grid {
    grid-template-columns: 1fr !important;
    margin-top: .55rem;
  }
  .nav-phone-dropdown { right: auto; left: 0; }
}

/* ─── FINAL MOBILE HEIGHT OVERRIDES (last to win cascade) ─── */
@media (max-width: 767px) {
  #hero-title,
  #hero {
    width: 100%;
    height: var(--mobile-vh);
    min-height: var(--mobile-vh);
    max-width: none;
  }

  #services {
    min-height: var(--mobile-vh);
  }

  body.page-lock {
    height: var(--mobile-vh);
  }
}
