:root {
  color-scheme: dark;
  --page: #061b1b;
  --deep: #031817;
  --cream: #f5efe4;
  --soft: #bdceca;
  --gold: #e6bb78;
  --line: rgba(160, 203, 186, .19);
  --heading: Montserrat, "Century Gothic", "Avenir Next", Arial, sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --rise: 22px;
  --header-h: 94px;
  font-family: var(--body);
  background: var(--page);
  color: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #6fe8eb; outline-offset: 5px; }
::selection { color: var(--deep); background: var(--gold); }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 11vw)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .pillar-icon, .service-icon, .case-icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 18px; height: 18px; flex: none; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-165%); background: var(--cream); color: var(--deep); padding: 12px; z-index: 10; }
.skip-link:focus { transform: none; }
.header { background: #031a19; position: sticky; top: 0; z-index: 5; transition: box-shadow .4s var(--ease-soft); }
.header.is-scrolled { box-shadow: 0 14px 34px -22px #000; }
.header-inner { display: flex; align-items: center; gap: 52px; min-height: 94px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; }
.brand img { width: 154px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 43px); margin-left: auto; }
.nav a { position: relative; font-weight: 560; font-size: 14px; padding-block: 10px; }
.nav a::after { content: ""; position: absolute; height: 2px; background: var(--gold); width: 17px; left: 0; bottom: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:is(:hover,[aria-current])::after { transform: scaleX(1); }
.nav [aria-current] { color: var(--gold); }
.contact-mobile, .menu-toggle, .mobile-title, .mobile-benefits, .mobile-bot, .mobile-cta { display: none; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 0 24px; min-height: 50px; border-radius: 100px; line-height: 1.25; font-size: 14px; font-weight: 680; text-align: center; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(122deg, #fae0a8 2%, #eac183 45%, #d9a75e); color: #11211d; border-color: #eacb95; }
.btn-gold:hover { box-shadow: 0 4px 22px #e2b16d36; }
.btn-outline { border-color: #ae905e; color: var(--cream); background: #062421b8; }
.btn-outline:hover { background: #133a34; }
.header-contact { min-height: 39px; padding-inline: 22px; gap: 13px; }
.header-contact .icon { width: 14px; height: 14px; }
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 80% 43%, #073a35 0%, #032522 38%, transparent 68%), linear-gradient(130deg,#031a19,#042621 82%,#062523); }
.hero-inner { display: flex; align-items: center; position: relative; min-height: clamp(490px, 40.8vw, 630px); padding-block: 48px 89px; }
.hero-copy { width: 62%; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--gold); font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: .195em; text-transform: uppercase; margin: 0 0 24px; }
.eyebrow > span { width: 31px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--heading); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(45px, 5.05vw, 76px); letter-spacing: -.055em; line-height: 1.07; font-weight: 700; }
h1 em, .gold { color: var(--gold); font-style: normal; }
h1 em { background: linear-gradient(150deg, #ffe6b6, #d7a354); background-clip: text; color: transparent; }
.hero-description { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.65; max-width: 495px; margin: 23px 0 0; color: #d1dbd5; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-art { position: absolute; z-index: 0; bottom: 9px; top: 0; width: 45%; right: -1.4%; display: flex; align-items: flex-end; justify-content: center; mix-blend-mode: lighten; }
.hero-art img { width: 100%; height: 99%; object-fit: contain; object-position: center bottom; mask-image: linear-gradient(to right, transparent,black 9%,black 91%,transparent), linear-gradient(to bottom,transparent,black 3%,black 84%,transparent); mask-composite: intersect; }
.wave { position: absolute; z-index: 1; width: 100%; height: clamp(92px, 8.7vw, 137px); left: 0; bottom: -1px; pointer-events: none; }
.pillars { position: relative; background: linear-gradient(90deg,#021b1a,#062824 52%,#031c1b); border-block: 1px solid var(--line); }
.pillar-list { padding: 26px 0; margin-block: 0; display: grid; grid-template-columns: repeat(3,1fr); list-style: none; }
.pillar-list li { display: flex; align-items: center; justify-content: center; gap: 18px; }
.pillar-list li + li { border-left: 1px solid #46716a; }
.pillar-icon { width: 35px; height: 35px; color: var(--gold); stroke-width: 1.45; }
.pillar-list strong, .pillar-list span { display: block; }
.pillar-list strong { font: 650 17px/1.3 var(--heading); }
.pillar-list span { color: var(--soft); font-size: 13px; margin-top: 4px; }
.section { padding-block: clamp(66px, 6.4vw, 100px); }
.section .eyebrow { margin-bottom: 16px; }
h2 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.1; letter-spacing: -.05em; }
h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 29px; margin-top: 37px; }
.service { border-top: 1px solid #48665c; padding: 24px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.service-icon { width: 34px; height: 34px; color: var(--gold); margin: 2px 0 20px; }
.service p, .case-panel p, .agency-copy p, .contact-intro { font-size: 16px; color: var(--soft); line-height: 1.7; }
.service p { margin: 12px 0 20px; max-width: 350px; }
.text-link, .email-link { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 14px; font-weight: 600; width: fit-content; }
.text-link:hover, .email-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service .text-link { margin-top: auto; }
.cases-section, .contact-section { background: #052522; border-block: 1px solid var(--line); }
.cases-layout, .agency, .contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,8vw,120px); }
.case-choices { display: grid; margin-top: 32px; }
.case-choices a { display: flex; align-items: center; justify-content: space-between; padding: 17px 3px; border-bottom: 1px solid var(--line); color: var(--soft); font-weight: 550; }
.case-choices a[aria-current], .case-choices a:hover { color: var(--gold); border-color: #a68e64; }
.case-panel { padding: 29px clamp(20px,3vw,45px); background: #071e1d; border: 1px solid #31534a; border-radius: 16px; }
.case-panel + .case-panel { margin-top: 14px; }
.case-panel[hidden] + .case-panel { margin-top: 0; }
.case-icon { color: var(--gold); width: 34px; height: 34px; margin-bottom: 14px; }
.case-panel p { margin: 12px 0 22px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; font-size: 14px; padding: 0 0 15px 24px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; top: .45em; left: 0; width: 6px; height: 6px; border: 1px solid #63d8d0; border-radius: 50%; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: calc(.45em + 8px); bottom: -.45em; left: 3px; width: 1px; background: #315b51; }
.agency { align-items: center; }
.agency-copy p { margin: 0; }
.agency-copy p:first-child { color: var(--cream); font: 550 clamp(20px, 1.8vw, 26px)/1.45 var(--heading); margin-bottom: 15px; letter-spacing: -.025em; }
.contact-intro { max-width: 345px; margin: 18px 0; }
.contact-form { display: grid; align-content: center; gap: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
label { color: #f0eddf; font: 550 14px var(--body); display: grid; gap: 8px; }
input, textarea { padding: 13px 14px; color: var(--cream); background: #041c1c; border: 1px solid #4c6d63; border-radius: 8px; width: 100%; min-width: 0; font-weight: 400; }
textarea { resize: vertical; min-height: 94px; }
::placeholder { color: #9ab0a9; }
.form-bottom { display: flex; align-items: center; gap: 16px; }
.form-bottom small, .form-status { color: var(--soft); font-size: 13px; line-height: 1.5; }
.form-status { margin: 0; }
.form-status:empty { display: none; }
.footer-inner { min-height: 95px; display: flex; align-items: center; gap: 24px; }
.footer-inner .brand img { width: 112px; }
.footer-inner p { color: var(--soft); font-size: 13px; }
.footer-inner .text-link { margin-left: auto; }
.up { transform: rotate(-90deg); }
@media (max-width: 980px) {
  :root { --header-h: 80px; }
  .wrap { width: 90%; }
  .header-inner { gap: 27px; min-height: 80px; }
  .brand img { width: 136px; }
  .hero-inner { min-height: 465px; padding-top: 35px; }
  .hero-description { max-width: 95%; }
  .actions { gap: 10px; }
  .actions .btn { padding-inline: 17px; font-size: 13px; min-height: 46px; }
  .services-grid { gap: 23px; }
  .form-bottom { flex-wrap: wrap; }
}
@media (max-width: 730px) {
  :root { --header-h: 78px; --rise: 16px; }
  .wrap { width: min(88%,560px); }
  .header-inner { min-height: 78px; justify-content: space-between; }
  .header-contact { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #052521; padding: 8px 6% 18px; border-bottom: 1px solid #41665b; }
  .nav.open { display: grid; gap: 1px; }
  .nav a { padding: 12px 0; width: fit-content; }
  .nav .contact-mobile { display: inline; }
  .menu-toggle { display: inline-flex; border: 1px solid transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; color: var(--cream); }
  .menu-toggle span { width: 23px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { min-height: auto; padding-block: 35px 96px; }
  .hero-copy { width: 100%; }
  .hero-art, .desktop-title, .desktop-cta, .hero-description, .hero .eyebrow, .hero .btn-outline { display: none; }
  .mobile-title, .mobile-cta { display: inline; }
  .hero { background: radial-gradient(ellipse at 51% 25%,#06433d 0%,#032622 40%,#031b1a 76%); }
  .mobile-bot { display: grid; place-items: center; width: 84px; height: 75px; border: 1px solid #4adeeb; box-shadow: 0 0 22px #13c4d12e,inset 0 0 15px #17d9ef24; background: linear-gradient(145deg,#125752,#042422 75%); border-radius: 18px; margin: 0 auto 24px; color: #9cf9ff; }
  .mobile-bot svg { width: 49px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 5px #00c6ff); }
  h1 { font-size: clamp(39px,8.8vw,54px); max-width: 480px; line-height: 1.04; }
  .mobile-benefits { display: grid; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; color: #dde8e1; font-size: 16px; }
  .mobile-benefits li { display: flex; align-items: center; gap: 10px; }
  .mobile-benefits .icon { border-radius: 50%; padding: 2px; background: #0a4038; color: #9ee9d6; stroke-width: 2; }
  .actions { margin-top: 25px; }
  .actions .btn { min-height: 47px; padding-inline: 24px; font-size: 15px; }
  .wave { height: 78px; }
  .pillar-list { width: 95%; padding-block: 19px; }
  .pillar-list li { flex-direction: column; gap: 7px; text-align: center; }
  .pillar-list strong { font-size: clamp(11px,2.8vw,15px); }
  .pillar-list span { display: none; }
  .pillar-icon { width: 25px; height: 25px; }
  .section { padding-block: 55px; }
  .services-grid, .cases-layout, .agency, .contact-layout { grid-template-columns: 1fr; gap: 27px; }
  .services-grid { margin-top: 27px; }
  .service { position: relative; padding-left: 53px; }
  .service-icon { position: absolute; left: 0; top: 22px; }
  .service p { max-width: none; margin-bottom: 13px; }
  .case-choices { margin-top: 15px; }
  .footer-inner { flex-wrap: wrap; padding-block: 20px; gap: 10px; }
  .footer-inner p { order: 3; width: 100%; margin: 0; font-size: 12px; }
}
@media (max-width: 430px) {
  .form-row { grid-template-columns: 1fr; }
  .form-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ==========================================================================
   Animations : couche de mouvement ajoutée sans toucher à la DA.
   - Tout le mouvement est déclaré sous « prefers-reduced-motion: no-preference ».
   - Seulement opacity / transform / translate / scale, plus de courts tracés SVG :
     aucun décalage de mise en page (CLS nul).
   - Le h1 démarre sans délai et l'image du hero n'est jamais masquée (LCP préservé).
   - Rien n'est caché sans JavaScript : site.js pose la classe .reveal, et seulement
     sur les blocs encore sous la ligne de flottaison au chargement.
   ========================================================================== */
@keyframes md-rise { from { opacity: 0; translate: 0 var(--rise); } }
@keyframes md-fade { from { opacity: 0; } }
@keyframes md-line { from { transform: scaleX(0); } }
@keyframes md-draw { from { stroke-dasharray: 100; stroke-dashoffset: 101; } to { stroke-dasharray: 100; stroke-dashoffset: 0; } }
@keyframes md-settle { from { scale: 1.06; } }
@keyframes md-pop { from { opacity: 0; scale: .86; } }
@keyframes md-float { 50% { translate: 0 -5px; } }
@keyframes md-blink { 0%, 92%, 100% { transform: none; } 96% { transform: scaleY(.15); } }
@keyframes md-text-sheen { 0% { background-position: 150% 0, 0 0; } 28%, 100% { background-position: -50% 0, 0 0; } }
@keyframes md-sheen-in { from { translate: -101% 0; } to { translate: 101% 0; } }
@keyframes md-sheen-hover { from { translate: -101% 0; } to { translate: 101% 0; } }
@keyframes md-step { from { opacity: 0; translate: -8px 0; } }
@keyframes md-drop { from { opacity: 0; translate: 0 -8px; } }
@keyframes md-progress { to { transform: scaleX(1); } }
@keyframes md-parallax { to { translate: 0 56px; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero : entrée au chargement, en CSS seul. */
  .hero-copy > * { animation: md-rise .8s var(--ease-out) backwards; }
  .hero-copy > h1 { animation-duration: .95s; }
  .hero-description, .mobile-benefits { animation-delay: .12s; }
  .hero-copy > .actions { animation-delay: .22s; }
  .hero .eyebrow > span { transform-origin: left; animation: md-line .9s var(--ease-out) .15s backwards; }
  .hero-art img { transform-origin: 50% 100%; animation: md-settle 1.8s var(--ease-out) backwards; }
  .mobile-bot { animation: md-pop .7s var(--ease-out) backwards, md-float 5s ease-in-out .9s infinite; }
  .mobile-bot circle:nth-of-type(n+2) { transform-box: fill-box; transform-origin: center; animation: md-blink 6s ease-in-out 2.5s infinite; }
  h1 em { background-image: linear-gradient(105deg, transparent 42%, #fff7e4f2 50%, transparent 58%), linear-gradient(150deg, #ffe6b6, #d7a354); background-size: 250% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat; animation: md-text-sheen 8s var(--ease-soft) 1.2s infinite; }
  .hero.is-paused :is(h1 em, .mobile-bot, .mobile-bot circle) { animation-play-state: paused; }

  /* Piliers : suite de la chorégraphie du hero, icônes tracées au trait. */
  .pillar-list li { animation: md-rise .8s var(--ease-out) .3s backwards; }
  .pillar-list li:nth-child(2) { animation-delay: .38s; }
  .pillar-list li:nth-child(3) { animation-delay: .46s; }
  .pillar-icon { animation: md-draw 1.5s var(--ease-soft) .45s backwards; }
  .pillar-list li:nth-child(2) .pillar-icon { animation-delay: .53s; }
  .pillar-list li:nth-child(3) .pillar-icon { animation-delay: .61s; }

  /* Révélation au défilement (classes posées par site.js). */
  .reveal:not(.is-in) { opacity: 0; translate: 0 var(--rise); }
  .reveal.is-in { animation: md-rise .9s var(--ease-out) var(--reveal-delay, 0s) backwards; }
  .eyebrow.reveal > span { transform-origin: left; }
  .eyebrow.reveal.is-in > span { animation: md-line .9s var(--ease-out) calc(var(--reveal-delay, 0s) + .2s) backwards; }
  .service.reveal.is-in .service-icon { animation: md-draw 1.4s var(--ease-soft) calc(var(--reveal-delay, 0s) + .25s) backwards; }

  /* Cas d'usage : le panneau affiché entre en scène et ses étapes s'enchaînent. */
  .case-panel:not([hidden]) { animation: md-rise .6s var(--ease-out) backwards; }
  .case-panel:not([hidden]) .case-icon { animation: md-draw 1.2s var(--ease-soft) calc(var(--reveal-delay, 0s) + .1s) backwards; }
  .case-panel:not([hidden]) .steps li { animation: md-step .5s var(--ease-out) calc(var(--reveal-delay, 0s) + .15s + var(--step, 0) * .1s) backwards; }
  .steps li:nth-child(2) { --step: 1; }
  .steps li:nth-child(3) { --step: 2; }
  .case-panels.reveal:not(.is-in) :is(.case-icon, .steps li) { animation-name: none; }
  .case-choices a, .nav a { transition: color .3s var(--ease-soft), border-color .3s var(--ease-soft); }
  .case-choices .icon { transition: translate .35s var(--ease-out); }
  .case-choices a:is(:hover, [aria-current]) .icon { translate: 4px 0; }

  /* Boutons or : un reflet après l'entrée du hero, puis à chaque survol. */
  .btn-gold { position: relative; overflow: hidden; }
  .btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #fff8e68c 50%, transparent 70%); translate: -101% 0; pointer-events: none; }
  .hero .btn-gold::after { animation: md-sheen-in 1.2s var(--ease-soft) 1.3s; }
}

@media (max-width: 730px) and (prefers-reduced-motion: no-preference) {
  .nav.open { animation: md-drop .3s var(--ease-out) backwards; }
  .nav.open a { animation: md-fade .35s var(--ease-out) backwards; }
  .nav.open a:nth-child(2) { animation-delay: .04s; }
  .nav.open a:nth-child(3) { animation-delay: .08s; }
  .nav.open a:nth-child(4) { animation-delay: .12s; }
  .nav.open a:nth-child(5) { animation-delay: .16s; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-gold:hover::after { animation: md-sheen-hover .9s var(--ease-soft); }
  .hero .btn-gold:hover::after { animation: md-sheen-in 1.2s var(--ease-soft) 1.3s, md-sheen-hover .9s var(--ease-soft); }
  .btn .icon, .text-link .icon { transition: translate .35s var(--ease-out); }
  .btn:hover .icon, .text-link:hover .icon { translate: 4px 0; }
  .header-contact:hover .icon { translate: 2px -2px; }
  .text-link:hover .icon.up { translate: 0 -3px; }
  .service { position: relative; }
  .service::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
  .service:is(:hover, :focus-within)::before { transform: none; }
  .service-icon { transition: translate .45s var(--ease-out), filter .45s var(--ease-soft); }
  .service:hover .service-icon { translate: 0 -3px; filter: drop-shadow(0 6px 12px #e6bb7838); }
}

/* Défilement (navigateurs compatibles, sans JS) : jauge or sous l'en-tête, léger parallaxe de l'arche. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .header-inner { position: relative; }
    .header-inner::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, #d9a75e, #fae0a8); transform: scaleX(0); transform-origin: left; animation: md-progress linear both; animation-timeline: scroll(root); }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 731px) {
    .hero-art { animation: md-parallax linear both; animation-timeline: scroll(root); animation-range: 0 720px; }
  }
}

@media print {
  .reveal { opacity: 1 !important; translate: none !important; animation: none !important; }
}

/* ==========================================================================
   Intro filmée (Casablanca, LED, emblème) + accueil posé sur la dernière image du film.
   - L'intro n'existe que si le script du <head> a posé .has-intro (JS actif, première visite
     de la session, pas de « réduire les animations » ni d'économie de données, pas d'ancre).
   - Le h1 et tout le texte restent dans le HTML : le film n'est qu'un décor.
   - Image de fond dimensionnée (width/height) et en object-fit : aucun décalage de mise en page.
   ========================================================================== */
.hero-inner { min-height: clamp(560px, 46vw, 760px); position: static; }   /* the film image spans the full hero width */
.hero-film { position: absolute; inset: 0; z-index: -1; }
.hero-film img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 58%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, #031a19f5 0%, #031a19d9 30%, #031a1940 58%, #031a1900 72%),
              linear-gradient(0deg, #031a19 0%, #031a1900 16%); }
.brand-line { font-family: var(--heading); font-size: clamp(14px, 1.1vw, 17px); font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--cream); margin: 0 0 16px; }
.brand-line b { color: var(--gold); font-weight: 600; }
.credits { display: block; margin-top: 6px; font-size: 11px; color: #8fa7a1; }

.intro { display: none; }
.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 100; background: #02100f;
  transition: opacity .9s var(--ease-soft), visibility 0s linear .9s; }
.has-intro:not(.intro-done) { overflow: hidden; }
.intro-poster, .intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.intro-video { opacity: 0; transition: opacity .35s var(--ease-soft); }
.intro.is-playing .intro-video { opacity: 1; }
.intro-skip { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); padding: 10px 20px; border-radius: 100px;
  border: 1px solid #f5efe466; background: #02100f73; color: var(--cream); font: 600 13px var(--body); letter-spacing: .02em; cursor: pointer;
  backdrop-filter: blur(6px); transition: border-color .2s, color .2s; }
.intro-skip:hover, .intro-skip:focus-visible { border-color: var(--gold); color: var(--gold); }
.intro-done .intro { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* Pendant le film, le texte de l'accueil attend ; il se lève en cascade quand le film rend la main. */
  .has-intro:not(.intro-done) .hero-copy > * { animation: none; opacity: 0; }
  .has-intro.intro-done .hero-copy > * { animation: md-rise .9s var(--ease-out) backwards; }
  .has-intro.intro-done .hero-copy > .eyebrow { animation-delay: .1s; }
  .has-intro.intro-done .hero-copy > h1 { animation-delay: .18s; animation-duration: 1s; }
  .has-intro.intro-done .hero-copy > .hero-description, .has-intro.intro-done .hero-copy > .mobile-benefits { animation-delay: .28s; }
  .has-intro.intro-done .hero-copy > .actions { animation-delay: .38s; }
  .hero-film img { animation: md-settle 2.4s var(--ease-out) backwards; }
  .has-intro .hero-film img { animation: none; }
}

@media (max-width: 730px) {
  .hero { background: #031a19; }
  .hero-film img { object-position: 80% 50%; }
  .hero::before { background: linear-gradient(180deg, #031a19f2 0%, #031a19bf 45%, #031a1959 75%, #031a19 100%); }
  .brand-line { letter-spacing: .24em; margin-bottom: 12px; }
}
@media print { .intro { display: none !important; } }

/* ==========================================================================
   « La ville connectée » : les lignes LED du film deviennent le fil de la page.
   État final par défaut (sans JS, robots, « réduire les animations ») ; site.js pose .lit-ready
   puis .is-lit sur chaque bloc [data-lit] quand il entre à l'écran : l'allumage se joue une fois.
   Seulement transform / opacity / tracé SVG ; une seule courbe signature (--ease-out).
   ========================================================================== */
@keyframes md-wire { from { transform: scaleX(0); } }
@keyframes md-wire-y { from { transform: scaleY(0); } }
@keyframes md-ignite { from { opacity: .25; } }
@keyframes md-led { from { background: transparent; box-shadow: none; } }
@keyframes md-stroke { from { stroke-dashoffset: 1; } }
@keyframes md-run { 0% { opacity: 0; transform: translateX(-55%); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(55%); } }

/* 1. Piliers : un fil doré traverse le bandeau et allume les icônes une à une */
.pillars::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold) 14%, #7ef3f5 50%, var(--gold) 86%, transparent); transform-origin: left; }
.pillar-icon { filter: drop-shadow(0 0 6px #e6bb7866); }

/* 2. Services : les cartes sont les nœuds d'un même circuit */
.services-grid { position: relative; }
.services-grid::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), #e6bb7859 70%, transparent); transform-origin: left; }
.service { position: relative; }
.service::before { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 2px #e6bb7880; }
.service::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #7ef3f5, transparent); }

/* 3. Cas d'usage : les étapes s'allument en chaîne */
.steps li:nth-child(2) { --step: 1; }
.steps li:nth-child(3) { --step: 2; }
.steps li::before { background: #63d8d0; box-shadow: 0 0 8px 1px #63d8d099; }
.steps li:not(:last-child)::after { background: linear-gradient(#63d8d0, #315b51); transform-origin: top; }

/* 4. À propos : le vrai plan de Casablanca en fond, des lumières y circulent */
.agency-section { position: relative; overflow: hidden; isolation: isolate; }
.city-map { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 62% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 80% at 62% 50%, #000 25%, transparent 78%); }
.agency-art { margin: 28px 0 0; max-width: 300px; mix-blend-mode: lighten; }
.agency-art img { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }

/* 5. Contact : l'emblème se dessine en lumière, et s'illumine à l'envoi */
.contact-emblem { display: block; width: 108px; height: 108px; margin-top: 30px; fill: none; overflow: visible; }
.contact-emblem path { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; filter: drop-shadow(0 0 4px #e6bb7880); transition: filter .6s var(--ease-out), stroke-width .6s var(--ease-out); }
.contact-emblem .swoosh { stroke: #7ef3f5; filter: drop-shadow(0 0 4px #7ef3f580); }
.contact-section.is-sent .contact-emblem path { stroke-width: 3; filter: drop-shadow(0 0 12px #e6bb78); }

@media (prefers-reduced-motion: no-preference) {
  .lit-ready .pillars:not(.is-lit)::before, .lit-ready .services-grid:not(.is-lit)::before { transform: scaleX(0); }
  .lit-ready .pillars:not(.is-lit) .pillar-icon { opacity: .25; }
  .pillars.is-lit::before { animation: md-wire 1.6s var(--ease-out) both; }
  .pillars.is-lit .pillar-icon { animation: md-ignite .7s var(--ease-out) .35s both; }
  .pillars.is-lit li:nth-child(2) .pillar-icon { animation-delay: .75s; }
  .pillars.is-lit li:nth-child(3) .pillar-icon { animation-delay: 1.15s; }

  .lit-ready .services-grid:not(.is-lit) .service::before { opacity: 0; scale: .2; }
  .services-grid.is-lit::before { animation: md-wire 1.4s var(--ease-out) both; }
  .services-grid.is-lit .service::before { animation: md-pop .5s var(--ease-out) .3s both; }
  .services-grid.is-lit .service:nth-child(2)::before { animation-delay: .65s; }
  .services-grid.is-lit .service:nth-child(3)::before { animation-delay: 1s; }

  .case-panel:not([hidden]) .steps li::before { animation: md-led .5s var(--ease-out) calc(.3s + var(--step, 0) * .35s) both; }
  .case-panel:not([hidden]) .steps li:not(:last-child)::after { animation: md-wire-y .4s var(--ease-out) calc(.45s + var(--step, 0) * .35s) both; }

  .lit-ready .agency-section:not(.is-lit) .city-map { opacity: 0; }
  .agency-section.is-lit .city-map { animation: md-fade 2.2s var(--ease-soft) both; }

  .lit-ready .contact-section:not(.is-lit) .contact-emblem path { stroke-dashoffset: 1; }
  .contact-section.is-lit .contact-emblem path { animation: md-stroke 1.4s var(--ease-out) both; }
  .contact-section.is-lit .contact-emblem path:nth-child(2) { animation-delay: .25s; }
  .contact-section.is-lit .contact-emblem path:nth-child(3) { animation-delay: .6s; }
  .contact-section.is-lit .contact-emblem path:nth-child(4) { animation-delay: .9s; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service:hover::after { animation: md-run 1.1s var(--ease-soft); }
}
@media (max-width: 730px) {
  .agency-art { max-width: 220px; }
  .city-map { -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 25%, transparent 80%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 25%, transparent 80%); }
}


/* ==========================================================================
   Nour, le guide 3D (nour.js) : un calque transparent au-dessus de la page,
   sous l'en-tête ; la bulle suit sa tête. Rien de tout cela avec « réduire les animations ».
   ========================================================================== */
.nour-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease-soft); }
.nour-canvas.on { opacity: 1; }
/* phones: Nour stays in the bottom-right corner (he speaks at each section), a tap plays his line again */
.nour-dock { display: none; }
.nour-dock.on { display: block; position: fixed; right: 0; bottom: 0; width: 92px; height: 112px; z-index: 5; padding: 0; border: 0; background: transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nour-bubble { position: fixed; left: 0; top: 0; z-index: 4; max-width: min(330px, 72vw); padding: 14px 17px;
  border-radius: 18px 18px 18px 5px; background: #062b28eb; border: 1px solid #2fb9c680;
  box-shadow: 0 0 28px #13c4d12e, inset 0 0 18px #17d9ef12; color: #e8efe9; pointer-events: none;
  font: 600 15px/1.5 var(--heading, Montserrat), Inter, sans-serif; opacity: 0; transition: opacity .3s; }
.nour-bubble.from-right { border-radius: 18px 18px 5px 18px; }
.nour-bubble.on { opacity: 1; }
.nour-bubble b { color: var(--gold); font-weight: 700; }
.nour-bubble span { display: inline; opacity: 0; filter: blur(4px); }
.nour-bubble.on span { animation: nour-word .35s var(--ease-out, ease-out) forwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes nour-word { to { opacity: 1; filter: none; } }
@media (max-width: 730px) { .nour-bubble { font-size: 14px; padding: 12px 14px; border-radius: 16px 16px 5px 16px; } }
@media (prefers-reduced-motion: reduce) { .nour-canvas, .nour-bubble { display: none; } }
.nour-bubble.above { border-radius: 18px 18px 5px 18px; max-width: min(270px, 72vw); }
.nour-bubble.above:not(.from-right) { border-radius: 18px 18px 18px 5px; }

/* Nour sans WebGL (nour.js › fallback2D) */
.nour-2d { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .6s; will-change: transform; }
.nour-2d.on { opacity: 1; }
.nour-2d img { display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 10px #5fe6f555) drop-shadow(0 0 2px #ffe2c0aa); animation: nour-float 3.4s ease-in-out infinite alternate; }
.nour-2d.born img { animation: nour-born 1.6s var(--ease-out, ease-out) both, nour-float 3.4s 1.6s ease-in-out infinite alternate; }
.nour-2d.dash img { animation: nour-dash .6s ease-out, nour-float 3.4s .6s ease-in-out infinite alternate; }
@keyframes nour-float { from { transform: translateY(0); } to { transform: translateY(-4%); } }
@keyframes nour-born { 0% { transform: scale(.05); filter: brightness(6) blur(6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; } }
@keyframes nour-dash { 0% { filter: brightness(2.2) blur(3px); transform: scale(.92); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .nour-2d { display: none; } }

/* phones: the same promise as on a computer (Nour, the free audit); Nour himself replaces the old robot icon */
@media (max-width: 730px) {
  .mobile-title, .mobile-cta, .mobile-bot, .mobile-benefits { display: none; }
  .desktop-title, .desktop-cta { display: inline; }
  .hero-description { display: block; font-size: 16px; }
  .hero h1 { font-size: clamp(36px, 10vw, 50px); }
}

/* the sound button (audio.js): browsers allow sound only after a click, so it invites one; then it mutes / unmutes */
.snd { position: fixed; right: 24px; bottom: 22px; z-index: 7; display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px;
  padding: 0 11px; border-radius: 99px; border: 1px solid #ffffff38; background: #031817b8; color: var(--cream); cursor: pointer;
  font: 600 12px var(--body); letter-spacing: .06em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .3s, color .3s; }
.snd:hover, .snd:focus-visible { border-color: #ffffffa0; color: #fff; }
.snd svg { width: 18px; height: 18px; flex: none; }
.snd .snd-wave, .snd .snd-x { transition: opacity .3s; }
.snd .snd-wave, .snd[data-state="on"] .snd-x { opacity: 0; }
.snd[data-state="on"] .snd-wave { opacity: 1; }
.snd-txt { display: none; white-space: nowrap; }
.snd[data-state="locked"] .snd-txt { display: inline; }
.snd[data-state="locked"] { animation: snd-call 2.6s ease-in-out infinite; }
@keyframes snd-call { 50% { border-color: #5fe6f5b0; box-shadow: 0 0 0 5px #5fe6f51c, 0 0 20px #5fe6f533; } }
/* in the cinematic: top left, opposite « Passer » and in its style */
.cine .snd { top: clamp(8px, 2.2vh, 26px); bottom: auto; right: auto; left: 20px; z-index: 9; height: 33px; background: transparent; color: #ffffffcc; }
@media (max-width: 730px) { .snd { right: 14px; bottom: 104px; } .cine .snd { left: 14px; } }
@media (prefers-reduced-motion: reduce) { .snd { animation: none; } }

/* computers: a click on Nour and he says his line again (nour.js keeps this button over him) */
.nour-hit { display: none; position: fixed; left: 0; top: 0; z-index: 5; padding: 0; border: 0; background: transparent; cursor: pointer;
  border-radius: 45% 45% 30% 30%; }
.nour-hit.on { display: block; }
.nour-hit:focus-visible { outline: 2px solid #5fe6f5; outline-offset: 4px; }
/* the video is over: the sound button fades away (audio.js removes it) */
.snd.gone { opacity: 0; pointer-events: none; transition: opacity .6s; }
