/* Oneclic Portfolio — accueil de l'espace clients : sections pleine largeur aux couleurs du logo */

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --deep: #0B6FA4;      /* bleu profond du « O » */
  --azure: #3B9BD7;
  --sky: #66C6F0;
  --peri: #7A8CE0;      /* bleu-violet de « neclic » */
  --navy: #0D2B45;      /* pied de page */
  --mist: #EEF5FD;      /* fond doux */
  --ink: #0E2A47;
  --ink-soft: #4A6280;
  --line: #D8E5F5;
  --display: "Bricolage Grotesque", "Roboto", system-ui, sans-serif;
  --text: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.wl { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 6px; }
.wl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wl-admin { margin: 0; padding: .5rem var(--gutter); background: #FFF6DB; color: #6B4E00; font-size: .9rem; text-align: center; }
.wl-admin a { color: inherit; font-weight: 700; }

/* ---------- Boutons ---------- */
.wl-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.5em;
  border-radius: 10px; border: 2px solid transparent; font: 500 1rem/1 var(--text); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, color .15s, border-color .15s;
}
.wl-btn:active { transform: translateY(1px); }
.wl-btn-white { background: #fff; color: var(--deep); box-shadow: 0 8px 20px -10px rgba(6, 40, 75, .6); }
.wl-btn-white:hover { background: #EAF4FF; }
.wl-btn-line { border-color: rgba(255, 255, 255, .75); color: #fff; }
.wl-btn-line:hover { background: rgba(255, 255, 255, .14); }
.wl-btn-soft { min-height: 42px; background: var(--mist); color: var(--deep); }
.wl-btn-soft:hover { background: #DCEBFB; }

/* ---------- En-tête (blanc) ---------- */
.wl-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.wl-top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.wl-brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.wl-brand img { display: block; height: 44px; width: auto; }
.wl-brand span { padding-left: .9rem; border-left: 1px solid var(--line); }

/* ---------- Héros (pleine largeur, bleu) ---------- */
.wl-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(122, 140, 224, .85) 0%, rgba(122, 140, 224, 0) 60%),
    linear-gradient(120deg, #084F78 0%, var(--deep) 35%, var(--azure) 75%, var(--sky) 100%);
}
.wl-hero::before { content: ""; position: absolute; z-index: -1; left: -120px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.wl-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 2.5rem; min-height: min(78vh, 680px); padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.wl-hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 88%;
  font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: -0.025em; text-wrap: balance;
}
.wl-lead { margin: 1.5rem 0 0; max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); font-weight: 300; color: rgba(255, 255, 255, .95); }
.wl-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }

/* Variante : photo en fond, sous un voile bleu pour garder le texte lisible */
.wl-hero-background { background:
    linear-gradient(100deg, rgba(8, 79, 120, .94) 0%, rgba(11, 111, 164, .82) 45%, rgba(59, 155, 215, .35) 100%),
    var(--hero-img) center / cover no-repeat, var(--deep); }
.wl-hero-background::before { display: none; }

.wl-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.wl-swirl { width: min(440px, 100%); height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(4, 30, 60, .18)); }
/* La spirale se cale à droite et la carte en bas à gauche : le logo reste lisible */
.wl-hero-swirl .wl-visual { place-items: start end; min-height: 500px; }
.wl-hero-swirl .wl-card { left: 0; bottom: 0; }
.wl-swirl-spin { transform-origin: 0 0; animation: wl-spin 90s linear infinite; }
.wl-hero-img { display: block; width: 100%; max-height: 480px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(4, 30, 60, .35)); }
.wl-hero-background .wl-visual { min-height: 0; align-self: end; }
.wl-hero-background .wl-card { position: relative; left: auto; bottom: auto; margin-left: auto; }

/* Carte de validation : ce que le client fait réellement ici */
.wl-card {
  position: absolute; left: 2%; bottom: 4%; width: min(340px, 92%);
  display: grid; grid-template-columns: 84px 1fr; gap: .9rem; align-items: center;
  padding: .9rem; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 26px 50px -20px rgba(4, 30, 60, .6);
}
.wl-card-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, var(--deep), var(--peri)); padding: 10px; }
.wl-card-thumb img { width: 100%; height: auto; }
.wl-card-title { margin: 0; font-weight: 700; font-size: .95rem; }
.wl-chip { position: relative; margin: .3rem 0 .6rem; height: 1.6em; font-size: .78rem; font-weight: 500; }
.wl-chip span { position: absolute; left: 0; top: 0; padding: .15em .6em; border-radius: 999px; white-space: nowrap; }
.wl-chip-wait { background: #FFF2D9; color: #8A5A00; }
.wl-chip-ok { background: #DDF6EA; color: #136B45; opacity: 0; transform: translateY(4px); }
.wl-card-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.wl-fake { padding: .35em .7em; border-radius: 7px; border: 1px solid var(--line); font-size: .74rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.wl-fake-ok { background: var(--deep); border-color: var(--deep); color: #fff; }

/* Un seul moment animé : la spirale se dessine, puis la proposition est approuvée */
@media (prefers-reduced-motion: no-preference) {
  /* Chaque lame se dessine dans le sens de la spirale (masque animé), l'une après l'autre */
  .wl-swirl .bm { stroke-dasharray: 1 1; animation: wl-draw 1.25s cubic-bezier(.3, .6, .2, 1) both; }
  .wl-swirl .bm2 { animation-delay: .12s; } .wl-swirl .bm3 { animation-delay: .24s; }
  .wl-swirl .bm4 { animation-delay: .42s; } .wl-swirl .bm5 { animation-delay: .54s; } .wl-swirl .bm6 { animation-delay: .66s; }
  .wl-card { animation: wl-rise .7s .9s cubic-bezier(.2, .7, .2, 1) both; }
  .wl-fake-ok { animation: wl-press .5s 2.4s both; }
  .wl-chip-wait { animation: wl-out .3s 2.7s forwards; }
  .wl-chip-ok { animation: wl-in .35s 2.75s forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-swirl-spin { animation: none; }
  .wl-chip-wait { opacity: 0; } .wl-chip-ok { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@keyframes wl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wl-spin { to { transform: rotate(360deg); } }
@keyframes wl-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes wl-press { 50% { transform: scale(.92); box-shadow: 0 0 0 6px rgba(11, 111, 164, .2); } }
@keyframes wl-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes wl-in { to { opacity: 1; transform: none; } }

/* ---------- Étapes (pleine largeur, blanc) ---------- */
.wl-steps { background: #fff; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.wl-steps h2, .wl-band h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 88%; letter-spacing: -0.02em; line-height: 1.05; }
.wl-steps h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); color: var(--ink); }
.wl-steps ol { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; position: relative; }
.wl-steps ol::before { /* le fil qui relie les étapes */
  content: ""; position: absolute; top: 29px; left: 30px; right: calc((100% - 5rem) / 3 - 30px); border-top: 2px dashed #A9CBEE;
}
.wl-steps li { position: relative; }
.wl-num {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--deep), var(--peri)); color: #fff;
  font: 800 1.6rem/1 var(--display); box-shadow: 0 0 0 10px #fff;
}
.wl-steps h3 { margin: 1.3rem 0 .5rem; font-size: 1.22rem; font-weight: 700; }
.wl-steps p { margin: 0; color: var(--ink-soft); max-width: 32ch; }

/* ---------- Bandeau « lien perdu » (pleine largeur, ciel) ---------- */
.wl-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(110deg, var(--azure) 0%, var(--sky) 100%); }
.wl-band::before { content: ""; position: absolute; z-index: -1; left: -80px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.wl-band::after { content: ""; position: absolute; z-index: -1; right: 0; top: 0; width: min(260px, 30vw); height: 90px; border-bottom-left-radius: 28px; background: rgba(255, 255, 255, .16); }
.wl-band-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem 3.5rem; align-items: center; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.wl-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.wl-band-text p { margin: .7rem 0 0; color: rgba(255, 255, 255, .96); max-width: 36rem; }
.wl-band-form { display: grid; gap: .7rem; }
.wl-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.wl-form input[type="email"] {
  flex: 1 1 220px; min-height: 50px; padding: 0 1rem; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .8);
  background: #fff; color: var(--ink); font: 400 1rem var(--text);
}
.wl-form input[type="email"]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(13, 43, 69, .2); }
.wl-msg { margin: 0; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; }
.wl-msg-ok { background: #fff; color: #136B45; }
.wl-msg-err { background: #fff; color: #B42318; }

/* ---------- Pied de page (pleine largeur, nuit) ---------- */
.wl-foot { background: var(--navy); color: #BFD0E3; font-size: .95rem; }
.wl-foot-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 2.5rem; padding-top: 2.2rem; padding-bottom: 2.4rem; }
.wl-foot img { display: block; height: 34px; width: auto; }
.wl-foot p { margin: 0; }
.wl-foot a { color: #fff; }
.wl-foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.wl-foot .wl-team { color: #8FA8C3; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .wl-hero-in { grid-template-columns: 1fr; min-height: 0; gap: 1rem; }
  .wl-visual { min-height: 330px; margin-bottom: -1rem; }
  .wl-hero-swirl .wl-visual { place-items: start center; min-height: 400px; }
  .wl-swirl { width: min(320px, 82%); }
  .wl-steps ol { grid-template-columns: 1fr; gap: 2rem; }
  .wl-steps ol::before { display: none; }
  .wl-steps li { padding-left: 84px; min-height: 60px; }
  .wl-steps li:not(:last-child)::before { content: ""; position: absolute; left: 29px; top: 60px; bottom: -2rem; border-left: 2px dashed #A9CBEE; }
  .wl-num { position: absolute; left: 0; top: 0; }
  .wl-steps h3 { margin-top: .8rem; }
  .wl-band-in { grid-template-columns: 1fr; }
  .wl-foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wl-brand img { height: 36px; }
  .wl-brand span { display: none; }
  .wl-card, .wl-hero-swirl .wl-card { left: 50%; transform: translateX(-50%); bottom: 0; animation: none; }
  .wl-hero-background .wl-card { transform: none; left: auto; margin: 0 auto; }
  .wl-btn { width: 100%; }
  .wl-top .wl-btn { width: auto; }
}
