/* =========================================================
   POLICES
   ========================================================= */

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-0.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-1.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-2.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-3.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-4.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-5.woff") format("woff");
}

/* =========================================================
   BASE
   ========================================================= */

:root {
  --ink: #081229;
  --navy: #16223D;
  --cream: #FFF2E4;
  --amber: #F1B310;
  --orange: #F1B310;
  --section-bg: #FFF2E4;
  --section-fg: #081229;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #665039 var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Montserrat", sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: "Montserrat", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 6px;
}

img {
  vertical-align: middle;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
}

h1,
h2 {
  font-weight: 400;
}

h2 {
  margin: 0;
  font-size: clamp(35px, 4.5vw, 70px);
  line-height: 1.08;
  letter-spacing: -1.8px;
}

em {
  color: var(--amber);
  font-weight: 400;
}

/* Flèches SVG : taille indépendante des styles Elementor. */

svg.arrow-icon {
  display: inline-block;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px;
  vertical-align: middle;
  overflow: visible;
}

/* =========================================================
   HERO ET SCÈNE
   ========================================================= */

#journey {
  height: 520vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.world {
  position: absolute;
  inset: 0;
  transform-origin: 43% 67%;
  will-change: transform;
}

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

.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 43% 67%,
    #ff8e2524,
    transparent 27%
  );
  mix-blend-mode: screen;
  animation: breathe 5s ease-in-out infinite alternate;
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #08122980,
    transparent 65%,
    #020614e0
  );
}

.pc-light {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 45%;
  pointer-events: none;
  background: radial-gradient(
    ellipse,
    #F1B31030 10%,
    #F1B31018 42%,
    transparent 72%
  );
  box-shadow: 0 0 28px 4px #F1B31028;
  mix-blend-mode: screen;
  animation: pc-warmth 4s ease-in-out infinite alternate;
}

.portal,
.portal-noise {
  display: none;
}

/* =========================================================
   TEXTE DU HERO
   ========================================================= */

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 34px 3.6vw;
  opacity: 1;
  will-change: opacity, transform;
}

.hero-copy .headline {
  margin-top: clamp(85px, 15svh, 170px);
}

.hero-copy h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(28px, 3.55vw, 57px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -1.8px;
  text-shadow: 0 2px 28px var(--ink);
}

.hero-description {
  max-width: none;
  margin: 17px 0 0;
  font-size: clamp(12px, 1.03vw, 16px);
  line-height: 1.6;
  white-space: nowrap;
  text-shadow: 0 2px 15px var(--ink);
}

.hero-copy .eyebrow {
  display: none;
}

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-top: auto;
  font-size: 12px;
}

.bottom p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.bottom p span {
  color: #91a3a4;
}

.services {
  display: flex;
  gap: 15px;
  color: #a2acad;
  font-size: 9px;
  letter-spacing: 1.3px;
}

.services i {
  color: #b48448;
}

.text-link {
  margin-left: auto;
  padding: 12px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 12px;
}

.text-link span {
  display: inline-block;
  margin-left: 15px;
  transition: transform 0.4s;
}

.text-link:hover span {
  transform: translate(4px, -4px);
}

.experience-link {
  margin-left: 0;
  white-space: nowrap;
}

.scroll-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  background: none;
  color: #e9e9db;
}

.scroll-cta > span:last-child {
  transition: transform 0.3s;
}

.scroll-cta:hover > span:last-child {
  transform: translateY(6px);
}

.mouse {
  position: relative;
  flex: 0 0 15px;
  width: 15px;
  height: 25px;
  border: 1px solid #799392;
  border-radius: 10px;
}

.mouse::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 1px;
  height: 5px;
  background: var(--amber);
  animation: scroll 1.5s infinite;
}

/* =========================================================
   ÉCRAN DU PC / SECTION INTRODUCTION
   Les dimensions et transformations sont pilotées par app.js.
   Ne pas ajouter de transition CSS sur width ou transform.
   ========================================================= */

.reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: none;
  max-height: none;
  padding: 30px 6vw;
  overflow: hidden;
  isolation: isolate;
  background: var(--section-bg);
  color: var(--section-fg);
  visibility: visible;
  opacity: 1;
  transform-origin: 0 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 5vw;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.about-copy {
  min-width: 0;
}

.section-kicker {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 2px;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 340px);
  padding: 32px;
  border: 1px solid #16223D24;
  border-radius: 32px;
  background: var(--navy);
  box-shadow: 0 18px 50px #0812290c;
  aspect-ratio: 1;
}

.logo-box img {
  display: block;
  width: 100%;
  max-width: 245px;
  height: auto;
  object-fit: contain;
}

.logo-box.about-brand,
.about-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 340px);
  height: auto;
  margin: 16px 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
}

.about-brand img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.about-copy p {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.75;
  opacity: 1;
}

.about-copy strong {
  font-weight: 700;
}

.about-photo {
  width: 100%;
  height: min(68svh, 650px);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Boutons de la section introduction. */

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.quote-trigger {
  padding: 15px 22px;
  border: 1px solid var(--amber);
  border-radius: 40px;
  background: var(--amber);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.25s, background 0.25s;
}

.quote-trigger:hover {
  transform: translateY(-3px);
  background: #ffd15b;
}

.about-explore {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  transition: background 0.25s, transform 0.25s;
}

.about-actions .quote-trigger,
.about-actions .about-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  margin: 0;
  padding: 14px 20px;
  border-radius: 40px;
  font-size: 11px;
  line-height: 1.4;
}

.about-explore span {
  display: inline-flex;
  margin: 0;
  transition: transform 0.35s;
}

.about-explore:hover {
  transform: translateY(-3px);
  background: #16223D0a;
}

.about-explore:hover span {
  transform: translate(3px, 3px);
}

/* =========================================================
   MAIN DEVANT L’ÉCRAN
   Son déplacement et son fondu sont pilotés par app.js.
   ========================================================= */

.laptop-hand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 1672px;
  height: 941px;
  min-width: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  object-fit: fill;
  transform-origin: 0 0;
  will-change: transform, opacity;

  clip-path: path(
    "M 694 718 C 694 711 696 705 701 702 L 704 700 L 704 696 Q 708 692 714 695 L 719 696 Q 721 689 728 691 Q 734 691 741 696 Q 750 698 758 692 Q 767 687 780 682 L 1120 650 L 1200 941 L 680 941 L 680 736 L 704 730 Q 695 726 694 718 Z"
  );
}

/* =========================================================
   GALERIE ANIMÉE
   ========================================================= */

.image-flow {
  position: relative;
  height: 350vh;
  background: var(--section-bg);
  color: var(--section-fg);
}

.flow-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.flow-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 15% 80%,
      var(--navy),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 90% 0%,
      var(--navy),
      transparent 50%
    );
  opacity: 0.7;
}

.flow-images {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 250px;
}

.flow-image {
  position: absolute;
  object-fit: cover;
  opacity: 0;
  backface-visibility: hidden;
  will-change: transform, filter, opacity;
}

.flow-image:nth-child(1) {
  top: 43%;
  left: 35%;
  width: 18rem;
  height: 10rem;
}

.flow-image:nth-child(2) {
  top: 34%;
  left: 31%;
  width: 12rem;
  height: 9rem;
}

.flow-image:nth-child(3) {
  top: 44%;
  left: 38%;
  width: 12rem;
  height: 12rem;
}

.flow-image:nth-child(4) {
  top: 45%;
  right: 32%;
  width: 9rem;
  height: 9rem;
}

.flow-image:nth-child(5) {
  top: 43%;
  right: 32%;
  width: 8rem;
  height: 6rem;
}

.flow-image:nth-child(6) {
  top: 40%;
  right: 35%;
  width: 9rem;
  height: 8rem;
}

.flow-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  pointer-events: none;
}

.flow-center h2 {
  max-width: 1000px;
  margin: 0;
  padding: 0 22px;
  font-size: clamp(26px, 3.9vw, 58px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -1.5px;
  text-align: center;
}

.flow-center h2 span {
  color: var(--amber);
}

/* =========================================================
   DRONE
   ========================================================= */

.transition-drone {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  width: 145px;
  height: 100px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 12px 12px #08122930);
  will-change: transform, opacity;
}

.transition-drone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: drone-hover 2.4s ease-in-out infinite alternate;
}

/* =========================================================
   CURSEUR
   ========================================================= */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: none;
  color: #fff;
  font-size: 17px;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cursor span {
  margin-left: 8px;
  padding: 7px 11px;
  border: 1px solid #ffffff13;
  border-radius: 20px;
  background: #ffffff18;
  font-size: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* =========================================================
   FENÊTRE DU DEVIS
   Le formulaire lui-même conserve son fichier quote.css.
   ========================================================= */

.quote-dialog {
  width: min(940px, calc(100% - 24px));
  height: min(860px, 92svh);
  max-height: 92svh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fff2e426;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 30px 120px #0008;
}

.quote-dialog::backdrop {
  background: #081229b8;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.quote-dialog[open] {
  animation: quote-in 0.32s ease-out;
}

.quote-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.quote-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #08122925;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes breathe {
  to {
    opacity: 0.4;
  }
}

@keyframes pc-warmth {
  from {
    opacity: 0.65;
  }

  to {
    opacity: 1;
  }
}

@keyframes scroll {
  to {
    transform: translateY(7px);
    opacity: 0;
  }
}

@keyframes drone-hover {
  from {
    transform: translateY(-3px) rotate(-2deg);
  }

  to {
    transform: translateY(3px) rotate(2deg);
  }
}

@keyframes quote-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   ÉCRANS BAS — VERSION ORDINATEUR
   ========================================================= */

@media (min-width: 701px) and (max-height: 700px) {
  .about-layout {
    overflow-y: auto;
  }

  .about-brand {
    width: min(100%, 270px);
    margin: 10px 0;
  }

  .about-copy p {
    font-size: 12px;
    line-height: 1.55;
  }

  .about-actions {
    margin-top: 12px;
  }
}

/* =========================================================
   MOBILE — STYLES GÉNÉRAUX
   ========================================================= */

@media (max-width: 700px) {
  .hero-copy {
    padding: 25px 23px;
    padding-bottom: max(25px, env(safe-area-inset-bottom));
  }

  .hero-copy .headline {
    margin-top: clamp(75px, 13svh, 120px);
  }

  .hero-copy h1 {
    font-size: clamp(25px, 6.1vw, 41px);
    line-height: 1.16;
    letter-spacing: -0.8px;
  }

  .hero-description {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.6;
    white-space: normal;
  }

  .desktop-break {
    display: none;
  }

  .bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px 10px;
  }

  .bottom > div {
    display: none;
  }

  .text-link {
    font-size: 10px;
    text-align: right;
  }

  .experience-link {
    max-width: none;
    padding: 0;
  }

  .scroll-cta {
    gap: 8px;
    padding: 0;
    font-size: 9px;
    text-align: left;
  }

  .scroll-cta > span:last-child {
    display: none;
  }

  .reveal {
    padding: 48px 24px 30px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 24px;
  }

  .section-kicker {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .about-brand {
    width: min(100%, 280px);
    margin: 18px 0 26px;
  }

  .about-copy p {
    font-size: 14px;
    line-height: 1.8;
  }

  .about-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .about-actions .quote-trigger,
  .about-actions .about-explore {
    gap: 8px;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 11px;
  }

  .about-photo {
    height: 230px;
    border-radius: 22px;
  }

  .flow-center h2 {
    font-size: 27px;
    letter-spacing: -1px;
  }

  .flow-center h2 br {
    display: none;
  }

  .flow-image:nth-child(1) {
    top: 45%;
    left: 61%;
    width: 7rem;
    height: 4rem;
  }

  .flow-image:nth-child(2) {
    top: 51%;
    left: 18%;
    width: 5rem;
    height: 4rem;
  }

  .flow-image:nth-child(3) {
    top: 38%;
    left: 22%;
    width: 9rem;
    height: 6rem;
  }

  .flow-image:nth-child(4) {
    top: 39%;
    right: 23%;
    width: 6rem;
    height: 5rem;
  }

  .flow-image:nth-child(5) {
    top: 38%;
    right: 17%;
    width: 7rem;
    height: 6rem;
  }

  .flow-image:nth-child(6) {
    top: 50%;
    right: 20%;
    width: 5rem;
    height: 4rem;
  }

  .transition-drone {
    width: 100px;
    height: 70px;
  }

  .cursor {
    display: none !important;
  }

  .quote-dialog {
    border-radius: 20px;
  }
}

/* =========================================================
   CONTENU PROJETÉ DANS LE PC
   Même mise en page sur ordinateur et mobile.
   app.js fixe ici une surface de 1200 × 900.
   Ces règles passent après les règles responsive.
   ========================================================= */

.reveal.is-laptop-layout {
  padding: 40px 60px;
  overflow: hidden;
}

.reveal.is-laptop-layout .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 45px;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: visible;
}

.reveal.is-laptop-layout .about-copy {
  min-width: 0;
}

.reveal.is-laptop-layout .section-kicker {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 2px;
}

.reveal.is-laptop-layout .about-brand {
  display: flex;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 20px 0 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
}

.reveal.is-laptop-layout .about-brand img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.reveal.is-laptop-layout .about-copy p {
  max-width: none;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: normal;
}

.reveal.is-laptop-layout .about-photo {
  width: 100%;
  height: 570px;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
}

.reveal.is-laptop-layout .about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal.is-laptop-layout .about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.reveal.is-laptop-layout .about-actions .quote-trigger,
.reveal.is-laptop-layout .about-actions .about-explore {
  min-height: 44px;
  padding: 12px 16px;
  font-size: 11px;
  white-space: nowrap;
}

/* =========================================================
   VERSION MOBILE APRÈS LA TRANSITION FLOUTÉE
   app.js active cette classe au milieu du fondu.
   ========================================================= */

@media (max-width: 700px) {
  .reveal.is-mobile-ready {
    padding:
      max(48px, env(safe-area-inset-top))
      24px
      max(30px, env(safe-area-inset-bottom));

    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    transform-origin: 0 0;
  }

  .reveal.is-mobile-ready .about-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    flex: none;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .reveal.is-mobile-ready .about-copy {
    width: 100%;
    min-width: 0;
  }

  .reveal.is-mobile-ready .section-kicker {
    display: block;
    margin: 0 0 20px;
    font-size: 9px;
    line-height: 1.6;
    letter-spacing: 1.5px;
  }

  .reveal.is-mobile-ready .about-brand {
    width: min(100%, 280px);
    height: auto;
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    aspect-ratio: auto;
  }

  .reveal.is-mobile-ready .about-brand img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .reveal.is-mobile-ready .about-copy p {
    max-width: none;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: normal;
  }

  .reveal.is-mobile-ready .about-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .reveal.is-mobile-ready .about-actions .quote-trigger,
  .reveal.is-mobile-ready .about-actions .about-explore {
    gap: 8px;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }

  .reveal.is-mobile-ready .about-photo {
    flex: none;
    width: 100%;
    height: 230px;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
  }

  .reveal.is-mobile-ready .about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =========================================================
   ACCESSIBILITÉ — RÉDUCTION DES ANIMATIONS
   ========================================================= */

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

  .ambient,
  .transition-drone {
    display: none;
  }

  .image-flow {
    height: auto;
  }

  .flow-stage {
    position: relative;
    height: auto;
    min-height: 100svh;
  }

  .flow-center {
    position: relative;
    min-height: 40svh;
  }

  .flow-images {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 25px;
    perspective: none;
  }

  .flow-image:nth-child(n) {
    position: static;
    width: 100%;
    height: 160px;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}









/* ==========================================
   COMMA REAL ESTATE
   CORRECTION SCROLL MOBILE - GALERIE
   ========================================== */

@media screen and (max-width: 700px) {

  .image-flow {
    height: 180svh;
    min-height: 180svh;
    position: relative;
  }

  .flow-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    touch-action: pan-y;
    overscroll-behavior-y: auto;
  }

  .flow-images,
  .flow-center,
  .flow-glow {
    touch-action: pan-y;
  }

}






/* Flèches sans apparence emoji sur iPhone */
@media (max-width: 700px) {
  .arrow,
  .arrow-icon,
  .service-arrow,
  .card-arrow {
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
    font-variant-emoji: text;
    text-rendering: geometricPrecision;
  }
}


/* =========================================================
   REAL ESTATE — MOBILE NATURAL SCROLL AFTER LAPTOP ANIMATION
   Desktop layout remains unchanged.
   ========================================================= */
.mobile-about-flow { display: none; }

@media (max-width: 700px) {
  #journey {
    height: 300svh;
    min-height: 300svh;
  }

  /* Only the laptop animation stays sticky. */
  #journey > .stage {
    position: sticky;
    top: 0;
    height: 100svh;
  }

  /* The original reveal is used only inside the laptop animation. */
  #journey .reveal.is-mobile-ready {
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* The duplicate is a genuine block between the intro and gallery. */
  .mobile-about-flow,
  .mobile-about-flow.is-mobile-ready {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    isolation: auto;
    pointer-events: auto !important;
    will-change: auto;
    background: #FFF2E4 !important;
    color: #081229 !important;
    padding: 48px 24px 52px !important;
    touch-action: pan-y;
  }

  .mobile-about-flow .about-layout {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .mobile-about-flow .about-copy,
  .mobile-about-flow .about-photo {
    flex-shrink: 0;
  }
}
