/* Charte reprise de la pub (videos/src/pub/style.ts), pour que celui qui clique
   sur la pub arrive dans le même univers : fond noir, typographie énorme et
   serrée, une seule couleur d'accent, le dégradé du logo, utilisé par petites
   touches. Le style des pages produit d'Apple, en restant reconnaissable. */

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Les lettres rares (ő, ł…) : ce fichier n'est téléchargé que si la page en contient */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --noir: #000000;
  --tuile: #0E0E10;
  --tuile-claire: #161618;
  --blanc: #F5F5F7;       /* le blanc cassé d'Apple : un blanc pur "brûle" sur fond noir */
  --gris: #86868B;
  --gris-clair: #A1A1A6;
  --trait: rgba(255, 255, 255, 0.09);
  --trait-fort: rgba(255, 255, 255, 0.22);
  --violet: #7B5CFF;
  --mauve: #C04FD0;
  --orange: #FF8A4C;
  --degrade: linear-gradient(100deg, var(--violet) 0%, var(--mauve) 52%, var(--orange) 100%);
  --doux: cubic-bezier(0.16, 1, 0.3, 1); /* la courbe des apparitions de la pub */
  --largeur: 1180px;
  --marge: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: "Inter Tight", system-ui, -apple-system, sans-serif;
  color: var(--blanc);
  background: var(--noir);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.degrade {
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.surtitre { font-size: 17px; font-weight: 600; color: var(--gris); letter-spacing: -0.01em; }
.surtitre.degrade { display: inline-block; }

/* ---------- Barre du haut : translucide, elle reste visible en défilant ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.defile { border-bottom-color: var(--trait); }
.nav-dedans {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
/* la plume est penchée : en diagonale elle paraît plus petite qu'un carré de même taille */
.logo-marque { width: 36px; height: 36px; flex-shrink: 0; }
.nav-liens { display: flex; gap: 32px; font-size: 14px; color: var(--gris-clair); }
.nav-liens a { transition: color .2s ease; }
.nav-liens a:hover { color: var(--blanc); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: transform .2s var(--doux), background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }
.btn-blanc { background: var(--blanc); color: var(--noir); }
.btn-blanc:hover { background: #FFFFFF; }
.btn-contour { border: 1px solid var(--trait-fort); color: var(--blanc); }
.btn-contour:hover { border-color: var(--blanc); }
/* Le vert de WhatsApp, pour qu'on reconnaisse l'appli au premier coup d'œil.
   Texte noir : en blanc sur ce vert clair, il serait trop pâle pour bien se lire. */
.btn-whatsapp { background: #25D366; color: var(--noir); }
.btn-whatsapp:hover { background: #2EE575; }
.btn-petit { height: 42px; padding: 0 20px; font-size: 15px; }
.btn-mini { height: 32px; padding: 0 14px; font-size: 13px; }
.icone-wa { width: 20px; height: 20px; }

.lien-fleche { font-size: 17px; font-weight: 500; color: var(--blanc); }
.lien-fleche::after { content: " ›"; display: inline-block; transition: transform .2s var(--doux); }
.lien-fleche:hover::after { transform: translateX(4px); }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Ouverture ---------- */
.hero {
  position: relative;
  padding: 120px 0 40px;
  text-align: center;
}
/* Une lueur discrète derrière le slogan, comme celle qui entoure le logo à la fin de la pub */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  background:
    radial-gradient(ellipse 50% 40% at 50% 38%, rgba(123, 92, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 25% at 62% 45%, rgba(255, 138, 76, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-texte { max-width: 1120px; margin: 0 auto; padding: 0 var(--marge); }
.hero h1 {
  margin: 18px 0 28px;
  font-size: clamp(50px, 8.6vw, 116px);
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.hero h1 .degrade { padding-bottom: 0.06em; }
.hero-chapo {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.45;
  color: var(--gris-clair);
  letter-spacing: -0.01em;
}
.actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.garanties {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--gris);
}
.garanties li::before { content: "✓ "; color: var(--gris-clair); }

/* ---------- Le mur d'écrans ----------
   --p va de 0 (mur penché, au chargement) à 1 (mur à plat, après un peu de défilement).
   Sans JavaScript, le mur reste à plat. */
.mur {
  --p: 1;
  position: relative;
  margin-top: 88px;
  perspective: 1600px;
  perspective-origin: 50% 0%;
  overflow: hidden;
  /* les bords et le bas s'effacent dans le noir */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(#000 70%, transparent);
  mask-composite: intersect;
}
.js .mur { --p: 0; }
.mur-plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0 60px;
  transform-origin: 50% 0%;
  transform:
    rotateX(calc(32deg * (1 - var(--p))))
    scale(calc(1.12 - 0.12 * var(--p)));
  will-change: transform;
}
.rangee { display: flex; width: max-content; animation: defile 90s linear infinite; }
.rangee-inverse { animation-direction: reverse; animation-duration: 75s; }
.rangee-suite { display: flex; gap: 20px; padding-right: 20px; }
.rangee img {
  height: 240px;
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--trait);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
/* chaque rangée contient 3 fois la même suite : décaler d'un tiers boucle sans trou */
@keyframes defile { to { transform: translateX(calc(-100% / 3)); } }
.mur.en-pause .rangee { animation-play-state: paused; }
.mur-legende { margin-top: -24px; font-size: 13px; color: var(--gris); position: relative; }

/* ---------- Engagements ---------- */
.engagements { max-width: var(--largeur); margin: 0 auto; padding: 80px var(--marge) 0; }
.engagements ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.engagements li { border-top: 1px solid var(--trait-fort); padding-top: 22px; }
.engagements strong { display: inline-block; font-size: 48px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.05; }
.engagements span { display: block; margin-top: 8px; color: var(--gris-clair); font-size: 15px; line-height: 1.4; max-width: 220px; }

/* ---------- Sections ---------- */
.section { max-width: var(--largeur); margin: 0 auto; padding: 160px var(--marge) 0; }
.section-tete { max-width: 760px; margin-bottom: 56px; }
.section h2 {
  margin-top: 10px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.section-chapo { margin-top: 22px; font-size: 19px; color: var(--gris-clair); max-width: 600px; }

/* ---------- Études de cas ---------- */
.cas {
  background: var(--tuile);
  border: 1px solid var(--trait);
  border-radius: 32px;
  padding: 56px;
  margin-bottom: 28px;
}
.cas-tete { max-width: 760px; }
.cas-etiquette { font-size: 14px; font-weight: 500; color: var(--gris); }
.cas-etiquette span { margin: 0 4px; }
.cas h3 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.cas-pitch { font-size: 19px; color: var(--gris-clair); line-height: 1.45; }
.cas-media {
  margin: 40px 0;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--trait);
  aspect-ratio: 16 / 9;
}
.cas-media video { width: 100%; height: 100%; object-fit: cover; }
/* Sur téléphone, la version verticale (9:16) remplace la version horizontale */
.video-tel { display: none; }
.cas-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cas-details h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--blanc); letter-spacing: -0.005em; }
.cas-details p, .cas-details li { font-size: 15.5px; color: var(--gris-clair); line-height: 1.55; }
.cas-details li { position: relative; padding-left: 18px; }
.cas-details li + li { margin-top: 10px; }
.cas-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--degrade);
}
.cas-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--trait);
}
.technos { display: flex; flex-wrap: wrap; gap: 8px; }
.technos li {
  font-size: 13px;
  font-weight: 500;
  color: var(--gris-clair);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tuile-claire);
  border: 1px solid var(--trait);
}
.cas-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--gris); }

.cas-suite {
  border: 1.5px dashed var(--trait-fort);
  border-radius: 32px;
  padding: 56px;
  text-align: center;
}
.cas-suite h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 650; letter-spacing: -0.035em; }
.cas-suite p { max-width: 560px; margin: 16px auto 28px; font-size: 19px; color: var(--gris-clair); line-height: 1.45; }

/* ---------- Services : grille de tuiles ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tuile {
  background: var(--tuile);
  border: 1px solid var(--trait);
  border-radius: 28px;
  padding: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tuile h3 { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.tuile p { font-size: 16px; color: var(--gris-clair); line-height: 1.55; max-width: 460px; }
.tuile-large { padding-bottom: 0; }
.tuile-image {
  margin-top: 36px;
  margin-right: -40px;
  align-self: flex-start;
  width: calc(100% + 40px);
  max-width: none;
  /* les attributs width/height du HTML réservent la place pendant le chargement ;
     sans height: auto, l'image garderait leur hauteur et serait étirée */
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  border-radius: 14px 0 0 0;
  border: 1px solid var(--trait);
  border-right: 0;
  border-bottom: 0;
}

/* ---------- Méthode ---------- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.etapes li { border-top: 1px solid var(--trait-fort); padding-top: 24px; }
.etapes .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 650;
  color: var(--noir);
  background: var(--degrade);
}
.etapes h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.etapes p { font-size: 15.5px; color: var(--gris-clair); }

/* ---------- À propos ---------- */
.apropos { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.apropos .section-tete { margin-bottom: 0; }
.apropos-texte p { font-size: 21px; line-height: 1.5; color: var(--gris-clair); letter-spacing: -0.01em; }
.apropos-texte p + p { margin-top: 18px; }
.apropos-texte p:first-child { color: var(--blanc); }

/* ---------- Contact ---------- */
.contact { padding: 180px var(--marge) 140px; text-align: center; position: relative; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 50% at 50% 50%, rgba(123, 92, 255, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.contact-dedans { max-width: 760px; margin: 0 auto; }
.contact h2 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; font-weight: 650; letter-spacing: -0.04em; }
.contact p { margin-top: 20px; font-size: 20px; color: var(--gris-clair); }
.actions.centre { gap: 14px; }

.pied {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 24px var(--marge) 40px;
  border-top: 1px solid var(--trait);
  font-size: 13px;
  color: var(--gris);
}

/* ---------- Apparitions au défilement ----------
   Seulement si le JavaScript tourne (classe .js), sinon tout est visible d'emblée. */
.js [data-apparait] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--doux), transform 1s var(--doux);
}
.js [data-apparait].visible { opacity: 1; transform: none; }

/* Pour ceux qui ont demandé à leur appareil de limiter les animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .mur { --p: 1; }
  .rangee { animation: none; }
  .js [data-apparait] { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 960px) {
  .cas { padding: 40px 32px; }
  .cas-details { grid-template-columns: 1fr; gap: 28px; }
  .engagements ul { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: repeat(2, 1fr); }
  .apropos { grid-template-columns: 1fr; gap: 28px; }
  .rangee img { height: 180px; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  :root { --marge: 16px; }
  .nav-liens { display: none; }
  .surtitre { font-size: 15px; }
  .hero { padding-top: 72px; }
  .actions { flex-direction: column; gap: 20px; }
  .actions .btn { width: 100%; }
  .mur { margin-top: 56px; }
  .mur-plan { gap: 12px; }
  .rangee-suite { gap: 12px; padding-right: 12px; }
  .rangee img { height: 120px; border-radius: 10px; }
  .mur-legende { margin-top: -16px; padding: 0 var(--marge); }
  .engagements { padding-top: 56px; }
  .engagements ul { gap: 28px 20px; }
  .engagements strong { font-size: 38px; }
  .engagements span { font-size: 14px; }
  .section { padding-top: 112px; }
  .section-tete { margin-bottom: 36px; }
  .cas { padding: 28px 20px; border-radius: 24px; margin-left: calc(-1 * var(--marge) + 8px); margin-right: calc(-1 * var(--marge) + 8px); }
  /* la vidéo verticale ne dépasse pas 80 % de la hauteur de l'écran, sans se déformer */
  .cas-media { aspect-ratio: 9 / 16; width: min(100%, calc(80vh * 9 / 16)); margin: 28px auto; }
  .video-ordi { display: none; }
  .video-tel { display: block; }
  .cas-pitch { font-size: 17px; }
  .cas-suite { padding: 40px 20px; border-radius: 24px; }
  .cas-suite p { font-size: 17px; }
  .bento { grid-template-columns: 1fr; }
  .tuile { padding: 28px; }
  .tuile-image { margin-right: -28px; width: calc(100% + 28px); margin-top: 28px; }
  .etapes { grid-template-columns: 1fr; }
  .apropos-texte p { font-size: 18px; }
  .contact { padding: 120px var(--marge) 96px; }
}
