/* D five : blanc, gris perle, noir profond, un bleu pour l'action. Cinq points de couleur pour la signature. */
:root {
  --blanc: #ffffff;
  --perle: #f5f5f7;
  --noir: #1d1d1f;
  --gris: #6e6e73;
  --gris-clair: #d2d2d7;
  --bleu: #0071e3;
  --large: 1080px;
  --marge: clamp(22px, 5vw, 48px);
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Inter, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--noir); font: 400 19px/1.47 var(--police); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 4px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.saut { position: absolute; left: -999px; top: 8px; background: var(--noir); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 30; }
.saut:focus { left: 8px; }

/* ───── Barre ───── */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(var(--marge), calc((100vw - var(--large)) / 2 + var(--marge)));
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, color .3s;
}
.barre.defile { border-bottom-color: rgba(0, 0, 0, .1); }
.barre.sombre { background: rgba(0, 0, 0, .7); color: #f5f5f7; border-bottom-color: rgba(255, 255, 255, .12); }
.logo { font-weight: 600; font-size: 21px; letter-spacing: -0.03em; color: inherit; }
.logo:hover { text-decoration: none; }
.barre nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.barre nav a { color: inherit; font-size: 14px; opacity: .82; }
.barre nav a:hover { opacity: 1; text-decoration: none; }

/* ───── Hero ───── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 120px var(--marge) 80px; position: relative; overflow: hidden;
}
.cinq { position: relative; width: 132px; height: 132px; margin-bottom: clamp(28px, 5vh, 56px); will-change: transform; }
.cinq i {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%;
  transform: rotate(calc(var(--n) * 72deg)) translateY(-48px);
  animation: arrive 1.3s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n) * 90ms);
}
.cinq i:nth-child(1) { --n: 0; background: #0a84ff; }
.cinq i:nth-child(2) { --n: 1; background: #5e5ce6; }
.cinq i:nth-child(3) { --n: 2; background: #ff375f; }
.cinq i:nth-child(4) { --n: 3; background: #ff9f0a; }
.cinq i:nth-child(5) { --n: 4; background: #30d158; }
@keyframes arrive {
  from { opacity: 0; transform: rotate(calc(var(--n) * 72deg - 140deg)) translateY(-150px) scale(.2); }
  to { opacity: 1; transform: rotate(calc(var(--n) * 72deg)) translateY(-48px) scale(1); }
}
.cinq.tourne { animation: tourne 28s linear infinite; animation-delay: 1.6s; }
@keyframes tourne { to { rotate: 360deg; } }

.titre { font-size: clamp(44px, 9vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; max-width: 12ch; }
.ligne { display: block; overflow: hidden; padding-bottom: .08em; }
.ligne > span { display: block; transform: translateY(105%); animation: monte 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.ligne:nth-child(1) > span { animation-delay: .25s; }
.ligne:nth-child(2) > span { animation-delay: .37s; }
.ligne:nth-child(3) > span { animation-delay: .49s; background: linear-gradient(90deg, #0a84ff, #5e5ce6 35%, #ff375f 70%, #ff9f0a); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes monte { to { transform: none; } }
.chapo { font-size: clamp(19px, 2.3vw, 26px); line-height: 1.35; color: var(--gris); max-width: 30em; margin-top: 28px; }
.entree { opacity: 0; animation: apparait .9s ease forwards; animation-delay: 1s; }
.entree + .entree { animation-delay: 1.15s; margin-top: 22px; }
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lien { font-size: 21px; }
.lien::after { content: " ›"; }

/* ───── Vitrine Serviz : le téléphone reste, l'écran change ───── */
.vitrine { background: #000; color: #f5f5f7; height: 320vh; position: relative; }
.vitrine-colle {
  position: sticky; top: 0; height: 100svh; max-width: var(--large); margin: 0 auto; padding: 72px var(--marge) 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center;
}
.nom-app { font-size: 21px; font-weight: 600; color: #ffd21f; margin-bottom: 14px; }
.vitrine h2 { font-size: clamp(30px, 4vw, 50px); max-width: 15em; }
.temps { list-style: none; margin: clamp(22px, 4vh, 40px) 0; padding: 0; }
.temps li { padding: 14px 0 14px 20px; border-left: 2px solid rgba(255, 255, 255, .16); color: #86868b; font-size: 18px; line-height: 1.4; transition: color .45s, border-color .45s; }
.temps li strong { display: block; font-weight: 600; font-size: 21px; color: inherit; }
.temps li.actif { color: #f5f5f7; border-left-color: #ffd21f; }
.bouton { display: inline-block; background: var(--bleu); color: #fff; border-radius: 999px; padding: 12px 22px; font-size: 17px; }
.bouton:hover { background: #0077ed; text-decoration: none; }
.note { color: #86868b; font-size: 15px; margin-left: 14px; white-space: nowrap; }

.telephone {
  justify-self: center; width: min(300px, 70vw); aspect-ratio: 300 / 610; border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #3a3a3c, #1c1c1e); box-shadow: 0 0 0 1.5px #48484a, 0 40px 120px rgba(10, 132, 255, .22);
  will-change: transform;
}
.ecran { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #f3f5fa; color: #0c1a4b; font-size: 14px; line-height: 1.35; letter-spacing: 0; }
.app-haut { padding: 30px 18px 6px; }
.app-marque { font-weight: 800; font-size: 20px; letter-spacing: -0.05em; color: #1d3fc4; }
.vue { position: absolute; inset: 66px 0 0; padding: 6px 18px 18px; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.ecran[data-etape="0"] .vue-0, .ecran[data-etape="1"] .vue-1, .ecran[data-etape="2"] .vue-2 { opacity: 1; transform: none; }
.app-titre { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.app-titre.centre, .app-texte.centre { text-align: center; }
.app-texte { color: #5b6685; margin-bottom: 16px; }
.app-champ { background: #fff; border: 1px solid #dde2ee; border-radius: 14px; padding: 12px; min-height: 86px; font-size: 15px; }
.curseur { display: inline-block; width: 2px; height: 1.1em; background: #1d3fc4; vertical-align: -2px; margin-left: 1px; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.app-label { font-weight: 600; font-size: 13px; margin: 14px 0 8px; }
.app-puce { display: inline-block; background: #1d3fc4; color: #fff; font-weight: 600; border-radius: 999px; padding: 7px 14px; opacity: 0; transform: scale(.8); transition: opacity .35s, transform .35s; }
.app-puce.vu { opacity: 1; transform: none; }
.app-bouton { position: absolute; left: 18px; right: 18px; bottom: 22px; background: #1d3fc4; color: #fff; font-weight: 600; text-align: center; border-radius: 14px; padding: 13px 8px; }
.app-devis { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dde2ee; border-radius: 14px; padding: 11px 12px; margin-bottom: 9px; }
.app-devis div { flex: 1; min-width: 0; }
.app-devis b { display: block; font-weight: 600; }
.app-devis small { color: #5b6685; font-size: 12px; }
.app-devis em { font-style: normal; font-weight: 800; font-size: 19px; color: #1d3fc4; }
.av { width: 36px; height: 36px; border-radius: 50%; background: #e4eafb; color: #1d3fc4; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.vue-1 .app-devis { opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .5s; }
.ecran[data-etape="1"] .vue-1 .app-devis { opacity: 1; transform: none; }
.ecran[data-etape="1"] .vue-1 .app-devis:nth-of-type(2) { transition-delay: .12s; }
.ecran[data-etape="1"] .vue-1 .app-devis:nth-of-type(3) { transition-delay: .24s; }
.app-ok { width: 64px; height: 64px; border-radius: 50%; background: #12805c; display: grid; place-items: center; margin: 26px auto 16px; transform: scale(.4); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.ecran[data-etape="2"] .app-ok { transform: none; }

/* ───── Approche ───── */
.approche { max-width: var(--large); margin: 0 auto; padding: clamp(96px, 16vw, 200px) var(--marge) clamp(64px, 10vw, 120px); }
.manifeste { font-size: clamp(28px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.14; max-width: 20em; }
.manifeste span { color: var(--gris-clair); transition: color .25s; }
.manifeste span.lu { color: var(--noir); }
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(64px, 10vw, 128px); }
.piliers h3 { font-size: 24px; margin-bottom: 10px; }
.piliers p { color: var(--gris); font-size: 17px; }

/* ───── Suite ───── */
.suite { background: var(--perle); padding: clamp(80px, 12vw, 160px) max(var(--marge), calc((100vw - var(--large)) / 2 + var(--marge))); }
.suite h2, .societe h2 { font-size: clamp(32px, 5vw, 60px); }
.cartes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: clamp(32px, 5vw, 64px); }
.carte { border-radius: 28px; padding: 28px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--blanc); color: var(--noir); position: relative; overflow: hidden; }
.carte strong { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.carte > span:last-child { color: var(--gris); font-size: 17px; margin-top: 4px; }
.etat { position: absolute; top: 28px; left: 28px; font-size: 14px; font-weight: 600; color: var(--gris); }
.carte-serviz { background: #1d3fc4; color: #fff; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.carte-serviz:hover { text-decoration: none; transform: scale(1.015); }
.carte-serviz strong { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; }
.carte-serviz > span:last-child, .carte-serviz .etat { color: #ffd21f; }
.carte-flou::before {
  content: ""; position: absolute; inset: -30% -30% 25% -30%; filter: blur(46px); opacity: .7;
  background: conic-gradient(from 0deg, #0a84ff, #5e5ce6, #ff375f, #ff9f0a, #30d158, #0a84ff); animation: tourne 22s linear infinite;
}
.carte-flou:nth-child(3)::before { animation-direction: reverse; animation-duration: 30s; }
.carte-flou > *:not(.etat) { position: relative; }
.carte-flou .etat { z-index: 1; color: var(--noir); }

/* ───── Société ───── */
.societe { max-width: var(--large); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--marge) 0; }
.fiche { margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 5vw, 72px); }
.fiche div { padding: 20px 0; border-top: 1px solid var(--gris-clair); }
.fiche dt { color: var(--gris); font-size: 15px; }
.fiche dd { margin: 4px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }

/* ───── Contact ───── */
.contact { text-align: center; padding: clamp(96px, 16vw, 200px) var(--marge); }
.contact h2 { font-size: clamp(48px, 10vw, 120px); font-weight: 700; letter-spacing: -0.045em; }
.contact p { color: var(--gris); font-size: clamp(19px, 2.2vw, 24px); margin-top: 16px; }
.courriel { display: inline-block; margin-top: 28px; font-size: clamp(24px, 4.4vw, 48px); font-weight: 600; letter-spacing: -0.03em; }

.pied { background: var(--perle); color: var(--gris); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px max(var(--marge), calc((100vw - var(--large)) / 2 + var(--marge))); }
.pied nav { display: flex; gap: 22px; }
.pied a { color: #424245; }

/* Révélation au défilement : réservée aux blocs marqués, une seule fois. */
.revele { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.revele.vu { opacity: 1; transform: none; }
.piliers .revele:nth-child(2), .cartes .revele:nth-child(2) { transition-delay: .1s; }
.piliers .revele:nth-child(3), .cartes .revele:nth-child(3) { transition-delay: .2s; }

/* ───── Page texte ───── */
.page-texte .barre { position: sticky; }
.texte { max-width: 720px; margin: 0 auto; padding: 56px var(--marge) 96px; }
.texte h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 24px; }
.texte h2 { font-size: 21px; margin: 32px 0 8px; }
.texte p { margin: 6px 0; color: #424245; }

@media (max-width: 860px) {
  .barre nav a:nth-child(n+3) { display: none; }
  .vitrine { height: auto; }
  .vitrine-colle { position: static; height: auto; grid-template-columns: 1fr; padding: 96px var(--marge); }
  .telephone { order: -1; width: min(260px, 64vw); }
  .temps li { color: #f5f5f7; border-left-color: rgba(255, 210, 31, .5); }
  .piliers, .cartes, .fiche { grid-template-columns: 1fr; }
  .carte { min-height: 220px; }
  .note { display: block; margin: 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ligne > span, .revele, .entree, .cinq i, .app-puce { opacity: 1; transform: none; }
  .cinq i { transform: rotate(calc(var(--n) * 72deg)) translateY(-48px); }
  .manifeste span { color: var(--noir); }
}
