/* ==========================================================================
   Wedia — charte graphique
   Fond : Bleu vif #0F4BFF · Titres : Azur vif #27E5FF · Sous-textes : #FDF3E0
   ========================================================================== */
:root {
  --black: #000000;
  --blue: #0f4bff;
  --azur: #27e5ff;
  --cream: #fdf3e0;

  /* style Apple : SF Pro sur Mac / iPhone, Inter ailleurs */
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --text-shadow: 0 0.04em 0.45em rgba(0, 0, 0, 0.92), 0 0 0.1em rgba(0, 0, 0, 0.75);
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  /* les ancres (#services, #methode…) arrivent sous l'en-tête fixe, pas dessous */
  scroll-padding-top: 100px;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

img,
canvas {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--azur);
  outline-offset: 4px;
}

/* ---------- En-tête : bulle de verre liquide (inspirée de l'ancien site) ---------- */
.site-header {
  position: fixed;
  top: 12px;
  right: max(12px, calc((100% - 1240px) / 2));
  left: max(12px, calc((100% - 1240px) / 2));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 10px 0 18px;
  border-radius: 22px;
  isolation: isolate;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); /* la bulle flotte au-dessus de la page, taste-skill-ignore */
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

/* Corps du verre : aucune teinte, un léger flou qui sature ce qui passe derrière, des reflets sur les bords */
.site-header::before {
  -webkit-backdrop-filter: blur(2px) saturate(150%);
  backdrop-filter: blur(2px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12); /* arêtes du verre, taste-skill-ignore */
}

/* Reflet spéculaire : lumière en haut à gauche, rappel Azur en bas à droite */
.site-header::after {
  background:
    radial-gradient(120% 160% at 12% -50%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(70% 140% at 96% 150%, rgba(39, 229, 255, 0.08), transparent 55%); /* reflet du verre, taste-skill-ignore */
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header::before {
    background-color: rgba(10, 10, 10, 0.9);
  }
}

.site-header__logo {
  display: flex;
  align-items: center;
  border-radius: 12px;
}

.site-header__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Pages du site, au centre de la bulle (ordinateur) : elles arrivent juste après l'en-tête */
.site-header__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 28px;
  transform: translateX(-50%);
}

.site-header__link {
  position: relative;
  padding: 6px 2px;
  color: var(--cream);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase; /* comme les liens de l'ancien site, taste-skill-ignore */
  transition: color 0.25s ease;
}

/* soulignement Azur au survol, comme sur l'ancien site */
.site-header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--azur);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__link:hover,
.site-header__link:focus-visible {
  color: var(--azur);
}

.site-header__link:hover::after,
.site-header__link:focus-visible::after {
  width: 100%;
}

/* sous 1120 px, les cinq liens ne tiennent plus entre le logo et le bouton : ils passent dans le hamburger */
@media (max-width: 1120px) {
  .site-header__nav {
    display: none;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bouton « Prendre rendez-vous », habillé comme le bouton « Portfolio » de l'accueil :
   fond noir, contour et texte blancs ; inversé au survol */
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 40px;
  /* le contour prend sa place sur le remplissage : le bouton garde sa largeur */
  padding: 0 calc(1.1rem - 1.5px);
  border: 1.5px solid #fff; /* contour du bouton, taste-skill-ignore */
  border-radius: 14px;
  background-color: #000;
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase; /* comme le bouton de l'ancien site, taste-skill-ignore */
  white-space: nowrap;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s ease,
    background-color 0.3s ease;
}

.site-header__cta:hover {
  background-color: #fff;
  color: #0a0a0a;
  transform: translateY(-1px);
}

.site-header__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__cta:hover .site-header__arrow {
  transform: translate(2px, -2px);
}

/* Mobile uniquement : libellé court du bouton, hamburger et menu des futures sections */
.site-header__cta-short,
.burger,
.mobile-nav {
  display: none;
}

@media (max-width: 1120px) {
  .site-header__cta-full {
    display: none;
  }

  .site-header__cta-short {
    display: inline;
  }

  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: none;
    cursor: pointer;
    transition: background-color 0.25s ease;
  }

  .burger:hover,
  .site-header.is-menu-open .burger {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  }

  /* ouvert : les trois traits deviennent une croix */
  .site-header.is-menu-open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .burger span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menu façon clickway.fr : la bulle elle-même s'agrandit vers le bas et dévoile les pages,
     le verre se fonce et floute davantage ; à la fermeture, tout se replie vers le haut */
  .site-header::before {
    transition: background-color 0.4s ease, -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease;
  }

  .site-header.is-menu-open::before {
    background-color: rgba(10, 10, 12, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }

  .mobile-nav {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
  }

  .site-header.is-menu-open .mobile-nav {
    visibility: visible;
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

  .mobile-nav__link {
    display: block;
    padding: 14px 4px;
    color: var(--cream);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase; /* comme les liens de l'ancien site, taste-skill-ignore */
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.3s ease, color 0.25s ease;
  }

  .mobile-nav__link:first-child {
    margin-top: 6px;
  }

  /* les liens descendent un à un pendant que la bulle s'ouvre */
  .site-header.is-menu-open .mobile-nav__link {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
    transition-delay: calc(0.08s + var(--i, 0) * 0.05s), calc(0.08s + var(--i, 0) * 0.05s), 0s;
  }

  .mobile-nav__link:hover,
  .mobile-nav__link:focus-visible {
    color: var(--azur);
  }

  /* Langues dans le menu (seulement quand le robot est rangé dans l'en-tête) : trois pastilles sous les liens */
  .mobile-nav__lang {
    display: none;
    gap: 8px;
    margin-top: 4px;
    padding: 14px 4px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.3s ease;
  }

  .site-header.is-menu-open .mobile-nav__lang {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(0.08s + var(--i, 0) * 0.05s);
  }

  .mobile-nav__lang-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: none;
    color: var(--cream);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
  }

  .mobile-nav__lang-option img,
  .mobile-nav__lang-option svg {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: cover;
  }

  .mobile-nav__lang-option[aria-pressed="true"],
  .mobile-nav__lang-option:focus-visible {
    border-color: var(--azur);
    color: var(--azur);
  }
}

/* ---------- Robot FAQ (repris de l'ancien site), en bas à droite ---------- */
.faq {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 49;
}

.faq__btn {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--azur);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(39, 229, 255, 0.4); /* halo du robot (ancien site), taste-skill-ignore */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq__btn:hover,
.faq.is-open .faq__btn {
  box-shadow: 0 6px 30px rgba(39, 229, 255, 0.6); /* halo du robot (ancien site), taste-skill-ignore */
  transform: scale(1.08);
}

.faq__btn svg {
  width: 32px;
  height: 32px;
  overflow: visible;
  fill: #fff;
}

/* le robot cligne des yeux de temps en temps */
.faq__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: robot-blink 4.6s infinite;
}

@keyframes robot-blink {
  0%, 91%, 97%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}

/* quand il parle (ouverture, réponse) : la bouche s'ouvre et se ferme, la tête bouge à peine */
.faq__mouth {
  transform-box: fill-box;
  transform-origin: center top;
}

.faq.is-talking .faq__mouth {
  animation: robot-talk 0.62s ease-in-out infinite;
}

.faq.is-talking .faq__btn svg {
  animation: robot-bob 0.62s ease-in-out infinite;
}

@keyframes robot-talk {
  0%, 100% { transform: scaleY(1); }
  20% { transform: scaleY(1.9) scaleX(0.85); }
  40% { transform: scaleY(1.2); }
  60% { transform: scaleY(1.7) scaleX(0.9); }
  80% { transform: scaleY(1); }
}

@keyframes robot-bob {
  0%, 100% { transform: none; }
  30% { transform: translateY(-1.5px) rotate(-3deg); }
  70% { transform: translateY(-0.5px) rotate(2deg); }
}

.faq__list {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  width: min(380px, calc(100vw - 48px));
  pointer-events: none;
}

.faq__item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(16px) scale(0.92);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* les bulles sortent du robot, la plus proche d'abord */
.faq.is-open .faq__item {
  opacity: 1;
  filter: none;
  transform: none;
  pointer-events: auto;
}

.faq.is-open .faq__item:nth-child(1) { transition-delay: 0.2s; }
.faq.is-open .faq__item:nth-child(2) { transition-delay: 0.15s; }
.faq.is-open .faq__item:nth-child(3) { transition-delay: 0.1s; }
.faq.is-open .faq__item:nth-child(4) { transition-delay: 0.05s; }

/* une réponse ouverte : les autres questions se retirent */
.faq.is-answering .faq__item:not(.is-active) {
  display: none;
}

/* bulles de bande dessinée : contour franc, fond plein, une pointe vers le robot qui parle */
.faq__q,
.faq__a {
  position: relative;
  max-width: 88%;
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-radius: 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-align: left;
  overflow-wrap: break-word;
}

.faq__q {
  border: 2px solid rgba(39, 229, 255, 0.55); /* contour de la bulle, taste-skill-ignore */
  background-color: #0e0f12;
  color: var(--cream);
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* bulle flottante, taste-skill-ignore */
  transform-origin: right center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.faq__q:hover,
.faq__q:focus-visible,
.faq__item.is-active .faq__q {
  border-color: var(--azur);
  background-color: var(--azur);
  color: #0a0a0a;
}

.faq__q:hover {
  transform: scale(1.03);
}

.faq__a {
  margin-top: 12px;
  border: 2px solid var(--azur); /* contour de la bulle, taste-skill-ignore */
  background: var(--azur);
  color: #0a0a0a;
  line-height: 1.45;
  transform-origin: top right;
  box-shadow: 0 4px 16px rgba(39, 229, 255, 0.3); /* bulle flottante, taste-skill-ignore */
}

/* la pointe : un carré tourné, du même fond et du même contour que la bulle */
.faq__q::after,
.faq__a::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: inherit;
  border-bottom: inherit;
  border-bottom-right-radius: 3px;
  background: inherit;
  transform: rotate(45deg);
}

/* une réponse ouverte : seule la réponse pointe vers le robot */
.faq__item.is-active .faq__q::after {
  display: none;
}

.faq__word {
  display: inline-block;
}

/* robot ouvert, partout sur la page : tout ce qui est derrière lui se floute et s'assombrit
   (l'en-tête reste net au-dessus) ; un clic sur le voile referme le robot */
.faq-veil {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

body.faq-open .faq-veil {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0s;
}

/* Passé le hero (ordinateur et mobile) : le robot se range dans l'en-tête, à droite du logo
   (faq.js calcule la place et anime le trajet ; ouvert, il revient au centre comme d'habitude) */
.faq.is-docked:not(.is-centered) {
  top: var(--dock-y);
  right: auto;
  bottom: auto;
  left: var(--dock-x);
  z-index: 51;
}

.faq.is-docked:not(.is-centered) .faq__btn {
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 10px rgba(39, 229, 255, 0.35); /* halo réduit dans l'en-tête, taste-skill-ignore */
}

.faq.is-docked:not(.is-centered) .faq__btn svg {
  width: 22px;
  height: 22px;
}

/* ouvert : le robot et ses questions viennent au milieu de l'écran (faq.js anime le trajet) */
.faq.is-centered {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: fit-content;
  height: fit-content;
  margin: auto;
}

.faq.is-centered .faq__list {
  position: static;
  align-items: center;
}

.faq.is-centered .faq__item {
  align-items: center;
  transform-origin: bottom center;
}

/* les bulles sortent une fois la phrase effacée et le robot en place */
.faq.is-centered.is-open .faq__item:nth-child(5) { transition-delay: 0.3s; }
.faq.is-centered.is-open .faq__item:nth-child(4) { transition-delay: 0.35s; }
.faq.is-centered.is-open .faq__item:nth-child(3) { transition-delay: 0.4s; }
.faq.is-centered.is-open .faq__item:nth-child(2) { transition-delay: 0.45s; }
.faq.is-centered.is-open .faq__item:nth-child(1) { transition-delay: 0.5s; }

.faq.is-centered .faq__q,
.faq.is-centered .faq__a {
  transform-origin: center;
}

.faq.is-centered .faq__q::after,
.faq.is-centered .faq__a::after {
  right: auto;
  left: calc(50% - 6px);
}

.faq.is-centered .faq__btn {
  transform: none;
}

@media (max-width: 768px) {
  .faq {
    right: 16px;
    bottom: 16px;
  }

  .faq__btn {
    width: 52px;
    height: 52px;
  }

  .faq__btn svg {
    width: 28px;
    height: 28px;
  }

  .faq__list {
    bottom: 64px;
    gap: 12px;
    width: calc(100vw - 32px);
  }

  .faq__q,
  .faq__a {
    max-width: 92%;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item {
    transform: none;
    transition: opacity 0.3s ease, visibility 0s;
  }

  .faq__eyes,
  .faq.is-talking .faq__mouth,
  .faq.is-talking .faq__btn svg {
    animation: none;
  }
}

/* Sélecteur de langue : le drapeau, puis une petite bulle de verre avec FR / ENG / PT */
.lang {
  position: relative;
}

.lang__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.lang__btn:hover,
.lang.is-open .lang__btn {
  background-color: rgba(255, 255, 255, 0.08);
}

.lang__flag {
  display: block;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 6px;
}

.lang__flag .flag {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang__flag .flag.is-active {
  display: block;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 14px);
  right: -4px;
  min-width: 96px;
  padding: 6px;
  border-radius: 16px;
  background-color: rgba(12, 12, 14, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* menu flottant en verre, taste-skill-ignore */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0.35s;
}

.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s;
}

.lang__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--cream);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.lang__option:hover,
.lang__option:focus-visible {
  color: var(--azur);
  background-color: rgba(39, 229, 255, 0.1);
  opacity: 1;
}

.lang__option[aria-checked="true"] {
  color: var(--azur);
  opacity: 1;
}

@media (max-width: 768px) {
  /* hauteur libre : 62 px fermé, elle grandit quand le menu hamburger s'ouvre */
  .site-header {
    top: 10px;
    right: 10px;
    left: 10px;
    flex-wrap: wrap;
    align-content: center;
    height: auto;
    min-height: 62px;
    padding: 8px 8px 8px 14px;
    border-radius: 20px;
  }

  .site-header__logo img {
    width: 40px;
    height: 40px;
  }

  .site-header__actions {
    gap: 4px;
  }

  .site-header__cta {
    min-height: 38px;
    padding: 0 calc(0.8rem - 1.5px);
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

/* Bouton WhatsApp de l'en-tête : sur téléphone uniquement ; un halo vert s'en échappe
   en continu et, de temps en temps, le combiné sonne */
.site-header__whatsapp {
  display: none;
}

@media (max-width: 768px) {
  .site-header__whatsapp {
    position: relative;
    isolation: isolate;
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.16); /* halo fixe, comme sur le modèle, taste-skill-ignore */
    transition: transform 0.25s ease;
  }

  .site-header__whatsapp:active {
    transform: scale(0.92);
  }

  .site-header__whatsapp::before,
  .site-header__whatsapp::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: whatsapp-halo 2.6s ease-out infinite;
  }

  .site-header__whatsapp::after {
    animation-delay: 1.3s;
  }

  .site-header__whatsapp svg {
    animation: whatsapp-ring 5.2s ease-in-out 1.5s infinite;
  }

  /* En-tête mis en ordre : logo, puis « Prendre RDV », WhatsApp, drapeau, hamburger,
     avec le même espace entre chaque (les boutons deviennent des éléments directs de la bulle) */
  .site-header {
    column-gap: 2px;
  }

  .site-header__actions {
    display: contents;
  }

  .site-header__logo {
    transition: margin-right 0.38s ease;
  }

  /* accueil : quand le robot se range à droite du logo, la place lui est gardée et les boutons se resserrent */
  .site-header:has(~ .faq.is-docked) .site-header__logo {
    margin-right: 46px;
  }

  /* … et le drapeau quitte la bulle : les langues passent dans le menu hamburger */
  .site-header:has(~ .faq.is-docked) .lang {
    display: none;
  }

  .site-header:has(~ .faq.is-docked) .mobile-nav__lang {
    display: flex;
  }

  .lang__btn {
    width: 36px;
    height: 36px;
  }

  .burger {
    width: 38px;
    height: 38px;
  }
}

/* petits téléphones : la flèche du bouton rendez-vous s'efface ; en dessous de 340 px, pas la place pour WhatsApp */
@media (max-width: 380px) {
  .site-header__cta .site-header__arrow {
    display: none;
  }
}

@media (max-width: 340px) {
  .site-header__whatsapp {
    display: none;
  }
}

@keyframes whatsapp-halo {
  from {
    opacity: 0.65;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes whatsapp-ring {
  0%,
  72%,
  100% {
    transform: none;
  }

  76% {
    transform: rotate(-16deg);
  }

  80% {
    transform: rotate(14deg);
  }

  84% {
    transform: rotate(-10deg);
  }

  88% {
    transform: rotate(6deg);
  }

  92% {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__whatsapp::before,
  .site-header__whatsapp::after,
  .site-header__whatsapp svg {
    animation: none;
  }

  .site-header__whatsapp::before,
  .site-header__whatsapp::after {
    opacity: 0;
  }
}

/* Tablettes et petits ordinateurs : le menu hamburger, mais l'en-tête garde sa taille et son bouton complet */
@media (min-width: 769px) and (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
    align-content: center;
    height: auto;
    min-height: 68px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header__cta-full {
    display: inline;
  }

  .site-header__cta-short {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang__menu,
  .lang.is-open .lang__menu {
    transform: none;
    transition: opacity 0.3s ease, visibility 0s;
  }
}

/* ---------- Boutons sous la phrase ---------- */
.statement-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 4.5vh, 48px);
  transition: opacity 0.4s ease;
}

.action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase; /* même style que le bouton de l'en-tête, taste-skill-ignore */
  white-space: nowrap;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s ease,
    background-color 0.3s ease;
}

/* « Prendre rendez-vous » : le bouton de l'en-tête */
.action--primary {
  background: var(--azur);
  color: #0a0a0a;
}

.action--primary:hover {
  box-shadow: 0 4px 16px rgba(39, 229, 255, 0.3); /* halo au survol, taste-skill-ignore */
  transform: translateY(-1px);
}

.action__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action--primary:hover .action__arrow {
  transform: translate(2px, -2px);
}

/* « Nos services » : noir et blanc, dans la police du site — fond noir, contour et texte blancs ; inversé au survol */
.action--outline {
  border: 1.5px solid #fff; /* contour du bouton, taste-skill-ignore */
  background-color: #000;
  color: #fff;
}

.action--outline:hover {
  background-color: #fff;
  color: #0a0a0a;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .statement-actions {
    gap: 10px;
  }

  .action {
    min-height: 46px;
    padding: 0 1.1rem;
    font-size: 12px;
  }
}

/* ==========================================================================
   Pied de page (repris de l'ancien site) : fond crème, coins arrondis en haut,
   « Créons ensemble », Instagram, mentions, et le gros WEDIA coupé en bas
   ========================================================================== */
.informations-section {
  width: 100%;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 5rem) 0;
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  background-color: var(--cream);
  color: #0a0a0a;
  font-family: var(--font);
}

.informations-container {
  max-width: 1200px;
  margin: 0 auto;
}

.informations-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.informations-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.informations-title {
  margin: 0;
  color: #0a0a0a;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* « Contactez-nous » : ouvre la fenêtre de contact */
.informations-contact-btn {
  display: inline-block;
  width: clamp(10rem, 32vw, 20rem);
  min-height: 48px;
  margin-top: 1.5rem;
  padding: 0.8rem 0;
  border: none;
  border-radius: 14px;
  background: var(--azur);
  color: #0a0a0a;
  font-family: var(--font);
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase; /* comme sur l'ancien site, taste-skill-ignore */
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.informations-contact-btn::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.5em;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.informations-contact-btn:hover {
  box-shadow: 0 4px 16px rgba(39, 229, 255, 0.3); /* halo au survol, taste-skill-ignore */
  transform: translateY(-2px);
}

.informations-contact-btn:hover::after {
  transform: translate(2px, -2px);
}

/* la zone de l'agence (Strasbourg, Porto), sous le bouton */
.informations-zone {
  max-width: 32ch;
  margin: 1rem 0 0;
  color: rgba(10, 10, 10, 0.7);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.5;
}

.informations-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.informations-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #0a0a0a;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.informations-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #0a0a0a;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.informations-link:hover {
  color: var(--blue);
}

.informations-link:hover::after {
  width: 100%;
  background: var(--blue);
}

.informations-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.informations-link:hover .informations-arrow {
  transform: translate(2px, -2px);
}

.informations-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.informations-copyright {
  margin: 0;
  color: rgba(10, 10, 10, 0.6);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.informations-legal {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.informations-legal-link {
  color: rgba(10, 10, 10, 0.6);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.informations-legal-link:hover {
  color: #0a0a0a;
}

/* le gros WEDIA, coupé par le bas de la page */
.informations-logo {
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.informations-logo-text {
  display: block;
  margin-bottom: -0.12em;
  color: #0a0a0a;
  font-size: clamp(5rem, 21vw, 17rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

/* ordinateur : un pied de page plus compact (titre, bouton, espaces et gros WEDIA réduits) */
@media (min-width: 769px) {
  .informations-section {
    padding-top: clamp(3rem, 5vw, 4rem);
  }

  .informations-top {
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }

  .informations-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
  }

  .informations-contact-btn {
    width: clamp(10rem, 22vw, 15rem);
    margin-top: 1.25rem;
  }

  .informations-bottom {
    padding-top: 1.5rem;
  }

  .informations-logo {
    margin-top: clamp(2rem, 4vw, 3rem);
  }

  .informations-logo-text {
    font-size: clamp(5rem, 15vw, 12rem);
  }
}

@media (max-width: 768px) {
  .informations-top {
    flex-direction: column;
    gap: 2rem;
  }

  .informations-links {
    align-items: flex-start;
  }

  .informations-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .informations-legal {
    gap: 1rem;
  }
}

/* « Contactez-nous » est un lien e-mail, habillé comme l'ancien bouton */
a.informations-contact-btn {
  text-decoration: none;
}

/* une fenêtre ouverte (pages du portfolio en grand) : la page ne défile plus, sans perdre sa position */
html.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Version sobre (2026-11-16) : le contenu d'abord, la page défile librement,
   seulement de légers fondus
   ========================================================================== */

/* En-tête : un verre plus dense, pour que ses liens restent lisibles au-dessus du texte qui défile */
.site-header::before {
  background-color: rgba(8, 8, 10, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

/* « Aller au contenu » : le premier arrêt du clavier, visible seulement quand il a le focus */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--azur);
  color: #0a0a0a;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

/* Légers fondus à l'apparition (reveal.js) : seulement ce qui arrive par le bas de l'écran */
[data-reveal] {
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--ease-out);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- Sections de l'accueil ---------- */
.section {
  padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
}

.section:last-child {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.section__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* Services et Méthode : le titre comme celui du Portfolio (Azur, en capitales, même taille) */
.services .section-title,
.method .section-title {
  color: var(--azur);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

@media (min-width: 769px) {
  .services .section-title,
  .method .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
}

.section-head {
  max-width: 720px;
}

.section-intro {
  margin: 16px 0 0;
  color: rgba(253, 243, 224, 0.85);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.6;
}

/* ---------- Services : trois services lisibles tout de suite, chacun avec son illustration qui joue
   à l'arrivée puis à chaque clic ou toucher (services.js) ; sans 3D. Pas de cartes : l'illustration
   et le texte flottent sur les étoiles (une ombre douce garde le texte lisible) ---------- */
.services-list {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.service {
  display: grid;
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--ease-out);
}

/* l'illustration : un clic ou un toucher la rejoue */
.service__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 36px) clamp(40px, 4.5vw, 52px);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.service__art svg {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  overflow: visible;
}

/* « Cliquez sur l'illustration » : discret, en bas de l'illustration */
.service__play {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(253, 243, 224, 0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: var(--text-shadow);
  pointer-events: none;
  transform: translateX(-50%);
}

.service__play::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azur);
}

.service__body {
  padding: clamp(24px, 3vw, 40px);
}

.service__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: var(--text-shadow);
}

.service__desc {
  max-width: 62ch;
  margin: 14px 0 0;
  color: rgba(253, 243, 224, 0.85);
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.65;
  text-shadow: var(--text-shadow);
}

.service__cta {
  margin-top: 24px;
}

/* ordinateur : l'illustration à gauche, le texte à droite */
@media (min-width: 1024px) {
  .service {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .service__body {
    align-self: center;
  }
}

/* la flèche qui déplie la carte : seulement sur téléphone */
.service__toggle {
  display: none;
}

@media (max-width: 768px) {
  .service__body {
    text-align: center;
  }

  .service__desc {
    margin-inline: auto;
  }

  .service__title {
    cursor: pointer;
  }

  /* une flèche bien visible, qui donne envie de déplier */
  .service__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 16px auto 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--azur);
    color: #0a0a0a;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(39, 229, 255, 0.3); /* halo de la flèche, taste-skill-ignore */
  }

  .service__toggle svg {
    transition: transform 0.4s var(--ease-out);
  }

  .service:not(.is-folded) .service__toggle svg {
    transform: rotate(180deg);
  }

  /* pliée, elle bat doucement, comme une invitation */
  .service.is-folded .service__toggle {
    animation: toggle-nudge 2.4s ease-in-out infinite;
  }

  /* la description et le bouton se plient sous le titre */
  .service__more {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.45s var(--ease-out);
  }

  .service.is-folded .service__more {
    grid-template-rows: 0fr;
  }

  .service__more-inner {
    min-height: 0;
    overflow: hidden;
  }
}

@keyframes toggle-nudge {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(4px);
  }

  85% {
    transform: translateY(-1px);
  }
}

/* Les dessins : aux couleurs Wedia, comme les anciennes figures 3D */
.art__plate {
  fill: #0b0b0d;
  stroke: var(--cream);
  stroke-width: 3;
}

.art__cream {
  fill: var(--cream);
}

.art__azur {
  fill: var(--azur);
}

.art__blue {
  fill: var(--blue);
}

.art__ink {
  fill: #0b0b0d;
}

.art__line,
.art__cursor-ring {
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.5;
}

/* avant leur première fois, les blocs du site, le repère et sa fiche attendent */
.js .art:not(.has-played) .art__build,
.js .art:not(.has-played) .art__pin {
  opacity: 0;
}

.art__build,
.art__click,
.art__pin-shadow,
.art__ripple,
.art__bubble,
.art__big-heart,
.art__like,
.art__float {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes art-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.6);
  }
}

@keyframes art-ring {
  from {
    opacity: 1;
    transform: scale(0.4);
  }

  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

/* 1 — le site : les blocs se posent un à un ; le curseur suit la souris et clique */
.art.is-playing .art__build {
  animation: art-pop 0.55s var(--ease-out) both;
  animation-delay: calc(var(--d) * 90ms);
}

.art__cursor {
  transition: transform 0.35s var(--ease-out);
}

.art__click {
  fill: none;
  stroke: var(--azur);
  stroke-width: 2.5;
  opacity: 0;
}

.art__cursor.is-clicking .art__click {
  animation: art-ring 0.5s ease-out;
}

/* 2 — Google Maps : le repère tombe, l'onde part du sol, la fiche s'ouvre au-dessus */
.art__pin-shape {
  fill: var(--blue);
  stroke: var(--cream);
  stroke-width: 3;
}

.art__pin-shadow {
  fill: #000;
  opacity: 0.45;
}

.art__ripple {
  fill: none;
  stroke: var(--azur);
  stroke-width: 2;
  opacity: 0;
}

.art.is-playing .art__pin-body {
  animation: art-drop 0.7s cubic-bezier(0.3, 1.45, 0.5, 1) both;
}

@keyframes art-drop {
  from {
    opacity: 0;
    transform: translateY(-70px);
  }

  40% {
    opacity: 1;
  }
}

.art.is-playing .art__pin-shadow {
  animation: art-shadow 0.7s ease-out both;
}

@keyframes art-shadow {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}

.art.is-playing .art__ripple {
  animation: art-ring 0.8s ease-out 0.45s;
}

.art__bubble {
  transform-origin: 50% 100%;
}

.art.is-playing .art__bubble {
  animation: art-pop 0.45s var(--ease-out) 0.55s both;
}

/* 3 — les réseaux sociaux : un grand cœur sur la photo, le bouton j'aime se remplit, de petits cœurs s'envolent */
.art__big-heart {
  fill: var(--cream);
  opacity: 0;
}

.art.is-playing .art__big-heart {
  animation: art-heart 0.9s var(--ease-out);
}

@keyframes art-heart {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  25% {
    opacity: 1;
    transform: scale(1.15);
  }

  45% {
    transform: scale(0.95);
  }

  70% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.art__like {
  fill: transparent;
  stroke: var(--cream);
  stroke-width: 2;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.art.is-liked .art__like {
  fill: var(--azur);
  stroke: var(--azur);
}

.art.is-playing .art__like {
  animation: art-beat 0.5s ease-out;
}

@keyframes art-beat {
  40% {
    transform: scale(1.35);
  }
}

.art__float {
  fill: var(--azur);
  pointer-events: none;
}

/* ---------- Méthode : quatre étapes numérotées ---------- */
.steps {
  display: grid;
  gap: 36px;
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  padding-top: 24px;
  border-top: 1px solid rgba(253, 243, 224, 0.2); /* fil des étapes, taste-skill-ignore */
}

.step__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step--last .step__title {
  color: var(--azur);
}

.step__desc {
  margin: 10px 0 0;
  color: rgba(253, 243, 224, 0.85);
  line-height: 1.6;
}

/* Téléphone : les textes au centre */
@media (max-width: 768px) {
  .services .section-title,
  .method .section-title,
  .step {
    text-align: center;
  }
}

/* Mouvement réduit : plus aucune animation ni transition, nulle part */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Restauré de la première version (2026-11-16, à la demande) : rideau d'ouverture,
   hero (montagne et phrase), section Portfolio de l'accueil
   ========================================================================== */

/* ---------- Rideau de pixels à l'ouverture de chaque page (curtain.js, opening.js) ---------- */
.curtain,
.curtain-static {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.curtain-static {
  background: var(--blue);
  /* si le script ne se charge pas, le rideau s'efface tout seul */
  animation: curtain-failsafe 0.4s ease 3s forwards;
}

@keyframes curtain-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.no-js .curtain-static {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .curtain-static {
    display: none;
  }
}

/* ---------- Hero (celui de l'ancien site) : la montagne se dessine, la phrase s'écrit ---------- */
.next {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center; /* la phrase et ses boutons, groupés au centre */
  min-height: 100vh; /* repli pour les vieux navigateurs, taste-skill-ignore */
  min-height: 100svh;
  padding: var(--gutter);
  overflow: hidden;
}

.ridge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* la silhouette pleine, noire, sous le dessin : les étoiles passent derrière la montagne */
.ridge-mass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--black);
  pointer-events: none;
}

/* Ordinateur, écran large et peu haut : le sommet passerait sous l'en-tête en verre.
   On descend le dessin, sans changer sa taille, pour que le sommet reste à 120 px du haut au moins.
   (sommet = hauteur - 796 × échelle, échelle = max(largeur / 1920, hauteur / 1080)) */
@media (min-width: 769px) {
  .ridge,
  .ridge-mass {
    transform: translateY(max(0px, calc(120px - 100svh + max(41.4583vw, 73.7037svh))));
  }
}

.js .ridge__full {
  opacity: 0;
}

.js .ridge__pen path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.statement {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(38px, 6.2vw, 112px);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-align: center;
  text-shadow: var(--text-shadow);
}

.statement__line {
  display: block;
}

.statement__level {
  color: var(--azur);
}

/* ---------- Petite phrase sous le slogan : blanche, son dernier mot en Azur change (tagline.js) ---------- */
.statement-tagline {
  position: relative;
  z-index: 1;
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: lowercase; /* toute la phrase en minuscules, comme le slogan */
  text-shadow: var(--text-shadow);
  transition: opacity 0.4s ease;
}

.tagline__slot {
  display: inline-block;
  text-align: left;
  white-space: nowrap;
}

.tagline__pre,
.tagline__word {
  display: inline-block;
  white-space: pre;
}

.tagline__word {
  color: var(--azur);
}

.js .statement-tagline {
  opacity: 0;
}

.js .statement-tagline.is-in {
  opacity: 1;
}

/* robot ouvert : elle s'efface avec la phrase et les boutons */
.js body.faq-open .statement-tagline {
  opacity: 0;
}

@media (max-width: 640px) {
  .statement-tagline {
    font-size: clamp(13px, 3.7vw, 15px);
  }
}

/* ---------- La fusée qui sort de derrière « passer » (rocket.js) : sous la phrase, au-dessus de la montagne ---------- */
.rocket {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  /* rien n'apparaît sous la ligne du mot : elle a l'air de sortir de derrière lui */
  clip-path: inset(-300vh -300vw 0 -300vw);
}

.rocket__body {
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* l'emoji pointe en haut à droite : tourné pour pointer droit vers le haut */
.rocket__img {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.rocket__puff {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 243, 224, 0.9) 0%, rgba(253, 243, 224, 0.45) 45%, rgba(253, 243, 224, 0) 70%);
  pointer-events: none;
}

/* les boutons sous la phrase apparaissent avec l'en-tête (actions.js) */
.js .statement-actions .action {
  opacity: 0;
}

.js .statement-actions .action:not(.is-in) {
  pointer-events: none;
}

.js .statement-actions .action.is-in {
  opacity: 1;
}

/* robot ouvert : les boutons s'effacent avec la phrase */
body.faq-open .statement-actions {
  opacity: 0;
  pointer-events: none;
}

/* « business » : sélectionné comme dans un logiciel de design, d'abord en contour puis rempli */
.fx__text.is-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: none;
}

.fx__text.is-filled {
  color: #fff;
  -webkit-text-stroke: 1.5px transparent;
  text-shadow: 0 0 0.35em rgba(255, 255, 255, 0.55), var(--text-shadow);
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease, text-shadow 0.9s ease;
}

.fx__text.is-settled {
  text-shadow: var(--text-shadow);
}

.sel {
  position: absolute;
  top: 0.1em;
  left: -0.05em;
  width: 0;
  height: 0;
  border: 1.5px solid var(--blue); /* cadre de sélection façon Figma, taste-skill-ignore */
  pointer-events: none;
}

.sel__h {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1.5px solid var(--blue); /* poignée de sélection, taste-skill-ignore */
  transform: translate(-50%, -50%);
}

.sel__h:nth-child(1) { top: 0; left: 0; }
.sel__h:nth-child(2) { top: 0; left: 100%; }
.sel__h:nth-child(3) { top: 100%; left: 0; }
.sel__h:nth-child(4) { top: 100%; left: 100%; }

.sel__size {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}

/* « to the » : une loupe passe et dévoile les lettres */
.lens {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.72);
  box-shadow: 0 0.14em 0.45em rgba(0, 0, 0, 0.7), inset 0 0 0.2em rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.lens__view {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  text-shadow: none;
  white-space: nowrap;
  transform-origin: 0 0;
}

/* « next » : tapé au clavier */
.caret {
  position: absolute;
  top: 0.16em;
  bottom: 0.14em;
  width: 0.065em;
  border-radius: 1px;
  background: var(--azur);
  box-shadow: none;
}

.caret.is-blinking {
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

/* Glitch de « level » (repris de l'ancien site) : les polices s'échangent, la couleur se dédouble */
.statement__level.is-glitching,
.rdv-title__accent.is-glitching,
.method-glitch.is-glitching {
  text-align: left;
  white-space: nowrap; /* largeur figée : les polices plus larges débordent à droite, sans toucher « next » */
  animation: font-glitch 1s ease-out forwards;
}

/* les polices les plus larges sont réduites pour que le mot ne sorte pas de l'écran sur mobile */
@keyframes font-glitch {
  0% { font-family: "Orbitron"; font-size: 0.82em; transform: skewX(-3deg) scale(1.02); text-shadow: 2px 0 var(--cream), -2px 0 var(--blue); }
  8% { font-family: "VT323"; font-size: 1.1em; transform: skewX(3deg) scale(0.98); text-shadow: -3px 0 var(--cream), 3px 0 var(--azur); }
  16% { font-family: "Russo One"; font-size: 0.92em; transform: skewX(-2deg) scale(1.01); text-shadow: 1px 0 var(--cream), -1px 0 var(--blue); }
  24% { font-family: "Audiowide"; font-size: 0.85em; transform: skewX(2deg) scale(0.99); text-shadow: -2px 0 var(--cream), 2px 0 var(--azur); }
  32% { font-family: "Press Start 2P"; font-size: 0.58em; transform: skewX(-4deg) scale(1.03); text-shadow: 3px 0 var(--cream), -3px 0 var(--blue); }
  40% { font-family: "Orbitron"; font-size: 0.82em; transform: skewX(3deg) scale(0.97); text-shadow: -1px 0 var(--cream), 1px 0 var(--azur); }
  48% { font-family: "VT323"; font-size: 1.1em; transform: skewX(-2deg) scale(1.02); text-shadow: 2px 0 var(--cream), -2px 0 var(--blue); }
  56% { font-family: "Russo One"; font-size: 0.92em; transform: skewX(1deg) scale(1); text-shadow: -2px 0 var(--cream), 2px 0 var(--azur); }
  64% { font-family: "Audiowide"; font-size: 0.85em; transform: skewX(-1deg) scale(1.01); text-shadow: 1px 0 var(--cream), -1px 0 var(--blue); }
  72% { font-family: "Press Start 2P"; font-size: 0.58em; transform: skewX(2deg) scale(0.99); text-shadow: -1px 0 var(--cream), 1px 0 var(--azur); }
  80% { font-family: "Orbitron"; font-size: 0.82em; transform: skewX(-1deg) scale(1); text-shadow: 1px 0 var(--cream), -1px 0 var(--blue); }
  90% { font-family: "VT323"; font-size: 1.1em; transform: skewX(0.5deg) scale(1); text-shadow: var(--text-shadow); }
  100% { font-family: var(--font); font-size: 1em; transform: none; text-shadow: var(--text-shadow); }
}

@media (max-width: 640px) {
  .statement {
    font-size: clamp(34px, 10.5vw, 56px);
    line-height: 1.04;
  }
}

@media (prefers-reduced-motion: reduce) {
  .statement__level.is-glitching,
  .rdv-title__accent.is-glitching,
  .method-glitch.is-glitching {
    animation: none;
  }
}

/* robot ouvert : la phrase s'efface (la montagne reste), puis revient simplement */
.statement {
  transition: opacity 0.4s ease;
}

body.faq-open .statement {
  opacity: 0;
}

/* … et la montagne baisse un peu pour laisser la place aux bulles */
body.faq-open .ridge {
  opacity: 0.2;
}

/* ---------- Effets de lettres (fx.js) : mot animé, élément caché jusqu'à son animation ---------- */
.fx {
  position: relative;
  display: inline-block;
}

.js .fx {
  opacity: 0;
}

.js .fx.is-on {
  opacity: 1;
}

.fx__ch {
  display: inline-block;
}

/* mot d'un bloc : la ligne peut se couper entre les mots */
.fx__w {
  display: inline-block;
  white-space: nowrap;
}

.fx__word {
  display: inline-block;
}

.js .reveal {
  opacity: 0;
}

.js .reveal.is-on {
  opacity: 1;
}

/* les pixels qui forment un mot */
.pixels {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* le curseur qui tire un cadre (avant / après de la page portfolio) */
.pointer {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* bouton « Portfolio » de la section Portfolio : son contour se dessine, puis ses lettres (home-portfolio.js) */
.action--outline.is-drawing {
  border-color: transparent;
}

.action__outline {
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  overflow: visible;
  pointer-events: none;
}

.js .home-portfolio__cta {
  opacity: 0;
}

.js .home-portfolio__cta:not(.is-in) {
  pointer-events: none;
}

.js .home-portfolio__cta.is-in {
  opacity: 1;
}

@keyframes hero-hint-bob {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

/* ---------- Portfolio (accueil) : le titre en pixels (comme « Services »), la phrase, la flèche vers le bouton,
   puis des pages de sites en éventail sur toute la largeur, qui changent de place tour à tour ;
   les étoiles du site en fond (sky.js) ---------- */
.home-portfolio {
  position: relative;
  /* l'éventail déborde des bords et du bas de l'écran : il est coupé net, comme s'il montait du bas */
  overflow: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh; /* repli pour les vieux navigateurs, taste-skill-ignore */
  min-height: 100svh;
  padding-top: 150px;
}

.home-portfolio__top,
.home-portfolio__head,
.home-portfolio__deck {
  position: relative;
  z-index: 1;
}

/* le titre, placé et dessiné comme celui de Services */
.home-portfolio__top {
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(1rem, 4vw, 4rem);
}

.home-portfolio__title {
  position: relative;
  margin: 0;
  color: var(--azur);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.home-portfolio__title .reveal {
  display: inline-block;
}

.home-portfolio__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(1.5rem, 4vh, 2.75rem) 0 clamp(1.5rem, 4vh, 3rem);
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
}

/* même police que la phrase du haut de page ; l'ombre la garde lisible sur les étoiles, comme les textes de Services */
.home-portfolio__phrase {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 72px);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-shadow: var(--text-shadow);
  text-wrap: balance;
}

.home-portfolio__accent {
  color: var(--azur);
}

/* la flèche discrète, qui pointe vers le bouton */
.home-portfolio__arrow {
  display: block;
  margin: clamp(14px, 2.4vh, 22px) 0;
  color: rgba(253, 243, 224, 0.55);
  transition: opacity 0.8s ease;
}

.js .home-portfolio__arrow:not(.is-on) {
  opacity: 0;
}

.home-portfolio__arrow svg {
  display: block;
  animation: hero-hint-bob 1.8s ease-in-out infinite;
}

/* l'éventail : la page du milieu devant, les autres de plus en plus penchées, basses et sombres vers les bords */
.home-portfolio__deck {
  --card: min(34vw, 600px, calc((100svh - 500px) * 1.6));
  /* écart entre deux pages : les plus éloignées touchent les bords de l'écran */
  --step: calc((50vw - var(--card) * 0.35) / 3);
  flex: none;
  width: 100vw;
  height: calc(var(--card) * 0.625 + 28px);
  margin-top: auto;
}

/* --i : place dans l'éventail (0 = au milieu), --a : sa distance au milieu, --i2 : son carré (home-portfolio.js) */
.home-portfolio__shot {
  position: absolute;
  top: 0;
  left: calc(50% - var(--card) / 2);
  z-index: calc(10 - var(--a, 0));
  display: block;
  width: var(--card);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: clamp(8px, 1.1vw, 14px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6); /* liseré et ombre des pages, taste-skill-ignore */
  filter: brightness(calc(1 - var(--a, 0) * 0.12));
  transform-origin: 50% 100%;
  transform:
    translateX(calc(var(--i, 0) * var(--step)))
    translateY(calc(var(--i2, 0) * var(--card) * 0.012))
    rotate(calc(var(--i, 0) * 5deg))
    scale(calc(1 - var(--a, 0) * 0.05));
  /* le changement de premier plan se fait à mi-chemin : la page qui arrive passe sur l'autre en la croisant */
  transition:
    transform 1.6s cubic-bezier(0.65, 0, 0.35, 1),
    filter 1.6s ease,
    z-index 1.6s linear,
    opacity 0.6s ease,
    translate 0.35s ease;
}

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

/* la page du bord gauche s'efface, puis revient par la droite */
.home-portfolio__shot.is-out {
  opacity: 0;
}

@media (hover: hover) {
  .home-portfolio__shot:hover {
    translate: 0 -10px;
  }
}

.home-portfolio__shot:focus-visible {
  outline: 2px solid var(--azur);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  /* titre centré, comme celui de Services sur téléphone */
  .home-portfolio {
    padding-top: 120px;
  }

  .home-portfolio__top {
    text-align: center;
  }

  /* la phrase et le bouton se placent au milieu de l'espace entre le titre et l'éventail */
  .home-portfolio__head {
    margin-block: auto;
  }

  .home-portfolio__deck {
    --card: 72vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-portfolio__arrow svg {
    animation: none;
  }
}

/* ordinateur et tablette : les titres de section en plus petit */
@media (min-width: 769px) {
  .home-portfolio .home-portfolio__title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
}

/* ---------- La poussière d'étoiles, derrière tout le site (sky.js) ; sur le hero, elle passe derrière la montagne ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
